Skip to content

Block site from beeing indexed in dev and test mode - shows a warning in the CMS

Notifications You must be signed in to change notification settings

thomasbnielsen/silverstripe-robots-noindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Block site from beeing indexed in dev and test mode - shows a warning in the CMS

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages