[WordPress] 外掛分享: Staging Bot Block

首頁外掛目錄 › Staging Bot Block
WordPress 外掛 Staging Bot Block 的封面圖片
全新外掛
安裝啟用
尚無評分
140 天前
最後更新
問題解決
WordPress 4.6+ PHP 7.2+ v1.0.1 上架:2025-12-12

內容簡介

總結:這款 WordPress 外掛可防止製作環境被 Google 或 Bing 重複索引,導致內容重複、關鍵字吞併和製作頁面被製作網域超越的情況發生。

1. 這個外掛能夠如何阻擋搜尋引擎機器人?
外掛會利用 403 回應和正確的 X-Robots-Tag 標頭來阻擋搜尋引擎機器人。

2. 當有需要時,外掛可以如何重新導向機器人(或機器人和使用者)到你的製作環境網域?
外掛可以將機器人(或機器人和使用者)重新導向至你的製作環境網域。

3. 外掛如何確保開發人員不會忘記製作保護措施是活躍的?
外掛會在 WordPress 管理區內顯示一個持久的警告橫幅,讓開發人員永遠不會忘記製作保護是有效的。

4. 如何支援透過簡單設定領域的其他使用者代理?
外掛透過簡便的設置領域來支援其他使用者代理。

5. 在製作環境中的重要注意事項有哪些?
如果你的主機平台或 CDN 使用完整頁面快取(如 Cloudflare APO、WP Rocket 的頁面快取或服務器層級的 varnish),緩存的 HTML 可能會直接提供,而不需要載入 WordPress。在這種情況下,Staging Bot Block 不能檢查使用者代理、阻擋機器人或發送重新導向標頭。

6. 如何確保正確的運作?
要確保正確的運作:
- 關閉 Cloudflare APO 或創建緩存規則以為製作子網域或 Googlebot/Bingbot 繞過快取。
- 清除或禁用製作環境中的緩存外掛程式。
- 避免製作網域的伺服器層級快取。

一旦緩存被停用或繞過,所有 HTML 頁面都將正確地回應 403 至被阻擋的機器人,或按照設定進行重新導向。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Staging Bot Block」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Staging sites often get accidentally indexed by Google or Bing, leading to duplicate content, keyword cannibalization, and production pages being outranked by staging domains. This plugin prevents that from happening.
Staging Bot Block can:
* Block search engine bots with a 403 response and proper X-Robots-Tag headers.
* Redirect bots (or bots and users) to your production domain when needed.
* Display a persistent warning banner inside the WordPress admin so developers never forget that staging protections are active.
* Support additional user agents through an easy settings field.
Important Notes for Staging Environments
If your hosting platform or CDN uses full-page caching (such as Cloudflare APO, WP Rocket’s page cache, or server-level varnish), cached HTML may be served directly without loading WordPress. When this happens, Staging Bot Block cannot inspect user agents, block bots, or send redirect headers.
To ensure correct behavior:
* Disable Cloudflare APO or create a Cache Rule to bypass cache for the staging subdomain or for Googlebot/Bingbot.
* Clear or disable caching plugins on staging.
* Avoid server-level caching for staging domains.
Once caching is disabled or bypassed, all HTML pages will properly return a 403 for blocked bots or a redirect when configured.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon