Password Protect Directories

preview_player
Показать описание
This video demonstrates how to connect to your server using SSH and password protect fi

Here is the code for the .htaccess file:

AuthUserFile /usr/home/username (replace this username with your ACC username)/passwd
AuthName “keyword” (replace this keyword with a short or descriptive word or phrase)
AuthType Basic

require valid-user

The valid-user line allows anyone with a username & password found in your password file to have access to the directory. You can also choose to allow only certain users into the directory, by replacing that line with: require user user1 user2. Naturally, replace user, user1, and user2 with the usernames you created in the htpasswd file.
Рекомендации по теме
welcome to shbcf.ru