Working in ASP/VBSCRIPT, I have a snippet that denies access to a page if
the user's IP does not belong to the local network:
<%
Dim RemoteAddr
RemoteAddr = Request.ServerVariables("REMOTE_ADDR")
If instr(RemoteAddr, "192.168.0") Then
Else Response.Redirect ("/Login/entry_denied.asp")
End If
%>
I need to apply this to a ASPX page. Can you help me with the syntax?
Brian Muth - 07 Jun 2007 17:19 GMT
> Working in ASP/VBSCRIPT, I have a snippet that denies access to a page if
> the user's IP does not belong to the local network:
[quoted text clipped - 8 lines]
>
> I need to apply this to a ASPX page. Can you help me with the syntax?
You have posted this in a C++ newsgroup. Try
microsoft.public.dotnet.framework.aspnet instead. I'm sure you will get a
better response.
Brian
Billy Bob - 07 Jun 2007 18:20 GMT
Whoops, my mistake. I thought I was there.... Apologies to all I've offended.