Page 1 of 1

visitor referral

Posted: Sat Sep 15, 2007 12:05 pm
by giliat
hello
is there a way to know the site visitor referral - if the visitor came by typing the site address or from google yahoo or anothere sites ???

:?:

i am looking for a php script

thanks

Posted: Sat Sep 15, 2007 12:24 pm
by John Cartwright
Using $_SERVER['HTTP_REFERER'] may optionally contain the referring url. However, this variable can be blocked or manipulated by the client.

In conclusion, it is impossible to know for sure where the user came from.