note 59448 deleted from reserved.variables by mazzanet

From: Date: Sun, 25 Dec 2005 23:35:12 +0000
Subject: note 59448 deleted from reserved.variables by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100702@lists.php.net to get a copy of this message
Note Submitter: denny at wardhana dot net ---- HTTP_REFERER Replacement I've been using this code to replace HTTP_REFERER in order to avoid a direct link to the file Add this code at the beginning of php file (right after "<?php"): $mydomain = "www.mydomain.com"; if(!file_exists("myfolder/check.php")) { print "<script>alert('Not allowed');window.location='$mydomain';</script>"; } "check.php" is an empty file stored in "myfolder" directory

« previous php.notes (#100702) next »