Locker Protection
I believe you have entered "John" as the user name
and "unlock" as password, this protection provides a basic protection.
However, it is not recommanded to use to protect very improtant stuff for
it can be easily cracked by crackers. Still, it is easy to use and
does provide a okay security shield. To use this script, just copy
the source below and paste it between your <HEAD> and </HEAD> tags
in your HTML file.
<SCRIPT>
<!--
function locker()
{
// Script Editor: Howard Chen
// Browser Compatible for this script: IE 4.0 or Higher
// Netscape 4.0 or Higher
// Get more JavaScripts at http://www.geocities.com/SiliconValley/Network/7432/
// Bug report to hchen007@geocities.com
// This script is free as long as you keep its credits
var ask = prompt("Please enter the username", "")
var ask2 = prompt("Please enter the password for " + ask, "")
if (ask != "John" || ask2 != "unlock") { // first one is Username and second one is password
alert("Username/Password Incorrect\nAccess denied!")
location.href= "index2.htm" // The URL to go if password is incorrect.
}
}
locker()
//-->
</SCRIPT>
IMPORTANT: The scripts provided in this
page are free as long as you keep the credits in the code. E-mail
me or use Script Rebuild Service for additional
help about Cut N Paste or to ask for a script
that is just for you.
Post Your Script Home