Page 1 of 1

identifying the URL the user comes from

Posted: Mon May 27, 2002 3:29 am
by lordzoster
Hallo
i'd like to identify the site where the user cliccked the link to my page, eg.:
in a page of http://www.exturl.com there is a link to http://www.myurl.com
the user click the link
he arrives to http://www.myurl.com
a script in the page recognize where he comes from

i prefere not to use:
-cookies
-send methods in the external link

is it possible?

TIA

Posted: Mon May 27, 2002 4:31 am
by volka
Excerpt from Server variables: $_SERVER
'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.

Posted: Mon May 27, 2002 9:43 am
by fatal
If they have an older version of PHP, $HTTP_REFFER will work the same.