Documentation

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'

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

Return values
bool

Search results