Have Questions?
for Answers
Register Your
Domain Name
 
Better Than Foolproof Password Security
 
 
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
Better Than Foolproof Password Security
Allows registered users to access a page. Loads alert & queries before any information, other than the HEAD tag, can be captured. From the page. Virtually foolproof.
By: Binkster
Browser Requirements: JS |
 
<script language="Javascript">

<!--
// Please keep these lines on when you copy the source.
// Made by: binkman -- bink@mail.usmo.com
// -=BINKMAN=- To defend truth, justice, and the Binkman right to life!
// This script allows you to have more than one registered user access a page.
// It loads the alert and queries before any information other than the HEAD
// can be captured from the page. Foolproof. I think. Actually I try not too...
//If the wrong 
//combination is entered
//it takes the browser
//back to the previous
//page


alert("To access the following document, you must pass a "
+"members-only, authorization test.\n \n At the appropriate "
+"time, enter in your username and password. The username is admin and so is the password.")

var username = prompt("Enter in your username","admin")
var password = prompt("Enter in your password","admin")

if (username == null || password == null) {

alert("Authenification failed!!!")
history.back();
}

//This may be a little 
//hard to follow but this
//takes the username and
//the password and 
//converts it to 
//lowercase while also 
//combining them so it is
//not case sensitive.

else {
var combo = username + password
var total = combo.toLowerCase()

//You can add more
//possibilities by simply
//adding more || inside
//the parentheses

if (total == "usernumber" || total == "adminadmin") {

alert("You passed authenification!  Come right in")

}


else {

alert("Authenification failed!!!")
history.back();
}
}

//-->
</script><br>

I say Hi.<br>

</body>
</html>
        
<!-- Simba says Roar. -->

 
 
 
Copyright 2001 GetSite Hosting