Description of CURL HTTP construct request header to implement spoofed source IP

Source: Internet
Author: User
Tags anonymous curl

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.