Saturday, January 16, 2010

What is the code for creating a password controlled page?

A page that can't be accessed without the appropriate password. Is there any such code (whether it be JavaScript, HTML, or anything else) that can make this happen easily? If so, what is the actual code? Thanks!What is the code for creating a password controlled page?
I'm afraid there's no easy solution to your problem. I believe you can set up a simple javascript that simulates a password entry, but all a person has to do to crack the password is view the source code. In that case, it's not really protection.





For real password protection, you'll need to set up a form with a backend script that will process the form data and compare it with an installed database.





There may be a way to set up a variable in a PHP document for a password, but again, it's so hackable as to be pretty useless.

No comments:

Post a Comment