Description of CURL HTTP construct request header to implement spoofed source IP
The only x-forwarded-for and CLIENT-IP,REMOTE_ADDR forged.
$_server[' REMOTE_ADDR ' is a parameter passed to PHP by Nginx, which represents the IP of the client that is directly communicating with the current nginx (cannot be forged)
PHP to obtain client IP, Proxy server IP, there are several types of cases:
first, do not use the proxy server situation:
REMOTE_ADDR = Your IP
Http_via = no value or no display
Http_x_forwarded_for = no value or no display
Second, the use of transparent proxy server situation: "Transparent proxies"
REMOTE_ADDR = Last Proxy server IP
Http_via = Proxy Server IP
Http_x_forwarded_for = Your real IP, after multiple proxy servers, this value is similar to the following: 211.98.182.163, 211.98.182.163, 211.129.72.215.
A transparent proxy will not be able to hide your true identity by forwarding your information to your Access object.
third, the use of ordinary anonymous proxy server situation: Anonymous proxies
REMOTE_ADDR = Last Proxy server IP
Http_via = Proxy Server IP
http_x_forwarded_for = Proxy Server IP, after multiple proxy servers, this value is similar to the following: 111.98.182.163, 211.129.72.215.
The normal anonymous proxy server hides your real IP, but reveals to the Access object that you are using a proxy server to access them.
Iv. use of deceptive proxy servers: distorting proxies
REMOTE_ADDR = Proxy Server IP
Http_via = Proxy Server IP
Http_x_forwarded_for = Random IP, after multiple proxy servers, this value is similar to the following: 111.98.12.163, 111.98.12.163, 111.19.72.25.
The deceptive proxy server tells the Access object that you used the proxy server, but fabricated a bogus random IP to deceive it instead of your real IP.
V. The use of High anonymous proxy server: Gao anonymity proxies (Elite proxies)
REMOTE_ADDR = Proxy Server IP
Http_via = no value or no display
Http_x_forwarded_for = no value or no display.
Completely replaces all your information with the proxy server's information, as if you were using that proxy server directly to access the object. This is the advantage of high anonymity.