<!-- This script has been in the http://www.javascripts.com Javascript Public Library! -->
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
<html>
<head>
<script>
denyip    = new Array();
var ip    = java.net.InetAddress.getLocalHost();
var x     = 0;
var y     = 0;
ip        = ip.getHostAddress();

// +-------------------------------------+
// | you'll want to add as many as these |
// | as you want, make sure to add them  |
// | in the same format as i have these  |
// | two examples. usually its better if |
// | you only take the first two sections|
// | of the ip to ban                    |
// +-------------------------------------+
denyip[0] = "198.137"
denyip[1] = "146.205"
denyip[2] = "38.27"

x = denyip.length;
for(y=0;y<(x+1);x++) {
  if(ip.indexOf(denyip[y]) != 1) {
    alert("Sorry. You're banned from this site.");
    self.close();
  }
}
</script>
<title>hello.</title>
</head>

<body>
hello. are you banned?
</body>
</html>

<!-- Tommy Raven (Min) says Moo. -->