Query DNSBL or other block lists using PHP
Posted
by 55skidoo
on Stack Overflow
See other posts from Stack Overflow
or by 55skidoo
Published on 2010-04-27T17:01:22Z
Indexed on
2010/04/27
17:03 UTC
Read the original article
Hit count: 319
spam-prevention
|registration
Is there any way to use PHP code to query a DNSBL (block list) provider and find out if the IP address submitted is a bad actor?
I would like to take an existing IP address out of a registration database, then check whether it's a known block-listed IP address by performing a lookup on it, then if it's a blacklisted, do an action on it (such as, delete entry from registration database).
Most of the instructions I have seen assume you are trying to query the blocklist via a mail server, which I can't do. I tried querying via web browser by typing in queries such as "58.64.xx.xxx.dnsbl.sorbs.net" but that didn't work.
© Stack Overflow or respective owner