devgeniem/wp-noindex-testing-staging-robots

Uses robots.txt to not index development/testing environments of this site with search-engines

Installs: 13 296

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 6

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

pkg:composer/devgeniem/wp-noindex-testing-staging-robots

1.0.1 2016-10-30 19:02 UTC

This package is auto-updated.

Last update: 2025-09-20 17:17:10 UTC


README

geniem-github-banner

WP MU-Plugin: Hide Development/Testing enviroments from robots

Latest Stable Version Total Downloads Latest Unstable Version License

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

Onni Hakala Liblastic

License

MIT