This module lets the administrator set the HTML robots metatag to noindex for a specific node. This will instruct well-behaved search engine robots to not index the node, preventing the node from appearing in search engine results. Note that the same functionality is not achieved by disallowing a node in robots.txt.

It is part of The PET project. For more information, visit The PET project website.

Reasons why you may want to do this is to tell robots not to index pages on your web site that:

  • are unimportant
  • are transitory
  • contains personal and/or sensitive data

The goal of the this module is to provide a light-weight and secure alternative to more comprehensive metatag initiatives.

See also:

Requirements

No special requirements.

Recommended modules

  • Advanced help hint:
    Will link standard help text to Advanced help.
  • Advanced Help:
    When this module is enabled, display of the project's README.md will be rendered when you visit help/node_nofilter/README.md.
  • Markdown filter:
    When this module is enabled, the project's README.md will be rendered with the markdown filter.

Installation

  1. Install as you would normally install a contributed drupal module. See: Installing modules for further information.
  2. Enable the Node noindex module on the Modules list page.
  3. Proceed to configure the module as described in the project's README.md.

Use

When you've enabled the noindex option for a content type, you will find a vertical tab for “Search engine settings” in the vertical tabs when you edit an individual node of the type. This let you check “Set noindex in HTML head”. Checking this box and saving the node sets the robots metatag to noindex and removes the canonical relation added by core in the HTML head of this node

Views integration

The module exposes the field “No index” to Views.

Similar projects

  • Metatag:
    This project provides a very comprehensive framework setting metatags. Use it if you require capabilities beyond the scope of this project, or if you need to set the robots metatag on a Drupal 8 or later website.
  • Noindex Module
    LIke this one, it is focused on nodes. Instead of providing a checkbox in the GUI, you edit noindex.module to select what nodes to apply the metatag to.

Backdrop CMS port

Node Noindex

Maintainers

  • naxoc - Camilla Krag Jensen (orginal creator)
  • herved - Hervé Donner
  • gisle - Gisle Hannemyr (Drupal 7)
  • DieterHolvoet - Dieter Holvoet (Drupal 10)

Any help with development (patches, reviews, comments) are welcome.

Supporting organizations: 
maintains the Drupal 7 version.

Project information

Releases