使用网站站长工具取消屏蔽资源
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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。"],[[["\u003cp\u003eGoogle 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.\u003c/p\u003e\n"],["\u003cp\u003eThe report identifies hosts with blocked resources, lists the specific resources, and shows the pages embedding them, guiding webmasters through diagnosis and resolution.\u003c/p\u003e\n"],["\u003cp\u003eAn 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.\u003c/p\u003e\n"],["\u003cp\u003eWebmasters are advised to prioritize unblocking resources that create significant visual differences when blocked, focusing on hosts they can control.\u003c/p\u003e\n"]]],["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"],null,["# Unblocking resources with Webmaster Tools\n\nWednesday, March 11, 2015\n\n\nWebmasters often use linked images, CSS, and JavaScript files in web pages to make them pretty and\nfunctional. If these resources are blocked from crawling, then Googlebot can't use them when it\nrenders those pages for Search. Google Webmaster Tools now includes a\n[Blocked Resources Report](https://support.google.com/webmasters/answer/6153277)\nto help you find and resolve these kinds of issues.\n\n\nThis report starts with the names of the hosts from which your site is using blocked resources\nsuch as JavaScript, CSS, and images. Clicking on the rows gives you the list of blocked resources\nand then the pages that embed them, guiding you through the steps to diagnose and resolve how\nwe're able to crawl and index the page's content.\n\n\nAn update to\n[Fetch and Render](https://support.google.com/webmasters/answer/6066467)\nshows how these blocked resources matter. When you request a URL be fetched and rendered, it now\nshows screenshots rendered both as Googlebot and as a typical user. This makes it easier to\nrecognize the issues that significantly influence why your pages are seen differently by\nGooglebot.\n\n\nWebmaster Tools attempts to show you only the hosts that you might have influence over, so at the\nmoment, we won't show hosts that are used by many different sites (such as popular analytics\nservices). Because it can be time-consuming (usually not for technical reasons!) to update all\nrobots.txt files, we recommend starting with the resources that make the most important visual\ndifference when blocked. Our\n[Help Center article](https://support.google.com/webmasters/answer/6153277)\nhas more information on the steps involved.\n\n\nWe hope this new feature makes it easier for you to spot and then unblock resources used by your\nwebsite! Should you have any questions, you can drop by our\n[webmaster help forums](https://support.google.com/webmasters/go/community).\n\n\nPosted by\n[John Mueller](https://twitter.com/johnmu?rel=arthur), Webmaster\nTrends Analyst, Google Switzerland"]]