Home > Backend Development > PHP Tutorial > Flag_activity_clear_top Solution to IP being blocked during PHP collection

Flag_activity_clear_top Solution to IP being blocked during PHP collection

WBOY
Release: 2016-07-29 08:43:37
Original
918 people have browsed it

I searched for some information on the Internet but couldn't find it. The hard work paid off. While searching, someone mentioned USERAGENT, which uses a search engine crawler spider. Although I only mentioned a little bit, I still thought of it and listed my solutions,
1. Use Snoopy or curl to pass the USERAGENT value of the search engine crawler.
View the USERAGENT value of the search engine crawler: 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 Snoopy or curl acting.
For example: $snoopy->proxy_host = "59.108.44.41";
$snoopy->proxy_port = "3128";
4. Use Snoopy or curl to prevent IP creation.
For example: $snoopy->rawheaders['X_FORWARDED_FOR'] = '127.0.0.1';
5. Use PHP and a program to restart routing, so that you will get a new IP address.
6. If you find that the route is still blocked after restarting, it is possible that the other party has blocked your mac address. Now routers have the function of forging MAC. You can write a program or manually modify the MAC address of the router. There are also special methods for modifying the network card mac address on the Internet. Tool of.

The above introduces the solution to the flag_activity_clear_top IP being blocked when collecting PHP, including the content of flag_activity_clear_top. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template