I want to modify http_referer before redirecting visitor to another site. <? header("Referer: http://www.msn.com"); header("Location: http://www.tracemyip.org"); ?> PHP: This is not working, help please.
Referer is a HTTP request header by user agent (browser). Where as Location is HTTP response header by server. I think both will not work together, at least not from server side. User Agent <-- response -- Server (http://www.yourwebsite.com) Referer: http://www.msn.com //ignored? Location: http://www.tracemyip.org //follow this URL User Agent -- request --> Server (http://www.tracemyip.org) Referer: http://www.yourwebsite.com //I'm from this URL Code (markup): There are some attempts to modify Referer header on client side with Javascript. Not sure it will work though. Or may be <a href="http://www.tracemyip.org" rel="noreferrer"> would help?
What do you want to do exactly? If you provide a detailed description of your issue, you will surely get some help.