|
| _isIpListed ($sType, $sIp) |
|
Blocking/whitelisting by IP using local database
◆ __construct()
BxAntispamIP::__construct |
( |
| ) |
|
Reimplemented from BxDol.
◆ blockIp()
BxAntispamIP::blockIp |
( |
| $mixedIP, |
|
|
| $iExpirationInSec = 86400, |
|
|
| $sComment = '' ) |
Add IP to blocklist
- Parameters
-
$sIP | IP as string or long integer |
$iExpirationInSec | set expiration in seconds |
$sComment | comment about blocking |
- Returns
- false on error, not false on success
◆ getIpTableDirective()
BxAntispamIP::getIpTableDirective |
( |
| $iId | ) |
|
Get IP table direcitve by ID
- Parameters
-
- Returns
- array with IP table directive data
◆ isIpBlocked()
BxAntispamIP::isIpBlocked |
( |
| $sCurIP = '' | ) |
|
Check if IP is directly bloked by IP address or by IP address range
- Parameters
-
$sCurIP | IP to check, or empty for current IP |
- Returns
- true - if IP is blocked; false - if IP is not blocked, or feature is not enabled, or it is run under cron
◆ isIpWhitelisted()
BxAntispamIP::isIpWhitelisted |
( |
| $sCurIP = '' | ) |
|
Check if IP is directly whitelisted by IP address or by IP address range
- Parameters
-
$sCurIP | IP to check, or empty for current IP |
- Returns
- true - if IP is whitelisted or under cron execution; false - if IP is not whitelisted, or feature is not enabled
◆ pruning()
BxAntispamIP::pruning |
( |
| ) |
|
Clean up expired entries
- Returns
- number of affected rows
The documentation for this class was generated from the following file:
- modules/boonex/antispam/classes/BxAntispamIP.php