shootertec
10-06-2003, 01:54 AM
I found a trick little script to block an indivual IP address. However the offender that I'm trying to block access to my web site has an ip address within a range.
I want to either be able to block the entire range or a easy way to list the 8 or so known IPs I want to block.
<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!");
{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>
Trying to block 209.255.8.30 thru 209.255.8.40
I'm am very new to all of this so any and all help will be great!
Thanks!!
I want to either be able to block the entire range or a easy way to list the 8 or so known IPs I want to block.
<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!");
{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>
Trying to block 209.255.8.30 thru 209.255.8.40
I'm am very new to all of this so any and all help will be great!
Thanks!!