Page 1 of 1

Removing $_SERVER["HTTP_REFERRER"]

Posted: Thu Nov 23, 2006 9:28 am
by nutkenz
Here's my problem; I have a website which redirects visitors from one place to somewhere else and gathers some data while doing that. One problem is that, probably because I'm using a header redirect, the HTTP_REFERER does not change. I want the site where I'm sending to either see my site as referrer or not see a site as referrer at all. Is this possible? Because as far as I know the information is stored and sent by the browser and cannot be manipulated in PHP. I've seen some pretty clever things in the past though, like a PHP browser detection class, so I thought I'd ask anyway. If someone knows a JavaScript way to get this done, that's almost as good :)

Posted: Thu Nov 23, 2006 9:32 am
by feyd
Use a page level redirection.

Posted: Thu Nov 23, 2006 9:35 am
by nutkenz
The problem is that the visitor should not see that he's being redirected, and neither should for example the google bot. As far as I know, that can only be accomplished with the header() redirect.

Posted: Thu Nov 23, 2006 9:54 am
by feyd
Unless you build your script as a proxy, you have to choose one or the other.

Posted: Thu Nov 23, 2006 1:20 pm
by nutkenz
k, thanks for the info