devgeniem/wp-noindex-testing-staging-robots

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

1.0.1 2016-10-30 19:02 UTC

This package is auto-updated.

Last update: 2024-04-20 14:23:20 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