使用网站站长工具取消屏蔽资源
2015年3月18日星期三
原文:
Unblocking resources with Webmaster Tools
作者:
John Mueller
,
网站趋势分析师
为了让网页既美观又好用,网站站长常常会在网页中使用链接的图片、CSS 文件和 JavaScript 文件。如果这些资源被禁止抓取,那么 Googlebot 在针
对用户搜索呈现相应网页时,将无法使用这些资源。Google 网站站长工具现在提供
“禁止抓取的资源”报表
,以便帮助您发现并解决此类问题。
此报表的开头是主机名称,以显示您的网站使用了哪些主机上的禁止抓取的资源(例如 JavaScript 文件、CSS 文件和图片)。如果您点击各行,系统会显示禁止抓取的资源列表以及嵌入了这些资源的网页,并指导您逐步诊断和解决问题,从而使我们能够抓取相应网页的内容并将其编入索引。
我们对
抓取并呈现
功能进行了更新,以便能够显示这些禁止抓取的资源有哪些影响。当您请求抓取并呈现某个网址时,该功能现在能够同时显示呈现给 Googlebot 和普通用户的网页样貌对应的屏幕截图。这样一来,您可以更轻松地发现在导致向 Googlebot 呈现不一样的网页方面具有显著影响的问题。
网站站长工具会尝试仅显示您可能有控制权限的主机,因此,目前我们不会显示众多其他网站(例如热门分析服务网站)使用的主机。由于更新所有 robots.txt 文件可能要花费大量时间(通常并不是技术原因导致的!),因此我们建议先从被禁止抓取后对网页外观影响最大的资源着手。如需更详细地了解相关步骤,请参阅我们的
帮助中心文章
。
我们希望这项新功能可让您更轻松地发现网站使用了哪些禁止抓取的资源并对其取消屏蔽!如果您有任何疑问,请随时在我们的
网站站长帮助
论坛
中发帖咨询。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2015-03-01。
[null,null,["最后更新时间 (UTC):2015-03-01。"],[[["Google Webmaster Tools now includes a Blocked Resources Report to help webmasters find and resolve issues with blocked resources like images, CSS, and JavaScript that prevent Googlebot from fully rendering web pages."],["The report identifies hosts with blocked resources, lists the specific resources, and shows the pages embedding them, guiding webmasters through diagnosis and resolution."],["An updated Fetch and Render tool shows screenshots of pages rendered both as Googlebot and a typical user, highlighting differences caused by blocked resources and their impact on indexing."],["Webmasters are advised to prioritize unblocking resources that create significant visual differences when blocked, focusing on hosts they can control."]]],["Google Webmaster Tools introduced the Blocked Resources Report to identify issues where JavaScript, CSS, and images are blocked from crawling. The report lists hosts with blocked resources, then the specific resources and the pages embedding them. The Fetch and Render update now shows screenshots of how Googlebot and users see a page, highlighting the impact of blocked resources. Prioritization of unblocking is recommended, starting with the most visually impactful. Additional information is available in the Help Center article.\n"]]