A configurable IP address filter for J2EE web applications

April 02, 2011


By convention, Filtre will attempt to load its configuration from filtre.properties stored on the root of the classpath:


Filtre can also be configured entirely within web.xml. This is useful when multiple instances are needed to protect different URL patterns with different white and black lists. Optional init parameters are whiteList, blackList, and configLocation:



Filtre is configured through three init-param elements:

Address format

Currently supported are IPv4 addresses in CIDR notation: