產品 SEO 與 GEO 代理 付費廣告代理 網站代理 轉換代理
運作方式 方案 常見問題 部落格 預約通話

Noindex 標記:作用是什麼,什麼時候該用

更新於 · 閱讀約 6 分鐘

簡短回答 noindex 標記告訴 Google 不要在搜尋結果中顯示某個網頁。把它加在不該有人從搜尋進入的網頁上:感謝頁、站內搜尋結果、登入和帳戶頁面、會員專屬內容。絕不要加在首頁、服務頁、地區頁或聯絡頁上。重複網頁用 canonical 標記,私密網頁用密碼。

想把這些用在您的生意上?預約一次 30 分鐘的免費通話,一起聊聊。

預約通話

noindex 標記有什麼作用

它是網頁程式碼裡的一行,請搜尋引擎不要把這個網頁放進搜尋結果。Google 的原話是:

"Google will drop that page entirely from Google Search results, regardless of whether other sites link to it." (Google Search Central: Block Search indexing with noindex) 譯文:「Google 會將該網頁從 Google 搜尋結果中完全移除,無論其他網站是否連結到它。」

網頁本身照常能用,有連結的人都能打開。只是別人搜尋時不會再看到它,Google 的 AI 回答也包括在內:Google 表示,網頁「must be indexed」(必須已建立索引)才能以連結形式出現在 AI 摘要或 AI 模式中(Google Search Central: AI features)。

設定方式有兩種,效果相同(Google Search Central):

位置寫法適用於
網頁 HTML 的 head 區段robots meta 標記:`meta name="robots" content="noindex"`一般網頁
伺服器的回應中(HTTP 標頭)`X-Robots-Tag: noindex`PDF、圖片、影片等沒有 HTML 的檔案

使用架站工具時,您幾乎不用碰程式碼:Wix 和 Squarespace 每個網頁都有「在搜尋中隱藏」的設定,WordPress 則由 SEO 外掛提供這個選項。

哪些網頁應該加 noindex?

只有那些作為搜尋結果會變成死路或令人尷尬的網頁。一般服務業網站,這樣的網頁不多。

網頁為什麼加 noindex
表單或預約送出後的感謝頁、確認頁沒人會搜尋它;訪客直接進到這裡就略過了表單,也會打亂您的潛在客戶追蹤
網站自己的站內搜尋結果頁內容單薄,是真實網頁無窮無盡的變體
登入、購物車、帳戶和結帳頁面對陌生人毫無用處
透過連結進入的會員專屬頁面或客戶入口網站Google 建議把「for direct sharing, collaboration, or utility」(用於直接分享、協作或工具用途)的網頁排除在搜尋之外(Google Search Central: Prevent abuse)
陌生使用者新發的留言或論壇貼文Google 建議在使用者建立信任之前先加 noindex,以勸退垃圾內容發送者(Google Search Central: Prevent abuse)
架站期間的測試版網站讓半成品不出現在搜尋結果中(用密碼更穩當,見下文)

如果某個網頁在這張表裡而您沒加 noindex,對小網站來說影響不大。真正的損失來自相反的錯誤。

哪些網頁絕不能加 noindex?

凡是您希望透過 Google 或 AI 回答為您帶來客戶的網頁:

  • 首頁。
  • 每一個服務頁(「疏通排水管」「牙齒美白」「遺產規劃」)。
  • 真正有用的城市或地區網頁。如果這些網頁幾乎一模一樣,應該把網頁本身改好(見服務區域的城市網頁)。
  • 關於我們、聯絡方式、評論和價格網頁。人們打電話之前,會搜尋您的名字加上這些詞。
  • 已經有瀏覽量的部落格文章或指南。
  • 任何有其他網站連結過來的網頁。noindex 會「regardless of whether other sites link to it」(無論其他網站是否連結到它)把網頁移除(Google Search Central),這些連結的價值也隨之流失。

這些網頁最常被誤加 noindex 的情況是網站改版:設計師隱藏了測試網站,上線時卻忘了關掉這個開關。見網站改版後流量下滑。

noindex 不是合適工具的情況

有三個問題,noindex 看起來能解決,其實解決得並不好。

問題為什麼不該用 noindex應該用
兩個網頁內容相同或相似Google 表示不建議為此使用 noindex,因為「it will completely block the page from Search」(它會把網頁完全擋在搜尋之外)(Google Search Central: Canonical URLs)重新導向,或指向主要網頁的 canonical 標記
私密資訊noindex 只對遵守它的搜尋引擎隱藏網頁。「Users and other search engines that don't support noindex can still access your page.」(使用者以及不支援 noindex 的其他搜尋引擎仍然可以存取您的網頁。)(Google Search Central: Remove information)密碼或登入
節省「檢索預算」Google 在移除加了 noindex 的網頁之前仍會檢索它,並稱之為「wasting crawling time」(浪費檢索時間)(Google Search Central: Crawl budget)小網站什麼都不用做。Google 的檢索預算指南針對的是 10,000 個以上網頁且每天變動,或 100 萬個以上網頁且每週變動的網站

讓 noindex 生效的規則

  • Google 必須能讀取這個網頁。 如果 robots.txt 封鎖了它,Google 就看不到 noindex,網頁可能繼續留在搜尋結果中(Google Search Central)。不要在 robots.txt 中封鎖加了 noindex 的網頁。
  • 在 robots.txt 裡寫 noindex 沒有用。 Google 表示把這條規則放在那裡「is not supported」(不受支援)(Google Search Central)。
  • 不要把加了 noindex 的網頁放進 Sitemap。 Google 表示 Sitemap 應列出「you want to see in Google's search results」(您希望出現在 Google 搜尋結果中)的網頁(Google Search Central: Build a sitemap)。
  • 不會立即生效。 Google 下次造訪後才會移除網頁,對於不太重要的網頁,「it may take months」(可能需要幾個月)(Google Search Central)。可以用 Search Console 的網址審查工具(URL Inspection)要求重新檢索。
  • 標記衝突: 規則衝突時,例如同一網頁上既有「index」又有「noindex」,「the more restrictive rule applies」(以較嚴格的規則為準)(Google Search Central: Robots meta tag)。noindex 優先。

如何檢查網頁是否加了 noindex

  • 單一網頁,手動檢查: 打開網頁,檢視原始碼,搜尋「noindex」。如果是 PDF 或其他檔案,這條規則在伺服器的回應裡,請用下一種方法。
  • 單一網頁,從 Google 的角度: 把網址貼到 Search Console 的網址審查工具中。如果 Google 發現了 noindex,「Indexing allowed?」(是否允許建立索引?)一行會顯示「No」(Search Console Help: URL Inspection)。
  • 整個網站: Search Console 的「網頁」報表會列出所有「Excluded by 'noindex' tag」(因「noindex」標記而遭到排除)的網頁(Search Console 中網頁未建立索引)。每次改版後都要檢查。

範例

水電行的預約感謝頁

感謝頁在搜尋公司名稱時有排名,於是有些訪客沒預約就進到這個網頁,分析報表卻把他們算成潛在客戶。為這個網頁加上 noindex,並從 Sitemap 中移除。等 Google 移除它之後,報表中的潛在客戶數會更貼近實際的預約數。

一家有兩個美白網頁的牙醫診所

一個網頁叫「牙齒美白」,另一個叫「專業牙齒美白」,內容幾乎逐字相同。替其中一個加 noindex 會丟掉它的連結。更好的做法是:合併兩個網頁,把較弱的網頁重新導向到較強的網頁。

會計師的客戶入口網站

客戶上傳檔案的網頁出現在 site: 搜尋中。noindex 能讓它們不出現在 Google 上,但有連結的人仍然進得去。真正的解決辦法是登入,noindex 作為第二層保護。

常見問題

noindex 會影響網站的其他網頁嗎?

不會。它只移除加了這個標記的網頁。其他網頁照常憑自身取得排名。

noindex 和 nofollow 有什麼差別?

noindex 的意思是「不要在結果中顯示這個網頁」。nofollow 的意思是「不要追蹤這個網頁上的連結」(Google Search Central: Robots meta tag)。您自己的網頁很少需要 nofollow。

加了 noindex 的網頁還會出現在 ChatGPT 或 Perplexity 中嗎?

有可能。noindex 只對支援它的搜尋引擎有效,Google 也表示其他引擎「can still access your page」(仍然可以存取您的網頁)(Google Search Central: Remove information)。要讓網頁真正保密,請放在登入之後。

如何取消 noindex?

刪除標記或關閉相應設定,然後在 Search Console 中用網址審查工具要求建立索引。Google 重新檢索後,網頁就可以重新出現。

您的情況不同?

繼續閱讀

下一篇檢索與索引:Google 如何找到並儲存您的網頁Google 依序找到、檢索、轉譯並索引一個網頁:每個階段發生什麼、什麼會擋住它,以及如何檢查您自己的網站。

自己動手

可檢索性檢查清單:讓 Google 能造訪到每個頁面小型企業網站的可檢索性檢查清單:用免費工具找出孤立頁面、robots.txt 封鎖、失效連結、重新導向鏈和伺服器錯誤。

問我們一個問題

一句話就夠了。我們會以電子郵件回覆。

出處

  1. Google Search Central: Block Search indexing with noindex
  2. Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications
  3. Google Search Central: How to specify a canonical URL with rel="canonical" and other methods
  4. Google Search Central: Large site owner's guide to managing your crawl budget
  5. Google Search Central: Remove information from Google
  6. Google Search Central: Prevent abuse on your site and platform
  7. Google Search Central: Build and submit a sitemap
  8. Google Search Central: AI features and your website
  9. Search Console Help: URL Inspection tool