Forum Moderators: open
There are many threads on the unreliability of HTTP_REFERER. My question is, is there something better to use? It's typically fine for once they get into our site--we can easily see the complete path they navigated within our site. But for finding out what sites or search engines they took to get to our site, I'd say that about 50% of the time it comes over blank. I think much of that comes from redirects, etc. from the referring site.
So does anybody have any suggestions for alternatives to using HTTP_REFERER?
Since the referer tag is supposed to be THE mechanism by which the browser tells the server the URL of the page that referred it, there is not any direct alternative.
For the links to your site that you have control over, you can add a simple parameter to the URL. You could possibly do the same thing for links within your site. However, if someone copies any of these URLs for linking to your site, then you will have bad information. It still might be much better than using the referer tag.
Btw - does anyone know why "referer" with one "r" in the middle is used?