Testing for external user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marc

    #1

    Testing for external user

    I have a control which uses a server name or ip address as
    a parameter. I am looking for a foolproof test that I can
    use in my control to see if the user accessing it is
    external to our network. If so I will pass the ip,
    otherwise I will pass the server name. Any help you can
    offer in the form of explanation or sample code will be
    greatly appreciated.

    Thank you.
  • Greg Ewing [MVP]

    #2
    Re: Testing for external user

    marc, if you know the user's IP address, can't you just compare it against
    your local range of IP addresses? This isn't foolproof cause someone could
    always spoof the IP but that's unlikely to happen.

    --
    Greg Ewing [MVP]
    IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.


    "marc" <marcmontrone@h otmail.com> wrote in message
    news:04ea01c384 4b$373d1730$a10 1280a@phx.gbl.. .[color=blue]
    > I have a control which uses a server name or ip address as
    > a parameter. I am looking for a foolproof test that I can
    > use in my control to see if the user accessing it is
    > external to our network. If so I will pass the ip,
    > otherwise I will pass the server name. Any help you can
    > offer in the form of explanation or sample code will be
    > greatly appreciated.
    >
    > Thank you.[/color]


    Comment

    Working...