A basic element of the World Wide Web are the hy­per­links which connect one website to another. When an Internet user clicks on one of these links, his browser sends an HTTP request to the web server that issues the landing page. In the header there is usually a so-called referrer in addition to the servers’ host name and the desired resource. This is an optional component that contains the ref­er­en­cing web page’s URL, therefore providing the server with in­form­a­tion about the visitors’ origin.

Note

The term “referrer” is derived from the word refer. Unlike the verb, the noun is written with two of the letter “r”. The incorrect spelling “referer”, which is common in the http area, refers to a spelling error in the original Request for commands (RFC 1945). When observing other standards, such as the Document Object Model (DOM), the correct spelling is used (see document.referrer).

The referrer function can be il­lus­trated by an example:

The above note box contains a further link to the RFC 1945. IF you follow this link, your web browser sends a GET request to the Internet En­gin­eer­ing Task Force (IETF) web server within a few mil­li­seconds. Clicking on the hyperlink causes your web browser to contact the host with the name tools.ietf.org and request the file /rfc/rfc1945.txt. The reference page (referrer) is the URL of this article. The HTTP header, which is used for this purpose includes (among other things) the following fields:

GET /rfc/rfc2068.txt HTTP/1.1
Host: www.ietf.org
Referrer: https://www.ionos.co.uk/digitalguide/hosting/technical-matters/dereferrer-anonymizing-links-made-easy/

The website server operator is informed which web pages link to the online offer they have provided, and can then process this in­form­a­tion during their analysis and sub­sequently display user-specific content.

Other HTTP header fields usually contain in­form­a­tion about the user agent you are using, as well as supported formats, languages, character sets, or encoding methods. The amount of in­form­a­tion submitted depends on which web browser you are using and how it is con­figured.

Referrer data in web analysis

As a rule, web servers store all the in­form­a­tion they receive in terms of client requests in a log file. Each request is recorded as a separate line in the log. Website operators use this data as a basis for analysis, giving them useful in­form­a­tion about the visitors to their website. In addition, the analytics software used is based on scripts and collected referrer in­form­a­tion, as well as other metrics. The in­form­a­tion provided in the referrer allows stat­ist­ic­al eval­u­ations to reveal where the visitor flows enter the website. Thanks to this in­form­a­tion, marketing measures such as ad­vert­ising banners, affiliate links, paid entries in branch dir­ect­or­ies, or guest articles on third-party websites can reliably be evaluated and their ef­fect­ive­ness can be checked. Referrer analyses also provide important insights to the scope of your search engine op­tim­isa­tion.

Note

No referrer in­form­a­tion is trans­mit­ted for direct entry. This is the case, for example, when a user manually enters the desired URL into the web browser’s search bar, or the web page is accessed via a bookmark.

Web analytic tools allow you to auto­mat­ic­ally read the referrer field and prepare the collected data as a clear report. When you search using a search engine, you can enter the keywords that will lead you to the site.

Tip

According to W3-Techs 83% of all website operators who auto­mat­ic­ally evaluate traffic rely on Google Analytics. We have compiled good al­tern­at­ives to the market leader in a com­par­is­on article on the topic.

However, not all Internet users like the idea of the target link operator (the website referred to by the hyperlink) being able to trace their origins. In principle, the referrer provides in­form­a­tion about the website visitors’ behavior. Some Internet users fear that referrer data will be used to create motion logs, and are opting to disable the referrer field on HTTP requests.

Website operators also have a number of methods to prevent the referrer from being submitted auto­mat­ic­ally. In the past, dere­fer­rer services were used. Today, the new HTML standard (version 5) provides a native nore­fer­rer attribute.

The use of dere­fer­rer tech­no­logy is usually motivated by security concerns. In the past, hackers were able to use referrer in­form­a­tion to retrieve personal data from un­pub­lished web-based areas. Dere­fer­rer and com­par­able tech­no­lo­gies are therefore sometimes used to hide URLs and possible GET para­met­ers, or a session ID in the querys­tring before the website operator. Another reason to disable the referrer is spam pre­ven­tion.

Referrer spam

The HTTP referrer has been suc­cess­fully used (or misused) in the past for SEO methods (Black-Hat-SEO) in the context of spamming. The goal was to falsify referrer stat­ist­ics and increase the relevance of their own website for search engines. To this end, web pages were scanned by scripts in order to leave traces of their own URL in other websites’ log files. Web blogs that publish their referrer stat­ist­ics also offer a platform to spam links that are ac­cess­ible to both users and search engines. Many a porn site has managed to establish itself as a sup­posedly sig­ni­fic­ant source of traffic.

What is a dere­fer­rer?

A dere­fer­rer (also known as a link an­onym­izer) is a web page placed between the link source and the link target with the purpose of for­ward­ing users to the new page. The goal is to obscure the ref­er­en­cing website’s URL and therefore prevent the pos­sib­il­ity of a trace.

Dere­fer­rer services

There are numerous Internet providers that have dere­fer­rer functions. As a rule, these functions are found on a specially designed website for that function. This ma­nip­u­lates the client’s HTTP request using the meta-tag refresh and server side scripts.

You can create anonymous links directly from the website with all listed dere­fer­rers. Proceed with the following steps:

  1. Enter the URL: Enter the desired des­tin­a­tion address in the online form provided for this purpose.
  2. Generate the dere­fer­rer link: Generate the anonymous link by con­firm­ing your entry by clicking “Generate”.

Then, copy the dere­fer­rer link and insert it in the desired location on your site.

As well as being able to generate links via a web ap­plic­a­tion, all listed vendors provide scripts which, once in­teg­rated into the source code of the website, redirect all outgoing links using the cor­res­pond­ing dere­fer­rer.

Dere­fer­rer: an overview of ad­vant­ages and dis­ad­vant­ages

If you anonymise outbound links using a dere­fer­rer, you hide the ref­er­en­cing website’s URL to the link des­tin­a­tion’s operator. However, the provider of the dere­fer­rer service will have full access to all trans­mit­ted data. This creates a sig­ni­fic­ant security gap, similar to a proxy server. Skeptics even go so far as to assert that data espionage could be a key mo­tiv­a­tion behind free an­onymisa­tion services on the web. Secret services, in par­tic­u­lar, are likely to be in­ter­ested in learning what the people who use these services are trying to keep secret. However, even if you have opted for a seemingly le­git­im­ate dere­fer­rer service, there is always a chance that it may be hacked over time. If that happens, the in­form­a­tion you are trying to keep secret would be leaked to third parties. Website vendors therefore usually rely on self-powered dere­fer­rers to protect sensitive in­form­a­tion – like IDs or GET para­met­ers – from third-party access. Webmail providers, for example, usually replace links in e-mails by re­dir­ect­ing through an internal dere­fer­rer service. This prevents so-called “session hijacking”. If not, malicious website operators could use referrer-provided session IDs to take over an un­sus­pect­ing visitor’s webmail. Note: Referrer in­form­a­tion is sometimes used to make certain site features available to visitors. For example, certain content elements of a website can be directed at a country-specific URL. If you use an anonymous link to refer to your website pages, your visitors may not be able to see what you wanted to show.

Ad­vant­ages Dis­ad­vant­ages
Referrer-URL remains secret (pro­tec­tion against session hijacking) The dere­fer­rer supplier has access to all the data traffic
Websites that use referrer in­form­a­tion for their website may find that they do not work as desired

Al­tern­at­ives to Dere­fer­rer Services

Do you want to anonymise links, but do not want the dis­ad­vant­ages and risks as­so­ci­ated with dere­fer­rer services? No problem. We will show you how to de­ac­tiv­ate the referrer function of your web browser without including add-ons or hy­per­links as anonymous ref­er­ences, using the HTML5 attribute rel="nore­fer­rer".

Disabling referrer in the browser

Dere­fer­rers are primarily aimed at website operators who want to prevent outgoing hy­per­links from being tracked to their own websites. Internet users who want to protect their privacy can implement dere­fer­rer services using a browser add-on. In this instance, the web browser redirects any link that is clicked to a dere­fer­rer site.

Whatever provider is used in this case can usually be adapted. There are ex­ten­sions available for Mozilla Firefox and Google Chrome. However, they are not necessary, as both web browsers offer the option to per­man­ently disable the referrer function.

Mozilla Firefox

De­ac­tiv­at­ing the referrer function is only possible with Mozilla Firefox in the hidden browser settings. To adjust it, follow these steps:

  1. Open hidden settings: Open Firefox and type about:config in the address bar.

You will receive a warning that changes to advanced browsers can affect the security, stability, and per­form­ance of your web browser.

Click on “I am aware of the danger!”

  1. Search for para­met­ers: Use the search bar to navigate to the network parameter network.http.sendRefer­er­Head­er. This is what is re­spons­ible for providing referrer in­form­a­tion.

  1. Customise para­met­ers: Double click on the network.http.sendRefer­er­Head­er entry. Set the value of the parameter from 2 to 0 and confirm your entry with “OK.”

Firefox will now send http requests without a referrer.

An overview of possible para­met­ers for network.http.sendRefer­er­Head­er:

Para­met­ers for network.http.sendRefer­er­Head­er
Value Meaning
0 Never send referrer URL
1 Only send referrer URL when links have been selected
2 Referrer URL for clicked, linked, and all sent resources (e.g. images, scripts, CSS, etc.)
Note

Most web browsers do not only transmit referrer in­form­a­tion when they call a web page. The referrer is usually also trans­mit­ted when external resources such as images, scripts, or CSS are queried on the website.

Firefox also provides the ability to disable the referrer’s delivery just for third-party sites.

In this case, leave the value of the network.http.sendRefer­er­Head­er parameter set to 2 and adjust the network.http.referer.XOri­gin­Policy parameter instead. The following options are available:

Parameter network.http.referer.XOri­gin­Policy
Value Meaning
0 Always send referrer URL (standard).
1 Send referrer URL only if the par­ti­cip­at­ing server’s domain name matches. Example: the referrer is sent with a link from mail.example.com to www.example.com
2 Send the referrer only if the par­ti­cip­at­ing server’s host name matches Example: the referrer is not sent with a link from mail.example.com to www.example.com

Google Chrome

Google’s web browser does not provide a con­fig­ur­a­tion interface that allows you to set referrer functions, but Chrome will give you a command to disable the referrer function during the program startup. Proceed as follows:

  1. Create shortcut: First, create a shortcut to your Chrome in­stall­a­tion. Enter the program name into the search field in the Start menu and right-click on the Chrome icon.

On the Shortcut menu, click “Send To” and choose Desktop.

  1. Customise prop­er­ties: Right-click the newly created shortcut and select the “Prop­er­ties” menu item from the context menu.

Under the “shortcut tab”, the path to the file is displayed in the “Des­tin­a­tion” field. Add the suffix --no-referrers. If you use the default in­stall­a­tion path, it should look like this:

"C:\Program Files (x86)\Google\Chrome\Ap­plic­a­tion\chrome.exe" --no-referrers

Save the settings by clicking on “Apply”.

Open Chrome by double-clicking the desktop shortcut. HTTP requests will now be sent without a referrer function.

Note

If the web browser’s referrer function is com­pletely de­ac­tiv­ated, certain functions of the websites you visit are no longer available.

The Apple Safari and Microsoft Edge web browsers currently do not provide users with the ability to manually configure the referrer function.

HTML5: nore­fer­rer in the rel attribute

With the in­tro­duc­tion of the new HTML standard on October 28, 2014, website operators have many more options to define hy­per­links using “link relations.” These include, among others, the keyword no referrer (according to the HTML5 spe­cific­a­tion the correct spelling it with two “r”), which can be used in com­bin­a­tion with the rel attribute and in area elements.

<a rel="noreferrer" href="www.example.com">Anonymous example.com</a>

If a webpage in an outbound link uses the rel attribute with the keyword nore­fer­rer, all web browsers that support this feature are directed to place the http request to the link des­tin­a­tion without spe­cify­ing the referrer. The nore­fer­rer keyword in the rel attribute is now supported by the current versions of all popular web browsers.

Ad­di­tion­ally, website operators can turn off the referrer for all outgoing links with a single line of code in the HTML header:

<meta name="referrer" content="no-referrer">

Note: Soon, this function will not be supported by all web browsers, due to a change in the spe­cific­a­tions.

Go to Main Menu