Forum Moderators: coopster

Message Too Old, No Replies

header(Location: www.foo.com)

Faking Header to not say page but to say the domain

         

wfernley

1:43 pm on Jan 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have links on various pages of my site that go to external links. I would like the referrer that the other sites see to be my domain name and not the actual page that the user came from.

Is this possible?

Thanks in advance for your help!

Wes

whoisgregg

2:59 pm on Jan 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You would have to have all your outbound links pass through a redirect script. Then, the referrer that the browser sends to the new site will be the URL of the redirect script, not the original page.

Your links will end up looking like: http://www.example.com/outbound.php?link=http://www2.example.com/something/index.html

wfernley

3:16 pm on Jan 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And then the stats for the website I am sending them to would show http://www.example.com/outbound.php as the referrer right? And not, http://www.example.com/outbound.php?link=http://www2.example.com/something/index.html

whoisgregg

4:07 pm on Jan 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, it would be the whole URL, including query string. Of course, the receiving site already knows they landed on the page in the query string, so it shouldn't matter if they see that in their referrer logs.

wfernley

4:16 pm on Jan 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cool. Thanks :)