Noindex Module
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
This module adds the noindex robots-meta-tag to the HTML head of selected nodes (e.g. a certain page, an article) to prevent their content from being indexed by search engines. Note that the same functionality is not achieved by disallowing a node in robots.txt!
See https://support.google.com/webmasters/answer/93710 and https://support.google.com/webmasters/answer/6062608?hl=en for further information on what this meta tag does and why using this technique is better than disallowing a node in 'robots.txt'.
The goal of this project is to deliver the above functionality only and thereby staying simple, small and secure. For other modules with a longer list of features see the "Similar modules" section below.
Requirements
None.
Installation
- Download the module and extract it.
- Change the node numbers in the file called "noindex.module". For this you can use any text editor of your choice. Login to your Drupal project to find the numbers of the nodes you want the meta tag to be added to. A node's number can be seen in the URL of the browser's address bar when editing content or by hovering the mouse over the Edit-Button.
- Upload the complete "noindex" folder to your "/modules" directory.
- Go to your backend's module list (usually at "yourdomain.com/admin/modules") and select the module's checkbox from the list. Click "Install" at the bottom of the page. Done.
Troubleshooting
You can check the source code of your pages in a web browser to see if the meta tag was inserted correctly. Please give the search engines some time to delist your pages from the search results.
The robots.txt at the root of your domain must not contain the nodes you specified in the "noindex.module" file since this would block search engine crawlers from reaching the code that contains the meta tag.
Similar modules
Metatag - Extensive module that provides a large number of meta tags and configuration options.
