# Staging privacy: keeping staging out of search engines

> How WP Waterfall keeps staging and preview environments out of search engines and AI crawlers, what each layer blocks, and what you can still do.

Source: https://docs.wpwaterfall.com/staging-privacy

Every environment except live is private to search engines by default. That covers staging and preview environments. You do not need to turn anything on, and you cannot turn it off by mistake from WordPress.

Live is different. WP Waterfall adds none of this to your live site's own domain, so your live site is indexed as usual. The one exception is the temporary `wpwaterfall.dev` address of a live site: it always carries the noindex header and blocks AI crawlers, so the site is indexed once, under your own domain (see [Temporary domain](https://docs.wpwaterfall.com/temporary-domain)). This works like Pantheon's test and preview environments: only live is meant to be found.

## What is blocked

On a staging or preview environment:

- **Search engines** such as Google, Bing, Yahoo, DuckDuckGo, Baidu, Yandex, and Apple get a `403 Forbidden` answer.
- **SEO crawlers** such as AhrefsBot, SemrushBot, MJ12bot, DotBot, BLEXBot, and PetalBot get a `403`.
- **AI crawlers** such as GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, anthropic-ai, CCBot, PerplexityBot, Bytespider, Amazonbot, Diffbot, cohere-ai, and Meta-ExternalAgent get a `403`.
- **Archivers** such as the Internet Archive get a `403`.
- **Link preview bots** such as `facebookexternalhit`, Twitterbot, Slackbot, LinkedInBot, Discordbot, and WhatsApp get a `403` too. Staging refuses all bot traffic.
- **Any other crawler** that names itself with the word bot, crawler, spider, scraper, or Scrapy in its user agent gets a `403`. Cloudflare's own list of verified bots is refused at the edge as well.
- **Every response** carries the header `X-Robots-Tag: noindex, nofollow, noarchive, nosnippet, noimageindex, notranslate`, including error pages, images, and other static files.
- **`/robots.txt`** answers `User-agent: *` and `Disallow: /`. The web server sends it, so a plugin or a robots.txt file in the site cannot change it. Crawlers may always read it.

Link previews do not work on staging or a preview, because they are bots. Share a screenshot or add a password instead. Tools such as `curl` and `wget`, WP Waterfall's own health checks, and Cloudflare's health checks are not blocked, so you can still check the site from a terminal.

This is fixed. Live's bot protection setting does not apply to staging or preview environments, and you cannot turn this off from the dashboard, the API, or MCP. It covers the temporary domain and any custom domain you add to the environment.

## How the layers work

WP Waterfall keeps the environment private in four layers, so one layer failing does not expose it.

1. **The web server.** The environment's Nginx sends the noindex header on every response, answers `/robots.txt` itself, and refuses known crawlers by their user agent. The environment name the server reads decides this, so a live environment never gets it.
2. **WordPress.** WP Waterfall sets **Settings > Reading > Discourage search engines** (the `blog_public` option) when the environment is created, and again after every clone, reset, and content push into it. Those jobs copy another database, and live's setting would come with it, so the job sets it again after the copy. The job drawer does not list this in its event log, because it is the normal state of every new site. Support can still see it. The WP Waterfall MU plugin also forces it: `blog_public` always reads as off, every page gets a `noindex, nofollow` robots tag, the WordPress XML sitemaps are off, and WordPress sends no pings, pingbacks, or trackbacks. Every wp-admin screen shows the notice **This is a staging site. Search engines are blocked.**
3. **Cloudflare.** WP Waterfall never caches a staging or preview environment at the edge, even if you turn edge caching on in its Tools tab; the job keeps it off and says why, and Cloudflare keeps no copy of a page or a file. The server keeps no page cache there either. Pages therefore always come from WordPress, where layers 1 and 2 apply. See [Clear all caches](https://docs.wpwaterfall.com/clear-caches#staging-and-preview-environments). This uses no Cloudflare firewall rule, so it works the same for any number of environments. See [Bot protection](https://docs.wpwaterfall.com/bot-protection) for the rules you control yourself.
4. **No listing anywhere.** A staging environment's address follows your site's label (`staging-elric.wpwaterfall.dev` for `live-elric.wpwaterfall.dev`), so it is not secret. The three layers above keep it out of search results all the same, and a password (below) keeps people out.

WP Waterfall never lists staging or preview domains in sitemaps, on public pages, or on the status page, and only sends them to the people who work on the site.

## Promoting to live

A promote copies code by default, and live keeps its own search setting. When you also push the database from staging to live, WP Waterfall reads live's **Discourage search engines** setting before the copy and puts it back afterwards, so live does not stay hidden because staging was.

## Certificates and certificate transparency

Every certificate a public authority issues is written to public certificate transparency logs, and anyone can search them. The certificate your visitors see at Cloudflare is the platform's wildcard for `*.wpwaterfall.dev`, which names no single site, and the hop from Cloudflare to your server uses a wildcard too. One certificate does name the environment: the one for a custom staging subdomain you add, such as `staging.example.com`.

That name appears in certificate transparency logs, and a staging address follows your site's name in any case. The noindex header, robots.txt, and crawler blocking still apply, but treat a staging name as findable, not secret.

## Add a password

Search engine blocking keeps crawlers out, not people. To keep everyone without a password out of a staging or preview environment, turn on **Password protection**:

1. Open the site, pick staging or the preview in the top bar, and open **Tools**.
2. On the **Password protection** card, click **Enable**, choose a user name, and enter a password of at least 12 characters (or click **Generate**).
3. Click **Turn on**. The environment's web server asks for the user name and password before it shows any page, with the standard browser prompt.

It is off until you turn it on, so a new environment stays as open as before. WP Waterfall stores only a hash of the password, never the password, and cannot show it again: save it in your password manager. To change it, enable it again with a new password. To remove it, click **Disable**. Each change is a job.

Two things to know. Link previews on Slack or Facebook fail while a password is on, because their bots cannot sign in. And the password does not apply to Git: Git over SSH uses your keys, and Git over HTTPS uses [access tokens](https://docs.wpwaterfall.com/git-access#can-i-use-https-with-a-token), so pushing code keeps working. Live is better left without a password: use a staging environment for work that must stay private.

## What you can still do

- **Share the link.** Anyone with the address can open the environment in a browser, and the address follows your site's name. Add a password as above when the content is private.
- **Rename the site.** The temporary domains of live, staging, and every preview follow the site name, so renaming the site moves them all. You cannot rename one of them by itself.
- **Check it.** Open `https://<your staging domain>/robots.txt`, or look for the `X-Robots-Tag` header in your browser's developer tools.
