Control HTTP referer to protect privacy and not break web.
Notice: Due to browser bug on javascript
document.referrer
on Firefox 69+ (1601496, 1601743) (also on Chrome), using a regular referer controlling addon you can get 70% of expected protection until they fix that bug. So, we've implemented a workaround to improve protection to 85%. Please enable workaround in addon settings (Firefox only currently).
Referer policy:
- For webs' top frame (i.e. clicking link, navigating, redirecting etc.):
- If origin and target url have same domain, allow trimmed referer
- If origin and target url have different domain, no referer
- For in-page resources (images, videos, js, css etc.), allow trimmed referer (this is the key to not break most webs, also a balance between privacy and experience)
- Trim referer: Any referer should be no more than
http(s)://domain-name:port/
(like Firefox's nativeabout:config
settingnetwork.http.referer.trimmingPolicy = 2
). - Not allow referer that not starts with "http" or "https". (Please feedback if you find something broken due to this)
- No referer when downgrade from HTTPS/WSS to HTTP/WS
document.referrer
bug workaroundThis addon doesn't use content script. Content script hiding
document.referrer
is not 100% reliable.We use this workaround to kill
document.referrer
: Cancel all cross-domain navigating requests and make freshnew ones, like directly hit (currently only implemented for GET method, other methods remain as is)
Fallback operation
If user find a web broken, user can temporary set this addon disabled via toolbar button for:
- this one tab
- this one tab and new tabs opened by this tab
- this one window (Firefox only)
- globally
there's showy toolbar button badge indicating disabling status.
Allowlist
Currently it has hard-coded allowlist.
Disclaimer
This open souce addon comes with no warranty. Use on you own risk! Install
- License: GNU General Public License v2.0 or later
- Weekly downloads: 7
- Average daily users: 20
- Rating: 4/5 of 4 ratings
- Created: 2020-03-26 10:01:50
- Last updated: 2022-12-01 05:55:16
- Homepage: https://garywill.github.io
- Support site and email
- Orig: https://addons.mozilla.org/en-US/firefox/addon/auto-referer/
- API: {f6a3df9c-c297-46a1-bb84-d9cb00b314f0}