nobrainerweb/silverstripe-robots-noindex

Show a warning in the CMS when site is set to noindex

Installs: 1 536

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Type:silverstripe-vendormodule

2.0.4 2020-09-25 10:50 UTC

This package is auto-updated.

Last update: 2021-01-25 11:50:34 UTC


README

This module adds a robots metatag to discourage well-behaved search engine spiders from crawling and indexing your site.

Installation

Install via composer: composer require nobrainerweb/silverstripe-robots-noindex

Don't forget to run a dev/build?flush

The module will automatically add the tag when your site is in dev or test mode. It can also be activated regardless of the site mode with the addition of an environment variable called 'SEO_PREVENT_INDEXING' which can be set to true.

For example, if you are using a .env file, you would add the following line to enable the module:

SEO_PREVENT_INDEXING = true

A warning is shown in the CMS when the module is active and indexing is discouraged.