IP ADDRESS FILTER JAVA SCRIPT

Bookmark and Share
Step by Step how to install java script effect for ip address filter , you can follow instruction as below to implement in your website or blog :


<!-- ONE STEP TO INSTALL IP ADDRESS FILTER:

  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
netscape = (navigator.appName.indexOf("Netscape") != -1);
version4 = (navigator.appVersion.indexOf("4.") != -1);

if (netscape && version4) {
ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
if (ip.indexOf("207.136") >= -1) 
// This would block anyone from 207.136.xxx.xxx

   {
   alert("You are not permitted to access this site.");
   history.go(-1);
   }
}
//  End -->
</script>

<!-- Script Size:  0.79 KB -->

{ 0 comments... Views All / Send Comment! }

Post a Comment