Class InvalidRequestFilter

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

A request filter that blocks malicious requests. Invalid request will respond with a 400 response code.

This filter checks and blocks the request if the following characters are found in the request URI:

  • Semicolon - can be disabled by setting blockSemicolon = false
  • Backslash - can be disabled by setting blockBackslash = false
  • Non-ASCII characters - can be disabled by setting blockNonAscii = false, the ability to disable this check will be removed in future version.
  • Path traversals - can be disabled by setting blockTraversal = false
Since:
1.6
See Also: