devgeniem / wp-noindex-testing-staging-robots
Uses robots.txt to not index development/testing environments of this site with search-engines
Installs: 13 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
pkg:composer/devgeniem/wp-noindex-testing-staging-robots
Requires
- php: >=5.6
- composer/installers: ^v1.0.12
This package is auto-updated.
Last update: 2025-10-20 17:33:46 UTC
README
WP MU-Plugin: Hide Development/Testing enviroments from robots
Deny site from /robots.txt if it's accessed with WP_ENV=staging or WP_ENV=testing.
Also denys it if the site is accessed with domain that ends with domain mentioned in WP_HIDE_ROBOTS_DOMAINS.
Installation
$ composer require devgeniem/wp-noindex-testing-staging-robots
Example config
// hides site from robots if its accessed from any geniem.io or example.com subdomain. define('WP_HIDE_ROBOTS_DOMAINS','geniem.io,example.com');
Maintainer
License
MIT
