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
Open Source Trouble Ticket System - Jutda Helpdesk
Viewed 2136 times since Sat, Jan 9, 2010
Free 3D Flash Image Slider - Piecemaker
Viewed 1955 times since Sun, Apr 4, 2010
Modify HTTP Headers in PHP with Examples
Viewed 1227 times since Wed, Mar 10, 2010
Geo-location Mapping With Google Maps API & PHP
Viewed 1570 times since Mon, Apr 4, 2011
jCart - Free PHP AJAX Shopping Cart
Viewed 1485 times since Sun, Jan 3, 2010
Google Maps jQuery Plugin
Viewed 1194 times since Thu, Jan 7, 2010
PHP Sound Captcha
Viewed 10372 times since Sun, Apr 11, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 1104 times since Wed, Apr 21, 2010
Use PHP Functions In JavaScript with PHP.JS Library
Viewed 1029 times since Fri, Jan 8, 2010
8 Basics of Regular Expressions
Viewed 1128 times since Mon, Mar 8, 2010