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.
AeroSQL - Web Based MySQL Management
Viewed 848 times since Wed, Feb 24, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 1876 times since Thu, Jan 28, 2010
10 AJAX based PHP WebMail Clients
Viewed 904 times since Mon, Jul 26, 2010
What is Search Engine Optimization?
Viewed 1082 times since Fri, Jun 25, 2010
PHP Questions for Interview with Answers
Viewed 1038 times since Wed, Feb 24, 2010