# Staging Protection for WordPress

> Hide the whole site behind a shared password for visitors who are not logged in. wp-admin and the login page keep working. Part of Toggleworks, one plugin…

TW-SEC-16 Security


Hide the whole site behind a shared password for visitors who are not logged in. wp-admin and the login page keep working.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Staging Protection

**Part number**
: TW-SEC-16
**Section**
: [Security](https://togglework.app/features/security/)
**Settings**
: 8 (2 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Staging and development copies left open on the internet get indexed by Google, compete with the live site, and give attackers an older, less-maintained copy to probe.

### What it does

- Hides the whole site behind a shared password for visitors who aren’t logged in.
- wp-admin and the login page keep working; chosen roles and IPs skip the password.
- Tells search engines not to index the site (noindex header and a disallow-all robots.txt).
- Optionally lets speed-test tools in, and protects only chosen addresses.

![Staging Protection settings screen in the Toggleworks WordPress plugin, showing Shared password, Remember the password for (days), Logged-in roles that skip the password, IPs that skip the password](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/security-staging-protection.webp?v=1795524358)

The Staging Protection screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch it on as soon as you create a staging copy, and set a shared password.
2. Add your office IP if the team shouldn’t need the password.

## What you can set

Switch Staging Protection on in Toggleworks → Security, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Shared password
- Remember the password for (days)
- Logged-in roles that skip the password
- IPs that skip the password
- Tell search engines not to index the site
- Leave these open to everyone REST API · admin-ajax.php and admin-post.php · RSS feeds
- Let speed-test tools in
- Only protect these addresses

## Good to know

- Make sure it is off on the live site; it blocks search engines.
- Speed-test tools are recognised by user agent, which anyone can imitate. Turn that option off when you are done testing.

## One less plugin to install

Staging Protection does a job people often install a separate plugin for:

- Keeping search engines and visitors out of stagingOften done with WP Staging

## Comes with 187 more parts

Staging Protection is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Security parts](https://togglework.app/features/security/)

### People also look for it as

- password protect
- staging
- maintenance
- private site
- coming soon
- noindex
- development

## Often switched on with it

- [Environment Indicator](https://togglework.app/features/interface/environment-indicator/) — TW-ADM-09 · Show a colored Local / Staging / Production badge in the admin bar so you always know which site you are editing. · 10 settings
- [Mail Control (Test Mode)](https://togglework.app/features/email/mail-control/) — TW-EML-04 · Stop all outgoing email, or send every email to one address instead. Ideal for staging and development sites. · 3 settings
- [Maintenance Mode](https://togglework.app/features/core/maintenance-mode/) — TW-COR-13 · Show visitors a maintenance or coming-soon page while you work. Chosen roles and IPs still see the site. · 10 settings
- [Staging Site](https://togglework.app/features/agency/staging/) — TW-AGY-10 · Create a private copy of this site in /staging to test updates and changes safely, then push the database back to live — or throw… · 1 setting
- [Content Protection](https://togglework.app/features/security/content-protection/) — TW-SEC-03 · Make casual copying harder: block right click, text selection, copy and paste, image dragging, printing and the view-source /… · 5 settings
- [Email & Phone Protection](https://togglework.app/features/security/email-protection/) — TW-SEC-05 · Hide email addresses and phone numbers on your pages from spam bots, while visitors still see and click them normally. · 3 settings

## Questions

**Is Staging Protection included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Staging Protection among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Staging Protection slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Staging Protection only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Staging Protection before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/security/staging-protection/
