FuseGuard Logo

fuseguard.components.filters
Component VariablePatternFilter

filters.BaseFilter
  |
  +--filters.VariablePatternFilter

Blocks Variables that don't match the specified pattern

Method Summary
public any getDescription()
public string getName()
public string getThreatCategory()
          Returns validation
public numeric inspectRequest()
public boolean matchesPattern(string input)
          Tests the input variable against the pattern
public void setAllowEmpty(boolean allow)
          Allows empty string if pattern does not match.
public void setPattern(string pattern)
          Allows you to specify the regular expression pattern for this filter to match
public void setVariableName([variableName scope], [variableName variableName])
          The name of the variable to inspect.

Methods inherited from filters.BaseFilter
logEnabled, ignoreVariable, getBlockLevel, init, setScopes, setFilterLevel, getFirewall, setFilterID, filterEnabled, blockEnabled, getRequestLogMessageDetail, logOnly, getFilterInstanceName, inspectVariables, setLogLevel, ignoresVariable, getFilterID, ignoreURI, filterRequest, inspectsCGIScope, getRequestLogMessage, inspectsURI, getLogLevel, setAllowDenyOrder, inspectsCookieScope, setBlockLevel, filterVariables, setFilterInstanceName, inspectVariable, allowURI, getHelp, inspectsUrlScope, getFilterLevel, denyURI, setRequestLogMessage, getFilterComponent, inspectsFormScope
 

Method Detail

getDescription

public any getDescription()

getName

public string getName()

getThreatCategory

public string getThreatCategory()
Returns validation


inspectRequest

public numeric inspectRequest()

matchesPattern

public boolean matchesPattern(string input)
Tests the input variable against the pattern

Parameters:
string input

setAllowEmpty

public void setAllowEmpty(boolean allow)
Allows empty string if pattern does not match.

Parameters:
boolean allow - true for allow empty strings as values

setPattern

public void setPattern(string pattern)
Allows you to specify the regular expression pattern for this filter to match

Parameters:
string pattern - regex to be used in ReFind

setVariableName

public void setVariableName([variableName scope], [variableName variableName])
The name of the variable to inspect.

Parameters:
[variableName scope] - cgi,form,url, or cookie
[variableName variableName] - The Name of the Variable