跳到内容

Staging Bot Block

v1.0.1

Jared Pomranky · 2025年12月13日 上架

Prevent search engines from indexing staging sites by blocking or redirecting bots, with a clear admin warning banner.

正在使用
10 以下
评分
暂无
累计下载
532
最近更新
2025年12月14日
需要 WordPress 4.6+已测试到 6.9.12PHP 7.2+

贡献者

截图

Plugin settings screen.
Plugin settings screen.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums