Message Board

http:BL Use/Development

Older Posts ]   [ Newer Posts ]
 What is the correct way to access the API
Author: B.Meetin2   (23 Nov 23 11:13pm)
I looked through the docs but it seem I'm doing something wrong in attempting to use the AP and get a response. To be clear I am referring to Http:BL API. I obtained the 12 digit key.

The FAW says rluilwyouaez.7.1.1.127.dnsbl.httpbl.org

Given an ip address of 999.888.777.666 I set up as $my_key.666.777.888.999.dnsbl.httpbl.org

When I visit the page as https://www.projecthoneypot.org/$my_key.666.777.888.999.dnsbl.httpbl.org it redirects to a project page.

or direct

$my_key.666.777.888.999.dnsbl.httpbl.org it takes me to a directory listing page of the ip acress.

Index of /
[TXT] _index.html 2022-08-13 09:40 11K
[DIR] bin/ 2023-11-23 08:06 -
[ ] config.php 2022-08-13 10:13 246

Either way I don't seem to be getting the correct response in the script. This doesn't work as expected:

$response = file_get_contents($honeypot_url); // the above urls
if ($response == '127.0.0.1') {
...
}

Can someone point me in the right direction.
 
 Re: What is the correct way to access the API
Author: J.Cridland   (21 Jan 24 4:10am)
It's a DNS service, so you'll want to run a DNS query on $my_key.666.777.888.999.dnsbl.httpbl.org

It's not a website, and it isn't an HTTP API.



do not follow this link

Privacy Policy | Terms of Use | About Project Honey Pot | FAQ | Cloudflare Site Protection | Contact Us

Copyright © 2004–24, Unspam Technologies, Inc. All rights reserved.

contact | wiki | email