BannedManager
in package
FinalYes
Legacy helper for recording and checking banned request origins.
Included for historical compatibility only. This API is deprecated and should not be used in new code.
Tags
Table of Contents
Methods
- addBanned() : void
- getInstance() : self
- getIpFile() : string
- isBanned() : bool
- isBanworthy() : bool
- removeBanned() : void
- setIpFile() : void
Methods
addBanned()
public
addBanned(string $ip) : void
Parameters
- $ip : string
getInstance()
public
static getInstance() : self
Return values
selfgetIpFile()
public
static getIpFile() : string
Return values
stringisBanned()
public
isBanned(string $ip) : bool
Parameters
- $ip : string
Return values
boolisBanworthy()
public
isBanworthy(string $message) : bool
Parameters
- $message : string
Return values
boolremoveBanned()
public
removeBanned(string $ip) : void
Parameters
- $ip : string
setIpFile()
public
static setIpFile(string $path) : void
Parameters
- $path : string