NoIndex Metatag
INTRODUCTION
The NoIndex Metatag module is to whitelist the route to add meta robots "noindex" to the HTML head for all those selected routes.
Its a simple configuration to prevents the site from search engines based on the domain name or relative path.
REQUIREMENTS
This module requires no modules outside of Drupal core.
INSTALLATION
Install the Noindex Metatag as you would normally install a contributed Drupal module. Visit https://www.drupal.org/node/1897420 for further information.
1) Copy the noindex_metatag folder in the modules folder in your Drupal directory, Or use composer to download the module.
2) Enable the module using Manage -> Extend (/admin/modules)
CONFIGURATION
1) Enable the settings at
- Manage -> Configuration -> Search and Meta data -> Noindex Metatag Settings
- Path : /admin/config/search/noindex-metatag
- Enable the checkbox "Enable no-index metatag"
2) Add noindex Routes
- A list of routes that you want to be add no-index. Wildcard "*" is supported.
3) Domain path: A list of host routes (with out http:// or https://). If the domain name http://dev.example.com means just add dev.*
Example:
local.*
dev.*
4) Relative path: A list of Relative url with slash(/)
Example:
/admin/*
/user/reset/*
/blogs
/events
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | Oct 3, 2023 | ||
| 1.0.x-dev | Dev | Sep 28, 2023 |