FuseGuard Logo

fuseguard.components.filters
Component VariablePatternFilter

filters.BaseFilter
  |
  +--filters.VariablePatternFilter

Blocks Variables that match or do not match the specified pattern

Method Summary
public array getConfigurables()
          Returns a list of configurable properties
public string 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 setRequireMatch(boolean match)
          Determines if the filter is looking for a match or not a match.
public void setVariableName([variableName scope], [variableName variableName])
          The name of the variable to inspect.
public void setVariableNameList([string variableNames])
          The name and scope of the variable

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

Method Detail

getConfigurables

public array getConfigurables()
Returns a list of configurable properties


getDescription

public string 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

setRequireMatch

public void setRequireMatch(boolean match)
Determines if the filter is looking for a match or not a match.

Parameters:
boolean match - true to require a match

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

setVariableNameList

public void setVariableNameList([string variableNames])
The name and scope of the variable

Parameters:
[string variableNames] - The Name of the Variable