Class IpFilter

java.lang.Object
All Implemented Interfaces:
javax.servlet.Filter, org.apache.shiro.lang.util.Nameable, PathConfigProcessor

public class IpFilter extends AuthorizationFilter
A Filter that requires the request to be from within a specific set of IP address ranges and / or not from with a specific (denied) set.

Example config:

 [main]
 localLan = org.apache.shiro.web.filter.authz.IpFilter
 localLan.authorizedIps = 192.168.10.0/24
 localLan.deniedIps = 192.168.10.10/32
 

[urls] /some/path/** = localLan # override for just this path: /another/path/** = localLan

Since:
2.0