devgeniem / wp-noindex-testing-staging-robots
Uses robots.txt to not index development/testing environments of this site with search-engines
Package info
github.com/devgeniem/wp-noindex-testing-staging-robots
Type:wordpress-muplugin
pkg:composer/devgeniem/wp-noindex-testing-staging-robots
1.0.1
2016-10-30 19:02 UTC
Requires
- php: >=5.6
- composer/installers: ^v1.0.12
This package is auto-updated.
Last update: 2026-02-20 18:11:10 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
