Firefox – How to Change Referer Header for All HTTP Requests

firefoxhttphttp-referrerprivacySecurity

When making a request for (for example) http://example.com/foo/bar.baz, Firefox sends a referer header indicating which page I clicked a link from, or is loading a picture, etc. Eg:

Referer: http://somewhere.else.com/page.html

I would like it to send

Referer: http://example.com/

instead, ie, to just send the root page of the site it's requesting from. How can I accomplish this?

Best Answer

The Firefox add-on RefControl can do this.

It has an option to always replace the Referer with the host only (stripping of the URL path). So if the real Referer is http://example.com/foo/bar.html, it becomes http://example.com/.

Related Question