Computing.Net > Forums > Web Development > Referrer sending

Referrer sending

Reply to Message Icon

Original Message
Name: shahramsh
Date: January 7, 2005 at 20:41:12 Pacific
Subject: Referrer sending
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?

i will appriciate ur help



Report Offensive Message For Removal


Response Number 1
Name: Khalid
Date: January 8, 2005 at 03:59:01 Pacific
Subject: Referrer sending
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: shahramsh
Date: January 10, 2005 at 20:34:27 Pacific
Subject: Referrer sending
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Referrer sending

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge