[WordPress] 外掛分享: Staging Bot Block

WordPress 外掛 Staging Bot Block 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Staging Bot Block」是 2025-12-12 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-12-13,距離現在已有 75 天。
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jaredpomranky |

外掛標籤

seo | robots | staging | bot block | redirects |

內容簡介

總結:這款 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 至被阻擋的機器人,或按照設定進行重新導向。

原文外掛簡介

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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Staging Bot Block」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • WordPress Block Analytics Spam 》WordPress Analytics Block Spam是一個WordPress外掛,可以阻止在Google Analytics參照報告中看到的不需要的機器人。, , 該外掛使用一個不斷更新的公共協作列...。
  • Site-First SEO 》<html>, <body>, , <h3>Site-First SEO 總結:</h3>, <p>Site-First SEO 是傳統 SEO 插件的強大替代方案。不依賴第三方 API,S...。

文章
Filter
Mastodon