Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing The Referer Header

Status
Not open for further replies.

Krus1972

Programmer
Mar 18, 2004
145
US
Hello,

Within my website, I have a link that opens another page. This other page is a simple redirect page. It redirects the user to yet another page and this other page can be different depending on the user's personal preferences that are set in the very first page.

The problem is by the time the user is on the final landing page, the referer header is the same domain as the very first page. The very first page's referrer contains personal preferences that I do not want carried over after the redirect page.

Is there any way to change the referer header before the user lands on the final landing page?

Thanks.

 
why not append the first referrer to a (url encoded) query string variable so that it can be parsed server-side? That's the normal method, imo.

I do not think that javascript can change the document.referrer property without a browser extension. It is a property of the document object and there are no methods (that i know of) that allow it to be altered.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top