IP Address Filter
Written by admin on December 26, 2008 – 7:35 am -Just add the address to the script and it will be blocked from entering your site.
Author: kdcgrohl (kdcgrohl@hotmail.com)
<!-- ONE STEP TO INSTALL IP ADDRESS FILTER 2:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// This JavaScript uses server side includes ("SSI") so this document's name must end in .shtml
function ban(){
var ip = '<!--#echo var="REMOTE_ADDR"-->';
//add as many ip's below as you wish.
if (ip == "x.x.x.x" || ip == "x.x.x.x") {
//if you wish to change the alert message, do so below.
alert("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Attention!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nYour ip address \("+ip+"\) has been banned!");
history.go(-1);
window.location.replace("http://javascript.internet.com/")
}
}
ban();
// End -->
</script>
<!-- Script Size: 1.10 KB -->
Tags: User Details
Posted in Miscellaneous, User Details |