Class InvalidURIRule

java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.InvalidURIRule

public class InvalidURIRule extends Rule

Rule that protects against invalid unicode characters in URLs, returning a configurable status code with body message.

The logic is as follows:

  • if a decoded URI character is an iso control character, apply the rule
  • if no Character.UnicodeBlock is found for a decoded URI character, apply the rule
  • if a decoded URI character is in UnicodeBlock.SPECIALS, apply the rule