-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to allow unauthenticated access from internal referrers
This commit adds the Referrer Allow list option, which can be used to whitelist traffic arriving from certain referrers (internal only) which is intended to allow plugins like Nelio AB Testing to be usable on sites which use this plugin to control access to the site. internal referrer urls can contain query strings, but the input config should omit the site url, as this is set inside the plugin, to prevent external referrers from being configured. The new functionality also only accepts as valid referrer headers where the configured allowed referrer string appears at the start of the referrer header, to prevent whitelisted items being passed as parameters of a referrer to circumvent the access controls. loading an allow listed referrer url directly in the browser while unauthenticated does not allow the user to bypass the access control as when the plugin performs redirection it does not, itself, send the HTTP_REFERER header.
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters