Re: $HTTP_REFERER

From: Date: Fri, 17 Aug 2001 16:24:39 +0000
Subject: Re: $HTTP_REFERER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63206@lists.php.net to get a copy of this message
Probably best to read stuff first ;) try preg_match preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname); the hostname will be in $hostname[2] Hope it helps. On Fri, 17 Aug 2001, Nick Davies wrote: > > Sorry missed a bit you'll just need to ereg out the hostname from > HTTP_REFERER - take everything after http:// and before /... > > Nick. > > On Fri, 17 Aug 2001, Erich Zigler wrote: > > > I am working on the last half of an Online Signup page for an ISP. > > > > There is a local .php page on the webserver that actually finalizes the > > addition of the user, but ONLY if $HTTP_REFERER is from a certain host. > > > > I was wondering what you guys think of doing it this way? > > > > Any advice would be appreciated. Thank you. > > > > > > >

« previous php.general (#63206) next »