Re: http_referer

From: Date: Wed, 21 Jun 2000 05:37:44 +0000
Subject: Re: http_referer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-2437@lists.php.net to get a copy of this message
The previous suggestion was to check $HTTP_REFERER not $http_referer Case does matter. (Although I'm not certain that variable exists...) Try sticking <? phpinfo() ?> into your page and seeing what vars are available when it gets returned to you. This will dump a very pretty and useful series of tabled info about your system's setup. HTH, Erik ----- Original Message ----- From: "Jean-Louis LeTortorec" <jlouis@geocities.com> To: "David Robley" <huntsman@www.nisu.flinders.edu.au>; <php-general@lists.php.net> Sent: Tuesday, June 20, 2000 10:20 PM Subject: Re: [PHP-GENERAL] http_referer > I've tried $http_referer, but does not work. > It seems that with Javascript, document.referer would be the right variable. > But I want to check 'referer' prior to any process, something like: > if ($referer=="http://mysite/abc.php3") > ok > else > start process intrusion > > > A variable such server_remote would be very helpful. > > Thanks to all. > > JL > > > On Tue, 20 Jun 2000, you wrote: > > On 20 Jun, Jean-Louis LeTortorec wrote: > > > > > > I'm trying to get the equivalent of http_referer I used with cgi scripts. > > > > > > Or any other function I could use to know the page the visitor was visiting > > > before entering my sites. > > > > > > Thanks > > > > > > JL > > > ------------------------------------------------------- > > > > Check the variable $HTTP_REFERER > > > > Cheers > > -- > > David Robley | WEBMASTER & Mail List Admin > > RESEARCH CENTRE FOR INJURY STUDIES | > > http://www.nisu.flinders.edu.au/ > > AusEinet | > > http://auseinet.flinders.edu.au/ > > Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#2437) next »