G
George Hester
I used to be able to change the page presented to the client with this code:
<% If Request.ServerVariables("HTTP_HOST") =
Request.ServerVariables("LOCAL_ADDR") Then %>
But now that the site is behind a Router this doesn't work anymore. Because
when Request.ServerVariables("HTTP_HOST") is an IP Address (which is what I
was trying to catch) the Request.ServerVariables("LOCAL_ADDR") is now the
assigned IP Address from the Router and so the test is no longer valid.
Ugh!. Any other way to use ASP to achieve in some some other way what I was
trying to accomplish here? Namely accessing the site by IP Address satisfies
the initial condition? Thanks.
<% If Request.ServerVariables("HTTP_HOST") =
Request.ServerVariables("LOCAL_ADDR") Then %>
But now that the site is behind a Router this doesn't work anymore. Because
when Request.ServerVariables("HTTP_HOST") is an IP Address (which is what I
was trying to catch) the Request.ServerVariables("LOCAL_ADDR") is now the
assigned IP Address from the Router and so the test is no longer valid.
Ugh!. Any other way to use ASP to achieve in some some other way what I was
trying to accomplish here? Namely accessing the site by IP Address satisfies
the initial condition? Thanks.