Skip to content

[seo] staging 站可被搜尋引擎索引:meta robots index,follow+robots.txt 全開放、無 noindex 防線(staging 實測 v2.27.1) #604

Description

@s123104

摘要

staging 實站(https://ratewise-staging.zeabur.app/ratewise/)對爬蟲完全開放:`index, follow、robots.txt Allow: /、回應無 X-Robots-Tag`。唯一防線是跨網域 canonical 指向 production——canonical 僅為 hint 非指令,staging 網域仍可能被 Google 收錄,稀釋正式站權重並曝光實驗中功能。

背景/證據(staging 實測)

  • 版本:app-version 2.27.1,build-time 2026-07-05T19:27:01Z(experiment 分支 8c3bd473
  • curl -s https://ratewise-staging.zeabur.app/ratewise/ | rg 'name="robots"'content="index, follow, max-image-preview:large, ..."(全站各路由皆同,含 faq/guide/usd-twd)
  • curl -sI https://ratewise-staging.zeabur.app/ratewise/ → 無任何 X-Robots-Tag 標頭
  • curl -s https://ratewise-staging.zeabur.app/robots.txt → 直接提供 production robots.txt 內容(Allow: /+各 AI bot 全開放)
  • canonical 正確指向 https://app.haotool.org/ratewise/(此部分符合預期,不需修改)
  • staging sitemap.xml 可達(內容為 production URL,影響較小)

影響

  • Zeabur 子網域可經憑證透明度日誌、外部連結等途徑被發現;Google 對跨網域 canonical 僅視為 hint,staging 頁面實務上可能被索引成重複內容
  • 實驗分支未上線的 UI/文案(v2 模式、E4/E5 改版內容)可能提前曝光於搜尋結果
  • QA/自動化流量若被收錄快照,正式站品牌呈現失控

範圍

  • staging 部署層(Zeabur nginx 設定或 staging build 環境變數),不影響 production
  • 建議擇一:
    1. staging host 回應加 X-Robots-Tag: noindex, nofollow(nginx 層,最不侵入 build)
    2. staging build 以環境變數切換 <meta name="robots">noindex
    3. staging 專屬 robots.txt Disallow: /
  • 保留現有 canonical → production(正確行為)

驗收標準

  • curl -sI https://ratewise-staging.zeabur.app/ratewise/ 可見 X-Robots-Tag: noindex(或 meta robots 為 noindex)
  • staging 全路由(app 頁+內容頁+金額頁)皆帶 noindex 訊號
  • production https://app.haotool.org/ratewise/ 的 robots/meta 不受影響(仍為 index,follow)
  • site:ratewise-staging.zeabur.app 收錄數趨零(追蹤項)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions