Cheetah
Public Member Functions | List of all members
ChWsbDNSBlacklists Class Reference

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

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
ch_is_ip_dns_blacklisted

Definition at line 39 of file ChWsbDNSBlacklists.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbDNSBlacklists::__construct ( )

Constructor

Definition at line 46 of file ChWsbDNSBlacklists.php.

Member Function Documentation

◆ clearCache()

ChWsbDNSBlacklists::clearCache ( )

Definition at line 84 of file ChWsbDNSBlacklists.php.

◆ dnsbl_lookup_ip()

ChWsbDNSBlacklists::dnsbl_lookup_ip (   $mixedChain,
  $sIp,
  $querymode = CH_WSB_DNSBL_ANYPOSTV_RETFIRST 
)

Definition at line 51 of file ChWsbDNSBlacklists.php.

◆ dnsbl_lookup_uri()

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.

◆ onPositiveDetection()

ChWsbDNSBlacklists::onPositiveDetection (   $sIP,
  $sExtraData = '',
  $sType = 'dnsbl' 
)

Definition at line 76 of file ChWsbDNSBlacklists.php.


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