Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop link from sending referrer to destination

I have a page where I don't want the outbound links to send a referrer so the destination site doesn't know where they came from.

I'm guessing this isn't possible but I just want to make sure there weren't any hidden javascript magic that could do it and that would work with some (if not most) browsers.

Maybe some clever HTTP status code redirecting kung-fu?

Something like this would be perfect

<a href="example.com" send_referrer="false">link</a> 
like image 321
nolanpro Avatar asked Feb 17 '11 18:02

nolanpro


People also ask

How do I turn off Referer headers?

Can be disabled via menu Tools > Preferences > Advanced > Network, and uncheck "Send referrer information".

Can you hide referrer link?

With hiding referrer, the owners of the destination domain will not see your traffic sources. Such a blank referrer increases the privacy of your site. Short.io provides the feature of replacing the original referrer URL with your short domain.

How do I disable referrer in Chrome?

Disabling Referer Headers in Chrome If you're on Windows, you can do this by editing the Browser's shortcut icon execution path, e.g. "C:\Users\Username\AppData\Local\Google\Chrome\Application\chrome.exe" --no-referrers .

Do all browsers send referrer?

All decent browsers with default settings will send it, but the enduser can configure it to not send it.


1 Answers

I was looking for just the same thing, and it seems like this will be a feature of HTML5.

The tag you are looking for is rel="noreferrer".

It is already implemented in Webkit (Chrome, etc.), as well as Firefox, but your mileage may vary.

As of 2020, it is supported in all major browsers, with the exception of Opera Mini and old versions of IE11.

like image 171
Drewmate Avatar answered Sep 21 '22 19:09

Drewmate