Setting Up Basic Password Security

You will need to create a file called .htaccess [Note the DOT!] with the following content :

order allow,deny
allow from all
AuthType Basic
AuthName "My Secure Folder"
----- replace "My Secure Folder" with the name of the Directory to protect
AuthPAM_Enabled off
AuthUserFile /home/sites/www.[yourdomain].co.uk/.htpassword
require valid-user

You will then need to create the password file .htpassword
If this is the first user you create the password file with

  • /usr/bin/htpasswd -c /home/sites/www.[domain].co.uk/.htpassword [username] [password]
and for subsequent users add them with
  • /usr/bin/htpasswd /home/sites/www.domain-name/.htpasswd [username] [password]

The .htpasswd file will be created in the root directory of your domain which is NOT accessible through the web for security reasons. The file is also encrypted (MD5 Hashed). Once the file is created we delete the password request form. We have no way of determining your paswords and do not retain your requests - it is up to you to remember them !

You should then upload the .htaccess file to the folder you wish to protect

  • 2 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How do I use SSI (server Side Includes) ?

Web pages that use SSI (server side includes) by convention should be named with the .shtml file...

How do I stop Cpanel reporting /usr/bin/crontab permissions are wrong. Please set to 4755.

If you get this message in CPanel when adding/ediiting/viewing the cron jobs ......

How do I force Statistics (Webalizer and AWstats) to run on Plesk Servers ?

Updating Webalizer and AWStats on Linux Plesk Servers from SSH The plesk control panel is...

How much is HELM ? What Helm licences do you offer ?

Web Host Automation (HELM Authors) sold the control panel rights and code some years ago to...

What types of scripting do you support ? What scripts can I use ?

Astutium provides a comprehensive ramge of hosting services, offering every kind of operating...

Powered by WHMCompleteSolution