I have the following code that I am using to try to only allow access to a page to users with a certain IP address.
Code:
<%
Select Case Request.ServerVariables("remote_addr")
Case "[COLOR=red]ip address[/color]"
Case Else
Response.Redirect "[URL unfurl="true"]http://www.google.co.uk/"[/URL]
Response.End
End Select
%>
This doesn't appear to work when the correct ip is used, it always re-directs to google rather than allowing accessing to the page.
Can anyone help?
Thanks.