Web crawler-Does PHP identify the client's real IP is a pseudo proposition at all?

Source: Internet
Author: User
At present, the server anti-crawler, limit the number of user requests, are the use of restrictions on client IP policies, online about PHP recognition client IP is nothing more than crawl the following three kinds:
Http_client_ip
Http_x_forwarded_for
Remote_addr
And the first two can be arbitrary random forgery, the third can also use proxy IP spoofing server ... Does PHP really not recognize the real IP of the client? There's no way to crawl a spider?

Reply content:

At present, the server anti-crawler, limit the number of user requests, are the use of restrictions on client IP policies, online about PHP recognition client IP is nothing more than crawl the following three kinds:
Http_client_ip
Http_x_forwarded_for
Remote_addr
And the first two can be arbitrary random forgery, the third can also use proxy IP spoofing server ... Does PHP really not recognize the real IP of the client? There's no way to crawl a spider?

In this words, it's like Java can recognize it.

There should be no way to identify fake IPs.

I didn't find out which one was fully identified.

Make a proxy server before the application server, and then use Http_x_forwarded_for to compare the points.
As for the "proxy server", it seems to be really a problem of no solution.

  • Related Article

    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.