Forums
This topic is locked
Banning subnet?
Posted 11 Jan 2002 18:26:19
1
has voted
11 Jan 2002 18:26:19 Matthew Dehait posted:
Hi:I'm trying to figure out how I can use wildcards or something to ban an entire subnet from a portion of my site. Right now I do it with a couple of IPs, but I want to get rid of this guy's ISP. Any ideas?
Here's what I have now, it is part of a voting script and it basically just skips the vote adding process:
<% If Request.ServerVariables("REMOTE_ADDR" = "143.182.246.27" Then %>
<%Response.Redirect "pixdetailrate.asp?pixID=" & cmdRating__varID%>
<% End If%>
Thanks,
Matt
Replies
Replied 12 Jan 2002 05:21:56
12 Jan 2002 05:21:56 Joel Martinez replied:
Hmm, I just did some searching for lists of server variables, but I didnot see one for subnet...
maybe you can use the instr (verify syntax, can't remember it off the bat) function to search for "143.182.246" in the remote addr, that way if the first three numbers are the same, it wil kick em out.
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
maybe you can use the instr (verify syntax, can't remember it off the bat) function to search for "143.182.246" in the remote addr, that way if the first three numbers are the same, it wil kick em out.
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/