Knowledgebase: Web Hosting Related
How do you password protect a directory on your windows server
Posted by Support on 02 March 2009 12:04 AM
To password protect a directory. Create a file called .htaccess and enter into the file the following:
AuthName Password Protected
AuthUserFile D:\Html\Users\userwebXXXX\Html\.htpasswd
Require valid-user

In this example replace the XXXXX with the numbers from your FTP account, this file will protect the html folder if you upload this .htaccess files into it as well as the .htpasswd file. The .htpasswd file holds the user names and password of users that will be allowed access to the folder.

You can create the .htpasswd file using the following URL:

http://tools.dynamicdrive.com/password/
(491 vote(s))
Helpful
Not helpful

Comments (0)