FuseGuard Logo

fuseguard.components.filters
Component RepeatOffenderFilter

filters.BaseFilter
  |
  +--filters.RepeatOffenderFilter

Detects IP's that have been blocked multiple times, and allows you to block all subsequent requests

Method Summary
public any init(any firewallInstance)
          Called Once On Application Initialization
public numeric getBlockDuration()
          Returns the number of seconds the filter will block an IP for since last blocked request.
public array getConfigurables()
          Returns a list of configurable properties
public string getDescription()
public string getIPList()
          Returns the ipList id defined
public numeric getMaximumBlockedRequests()
          Returns the max number of blocked requests allowed before all are blocked by the ip.
public string getName()
public boolean getUseIPListManager()
          Returns if IP List Manager will be used.
public numeric inspectRequest()
public void processBlockedRequest([any filter], [numeric level])
          Callback invoked by event handler to notify when a block happens.
public void removeIPBlock(string ipAddress)
          Unblocks an IP address that is blocked by this filter. Only applies if setUseDatabase is true.
public void setBlockDuration(numeric blockDuration)
          The number of seconds that an IP is blocked for.
public void setIPList([any ipList])
          Select an IP list that contains.
public void setMaximumBlockedRequests(numeric maximumBlockedRequests)
          Once a remote ip acheives this many blocks, it will be blocked from all requests
public void setUseIPListManager(boolean value)
          When set to true uses IP List Manager to log offending IPs.

Methods inherited from filters.BaseFilter
inspectsCookieScope, logEnabled, inspectsFormScope, inspectsRequestBody, setFilterWhitelist, setFilterInstanceName, getFilterLevel, getLogLevel, setScopes, getRequestLogMessage, allowURI, inspectsURI, ignoreURI, inspectsRequest, inspectsCGIScope, setIgnoreVariableList, getHelp, getRequestLogMessageDetail, setAllowDenyOrder, getIPWhiteListID, setRequestLogMessage, setFilterLevel, filterRequest, blockEnabled, getFilterID, inspectsUrlScope, inspectVariable, getThreatCategory, getFirewall, setAllowURIList, filterEnabled, filterVariables, logOnly, getFilterInstanceName, getFilterComponent, getIPWhiteListProvider, setIgnoreURIList, setFilterID, getBlockLevel, ignoreVariable, denyURI, inspectResponse, hasIPWhiteList, setLogLevel, inspectVariables, setBlockLevel, ignoresVariable
 

Method Detail

getBlockDuration

public numeric getBlockDuration()
Returns the number of seconds the filter will block an IP for since last blocked request.


getConfigurables

public array getConfigurables()
Returns a list of configurable properties


getDescription

public string getDescription()

getIPList

public string getIPList()
Returns the ipList id defined


getMaximumBlockedRequests

public numeric getMaximumBlockedRequests()
Returns the max number of blocked requests allowed before all are blocked by the ip.


getName

public string getName()

getUseIPListManager

public boolean getUseIPListManager()
Returns if IP List Manager will be used.


init

public any init(any firewallInstance)
Called Once On Application Initialization

Parameters:
any firewallInstance

inspectRequest

public numeric inspectRequest()

processBlockedRequest

public void processBlockedRequest([any filter], [numeric level])
Callback invoked by event handler to notify when a block happens.

Parameters:
[any filter] - The filter triggering the event
[numeric level] - The threat level indicated by the filter

removeIPBlock

public void removeIPBlock(string ipAddress)
Unblocks an IP address that is blocked by this filter. Only applies if setUseDatabase is true.

Parameters:
string ipAddress

setBlockDuration

public void setBlockDuration(numeric blockDuration)
The number of seconds that an IP is blocked for.

Parameters:
numeric blockDuration

setIPList

public void setIPList([any ipList])
Select an IP list that contains.

Parameters:
[any ipList]

setMaximumBlockedRequests

public void setMaximumBlockedRequests(numeric maximumBlockedRequests)
Once a remote ip acheives this many blocks, it will be blocked from all requests

Parameters:
numeric maximumBlockedRequests

setUseIPListManager

public void setUseIPListManager(boolean value)
When set to true uses IP List Manager to log offending IPs.

Parameters:
boolean value