当前位置:网站首页>谷歌AdSense提示广告抓取工具错误,这可能导致收入减少怎么办
谷歌AdSense提示广告抓取工具错误,这可能导致收入减少怎么办
2022-04-22 10:17:00 【李洋个人博客】
最近发现我的导航网站没有了广告,是的空白一片,想着是不是被禁了,然后登录账户查看,谷歌给非提示是“出现广告抓取工具错误,这可能导致收入减少。”,点击右侧操作才提示抓取工具:Robots.txt 文件无法访问导致的原因,好吧,我第一印象就是怎么可能呢,我又没删除,去网站目录查看果真没有这个文件了,好吧,我的错。
看到了吧,就是这样的错误,点击修正按钮后弹出新窗口页面,问题有两个:
一是:抓取工具,Robots.txt 文件无法访问。 二是:抓取工具,未知错误。
但是归根结底就是一个,因为无法抓取Robots.txt文件所以才会导致未知错误,那么知道原因了就得解决,如图:
解决的办法其实很简单,仅仅需要重新设置下Robots.txt文件内容即可,代码如下(仅适用zblog程序):
User-agent: *
Allow: /feed.php
Allow: /zb_system/script/c_html_js_add.php
Disallow: /*.php
Disallow: /*.ttf
Disallow: /*.eot
Disallow: /*.woff
Disallow: /zb_system/
Disallow: /zb_users/data/
Disallow: /zb_users/logs/
Sitemap: /sitemap.xml
“User-agent”的意思针对搜索引擎蜘蛛,该项的值设为“*”,表示的是所有的搜索引擎蜘蛛。
“Allow”的意思是希望被搜索引擎抓取的一组url链接,而这url也可以是完整或者部分。如:Allow:/feed.php,搜索引擎可以访问/feed.phpy页面。Allow通常和Disallow搭配使用的,同意访问部分网页并禁止访问其他网页URL链接。
“Disallow”的意思是告诉搜索引擎不要抓网站下的 zb_system 文件夹里的所有文件,这个根据实际情况添加就行。
最后一行“Sitemap”是告诉搜索引擎网站地图的链接,最好是xml格式的,这个zblog应用中心后台插件可以自行免费下载。
设置完成后,上传到网站根目录,不知道的,自己测试http://域名/robots.txt,如果可以访问就正确,访问不了就是不是根目录,一切准备就绪就等待谷歌的爬虫重新抓取,就目前而言,从我修改完成到今天还是没有再次抓取,谷歌也声明了:抓取过程是自动执行的,因此,他们无法应您的请求更频繁地执行抓取。
版权声明
本文为[李洋个人博客]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1985611
边栏推荐
- Ukui3 supports openeuler 22.03 LTS
- 多语言通信基础 05 go的grpc体验
- Multi target tracking extended Kalman filter (EKF)
- TIANTI 22 analog l3-2 puzzle a punch in reward (30 points)
- You need to specify one of MySQL_ ROOT_ PASSWORD, MYSQL_ ALLOW_ EMPTY_ PASSWORD and MYSQ
- Writing to remember the ~ goal and
- shell获取随机数和echo -e '\033[字背景颜色;字体颜色m字符串\033[0m'
- dataguard (ADG)备库移动(迁移)数据文件
- Implementation and analysis of watchablestore in etcd
- DPU 芯片头部企业云豹智能加入 openEuler社区,为数字中国基础设施助力
猜你喜欢

Sorting of remote sensing deep learning target detection data set

Drop down refresh and pull-up load of product list of uni app project

Usage of stringstream

source_ Insight is a method to create a new project and search for a variable or function in the whole document

Zhongshanghui ⺠ evolution of trading platform architecture: response to Apache shardingsphere

ORACLE数据库查询锁表语句sql脚本,以及删除锁信息脚本(数据库开发ETL、DBA必备)

JWT source code analysis (four layer package with schematic diagram)

Ukui3 supports openeuler 22.03 LTS

自学编程千万别再傻傻地读理论书,程序员:这都是别人玩剩下的

Challenges of enterprise web development
随机推荐
Difference between sub table and partition
linux7静默安装oracle12c报错[FATAL] [INS-35344]The value is not specified
Linux 7 silent installation of Oracle 11g
Simple operation of QT axobject Library
Basic concepts of radiometry
Unity3D build时错误提示:Missing Project ID in Unity 解决方案
Introduction and basic use of numpy Library
[moistening C language] Beginner - start from scratch - 5 (modular design - function, value transmission and address transmission)
UVC camera 封装类
Android被爆安全漏洞 根源是苹果的无损音频编解码器
A case of MySQL implicit conversion
中商惠⺠交易中台架构演进:对 Apache ShardingSphere 的应⽤
分表和分区的区别
Oracle 11.0 under Windows Upgrade from 2.0.1 to Oracle 11.0 2.0.4
浅析图片懒加载(三种实现方法与两种优化方式)
Multi target tracking extended Kalman filter (EKF)
SQL relational database management system
shell获取随机数和echo -e '\033[字背景颜色;字体颜色m字符串\033[0m'
JS clich é about this, constructor, prototype
Zhongshanghui ⺠ evolution of trading platform architecture: response to Apache shardingsphere