I'm having a bit of a problem setting the referring url in a page's header information. The reason for attempting this is because I have a page with links to external sites in it. The websites themselves aren't displayed but instead a "tracker" url on my domain that tracks any outbound clicks is displayed.
Now, I assumed that the "tracker" url would be the one to show up as the websites referring url, but it is not, it is the referer to the tracker url, or if it is a direct hit, just no referrering url at all.
I've tried setting headers for Referer on the tracker url page before sending the user to the website
header("Referer: http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
header("Location: http://".$site);
but thats just not working for me. Could anyone explain why this is happening and point me in the direction of an alternative solution?
Thanks in advance