Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I can get IP black list with APIs

Tags:

email

dnsbl

I can get whether my IPs are in some black lists, such as DNSBL. But Is there any API that I can do the same work with it. Especially, I don't want the HTML text, I just want know where my IPs is in a black list, for example "127.0.0.1 YES". Who can help me?

like image 647
user1785127 Avatar asked Dec 15 '25 17:12

user1785127


1 Answers

You don't need an API to check blacklists.

It's a simple dns query for the blacklist dns zone like zen.spamhaus.org

Example:

to query ip 10.11.12.13 in dns blacklists you will perform the dns query from (reverse IP) + blacklist zone name.

in our example the query will be 13.12.11.10.zen.spamhaus.org if the result is 127.0.0.2 then it's blacklisted else it's not blacklisted

find a complete working example and dnsbl lists here

like image 69
Ahmed Avatar answered Dec 19 '25 07:12

Ahmed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!