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.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Free Android GUI PSD File
Viewed 1567 times since Fri, Dec 4, 2009
Create Navigation Menu Easily with jQuery Menu
Viewed 1354 times since Thu, Dec 31, 2009
Advanced Backup System - PHP Backup Script
Viewed 1380 times since Wed, Jul 28, 2010
Create Dynamic Tabs with jQuery
Viewed 1189 times since Sat, Feb 6, 2010
PHP Interview Questions with Answers - Part 1
Viewed 1444 times since Mon, Jan 11, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 3110 times since Thu, Jan 28, 2010
Web Application Security Tools & Scanner Applications
Viewed 1586 times since Mon, Mar 22, 2010
OpenCart - Open Source Shopping Cart
Viewed 1730 times since Fri, Jan 1, 2010
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 1577 times since Mon, Apr 5, 2010
Axiis - Open Source Data Visualization Framework
Viewed 1519 times since Thu, Jan 7, 2010