This edition to the password series is by far the most protective script besides the Impossible to Break Password. This is also a rather mean script because your browser gets killed if you do not enter the right password. I won't do any more scripts of this cruel a nature, so please don't ask. However, I thought the punishment fit as a perfect safeguard for a person's page in this script.
The source..


<script language="Javascript">
<!--
// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: Nic's JavaScript Page - http://www.javascript-page.com

var pass = "hello";
var goodurl = "porb.html";
var safety = 3;
var x = 0;
var y;

while (x < safety) {

y = x+1
var trigger = prompt("Please say 'hello' to me or you can't proceed"
          +" ("+ y +" out of "+safety+" tries)","");

if (trigger == null) x++;

else {

if (trigger.toLowerCase() == pass) {
alert("Come right in \n \n You've entered in the right password");
location = goodurl;
break;
}

else x++;
}
}

if (x == safety) {
while(true) window.open("http://www.yahoo.com");
}

//-->

</script>

Color coding..


This is the correct password, in lower case.
This is the URL of where people with the correct password head to.
This is how many chances the viewr has to get the right password.
This text you can edit.

Nic's JavaScript Page