Plugin for YOURLS.
This plugin lets you hide (all but the last) referrer (HTTP referer header) when redirecting. This can be useful for security and integrity reasons, for example to avoid sending sensitive querystrings to an external site. Note that on some browsers when using http, the last referrer will always be sent, which will be the YOURLS short url. Using HTTPS on all redirects ensures a hidden referrer on all browsers tested.
The plugin works either by adding a prefix to existing short urls, or on ALL redirects (default).
What will be hidden
|Firefox http||All but last|
|IE http||All but last|
(As of May 2015)
/user/plugins, create a new folder named hide-referrer.
- Drop these files in that directory.
- Customize the plugin by editing the two variables at the top of
- Go to the Plugins administration page ( eg
http://sho.rt/admin/plugins.php) and activate the plugin.
- Have fun!
The referrer header is controlled by the web browser, so methods used in here can stop working at any time.
Do whatever the hell you want with it.
If you find a problem, add an issue on GitHub, or better, submit a pull request.