Version: 8.x
Maintainers: jbickar, sherakama, pookmish
Changelog.txt, (*1)
This module blocks (well-behaved) search engine robots from
crawling, indexing, or archiving your site by setting a
"X-Robots-Tag: noindex,nofollow,noarchive" HTTP header., (*2)
Enable the module to block search engine robots.
Disable the module to let them crawl your site., (*3)
Installation
Install this module like any other module. See Drupal Documentation, (*4)
Configuration
Enable the module to block search engine robots.
Disable the module to let them crawl your site., (*5)
Advanced Configuration
You can set the nobots
variable to FALSE to leave the module enabled, yet still allow robots to crawl your site., (*6)
An example use-case would be to set $settings['nobots'] = FALSE;
in settings.php for the production environment, and TRUE
for all other environments., (*7)
To set the state nobots
to TRUE. drush @[alias] state:set nobots 1
would block robots.
You can also set the state nobots
to FALSE. drush state:set nobots 0
would set this state to false., (*8)
Troubleshooting
If you are experiencing issues with this module try reverting the feature first. If you are still experiencing issues try posting an issue on the GitHub issues page., (*9)
Contribution / Collaboration
You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests, (*10)
Releases
Steps to build a new release:
- Checkout the latest commit from the 8.x-2.x
branch.
- Create a new branch for the release.
- Commit any necessary changes to the release branch.
- These may include, but are not necessarily limited to:
- Update the version in any info.yml
files, including in any submodules.
- Update the CHANGELOG to reflect the changes made in the new release.
- Make a PR to merge your release branch into master
- Give the PR a semver-compliant label, e.g., (patch
, minor
, major
). This may happen automatically via Github actions (if a labeler action is configured).
- When the PR is merged to master
, a new tag will be created automatically, bumping the version by the semver label.
- The github action is built from: semver-release-action, and further documentation is available there., (*11)
Deprecated
This repo and su-sws/nobots is replaced by drupal/nobots., (*12)