Results 1 to 3 of 3

Thread: Trap IP Address

  1. #1

    Default Trap IP Address

    I would like to trap for certian IP address and Block all others. I am
    looking for these address in the "CreateSession" and I then write a flag in
    the Session file that this IP address is not authorized. Then in the
    "ValidateSession" I check the flag an and set and error code. The error
    code displays at the bottom of the webpage. I would like to trap the error
    and then Link to a Webpage that explains that the user is not authorized to
    access this web site.

    Is this a good way to trap for the IP address and how do I trap the error
    code to display the Autorization page.

    Steve



  2. #2
    Vincent Oorsprong Guest

    Default Re: Trap IP Address

    Steve,

    Would you really want to have them come that far? I mean if you only want to
    give some IP addresses access I would suggest you block them in the
    firewall.

    --
    Regards,
    Vincent Oorsprong
    Data Access Worldwide
    http://www.dataaccess.eu



  3. #3
    Join Date
    Feb 2009
    Posts
    297

    Default Re: Trap IP Address

    http://www.w3schools.com/asp/coll_servervariables.asp

    REMOTE_ADDR
    Returns the IP address of the remote host making the request

    I do store the ip adress in a session record, but I don't do anything with
    it yet.

    John

    "Steven Lemarr" <steve@jahl.com> schreef in bericht
    news:j9sNEbjYJHA.4916@dacmail.dataaccess.com...
    >I would like to trap for certian IP address and Block all others. I am
    >looking for these address in the "CreateSession" and I then write a flag in
    >the Session file that this IP address is not authorized. Then in the
    >"ValidateSession" I check the flag an and set and error code. The error
    >code displays at the bottom of the webpage. I would like to trap the error
    >and then Link to a Webpage that explains that the user is not authorized to
    >access this web site.
    >
    > Is this a good way to trap for the IP address and how do I trap the error
    > code to display the Autorization page.
    >
    > Steve
    >




Similar Threads

  1. How to trap errors
    By Jacques Delannay in forum AJAX Library
    Replies: 2
    Last Post: 15-Apr-2009, 04:36 AM
  2. How can I trap the value being moved from a Look Up List?
    By jforero in forum Windows Applications
    Replies: 1
    Last Post: 15-Dec-2008, 01:25 PM
  3. Trap Event
    By Francis Griffin in forum Web & Mobile Applications
    Replies: 1
    Last Post: 26-May-2007, 08:35 PM
  4. How do I trap the ALT key?
    By Edgar Briney in forum Windows Applications
    Replies: 0
    Last Post: 11-May-2007, 01:05 PM
  5. How do I Trap First/Prev/Next/Last Error msgs
    By Peter.Tawse in forum Windows Applications
    Replies: 1
    Last Post: 20-Oct-2005, 01:30 AM

Posting Permissions

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