Javascripts > Misc Javascripts > IP Block
Script Title: IP Block
Description: 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!
Example: Available
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>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email