Click to See Complete Forum and Search --> : Redirect by IP Address


bbiebelberg
06-06-2006, 05:21 PM
Hi Guys! I am new to this forum, but I have a question.

I need a way to redirect the users of my website to different pages based on their IP Address. What I am want to be able to do is if a user tries to access a directory I don't want them to, they will be redirected to another page, but if I try to access a directory, I want to be able to. So basically, I want to block all IP Addresses except my own.

I hope you can help!

Thanks!

russell
06-06-2006, 06:16 PM
Careful if you don't have a fixed IP Address...


If Request.ServerVariables("REMOTE_ADDR") = "Your IP Address" Then
'' Let you in
Else
'' Don't let them in
End If