User Details >>> Ip Filter.
 
Script Categories













User Details >>> Ip Filter.

(Netscape, Mozilla and Firefox only. Java must be enabled) JavaScript can prevent visitors with certain IP addresses from visiting your site. Simply enter part of their IP address (the more you enter the greater the chance only the intended person will not be able to enter your site) and they will not be able to enter the site.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
Netscape = (navigator.appName.indexOf("Netscape") != -1);
if (Netscape) {
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>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©