By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

password Java?

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

Thanks
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"Eagle35" <ea*****@hotmail.com> writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
yer i no its "JavaScript" just cant be bothered to say it all
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:ek**********@hotpop.com...
"Eagle35" <ea*****@hotmail.com> writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors:

<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #3

P: n/a
In article <bn*******************@news.demon.co.uk>, ea*****@hotmail.com
says...
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:ek**********@hotpop.com...
"Eagle35" <ea*****@hotmail.com> writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors:

<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'



--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #4

P: n/a
In article <bn*******************@news.demon.co.uk>, ea*****@hotmail.com
says...
yer i no its "JavaScript" just cant be bothered to say it all
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:ek**********@hotpop.com...
"Eagle35" <ea*****@hotmail.com> writes:
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.

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.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #5

P: n/a
"Eagle35" <ea*****@hotmail.com> writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6

P: n/a
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.

"Eagle35" <ea*****@hotmail.com> ha scritto nel messaggio
news:bn*******************@news.demon.co.uk...
any one now any good java/Html for password pages so i can protect some
pages??

Thanks

Jul 20 '05 #7

P: n/a
"Eagle35" <ea*****@hotmail.com> escreveu na mensagem
news:bn*******************@news.demon.co.uk...
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

Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.