Page 1 of 1

Can PHP know where visitor link from ?

Posted: Tue Feb 24, 2009 7:34 am
by naruponk
Hi,

Can PHP know where visitor link from ?
I would like to know how can can visitor came to my site

thanks in advance :D

Re: Can PHP know where visitor link from ?

Posted: Tue Feb 24, 2009 8:03 am
by VladSun
$_SERVER['HTTP_REFERER'] :
'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.