void add(
string
$ip, string
$comment, [boolean
$adddate = true]
)
|
|
Add a given $ip to the blocklist..
Parameters:
|
string |
$ip: |
|
|
string |
$comment: |
|
|
boolean |
$adddate: |
|
boolean compareOctet(
mixed
$oct1, mixed
$oct2
)
|
|
loose checking on octets. Allows for comparing ranges like 127.128.129.* or 127.128.129.40-80
Parameters:
|
mixed |
$oct1: |
|
|
mixed |
$oct2: |
|
boolean isBlocked(
string
$ip
)
|
|
Check if a given IP address is blocked..
Parameters:
void remove(
string
$ip
)
|
|
Remove a blocked $ip from the list..
Parameters:
Save the blocklist to file..