API7 Docs

UA Restriction Configuration

Parameters

See plugin common configurations for configuration options available to all plugins.

  • bypass_missingboolean · optional · default: false

    If true, bypass the user agent restriction check when the User-Agent header is missing.

  • allowlistarray[string] · optional

    List of user agents to allow. Support regular expressions.

    At least one of the allowlist and denylist should be configured, but they cannot be configured at the same time.

  • denylistarray[string] · optional

    List of user agents to deny. Support regular expressions.

    At least one of the allowlist and denylist should be configured, but they cannot be configured at the same time.

  • messagestring · optional · default: Not allowed

    Message returned when the user agent is denied access.