Home

smallhax

In the world of Google Analytics referrers are important as they tell where did the visit came from. Normally you don’t really want to hide it, but many sites do that because of how outgoing links affect your position on Google index. The typical way to achieve this is through a redirect script that is placed on the server. Then you redirect by calling the script like this*:

http://yoursite.com/referer.php?url=example.com

Such script would generate html that would look more or less like this:

The thing is most browsers will lose referrer when refresh is used. If one redirected using a http header, the referrer would be retained. Here is an example of such redirect in php:

I guess this is enough introduction, so let’s get to the core of the problem.


Let’s say you write a userscript and for whatever reason you don’t want the referrer to be passed when you…

Voir l’article original 176 mots de plus

Laisser un commentaire