PHP Classes

DNSBL: Check spam IP address in DNS black lists

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 78%Total: 740 All time: 4,526 This week: 69Up
Version License PHP version Categories
dnsbl 0.9.1GNU General Publi...3.0Networking, PHP 5, Validation
Description 

Author

This class can check if an IP address is of a spammer by looking up in DNS blacklists.

It can take a given IP address to check and queries the DNS records of one or more black lists to determine if the IP address can be a known spammer.

Currently the class can check the black lists of SpamHaus, SpamCop, DSBL, ORDB, SORBS, NJABL or all at once.

Picture of Alexey Znaev
Name: Alexey Znaev is available for providing paid consulting. Contact Alexey Znaev .
Classes: 3 packages by
Country: Russian Federation Russian Federation
Age: 52
All time rank: 198256 in Russian Federation Russian Federation
Week rank: 200 Up8 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

Details

DNSBL - Spam IP address checker ================================================= DNSBL is a class that performs IP address check in spam blocking lists as described on http://ru.wikipedia.org/wiki/RBL URLs of these lists are named 'checkers' in this class. Available checkers are: 'spamhaus' => '.zen.spamhaus.org', 'spamcop' => '.bl.spamcop.net', 'dsbl' => '.list.dsbl.org', 'ordb' => '.relays.ordb.org', 'sorbs' => '.dnsbl.sorbs.net', 'njabl' => '.dnsbl.njabl.org' 'spamhaus' is the default, 'spamhaus' & spamcop' are available for group checking by default. You can change the default checker. You can enable/disable checker for group checking. DNSBL checks given IP address in default checker by default :-) It can check in your selected checker or in available fror group checking ones as you wish. You can take the list of available checkers, the name of default checker. Also you can set default checker to any of available ones. Testing method is CheckSpamIP(). It takes up to 2 arguments - ip address and checker (optional). It returns true when IP exitsts in spam-lists of checker or at least one of all group available checkers, or false when not or when ip address is local or not correct. DNSBL correctly processes incorrect some DNS-server answers, as described at http://www.spamhaus.org/faq/answers.lasso?section=DNSBL%20Usage#243 See example.php for usage. See DNSBL.php for detailed comments. Good luck in spam fighting! ----------------------------------- Alexey Znayev, 2011, znaeff@mail.ru, http://xbsoft.org, http://xbsoft.ru

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file DNSBL.php Class DNSBL class
Accessible without login Plain text file example.php Example DNSBL example
Accessible without login Plain text file changelog.txt Data changelog
Accessible without login Plain text file example.out Output Correct output of example.php
Accessible without login Plain text file readme.txt Doc. readme file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:740
This week:0
All time:4,526
This week:69Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:93%StarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:78%StarStarStarStar
Rank:36