note 13155 deleted from function.include by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 19:32:04 +0000 |
| Subject: | note 13155 deleted from function.include by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25249@lists.php.net to get a copy of this message | ||
This is in regards to using any extensions besides ".php*".
Parsing files intended to be included just to hide the source can reveal directory information about
your server when errors occur, unless steps are taken to hide those as well.
A simpler approach, IF you are using Apache, is use the following directive in your http.conf or in
.htaccess files:
<filesmatch "\.(inc)$">
AllowOverride None
Order deny,allow
deny from all
</filesmatch>
This will deny access to ANYBODY trying to access through direct URL. This can also be used in a
virtual hosting environment on a per domain basis. Obviously you can add as many extension as
needed.