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
PHP Questions for Interview with Answers
Viewed 1641 times since Wed, Feb 24, 2010
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 1537 times since Mon, Apr 5, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 1140 times since Wed, Apr 21, 2010
Create Interactive JavaScript Charts With Highcharts
Viewed 1423 times since Fri, Dec 4, 2009
Meerkat - jQuery Plugin for Promotional Content
Viewed 1256 times since Tue, Dec 29, 2009
Axiis - Open Source Data Visualization Framework
Viewed 1475 times since Thu, Jan 7, 2010
jQuery Dropdown Check List
Viewed 1547 times since Thu, Jan 14, 2010
Featured Items Widget with jQuery
Viewed 1513 times since Sun, Dec 27, 2009