title: IP filter using Spring Security
body: <p>I wonder how to filter users' access to my web app by their IP using Spring Security.
  Should I extend <code>AbstractAuthenticationProcessingFilter</code> or something like that and override it's methods in my own way?
  If so, could you give an example of such extending and example of filter description in <code>web.xml</code>?
  Thanks in advance.</p>
  
  <p>P.S. In my app I also have Spring Security support (using default <code>org.springframework.web.filter.DelegatingFilterProxy</code>), but I want it to check not only user credentials, but their IP's as well.</p>