Article Diary - General Knowledge Digest

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
Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Ajaxed MySQL Table Editor
Viewed 1580 times since Tue, Oct 13, 2009
PHP Sound Captcha
Viewed 11127 times since Sun, Apr 11, 2010
Use PHP Functions In JavaScript with PHP.JS Library
Viewed 1109 times since Fri, Jan 8, 2010
Embeddable Google Document Viewer For Websites
Viewed 1244 times since Fri, Mar 11, 2011
Review of Mobile Web Application Frameworks
Viewed 1740 times since Mon, May 9, 2011
AeroSQL - Web Based MySQL Management
Viewed 1432 times since Wed, Feb 24, 2010
Geo-location Mapping With Google Maps API & PHP
Viewed 1737 times since Mon, Apr 4, 2011