SNXWorks Safe Staging Guard
Prevent staging-site accidents with environment labels, noindex controls, and safe email handling.
by Septiyan Nariyanto · github.com/nariyanto/wp-safe-staging-guard
★ 0stars
5composer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/nariyanto/wp-safe-staging-guard/releases/download/v0.1.1/safe-staging-guard.zipAlso on Packagist as nariyanto/wp-safe-staging-guard:
composer require nariyanto/wp-safe-staging-guardFrom the readme
SNXWorks Safe Staging Guard
Prevent staging-site accidents with visible environment labels, noindex controls, and safe email handling.
Why
Staging sites are useful, but they can accidentally:
- get indexed by search engines,
- send real emails to users,
- look too similar to production,
- confuse support and testing workflows.
SNXWorks Safe Staging Guard adds a small safety layer for WordPress staging/local environments.
v0.1.0 features
- Admin bar environment label.
- Frontend staging banner for logged-in users.
- Noindex/nofollow for local/staging environments.
- Email block or redirect mode.
- Production mode disables email interception and noindex.
Staging verification
Installed and verified on peepso.nariyanto.id staging with:
- staging environment mode enabled,
- noindex, nofollow robots meta active,
- email safety mode set to block,
- Plugin Check completed with no errors.
Development
Run tests:
Run PHP syntax checks:
Build release ZIP:
Safety notes
- No tracking by default.
- No external network calls.
- No destructive operations.
- Production mode keeps emails and robots behavior untouched.
License
GPL-2.0-or-later.
Read the full README on GitHub →