I need to know if a person that comes to my website went from an another specific website. Example:
Results Message on my page:
Welcome! You already know how it works, register now!
Welcome! Please watch our video first at www.youtube.com/myvideo
My question is:
$_SERVER['HTTP_REFERER']
with PHP, but it's not working correctly and I read that does not work on all browsers. The HTTP referer header is the only way. This is the data that is given to you in PHP via $_SERVER['HTTP_REFERER']
.
Note that this header will work in most cases. Also note that it can be easily spoofed.