View Single Post
Old 18th May 2005, 16:32
deedee deedee is offline
Junior Member
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

First, you have to create a file called .htaccess in the directory you want to password-protect:

AuthType Basic
AuthName "Members Only"
AuthUserFile /path/to/your/.htpasswd
<limit GET PUT POST>
require valid-user
Then create the file /path/to/your/.htpasswd which contains the users that are allowed to login and their passwords. You can use the htpasswd command for it:

htpasswd /path/to/your/.htpasswd user1
htpasswd /path/to/your/.htpasswd user2
Obviously you have to adjust /path/to/your/.htpasswd
Reply With Quote