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
Featured Items Widget with jQuery
Viewed 1436 times since Sun, Dec 27, 2009
Google Skipfish - Web Application Security Scanner
Viewed 1264 times since Mon, Mar 22, 2010
What is rel="nofollow" attribute?
Viewed 925 times since Thu, May 13, 2010
SEO (Search Engine Optimization) vs SEM(Search Engine Marketing)
Viewed 924 times since Mon, Jul 12, 2010
How to redirect an old domain to a new domain using htaccess?
Viewed 892 times since Sun, Mar 14, 2010
Embeddable Google Document Viewer For Websites
Viewed 1093 times since Fri, Mar 11, 2011
Ajaxed MySQL Table Editor
Viewed 1405 times since Tue, Oct 13, 2009
jqPlot - jQuery Charts & Plotting Plugin
Viewed 1468 times since Sat, Jan 9, 2010