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
5 (1)
Article Rating (1 Votes)
Rate this article
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
Free IP to Country, IP to City Database & API
Viewed 1565 times since Thu, Dec 31, 2009
30 High Quality Charts & Graphs for Web Developers
Viewed 3334 times since Wed, Mar 23, 2011
Before and After Picture - jQuery Plugin
Viewed 1570 times since Tue, Dec 29, 2009
Free 3D Flash Image Slider - Piecemaker
Viewed 2058 times since Sun, Apr 4, 2010
PHP Questions for Interview with Answers
Viewed 1640 times since Wed, Feb 24, 2010
jCart - Free PHP AJAX Shopping Cart
Viewed 1524 times since Sun, Jan 3, 2010
Open Source Trouble Ticket System - Jutda Helpdesk
Viewed 2195 times since Sat, Jan 9, 2010
Making A Basic PHP Template System
Viewed 1200 times since Tue, Dec 8, 2009
How to prevent access to a specific file on server using htaccess?
Viewed 1258 times since Sun, Mar 14, 2010
UI Patterns - User Interface Design Pattern Library
Viewed 1380 times since Thu, Dec 31, 2009