How to enable website authentication with .htaccess?

If you want to make a part of your website visible just to a certain group of users, you can enable website authentication. This way, only people who know the username and the password you have specified can enter. You can do that using the .htaccess file.

First, set the folder in which the .htaccess file will be created, using the .htaccess location form at the top of the page. A click in the form field will open a pop-up window, from where you can browse to the desired website folder.

Then, go to the authentication menu. In there, mark the Enable Username / password authentication checkbox. Then enter the username and the password you want. Usernames must be between 3 and 9 characters; allowed characters: a-z, 0-9. Passwords must be between 3 and 32 characters; allowed characters: a-z, 0-9.

Once you are done, scroll down to the bottom of the page and click the “Generate” button. The newly created .htaccess file will take effect in up to 15 minutes.