Home » Categories » Business » Web Development

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
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
Making A Basic PHP Template System
Viewed 1353 times since Tue, Dec 8, 2009
ValidForm Builder - Creating Forms With Validation
Viewed 757 times since Wed, Apr 21, 2010
How To Remove_Security-Tool
Viewed 520 times since Mon, Jul 4, 2011
Speech Bubbles With Pure CSS3
Viewed 1223 times since Fri, Mar 12, 2010
jqPlot - jQuery Charts & Plotting Plugin
Viewed 2026 times since Sat, Jan 9, 2010
Flash Webcam Image Capture
Viewed 1741 times since Thu, Nov 12, 2009
jCart - Free PHP AJAX Shopping Cart
Viewed 1647 times since Sun, Jan 3, 2010
30 High Quality Charts & Graphs for Web Developers
Viewed 3253 times since Wed, Mar 23, 2011