[thelist] Showing a users IP address

Maryanna Nesina mar at MN1052.srv.pu.ru
Fri Jan 25 16:10:01 CST 2002


> Response.Write Request.ServerVariables("REMOTE_ADDR")

If one uses Proxy then REMOTE_ADDR shows the Proxy's IP
REMOTE_HOST - Proxy's name
HTTP_VIA - Proxy's info
HTTP_X_FORWARDED_FOR - inner user's IP

If the user has a IP  for a private networks i.e. 192.168.x.x  and use
transparent masquarading server, with no Proxy, REMOTE_ADDR would show his
IP 192.168.x.x , but we won't get the IP of his masquarading machine :((

If the user has a IP  for a private networks i.e. 192.168.x.x  and use
transparent masquarading server, AND Proxy, REMOTE_ADDR would show the
Proxy's IP, HTTP_X_FORWARDED_FOR  - IP of his masquarading machine, but we
won't get his real (192.168.x.x )  IP


PS
We can go on without CGI, using SSI
  <!--#echo  var="REMOTE_ADDR" -->

Best regards,
Maryanna Nesina
mar at mail.bio.pu.ru
http://www.bio.pu.ru/~mar/
==================================================




More information about the thelist mailing list