note 43698 deleted from security by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 30 Jun 2004 19:32:48 +0000 |
| Subject: | note 43698 deleted from security by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72188@lists.php.net to get a copy of this message | ||
Note Submitter: whiteside@acm.org
----
I use a modified version of that Apache rule.
<Files ~ "^.*\.inc(\..*|$)">
Order allow,deny
Deny from all
Satisfy All
</Files>
This works on file.inc as well as file.inc.php. It's useful because some open source projects
use that style of include naming and preserving the php extention is useful - aside from file
associations it's also used by some CVS setups to identify it as a text type file if you have
to deal with platforms that have differing EOL schemes like MacOS and Windows.