使用網站管理員工具解除封鎖資源
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
2015年3月12日星期四
原文:
Unblocking resources with Webmaster Tools
作者:
John Mueller
, Webmaster Trends Analyst
網站管理員通常會在網頁中使用連結圖片、CSS 和 JavaScript 檔案,讓網頁不但美觀,更具備豐富的實用功能。但如果這些資源遭到封鎖,無法由搜尋引擎進行檢索,Googlebot 在轉譯這些網頁以供搜尋時,就無法使用這些資源。Google 網站管理員工具現在可提供
「封鎖的資源」報告
,協助您找出並解決這類問題。
這份報告會先列出一份主機清單,指出您的網站目前使用的遭封鎖資源 (例如 JavaScript、CSS 和圖片) 是由哪些主機所提供。點選各列即可查看遭到封鎖的資源詳細清單以及嵌入這些資源的網頁。這份報告隨後會導引您逐步診斷並解決問題,讓我們得以檢索網頁內容並建立索引。
擷取並轉譯
的更新內容也說明了這些遭封鎖資源的重要性。現在當您要求截取並轉譯網址時,會顯示以 Googlebot 角度和一般使用者角度所轉譯的螢幕擷取畫面。如此一來,您就可以更容易發現問題癥結,找出 Googlebot 看到的網頁內容有所差異的原因。
網站管理員工具僅會顯示您可能能夠處理的主機,因此目前我們不會顯示各個不同網站 (例如熱門的分析服務) 所使用的主機。由於要更新所有 robots.txt 檔案相當耗時 (原因通常不是技術問題!),建議您先從受到封鎖時會造成重大視覺效果差異的資源著手。如要進一步瞭解相關步驟,請參閱我們的
說明中心
文章
。
希望這項新功能可讓您更輕鬆找出問題,並順利將您的網站所使用的資源解除封鎖!如果您有任何問題,歡迎前往
網站管理員說明
論壇
提問。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2015-03-01 (世界標準時間)。
[null,null,["上次更新時間: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"]]