Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Referrer sending
Name: shahramsh Date: January 7, 2005 at 20:41:12 Pacific OS: P4 CPU/Ram: 3.2
Comment:
Hi I am running IIS 5.1 as my webserver, i have a page with some links in it,
but i don't want my site to be sent as the referrer to the target website when the links are clicked ,
is there anyway to do that since the referre is actually sent to next site by the browser of the person who clicks on the link?
Name: Khalid Date: January 8, 2005 at 03:59:01 Pacific
Reply:
You should send the request headers yourself, and not use the clientbrowser to send them to the new server. You need a server-sided scripting parser, like php or asp to do the trick.
With php you can use the header-function. i.e. ----start php code $header = "Location: "http://www.computing.net/\n"; $header = "Referer: http://www.hidden.com/\n"; header($header); ----end php code
More information about http-headers can be found here (section 14.36).
good luck.
0
Response Number 2
Name: shahramsh Date: January 10, 2005 at 20:34:27 Pacific
Reply:
thanx, i think that should work i found a way to make the link's page to be accessed only through https, so no referrer will be sent by the browser,
but as soon as get time i will try to implement the header code into my PHP pages.
Summary: Ouch, where's the newlines :P I think the above script will not send the email when no referrer defined, so you don't get mails when you typed www.domain.com/hjdbjhs.html instead of just not getting t...