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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top