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

Solution to IP being blocked during PHP collection_PHP Tutorial

WBOY
Release: 2016-07-21 15:34:16
Original
1053 people have browsed it

I searched for some information on the Internet but couldn't find it. The hard work paid off. When I was 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 proxy.
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 options on the Internet. A tool specifically designed to modify the mac address of the network card.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322449.htmlTechArticleI searched for some information on the Internet but couldn’t find it. The hard work paid off. When I was searching, someone mentioned Arrived USERAGENT using search engine crawler spider. Although I only mentioned a little bit...
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