Testing for external user

  • Thread starter Thread starter marc
  • Start date Start date
M

marc

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.
 
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.
 
Back
Top