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
What is Search Engine Optimization?
Viewed 1273 times since Fri, Jun 25, 2010
30 High Quality Charts & Graphs for Web Developers
Viewed 2587 times since Wed, Mar 23, 2011
imgAreaSelect - jQuery Plugin To Select Areas On Images
Viewed 1271 times since Thu, Dec 31, 2009
Search Engine Optimization: Tags of Importance for SEO
Viewed 912 times since Tue, Oct 12, 2010
Pastie - Pastebin to Share Source Code with Syntax Highlighting
Viewed 949 times since Mon, Jan 11, 2010
File Upload in PHP - PHP File Upload Script
Viewed 2078 times since Thu, Nov 5, 2009
Web Application Security Tools & Scanner Applications
Viewed 1287 times since Mon, Mar 22, 2010
Admin Skins - Constellation Complete Admin Skin
Viewed 1189 times since Thu, Aug 12, 2010
Free JavaScript Date Picker - jsDatePick
Viewed 1234 times since Fri, Apr 9, 2010
Review of Mobile Web Application Frameworks
Viewed 1257 times since Mon, May 9, 2011
MENU