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
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 924 times since Mon, Apr 5, 2010
Create Glowing, Radioactive Buttons with CSS
Viewed 657 times since Sun, Dec 27, 2009
Featured Items Widget with jQuery
Viewed 924 times since Sun, Dec 27, 2009
IE6 CSS Fixer - Web-Based IE6 CSS Fix Tool
Viewed 727 times since Thu, Dec 31, 2009
25 Graph & Chart Solutions For Web Developers
Viewed 27250 times since Mon, Feb 1, 2010
Open Source Web Analytics Framework
Viewed 560 times since Sat, Jan 30, 2010
Create Navigation Menu Easily with jQuery Menu
Viewed 744 times since Thu, Dec 31, 2009
Open Source Online Invoice System - siwapp
Viewed 925 times since Thu, Jan 7, 2010
MENU