Totally Zenned
- Join Date:
- Nov 2006
- Posts:
- 505
- Plugin Contributions:
- 0
Post #1 by dharma
Concerning Item #7 in the ZC Install Security Docs:
Suggested content for .htaccess files in folders where there is an index.html file but not yet an .htaccess file would be something like the following (depends on your server configuration):
#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore /
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
#add the following to protect against people discovering what version your spiders.txt file is
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>
```1. do I use both codes above in one .htacess file?
2. My server will allow .htacess files to be used, but there are quite a lot of folders with blank index files in the ZC file set, do I place them in all folders that have php files?
3. I have yet to enable "Do Not Show Directory Indexes" from my hosts control panel, do I turn that one too? in addition to above?
Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41