Connecting Tech Pros Worldwide Help | Site Map

Apache $http_refferer question

Sebastien
Guest
 
Posts: n/a
#1: Jul 17 '05
hi, all

i need your help, on about http_referrer in my script.

when a visitor comes from another server i whish intercept the url where
he come from;

i've made some test with a simple echo $_server[http_referrer] and this
output anything if the last link is on same server of my page but don't
from anyother server.

how can made an universal intercepter with the Http_referrer property


thank for your helps.

Sebastien

Pedro Graca
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Apache $http_refferer question


Sebastien wrote:[color=blue]
> i've made some test with a simple echo $_server[http_referrer] and this
> output anything if the last link is on same server of my page but don't
> from anyother server.[/color]

it's $_SERVER['HTTP_REFERER'] and the manual
http://www.php.net/manual/en/reserved.variables.php
has some info you should take into account :)


<quote>
'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.
</quote>

--
..sig
Closed Thread