Allow access from valid Usernames
To allow only persons with a valid username and password to connect to your site, create a text file called .htaccess and include the following:
<files "ht*">
order allow,deny
deny from all
</files>
AuthType Basic
AuthName "Restricted Access"
AuthUserFile absolute path of .htpasswd file
Require valid-user
The absolute path for Standard Websites use /isp/eshowcase/sites/domain.ext/docs/path of filename and for Business or Advanced websites use /services/webpages/first letter of domain name/second letter of domain name/domain.ext/path of filename
Now create another text file called .htpasswd. In this file include the following:
Username:Encrypted password
Username:Encrypted password
Multiple usernames and passwords may be created. Use our online utility to create encrypted passwords for you.
Once the .htaccess and .htpasswd files are created, send them to the directory you wish to secure. Make sure that the path of the .htpasswd file in the file .htaccess is correct
The directory is now secured and can only be viewed by users with valid usernames and passwords.
|