bobots.txt 文件位置:

网站根目录:/var/www/html/robots.txt

 

文件内容:

 

User-agent: * 
Disallow: /?* 
Disallow: /pop/*.html 
Disallow: /pinpai/*.html?* 
User-agent: EtaoSpider 
Disallow: / 
User-agent: HuihuiSpider 
Disallow: / 
User-agent: GwdangSpider 
Disallow: / 
User-agent: WochachaSpider 
Allow: /

若某网站无robots.txt文件,即默认对于爬虫无限制

 

 

而实际上,robots协议只是一个说明文件,指出需遵守的爬虫协议,并没有实际的限制效果

posted on 2021-08-08 00:46  讲道理好嘛  阅读(291)  评论(0编辑  收藏  举报