Cheetah
|
Public Member Functions | |
__construct () | |
dnsbl_lookup_ip ($mixedChain, $sIp, $querymode=CH_WSB_DNSBL_ANYPOSTV_RETFIRST) | |
dnsbl_lookup_uri ($sUri, $mixedChain=CH_WSB_DNSBL_CHAIN_URIDNS, $querymode=CH_WSB_DNSBL_ANYPOSTV_RETFIRST) | |
onPositiveDetection ($sIP, $sExtraData='', $sType='dnsbl') | |
clearCache () | |
Spam detection based on spammer IP
Example of usage:
if (DNSBL_POSITIVE == $o->dnsbl_lookup_ip(DNSBL_CHAIN_SPAMMERS, $sCurIP) && DNSBL_POSITIVE != $o->dnsbl_lookup_ip(DNSBL_CHAIN_WHITELIST, $sCurIP)) { // positive detection - block this ip } // continue script execution
There is more handy function available:
Definition at line 39 of file ChWsbDNSBlacklists.php.
ChWsbDNSBlacklists::__construct | ( | ) |
Constructor
Definition at line 46 of file ChWsbDNSBlacklists.php.
ChWsbDNSBlacklists::clearCache | ( | ) |
Definition at line 84 of file ChWsbDNSBlacklists.php.
ChWsbDNSBlacklists::dnsbl_lookup_ip | ( | $mixedChain, | |
$sIp, | |||
$querymode = CH_WSB_DNSBL_ANYPOSTV_RETFIRST |
|||
) |
Definition at line 51 of file ChWsbDNSBlacklists.php.
ChWsbDNSBlacklists::dnsbl_lookup_uri | ( | $sUri, | |
$mixedChain = CH_WSB_DNSBL_CHAIN_URIDNS , |
|||
$querymode = CH_WSB_DNSBL_ANYPOSTV_RETFIRST |
|||
) |
Definition at line 64 of file ChWsbDNSBlacklists.php.
ChWsbDNSBlacklists::onPositiveDetection | ( | $sIP, | |
$sExtraData = '' , |
|||
$sType = 'dnsbl' |
|||
) |
Definition at line 76 of file ChWsbDNSBlacklists.php.