Supress the Referer HTTP header?

Discussion of features in Mozilla Firefox
Post Reply
peterx14
Posts: 136
Joined: May 21st, 2003, 1:54 pm
Location: UK

Supress the Referer HTTP header?

Post by peterx14 »

Hi all!

Is there anyway I can stop the Referer from being sent with the request header?

Ideally this would appear as a Privacy option I guess, but any method would do me for the minute!
peterx14
Posts: 136
Joined: May 21st, 2003, 1:54 pm
Location: UK

Found it!

Post by peterx14 »

I found "network.http.sendRefererHeader" in about:config, it's an integer with a default value of 2... and not a boolean as I might've expected.

Anyhoo, quick google and this:
<pre> user_pref("network.http.sendRefererHeader", 0);</pre>
added to user.js does the trick.

The next question is what do the values "1" and "2" do?

And for the wish-list, I guess it would be nice to be able to allow/disallow referer by site!

And finally - why is it, when you search for information on something, you can't find it (I checked about:config before, honest) but as soon as you post a question somewhere, you <em>immediately</em> find the answer?!
User avatar
RAF
Moderator
Posts: 12609
Joined: November 5th, 2002, 2:19 pm
Location: .nl

Re: Found it!

Post by RAF »

peterx14 wrote:And finally - why is it, when you search for information on something, you can't find it (I checked about:config before, honest) but as soon as you post a question somewhere, you <em>immediately</em> find the answer?!

They call him Murphy..
tve
Moderator
Posts: 3275
Joined: November 6th, 2002, 12:07 pm
Location: Federal Republic of Germany

Re: Found it!

Post by tve »

peterx14 wrote:The next question is what do the values "1" and "2" do?

one value sends the referer also on image requests (iirc.... dont remember which of those values, though :P)
<i>Latest Firefox Trunk & Thunderbird 1.0</i>
clav
Posts: 1974
Joined: November 5th, 2002, 3:25 am
Location: Lancaster, UK
Contact:

Post by clav »

according to Preferential, 2 means send the whole of the header, and 1 means send part of the header. the domain name only perhaps, rather than the full url?
sag
Posts: 387
Joined: November 19th, 2002, 8:56 pm

Post by sag »

According to http://www.mozillazine.org/forums/viewt ... 1238#61238

// STOP REFERRER LOGGING - 02.05.03
// 0=don't send any, 1=send only on clicks, 2=send on image requests as well
user_pref("network.http.sendRefererHeader", 0);
User avatar
rhpt
Posts: 112
Joined: May 13th, 2003, 10:26 am
Location: Ca$hville

Post by rhpt »

user_pref("network.http.sendRefererHeader", 2); doesn't seem to work. Firebird deletes the entry from the prefs.js, and the only way to "reset" the setting is to add it back with a value of 0. Only then will the entry re-appear on the prefs.js file
Post Reply