Simplest way to add a password to a website?

Messages
2,835
Name
Richard
Edit My Images
Yes
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.
 
if your hosting has cpanel or simmilar then you should be able to do this from in there.. if not then google .htaccess ..it really is the easiest simplest way :)
 
You can put it in the site's root as long as it's got the right permissions.
 
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
 
Back
Top