使用網站管理員工具解除封鎖資源
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 (世界標準時間)。"],[[["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"]]