Parameters
See plugin common configurations for configuration options available to all plugins.
bypass_missing
If true, bypass the user agent restriction check when the
User-Agentheader is missing.allowlist
List of user agents to allow. Support regular expressions.
At least one of the
allowlistanddenylistshould be configured, but they cannot be configured at the same time.denylist
List of user agents to deny. Support regular expressions.
In API7 Enterprise 3.9.19 and 3.10.7, and in APISIX 3.19.0, the plugin evaluates repeated
User-Agentheaders independently. A request is rejected with HTTP 403 if any value matches the denylist; an allowed value does not override a denied one.At least one of the
allowlistanddenylistshould be configured, but they cannot be configured at the same time.message
Message returned when the user agent is denied access.