I have two websites on two different servers. When I print the following on WEBSITE1 then it displays referrer name (if there is any referrer)
echo $_SERVER["HTTP_REFERER"]
But same code doesn't work on WEBSITE2. It's just a simple echo nothing else. I know if no referrer is coming then it won't print anything but I have created a test page with link like this:
<a href="http://website2">Click</a>
But it doesn't display any referrer. No bug no nothing. Both servers are running PHP5. Is there some setting in php.ini through which we can prevent display of HTTP_REFERER?
Thanks
I solved the issue by using document.referrer of Javascript. Don't know what's wrong with HTTP_REFERER though.