Results 1 to 2 of 2

Thread: Redirect by IP Address

  1. #1
    Join Date
    Jun 2006

    Redirect by IP Address

    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!


  2. #2
    Join Date
    Feb 2003
    Careful if you don't have a fixed IP Address...

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center