Solution to ip address blocking during php collection _ PHP Tutorial

Source: Internet
Author: User
Solution for ip address blocking during php collection. I did not find any information on the Internet, but I am very sorry. when I was looking for it, someone mentioned the search engine crawler USERAGENT. Although I found some materials on the Internet, I did not find them. However, I did not have to worry about it. when I found them, someone mentioned the USERAGENT that uses search engine crawlers. Even though I only mentioned a little bit, I still thought of listing my solutions,

1. use Snoopy or curl to pass the USERAGENT value of the search engine crawler.
View search engine crawler USERAGENT value: http://www.jb51.net/yunying/29357.html

2. use Snoopy or curl to pass the referer value.
For example, $ snoopy-> referer = 'http: // www.google.com ';
$ Header [] = "Referer: http://www.google.com /";

3. use the Snoopy or curl proxy.
For example: $ snoopy-> proxy_host = "59.108.44.41 ";
$ Snoopy-& gt; proxy_port = "3128 ";

4. use Snoopy or curl to prevent IP addresses.
For example, $ snoopy-> rawheaders ['X _ FORWARDED_FOR '] = '2017. 0.0.1 ';

5. use php and a new route program to obtain a new IP address.

6. if you find that the re-routing is still blocked, it is possible that the other party has blocked your mac address. now all routers have forged MAC functions. you can write a program or manually modify the MAC address of the router, there are also tools for modifying the mac address of the NIC.

Bytes. Although I only mentioned a little bit, I still...

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.