note 37474 deleted from function.define by nlopess

From: Date: Thu, 09 Sep 2004 09:29:46 +0000
Subject: note 37474 deleted from function.define by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76305@lists.php.net to get a copy of this message
Note Submitter: Noia at N0SPAMwanadoo dot nl ---- you can use the define feature as a handy security measure. On every file you concider an "entery point" put this at the begining of the file: define("SECURITY_KEY", true); Then in any file you want users to be unable to execute on their own, put this in the head: if (!defined("SECURITY_KEY") { Die(); } This should kill any attempt to open files without going through the right entery points.

« previous php.notes (#76305) next »