UNA
|
Public Member Functions | |
__construct () | |
dnsbl_lookup_ip ($mixedChain, $sIp, $querymode=BX_DOL_DNSBL_ANYPOSTV_RETFIRST) | |
dnsbl_lookup_uri ($sUri, $mixedChain=BX_DOL_DNSBL_CHAIN_URIDNS, $querymode=BX_DOL_DNSBL_ANYPOSTV_RETFIRST) | |
onPositiveDetection ($sIP, $sNote='', $sType='dnsbl') | |
getRules ($aChains) | |
getRule ($iId) | |
clearCache () | |
getDNSBLConfigValues () | |
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:
BxAntispamDNSBlacklists::__construct | ( | ) |
Constructor
Reimplemented from BxDol.