How secure is .inc files?
How how does one go around protecting .inc files from being viewed
by outsiders?
I do not store my *.inc files in the root folder, I always store them
in a different folder. What chmod can be used on include folders but
still alows the system to read/write files??
How can files be protected from download withour proper security?
Here are some quotes from the .inc files? thread.
Philipolson :: 21.06.2003
Using .php as an extension is okay but certainly not ideal because
most likely you don't want the code to parse at all when called by itself.
Ideally you'd use an extension that won't parse at all and better yet
these files will be outside the document root but in the real world people
put includes in the document root. An example for disallowing direct
access to .inc files through Apache via .htaccess or httpd.conf is:
code:
<Files "*.inc">
Order allow,deny
Deny from all
</Files>
Ereptur :: 21.06.2003
Q -> If I CHMOD them to 600, can my pages still access and include them?
A -> Actually, no. Your webserver always needs to have read access to your
files and hence, someone browsing your site still has read access to your files.
Contradicts
HalfaBee :: 21.06.2003
Even if they can be read from the web I would still cmmod the files to 600.
If you are on a shared server it stops other users looking at the files.
All your scripts can still access them.