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
Modify HTTP Headers in PHP with Examples
Viewed 905 times since Wed, Mar 10, 2010
Protovis - Visualization for JavaScript via Canvas
Viewed 832 times since Sun, Jan 3, 2010
How to password protect folder/files using htaccess file?
Viewed 794 times since Sun, Mar 14, 2010
Flash Webcam Image Capture
Viewed 1189 times since Thu, Nov 12, 2009
10 Most Popular JavaScript Frameworks
Viewed 819 times since Thu, Jul 8, 2010
PHP Sound Captcha
Viewed 6961 times since Sun, Apr 11, 2010
jQuery Slider from a Select Element
Viewed 2063 times since Thu, Jan 14, 2010
New Tags Introduced in HTML5
Viewed 1087 times since Sat, Apr 3, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 2004 times since Thu, Jan 28, 2010