
filters.BaseFilter | +--filters.RepeatOffenderFilter
| Method Summary | |
public any |
init(any firewallInstance)
Called Once On Application Initialization |
public string |
getDescription()
|
public string |
getIPWhiteList()
Returns the list of IPs that are whitelisted |
public numeric |
getMaximumBlockedRequests()
Returns the max number of blocked requests allowed before all are blocked by the ip. |
public string |
getName()
|
public numeric |
inspectRequest()
|
public boolean |
isWhitelisted([string ip])
Returns true if an ip has been whitelisted. |
public void |
processBlockedRequest([any filter], [numeric level])
Callback invoked by event handler to notify when a block happens. |
public void |
setDatasource(any datasource, [any username=""], [any password=""], [any dbtype=""])
Sets the datasource info. |
public void |
setIPWhiteList(string ips)
Adds a list of IP addresses to be ignored by this filter, IPs may contain * as a wildcard, eg 10.10.*.* |
public void |
setMaximumBlockedRequests(numeric maximumBlockedRequests)
Once a remote ip acheives this many blocks, it will be blocked from all requests |
| Method Detail |
public string getDescription()
public string getIPWhiteList()
public numeric getMaximumBlockedRequests()
public string getName()
public any init(any firewallInstance)
any firewallInstancepublic numeric inspectRequest()
public boolean isWhitelisted([string ip])
[string ip]public void processBlockedRequest([any filter], [numeric level])
[any filter] - The filter triggering the event[numeric level] - The threat level indicated by the filterpublic void setDatasource(any datasource, [any username=""], [any password=""], [any dbtype=""])
any datasource - The name of a valid datasource[any username=""] - Optional, the datasource username[any password=""] - Optional, the datasource password[any dbtype=""] - mysql, sqlserver, or derbypublic void setIPWhiteList(string ips)
string ips - A comma seperated list of IPspublic void setMaximumBlockedRequests(numeric maximumBlockedRequests)
numeric maximumBlockedRequests