Last active
January 13, 2017 12:23
-
-
Save jonaslejon/12aeb310e544499dddb5 to your computer and use it in GitHub Desktop.
PHP DNSBL Spamcheck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = "http://some.url"; | |
$surbl = new Net_DNSBL_SURBL(); | |
$dnsbl->setBlacklists(array('list.dnsbl.org','multihop.dnsbl.org','sbl-xbl.spamhaus.org', 'bl.spamcop.net', 'dnsbl.sorbs.net', 'cbl.abuseat.org','blackholes.five-ten-sg.com','dul.dnsbl.sorbs.net', 'zen.spamhaus.org')); | |
if ($surbl->isListed($url)) | |
return false; | |
reuturn true; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment