Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


I would like it to send


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

share|improve this question
up vote 1 down vote accepted

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, it becomes

share|improve this answer
This is almost exactly what I was looking for; thanks! – David X Apr 25 '13 at 12:07

network.http.sendRefererHeader is Firefox option to control Referer header.

There are also some extensions like refspoof or "No Referrer".

share|improve this answer
(Probably should have mentioned this in the question, but) I already know about sendRefererHeader, it keeps Firefox from sending any referer at all, whereas I want to send a fake one. Will look into those extensions though. – David X Sep 28 '10 at 7:27
If this is one-off you can use modify headers extension to set your own headers. Then your Referrer header will be always the same. But my understanding of question is that you want to change your referrer header dynamically per request. As far as I know there is no easy way to do this. – Casual Coder Sep 28 '10 at 7:53
coder, yeah, thats about right, I guess I'll have to write my own extention for it when I have some free time. – David X Sep 28 '10 at 23:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.