Obtain client IP address three difference HTTP request header

First, there is no case of using a proxy server:

  • REMOTE_ADDR = your IP
  • HTTP_VIA = did not show values ​​or
  • HTTP_X_FORWARDED_FOR = did not show values ​​or

Second, the case of using a transparent proxy server: Transparent Proxies

  • The last REMOTE_ADDR = proxy IP
  • HTTP_VIA = proxy IP
  • HTTP_X_FORWARDED_FOR = your real IP, passes through multiple proxy servers, this value is similar to the following: 203.98.182.163, 203.98.182.163, 203.129.72.215.

Such a proxy server or to forward your information to access your objects, not to hide the true identity of purpose.

Third, the case of using ordinary anonymous proxy server: Anonymous Proxies

  • The last REMOTE_ADDR = proxy IP
  • HTTP_VIA = proxy IP
  • HTTP_X_FORWARDED_FOR = the IP proxy server, passes through a plurality of proxy servers, this value is similar to the following: 203.98.182.163, 203.98.182.163, 203.129.72.215.

Such cases, hide your real IP, but revealed to access the object that you are using a proxy server to access them.

Fourth, the case of fraudulent use a proxy server: Distorting Proxies

  • REMOTE_ADDR = proxy IP
  • HTTP_VIA = proxy IP
  • HTTP_X_FORWARDED_FOR = random the IP, passes through a plurality of proxy servers, this value is similar to the following: 203.98.182.163, 203.98.182.163, 203.129.72.215.

Tell access objects that you use a proxy server, but made up a false random IP instead of your real IP spoofing it.

Fifth, the case of using high anonymous proxy server: High Anonymity Proxies (Elite proxies)

  • REMOTE_ADDR = proxy IP
  • HTTP_VIA = did not show values ​​or
  • HTTP_X_FORWARDED_FOR = value not displayed or not, passes through a plurality of proxy servers, this value is similar to the following: 203.98.182.163, 203.98.182.163, 203.129.72.215.

Complete with information about the proxy server replaces all of your information, just as you are fully using the proxy server that direct access to the object.


Guess you like

Origin www.cnblogs.com/doit8791/p/11817929.html