RE: [PHP] Re: $HTTP_REFERER < 10

From: Date: Thu, 12 Jul 2001 17:12:33 +0000
Subject: RE: [PHP] Re: $HTTP_REFERER < 10
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57611@lists.php.net to get a copy of this message
a partial suggestion would be to try an fopen() on the HTTP_REFERER if it was a static document like .html or .txt but if someone is being redirected from a CGI script or dyanmic page of any sort, it'll be virtually impossible to find out exactly where they came from.... and if that page is valid or not. or you could try to determine the host name of HTTP_REFERER, then perform an nslookup of that hostname to determine if it exists and is valid. but both of those will probably give your script a rather nasty performance hit while still not being 100% reliable. you can find out if the referrer *looks* OK, but there's virtually no way you can find out 100% if the referrer is actually where the user came from, and if it's an actual page somewhere out there on the internet... > -----Original Message----- > From: Inércia Sensorial [mailto:inerte@hotmail.com] > Sent: Thursday, July 12, 2001 10:01 AM > To: php-general@lists.php.net > Subject: [PHP] Re: $HTTP_REFERER < 10 > > > That's also something worth to be done, but first I need to know some > possible variations of $HTTP_REFERER... > > I never saw one, when coming from another domain, without the > 'http://'´part, so that's a regex to check, but > I may be wrong... > > -- > > Julio Nobrega. > > One and One and One is Three > "Elias" <elias_bachaalany@yahoo.com> wrote in message > news:20010712135156.65688.qmail@pb1.pair.com... > > Maybe what you say about smallest refeerer length is true... > > but why don't you check via regexps the validity of the REFEERER format > only > > if it was set? > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#57611) next »