Referer Restriction Configuration
The referer-restriction plugin allows or rejects requests according to the host in the Referer header on selected routes and services. Configuration covers plugin parameters.
Parameters
See plugin common configurations for configuration options available to all plugins.
bypass_missing
If true, allow requests whose
Refererheader is missing or malformed. Otherwise, reject those requests.whitelist
valid value:
one or more host names, optionally beginning with*for suffix matchingReferer hosts that are allowed to access the route or service. All other hosts are rejected.
Configure either
whitelistorblacklist, but not both.blacklist
valid value:
one or more host names, optionally beginning with*for suffix matchingReferer hosts that are rejected. All other hosts are allowed.
Configure either
whitelistorblacklist, but not both.message
valid value:
between 1 and 1024 charactersMessage returned in the JSON response when a request is rejected.