2

I'm trying to capture the HTTP_REFERER using PHP when clicking in from Google. If I print it out on the page after coming through, it says the referrer is the same site as I'm on.

I would assume it's being redirected, but if I type document.referrer in the console, it correctly shows Google.co.uk. What is going on here?

andy
  • 2,369
  • 2
  • 31
  • 50

1 Answers1

1

Okay, so this is really annoying. I found out what was causing it: My browser had a plugin that modified referrer information. Apparently it didn't do so in Javascript so both ended up different.

andy
  • 2,369
  • 2
  • 31
  • 50
  • And there you have just another reason why the referrer can not be relied on _at all_. – CBroe Sep 30 '13 at 08:41
  • And again: I'm perfectly aware it cannot be relied on. But it's the job at hand so I can't really palm it off as it 'worked' fine before. – andy Sep 30 '13 at 08:58