Page 1 of 1

referring URL (where do they come from)

Posted: Thu Dec 23, 2004 10:05 am
by qxziw
How can I see my visitors referring URL (where do they come from)?? Is there some one that knows a php-page to do that??
I mean something like this site:
http://www.dotz.se/stats/index.asp
check
Where the Visitors came from (max 50)

Posted: Thu Dec 23, 2004 10:28 am
by kenrbnsn
You can try to use the $_SERVER['HTTP_REFERER'] super global, but remember what is mentioned on the PHP site:
'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.