Posted - August 28 2007 : 00:23:02
| I want to block some Ip to visiting my product
I think it should be shopexd.asp
here is the code:
'assign our blocked IP addresses to our array
sIParray(0) = "184.108.40.206"
sIParray(1) = "62.454.32.25"
sIParray(2) = "220.127.116.11"
'retrieve the visitors IP address
sIP = Request.ServerVariables("REMOTE_ADDR")
'loop through the banned IPs using the UBound function
For i = 0 to UBound(sIParray)
'check if IP address matches any of the blocked IPs
If sIP = sIParray(i) Then
where should I copy these code.
I try to copy them in th top
or below <%Option Explicit%>
but it will currpt the file itself