password Java?

E

Eagle35

any one now any good java/Html for password pages so i can protect some
pages??

Thanks
 
L

Lasse Reichstein Nielsen

Eagle35 said:
any one now any good java/Html for password pages so i can protect some
pages??

You probably mean "JavaSCRIPT", not "Java". At least, that would put
you in the correct newsgroup.

Any password protection that *works* has to run on the server, not the
client. I would recommend finding out which server-side technologies
you have available and the asking in the appropriate group for that one.

/L
 
H

Hywel Jenkins

yer i no its "JavaScript" just cant be bothered to say it all



yer i no its "JavaScript" just cant be bothered to say it all

Well, you need to learn - Java is not the same is JavaScript, not by a
long shot.
 
L

Lasse Reichstein Nielsen

Eagle35 said:
yer i no its "JavaScript" just cant be bothered to say it all

Ignorance is an excuse (not a good one in the long run, but one).
Laziness is not. Being lazy in your writing makes it harder to take
your problem seriously, since obviously you don't even take it
seriously enough to bother with spelling, punctuation, or
distinguishing between Java and Javascript when communicating it
to us.

There are a lot of people who don't know the difference between
Javascript and Java (which are two completely different languages).
If you know, you should not muddy the waters even more by using the
name of the wrong language.

Still, the answer stands: Use server side technologies. That's as much
as I can be bothered to say. :)
/L
 
V

Vicomte De Valmont

ciao
negative, no password is safe with javascript. yet protection of the pages
by a server side language is so easy a thing after all for most common
purposes (well we're not sepaking of financial transactions I suppose!) that
even a minimal asp or php support would grant you the trick.
But in javascript, no way. All the solutions eventually crush against this:
the javascript protected page can be bookmarked, and then viewed bypassing
the 'password'. You could arguably put all within a frameset, and find a
complex way to redirct always to some page if the password is not protected,
but eventually you come to this: if your password is by javascript, then it
has to be written within some js file, no matter how obfuscated: whoever
sees the js file gets the password.
If you want a mild 'protection' say to avoid kids maybe it works, but if you
truly need to have your page reserved, only server side can do that.
 
M

Martin

Eagle35 said:
any one now any good java/Html for password pages so i can protect some
pages??

Well, you can hide the password from the source code with this trick :

<script>
pw=window.prompt("Enter Password","");
window.location=pw + ".htm"
</script>

use forms objects instead of window.prompt, with PASSWORD input type. The
password is a link to a server's page
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top