Open ghermans opened 8 years ago
@ghermans any package for this?
This can be done by php pear Net_DNSBL.
https://pear.php.net/manual/en/package.networking.net-dnsbl.intro.php
$host = "";
$surbl = new Net_DNSBL_SURBL();
$dnsbl->setBlacklists(array('dnsbl.sorbs.net', 'zen.spamhaus.org'));
if ($surbl->isListed($url))
return false;
reuturn true;
Allow users to check if the IP adress is blocked.