First, you have to create a file called .htaccess in the directory you want to password-protect:
Code:
AuthType Basic
AuthName "Members Only"
AuthUserFile /path/to/your/.htpasswd
<limit GET PUT POST>
require valid-user
</limit>
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:
Code:
htpasswd /path/to/your/.htpasswd user1
htpasswd /path/to/your/.htpasswd user2
...
Obviously you have to adjust
/path/to/your/.htpasswd
Recent comments
22 hours 49 sec ago
1 day 4 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 18 hours ago
2 days 4 hours ago
2 days 4 hours ago
2 days 8 hours ago
2 days 12 hours ago
2 days 13 hours ago