IP Block
This neat little script enables you to block someone's IP adress! So if you don't want someone on your site, this is your kinda script!
Copy the following code into your <HEAD></HEAD> tags.
<script language="javascript">
var ip = '<!--#echo var="REMOTE_ADDR"-->'
if (ip == '206.186.23.178') {
alert("STOP! You are viewing this page from an IP address that is not allowed!");
alert("Why can't you guys just leave me alone?");
if (confirm("Do you want to leave peacefully? Or will I have to help you?"))
{location.href="http://www.yahoo.com" } else { ("OK you choose I don't care! Bye bye! Don't come back!"); {location.href="http://www.yahoo.com" }} }
</script>
har inte testat sj och vet inte om det fungerar eller ej.