FuseGuard Logo

fuseguard.components.filters
Component GeoFilter

filters.BaseFilter
  |
  +--filters.GeoFilter

Allows you to block IPs by Geography.

Method Summary
public BaseFilter init(any firewallInstance)
          Called Once On Application Initialization
public array getConfigurables()
          Returns a list of configurable properties
public any getCountry([any ip])
public string getCountryFromCache([string ip])
public any getDescription()
public string getName()
public string getThreatCategory()
          Returns network
public numeric inspectRequest()
public void setAllowReservedIP([boolean allow])
          Determine what to do if IP is in IETF Reserved Address Space.
public void setAllowUnknownCountry([boolean allow])
          Determine what to do if IP is not mapped to a country.
public void setCacheResults([numeric cacheResults])
          Determine if it should cache ip to country lookups, and if so how many results to cache
public void setCountryBlacklist([any list])
          A comme seperated list of two letter country codes.
public void setCountryWhitelist([any list])
public void setIPList([any ipList])
          Select an IP list that contains ip country data.

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, getFirewall, setAllowURIList, filterEnabled, filterVariables, logOnly, getFilterInstanceName, getFilterComponent, getIPWhiteListProvider, setIgnoreURIList, setFilterID, getBlockLevel, ignoreVariable, denyURI, inspectResponse, hasIPWhiteList, setLogLevel, inspectVariables, setBlockLevel, ignoresVariable
 

Method Detail

getConfigurables

public array getConfigurables()
Returns a list of configurable properties


getCountry

public any getCountry([any ip])
Parameters:
[any ip]

getCountryFromCache

public string getCountryFromCache([string ip])
Parameters:
[string ip]

getDescription

public any getDescription()

getName

public string getName()

getThreatCategory

public string getThreatCategory()
Returns network


init

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

Parameters:
any firewallInstance

inspectRequest

public numeric inspectRequest()

setAllowReservedIP

public void setAllowReservedIP([boolean allow])
Determine what to do if IP is in IETF Reserved Address Space.

Parameters:
[boolean allow]

setAllowUnknownCountry

public void setAllowUnknownCountry([boolean allow])
Determine what to do if IP is not mapped to a country.

Parameters:
[boolean allow]

setCacheResults

public void setCacheResults([numeric cacheResults])
Determine if it should cache ip to country lookups, and if so how many results to cache

Parameters:
[numeric cacheResults]

setCountryBlacklist

public void setCountryBlacklist([any list])
A comme seperated list of two letter country codes.

Parameters:
[any list]

setCountryWhitelist

public void setCountryWhitelist([any list])
Parameters:
[any list]

setIPList

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

Parameters:
[any ipList]