1

Possible Duplicate:
how reliable is HTTP_REFERER

I am using HTTP_REFERER in my code, but in Google Chrome, $_SERVER['HTTP_REFERER'] contains no value. In Firefox, it's working.

Community
  • 1
  • 1
user867453
  • 21
  • 1
  • 6
  • Http_referer isn't consistant. Php manuel also says it. 1 way could be, catch the current url on client side, send it as parameter to next page on the server side. – itachi Jul 12 '12 at 03:37
  • how are you testing? I didn't notice any difference between chrome and firefox. referrer registers if user click on a link that lead to your page on which you fetch http_referer . if browser sends it of course. you might have a plugin or setting that suppress that . – Dreaded semicolon Jul 12 '12 at 03:45
  • Check your extensions as it's probably a setting in there. BUT, as pointed out by itachi, don't rely on it for anything public. Several "Web Security software" products will block or mask referrer by default and other extensions/plugins will do the same. So if a public facing website, then you don;t know what you're going to get. – Robbie Jul 12 '12 at 03:59
  • I **post** the data after the i am testing it by `print_r($_SERVER)` i am getting the value of 'HTTP_REFERER' in FF but not in google crome – user867453 Jul 12 '12 at 05:02

0 Answers0