// WARNING: This script is not totaly secure // Script: Password Protection // Version: 1.0 // Last Updated: June 12th 1998 // Author: Scott Brady // Org: HotSource HTML Help // Email: webmaster at sbrady dot com // Website: http://www.sbrady.com/hotsource/ // Copyright: Original Code Copyright (c) Scott Brady 1998 // Use: This script is free to be used and modified as // long as these credits remain intact. var password = prompt("Enter your password","") if (password == "hotsource") { alert("Password accepted! Loading page...") document.write("
This is the page that can only be accessed with a password.\r\n\r\n") document.write("
It is a little annoying having to put all your code in the WRITE ") document.write("tags, but it is free and doesn't require a special server.\r\n\r\n") document.write("
")
}
else {
alert("" +password+ " is an Invalid Password! Access denied...")
document.write("
You have entered an invalid password. Access to the ") document.write("document is denied.
") }