i have sensitive material on the page and i want to authorise certain people to read them. I want to create a link whereby, when they click on the link it will prompt them for a password.. Basically i want secure that link with a password.. A page that will ask for a user name and a password or just a password...
mm4331, if the material is sensitive then you need a secure form of password protection. A JS form won't protect anything. The user can simply check the View Source to see the password.
A secure form of password protection can be ASP,CGI, Coldfusion, HTTACCESS, any kind of server related technology is secure.
Look into your web host provider and see if they offer any pacakages that offer security.
I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage.
It's no big deal really...
I agree with GUJUm0deL 100%. With javascript, you'd have to embed your passwords into your script and anybody could read them. Even if you use a .js file, anybody with a little savvy could find the script file and strip the passwords out of it.
Use some other method like GUJUm0deL suggests.
There's always a better way. The fun is trying to find it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.