Zen Follower
- Join Date:
- Mar 2009
- Posts:
- 227
- Plugin Contributions:
- 0
Security recommendation .htaccess
The Site Security Recommendations recommend that you add the following to an .htaccess file and place in your folders:
#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
Now, I've seen references throughout the forums here (after someone got hacked) to use the following to prevent directory browsing and access to files:
OPTIONS -Indexes -ExecCGI
My question, do both of these do the same thing? Is one more efficient than the other? Should they both exist in the .htaccess?