How do you change the URl referrer?
It's long explanation as to why ... so here is the short version of the "what" needs to be acheived:
I have traffic coming in from various sources that are constantly changing. I run them all through one page:
which spits the visitors out to a varied selection of pages based on certain parameters using:
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: $locationtosend" );
once the right page for them has been found. What I need is for /js/out.php to also change the referring URl to being itself. That doesn't seem to be achievable using a PHP 301 redirect?
I need the $_SERVER['HTTP_REFERER'] to be /js/out.php for every landing page. Right now, it is the original referring site.
Look into using .htaccess or web.config, depending on your server, in conjunction with your PHP script
Someone has suggested:
The other thing to remember is that it is easy for anyone to change the referrer header if you give them a reason to do so. The developer tools in most browsers allow access to change it and many firewalls simply blank it out for privacy reasons.
|All times are GMT +1. The time now is 08:17 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.