- **//// <summary>
- /// maximize the real IP address of the remote user
- /// </summary>
- /// <returns></returns>
- private string getclientip ()
- ... {
- if (request.servervariables["Http_via"]!=null)
- .. {
- return request.servervariables["HTTP_X_ Forwarded_for "]. ToString ();
-
- &NBSP;&NBSP;&NBSP;&NBSP;ELSE&NBSP;
- {
- return request.servervariables[" REMOTE_ADDR "]. ToString ();
-
- }&NBSP;
HTTP Proxy-related knowledge
Http_x_forwarded_for
If this information is available, it also proves that the address of the proxy proxy server you are using is the following value. The
need to note that the value of the,http_x_forwarded_for is not necessarily a single IP address, the following information is also possible, one record per line. The data below is based on csdn actual data.
10.194.73.11
Unknown, unknown, 211.100.22.30
203.98.182.163, 203.98.182.163, 203.129.72.215
172.16.20.110, 202.116.64.196, 203.81.21.61
10.194.75.83, 10.194.73.11, 10.194.73.11, unknown
192.168.120.57, Unknown, unknown, 211.10.10.195
10.2.4.211, 219.141.250.3
3.242.165.168, 218.108.22.164
Unknown, 211.100.22.30
192.168.83.56, 210.21.224.233
218.94.136.176, 203.81.21.61
Unknown, 210.75.1.181
10.161.196.218, 202.104.134.23
222.216.6.148, 222.216.6.146
155.161.59.47, Unknown
key is in Http_x_forwarded_ for