checking the referer

From: Date: Tue, 05 Dec 2000 04:17:56 +0000
Subject: checking the referer
Groups: php.general 
Request: Send a blank email to php-general+get-28681@lists.php.net to get a copy of this message
Hi, Am I crazy? I think I am. As far as I know this is a logical or, but it fails every time. I keep looking at it thinking I know I am making a simple mistake but I have been screwinf with it forever. ? Thank you Ken if(($HTTP_REFERER != 'http://www.mydomain.com/devel/logon.html') || ($HTTP_REFERER != 'http://www.mydomain.com/devel/logon.php')) { sleep(5); echo("$HTTP_REFERER<BR>"); echo("<B>BAD REFERER</B>"); exit(); } -- I've got all the money I'll ever need if I die by 4 o'clock. -- Henny Youngman

« previous php.general (#28681) next »