How to protect specific folder or disable directory browsing using htaccess?
Use the following htaccess code to protect a specific folder on your website or disabling directory browsing. This is useful if your folder doesn’t have a default index page and all files within that directory can be easily seen and downloaded by visitors. It is particularly useful if you are selling digital downloads such as zip files in a directory. To avoid that use the following code in the .htaccess file.
# disable directory browsing
Options All -Indexes
|Posted by: Ajay Chadha - Sun, Mar 14, 2010. This article has been viewed 7263 times.|
|Online URL: http://www.articlediary.com/article/how-to-protect-specific-folder-or-disable-directory-browsing-using-htaccess-390.html|
Powered by PHPKB (Knowledge Base Software)