AntiFlood
in package
Handles AntiFlood calls
Table of Contents
- DIVERSION = 'https://google.com'
- KEEPTIME = 60 * 60
- TABLE = 'fwflood'
- flooding() : bool
- Check if an IP is flooding
Constants
DIVERSION
private
mixed
DIVERSION
= 'https://google.com'
KEEPTIME
private
mixed
KEEPTIME
= 60 * 60
TABLE
private
mixed
TABLE
= 'fwflood'
Methods
flooding()
Check if an IP is flooding
public
static flooding(int $limit[, bool $divert = TRUE ]) : bool
Parameters
- $limit : int
-
Number of seconds allowed between calls
- $divert : bool = TRUE
-
If TRUE Then don't return but divert somewhere else