Microsoft's Front Page do this with a very simple way
You can give permissions for the Root web or for its children webs. Every user with his own password ...
Main Topics
Browse All TopicsI'm looking for a way to require a password to enter a web site. The same password can be used by everybody. It does not have to be very secure, just enough to keep out the curious. I would prefer something in HTML that doesn't requre any server intervention, and something that works with both Netscape and IE.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Descent security can be achieved through encrypted URLs. F.ex.,
use encrypted password as directory name - as long as directory
listing is prohibited (appropriate index.html or whatever your
server requires), it works like basic HTTP authentication, only
instead of 401's "curious" ones will get 404's.
Encryption can be done in JavaScript - I've TEA cipher written
in JavaScript and complete code of access control page - works
with both Netscape and IE - available just for asking :)
I would only suggest the use of CGI script,
Its secure (in a sence), and fast and the easiest.
It is possible with Javascript.
I can currently think of one way to do it.
If you write it into Javascript, meaning in your HTML page,
common users may be able to view document source and find out the password, from the script.
So finally to say, CGI is the most advisable.
Yes, I agree with joesixpack, an .htaccess file is the best way to go. If you have the server working for you, then it decides whether or not to serve the page. Assuming you are using APACHE, it is a top notch web server that you will do well by. The .htaccess file is trivial to make, if you have questions, you can refer them to your site administrator.
This answer seems to have gotten out of hand. Fovl clearly wants to go client side, and clearly doen't care that much about security. The simple answer is JavaScript, where you have the the password equal the name of the file to be loaded (e.g., password is enter and main page is enter.html), when the password is entered, you "pass" it along to document.location and get to the appropriate page. The password is never in the code, the only way you can get in is if you happen upon the name, or if you get a directory listing . . . easy enough.
fovl, if you need the actual code, email me.
Hey, check this web site:
http://www.geocities.com/~
This was created (by me) with a JavaScript and as you can see nobody is able to see (jack) my password.
If you would like to know how to do that I would be more than happy to help you.
monge@bigfoot.com
Ever considered .htaccess? Easy to implement, very secure.
A direct HTML way does not exist, but you can use JavaScript (user enters "password"; is then directed to "password".htm or something like that.
Third alternative: a hidden link on your page, but that's VERY insecure
For each of these methods I'll give you a detailled instruction - but please choose one first! :-)
Use part of URL as a password, f.ex. password "secret" could give your users access to http://www.your.com/secret
Proper URL can be formed using JavaScript and will work in both NS and IE.
As long as directory listing is either prohibited or is covered by the proper index.html or whatever your Web server requires, this solution is as secure as the basic authentication mentioned in Christian's answer.
Let me know if you need more details.
hi garik, that's just the alternative I hinted at with "...but you can use JavaScript..." :-)
but you are right, the "security factor" of this is quite as high.
However, it is very easy to exclude a (former) user from the secret .htaccess protected directory: remove his name/password from the list! if you want to exclude somone from a JS-protected directory/file, you have to give out new passwords to everyone else...
hi garik, that's just the alternative I hinted at with "...but you can use JavaScript..." :-)
but you are right, the "security factor" of this is quite as high.
However, it is very easy to exclude a (former) user from the secret .htaccess protected directory: remove his name/password from the list! if you want to exclude somone from a JS-protected directory/file, you have to give out new passwords to everyone else...
Business Accounts
Answer for Membership
by: pcPosted on 1997-05-05 at 07:41:00ID: 1836210
Hm... you could use a java applet with a hardcoded password. But that would keep out only curious idiots, not a a curious but determined person...
Or don't CGI-scripts count as 'server intervention'?