Possible Duplicate:
PHP – Referer redirect script
I am look to make script which alters browser http_referer for example
i have link
http://www.mysite.com/page.php?changeRefererTo=mysite2.com&redirectTo=www.newwebsite.com
ChangeRefererTo is holding value which will change the browser http_referer code. after changing the http_referer it will direct to $redirectTo.
is it possible with PHP?
You cannot change a browser’s notion of the referrer from the server. You can alter
$_['http_referer']in PHP but that only affects what PHP sees, not what the browser sees. If you were able to modify a browser’s referrer, it would be a security problem since sites could force a browser to use any referrer they wanted.However, your PHP script can fetch a page using any referrer you want, and then display the result to the user. See PHP – Referer redirect script for a worked example of this.