Digital Indigo
digitalindigo.comHomeAbout UsContact UsSearch

Clients
Client Login
Portfolio
Tech Support
Services
Pricing
Software
Internet Services
Web Hosting
Consulting
Programming

Quick Search




Password Protecting A Web Directory
The .htaccess system built into most web servers allows you to create a few files to password protect an entire directory.

Viewing Web Statistics
Creating a password system requires at least two files. One file keep track of your usernames and their encrypted passwords. The second file goes in the directory you wish to protect, and tells the web server to lock the directory, and the location of the password file.

Creating the .htaccess File:
Inside the directory you wish to password protect, you will have to create a file called .htaccess. Inside of this file you will put the following information. The only change you need to make is the AuthUserFile parameter. This should be the exact location of the passwd file you will create later.

AuthUserFile /home/groupX/username/passwd
AuthName Password_Protection
AuthType Basic

<LIMIT GET POST PUT>
require valid-user
</LIMIT>

Creating the passwd File:
Next you'll need to create a passwd file. This file contains a username and encrypted password. To get customized contents of a password file, you can type a username and password below. After pressing Generate Passwd File, you will see the username and encrypted password in a format that can be pasted into your passwd file. You can have multiple usernames and passwords in your passwd file. Just place each username:passwd pair on a separate line. For security reasons, never put your passwd file in your web tree. We suggest you put all password files in your home directory.

Username:
Password:
 

 

Testing the setup:
After creating the two files, enter the directory you protected into your web browser. A requester box will prompt you to enter a username and password. Entering a valid username and password will allow you to view the contents of the directory.

Related Topics & Information
None Avaliable

 

 

 

Copyright © 1995-2007 Digital Indigo Technologies. All Rights Reserved.