How to password protect folder/files using htaccess file?
Article ID: 392 | Rating: 5/5 from 1 votes | Last Updated: Sun, Mar 14, 2010 at 4:07 PM
Use the following htaccess code to enable authentication for certain files and folders from being accessed. The code has examples of password protection for a single file and password protection for a entire directory using htaccess file.
# to protect a file
# password-protect a directory
AuthName “This directory is protected”
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Before and After Picture - jQuery Plugin
Viewed 1329 times since Tue, Dec 29, 2009
Google Maps jQuery Plugin - gMap
Viewed 1336 times since Mon, Feb 8, 2010
Free Android GUI PSD File
Viewed 1312 times since Fri, Dec 4, 2009
PHP Sound Captcha
Viewed 9055 times since Sun, Apr 11, 2010
Viewed 959 times since Sun, Jan 17, 2010