Plugin for YOURLS.
This plugin is no longer maintained, instead check out RScrub
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
Browser | Hides referrer |
---|---|
Chrome | All |
Firefox http | All but last |
Firefox https | All |
IE http | All but last |
IE https | All |
(As of May 2015)
- In
/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
plugin.php
as needed. - 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.