Click to See Complete Forum and Search --> : password protection


chanda
04-02-2003, 05:42 PM
Help!!!!!!! I'm trying to get a particular page to be password protected. I have the script right, I used one from here, but when I use it in Frontpage 2000, it doesn't even show up. I really need this script to work. Can somebody please help me?

pyro
04-02-2003, 05:46 PM
Originally posted by chanda
I really need this script to work.If you really need it to work, look into .htaccess or some server side language (PHP, CGI). Javascript is not capable of making a secure password.

cgraz
04-02-2003, 06:29 PM
Just a quick add on to pyro's response. javascript is client side. (meaning it's processed by the client's browser). This means in order to check against a password, the password would have to be right there in the code. Anyone could easily view it.

Server side however (such as PHP or ASP) can hold the passwords in the script or in a database, but, they are processed on the server and if someone were to view the source, all they would see is the output after the server processed it. This means variables containing passwords would be hidden.

.htaccess is very easy to use and works quite well.

Cgraz