Creating a simple password protected page (java)

message from kroc_kroc on 16 Jul 2004
Not too sure if this is easy or not? I'm a total novice and want to create a
page which can only be accessed if you get the password correct. The problem
for me lies in how do I create the password bit? Can I just use the form
elements and some script. I don't mind if it's insecure and people can view the
script if they view the source. Can it be done easily?

Cheers in advance!
 
Alan replied to kroc_kroc on 16 Jul 2004
suggest looking at your hosting's FAQ or look in your hosting Control Panel
if there is one. If it's Apache, you could could quickly setup
.htaccess/.htpasswd directory protection which would be secure.
 
Murray *TMM* replied to kroc_kroc on 16 Jul 2004
http://www.mickweb.com/password.html
http://www.mickweb.com/newpassword.html
 
darrel replied to kroc_kroc on 16 Jul 2004
What's the point of an insecure password? ;o)

What you are asking for is javaSCRIPT...not java. You can easily create a
log in via javascript, but note that the password would be visible in the
source code, and if a person didn't have javascript enabled, they could
easily get around it.

Google will turn up a bunch for you. Here's a page with with a bunch of
them:

http://javascript.internet.com/passwords/

Actually, I think DW may even come with a basic javascript based password
login tool.

-Darrel
 

Archived message: Creating a simple password protected page (java) (Macromedia Dreamweaver Web Design)