note 57851 added to security
| From: | Thomas | Date: | Sun, 16 Oct 2005 20:24:40 +0000 |
| Subject: | note 57851 added to security | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97091@lists.php.net to get a copy of this message | ||
Since many users can not modify apache configurations or use htaccess files, the best way to avoid
unwanted access to include files would be a line at the beginning of the include-file:
<?php if (!defined('APPLICATION')) exit; ?>
And in all files that are allowed to be called externally:
<?php define('APPLICATION', true); ?>
Balu
----
Manual Page -- http://www.php.net/manual/en/security.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57851
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57851&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57851&report=yes
Search -- http://master.php.net/manage/user-notes.php