Why $_SERVER['HTTP_REFERER'] doesnt work in Chrome? My site doesnt show the referer in chrome, but it works on firefox <? echo $hi; ?> What should i do?
Actually browser itself sends Referrer request header which you can access via $_SERVER['HTTP_REFERER']. So firefox sends this header and chrome does not. Turning off referrer can be used in some "secure" modes when browser does not provide some user details. So look in your privacy settings in chrome.
Don't ever rely on this for any browser. It can easily be turned off, and can easily be forged. There is no accurate way to track where a visitor came from.