PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of Alexey Znaev  >  DNSBL  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: readme file
Class: DNSBL
Check spam IP address in DNS black lists
Author: By
Last change: New features explained.
Date: 5 years ago
Size: 1,653 bytes


Class file image Download
DNSBL - Spam IP address checker

DNSBL is a class that performs IP address check in spam blocking lists as described

URLs of these lists are named 'checkers' in this class.
Available checkers are:
            'spamhaus'  => '',
            'spamcop'   => '',
            'dsbl'      => '',
            'ordb'      => '',
            'sorbs'     => '',
            'njabl'     => ''
'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

See example.php for usage.
See DNSBL.php for detailed comments.

Good luck in spam fighting!

Alexey Znayev, 2011,,,