T
Ted Boyd
I have an ASP page that I want to allow access from only from a certain
block of address, can someone get me started?
block of address, can someone get me started?
Ted Boyd said:I have an ASP page that I want to allow access from only from a certain
block of address, can someone get me started?
Is it a list or a range of valid IP Addresses?
If a list then try this:
<%
Dim arrIPA(2)
arrIPA(0) = "1.2.3.4"
arrIPA(1) = "11.22.33.44"
arrIPA(2) = "111.222.333.444"
Dim strIPA
strIPA = Join(arrIPA,"^")
Dim strRSV
strRSV = Request.ServerVariables("REMOTE_ADDR")
If InStr(strIPA,strRSV) > 0 Then
'.............. IPAddress is valid ................
End If
%>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.