Simplest way to add a password to a website?

Messages
2,887
Name
Richard
Edit My Images
Yes
#1
What is the simplest way to add a password to an already created index.html

basically I click on a link and it takes me to an index.html but I want to password protect it.
 
Messages
5,463
Name
Andy Jones
Edit My Images
Yes
#6
You can put it in the site's root as long as it's got the right permissions.
 
Messages
1
Name
Johnny
Edit My Images
No
#9
Hi rgrebby,

you can add multiple lines to the .htaccess file as follows

username:password
username:password
username:password

If you go here http://www.miraclesalad.com/webtools/md5.php you can create encypted MD5 hashes for the passwords. This will turn this

davidw:mypassword

into

davidw:34819d7beeabb9260a5c854bc85b3e44

This is even more secure.

Here is an easy page that explains (& creates) the password for you. http://www.z-host.com/scripts/ipasswd/index.php

All the best,

Johnny
 
Top