Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

IP Groups

Posted 26 Jul 2002 08:48:26
1
has voted
26 Jul 2002 08:48:26 Barry Williams posted:
How would i go about making an ip address turn into a isp group?
e.g.
168.12.143.95 would = 168.12.143.* so that way if i needed to i could ban an isp rather than just a single ip (which would change next time they log in so it would be pointless, thats if its dinamic) any help would be great <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replies

Replied 26 Jul 2002 13:28:20
26 Jul 2002 13:28:20 Owen Eastwick replied:
Try:

&lt;%
varIP = Request.ServerVariables("REMOTE_ADDR"
varPos = InStrRev(varIP,"."
varIPGroup = Left(varIP, (varPos -1))
%&gt;


Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Reply to this topic