VPN deals Advertisement

Why Should you Change your Referer Header settings & How to do it

When you click on a hyperlink to visit a webpage, the URL of the webpage you came from is normally identified and recorded (in its ‘referer log’) by the new page. This information is automatically appended to the HTTP header field when requesting a new webpage, and is known as an HTTP Referer (originally a misspelling of referrer).

While generally a useful piece of information for visited websites, the information contained in a referrer can be abused to track website visitors across the internet, especially when combined with cookies and other tracking techniques. Search engines, in particular, are bad at giving away information in Referer Headings, as they often include the search terms used to find a web page.

Disabling Referer Headers in Firefox

In Firefox it is easy to prevent the browser sending referrer information when you click on a URL.

  1. Type ‘about:config’ in the URL bar, and hit enter (you may have to click though a, ‘I’ll be careful, I promise!’ warning)
  2. In the search bar type ‘network.http.sendRefererHeader’
  3. Double-click on the ‘network.http.sendRefererHeader’ preference when it comes up
  4. Enter an integer value of 0, 1, or 2 or in the dialog box, then hit OK and close the ‘about:config’ tab

Firefox referer heading

The integer value you enter into step 4 determines how Firefox handles Referer Headings:

Value 0 - completely disables the Referer Header. This is probably what you want, but it does break some websites (most notably WordPress)

Value 1 - Sends a Referer header when clicking on a link, but not when loading images on a page. This should prevent most cross-site tracking using cookies, whilst also allowing sites that rely on Referer Headers (such as WP) to function properly

Value 2 - This is the default setting, and sends the Referrer Header.

See here for the official Mozilla documentation on this setting.

Other options

Those wanting more fine grained control can try using the Change Referer Button, and Referrer Control Firefox add-ons. Both allow you to easily toggle the 'network.http.sendRefererHeader' setting on and off, and to create blacklists/whitelists for websites.

Google Chrome does not allow you to turn off Referer Header in its settings, but the Referer Control extension is available from the Chrome Store.

Remember also that Referer Headers are only passed on when you click through a link. Cutting and pasting a web address into a browser’s URL bar, or typing it out manually, will also prevent any Referer Headers being sent to the visited website.

for more information about the best VPN providers, take a look at our best VPN 2018 list.

Written by: Douglas Crawford

I am a freelance writer, technology enthusiast, and lover of life who enjoys spinning words and sharing knowledge for a living. You can now follow me on Twitter - @douglasjcrawf.

2 Comments

  1. Donald Edward
    on February 21, 2015
    Reply

    The referring site can be included as a parameter in the url as does bestvpn in their email links. Firefox won't remove this.

    1. Douglas Crawford replied to Donald Edward
      on February 23, 2015
      Reply

      Hi Donald, Granted, and good point, although this does mean deliberately adding the referring site as a parameter in the URL, rather than it happing automatically.

Write Your Own Comment

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

  Your comment has been sent to the queue. It will appear shortly.