UNA
Loading...
Searching...
No Matches
BxAntispamDNSBlacklists Class Reference
Inheritance diagram for BxAntispamDNSBlacklists:
BxDol

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 ()
 

Detailed Description

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:

See also
bx_is_ip_dns_blacklisted

Constructor & Destructor Documentation

◆ __construct()

BxAntispamDNSBlacklists::__construct ( )

Constructor

Reimplemented from BxDol.


The documentation for this class was generated from the following file: