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.
PHP Questions for Interview with Answers
Viewed 924 times since Wed, Feb 24, 2010
Inline Form Validation With jQuery
Viewed 920 times since Sat, Jan 9, 2010
Featured Items Widget with jQuery
Viewed 924 times since Sun, Dec 27, 2009
SlideDeck - Cool jQuery Slideshow Plugin
Viewed 755 times since Thu, Feb 4, 2010
Web Usability Testing Tool - Clixpy
Viewed 922 times since Sat, Jan 9, 2010
Google Maps jQuery Plugin - gMap
Viewed 928 times since Mon, Feb 8, 2010