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.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 1420 times since Thu, Feb 4, 2010
Free Under Construction Coming Soon Template
Viewed 1878 times since Sat, Mar 12, 2011
Open Source Online Invoice System - siwapp
Viewed 1309 times since Thu, Jan 7, 2010
Plupload - Multiple Files Upload Script
Viewed 1297 times since Tue, Feb 9, 2010
Create Dynamic Tabs with jQuery
Viewed 962 times since Sat, Feb 6, 2010
Review of Mobile Web Application Frameworks
Viewed 1339 times since Mon, May 9, 2011
25 Graph & Chart Solutions For Web Developers
Viewed 33228 times since Mon, Feb 1, 2010
Use PHP Functions In JavaScript with PHP.JS Library
Viewed 912 times since Fri, Jan 8, 2010
10 Tips for Writing Better CSS Code
Viewed 1133 times since Fri, Nov 27, 2009
MENU