haasierra.blogg.se

Cpanel how to create a password protected folder
Cpanel how to create a password protected folder









cpanel how to create a password protected folder

Now, should you try to open your password-protected directory in your browser through the URL which is already password protected, your browser will prompt you to enter a username and password. You will need this when you want to open your password-protected directory. Scroll down the page and under Create User fill in the username and password fields or use the Password Generator option to generate a new random password and copy the user/password somewhere safe. Under Security Settings, check the box next to the Password protect this directory and enter a name for the protected directory like Password Protected Area. Open the text file you just created by double-clicking it and copy/paste in the following text: cls. Open the folder, right-click on a blank area in it, then select New -> Text Document from the pop-up menu. Click on the name of the directory you want to protect by password.ĥ. Create a new folder and name it whatever you would like. In the Files section, click on Directory Privacy Icon.Ĥ. If you were to run the command cat /home/matt/.htpasswd you might see a line like review:M1OdtjdGiDn1Y.

cpanel how to create a password protected folder cpanel how to create a password protected folder

You can lock a directory with a password by using the cPanel Password Protected Directories Option.Ģ. So a command like htpasswd -bc /home/matt/.htpasswd review donotenter will create a new file using a username of review and a password of donotenter into the file /home/matt/.htpasswd.











Cpanel how to create a password protected folder