URI Blocker Configuration
The uri-blocker plugin rejects requests whose path or query string matches configured regular expressions, with optional case-insensitive matching. Configuration covers plugin parameters.
Parameters
See plugin common configurations for configuration options available to all plugins.
block_rules
valid value:
unique regular expressions, each between 1 and 4096 charactersRegular expressions matched with OR logic against the normalized request path and query string. An unanchored expression can match anywhere in the URI.
The gateway compiles each expression when it loads the plugin configuration. Invalid syntax prevents that configuration from taking effect.
An empty array matches every request handled by the plugin. Configure at least one nonempty rule unless blocking all matched requests is intentional.
rejected_code
valid value:
greater than or equal to 200HTTP status code returned when a rule matches.
rejected_msg
valid value:
at least 1 characterMessage returned in the JSON
error_msgfield when a rule matches.case_insensitive
If true, match all rules without regard to letter case.