This project is not covered by Drupal’s security advisory policy.
A Drupal 11 module that automatically generates `Disallow` rules in `robots.txt` for
multilingual view paths.
Overview
When running a multilingual Drupal site, you often need to block AI bots or search engines from
indexing certain view pages (e.g. search results, filtered lists) across all language
prefixes. Maintaining these rules manually in `robots.txt` is error-prone and tedious.
This module integrates with the [RobotsTxt](https://www.drupal.org/project/robotstxt)
module and lets you configure view route names through the admin UI. For each configured
route it resolves the path alias per language and appends the appropriate `Disallow` lines
to `robots.txt` automatically.
Requirements
- Drupal ^11
- RobotsTxt Module
Installation
composer require drupal/robotstxt_views
drush en robotstxt_viewsConfiguration
Navigate to Administration → Configuration → Search and metadata → RobotsTxt Views
(`/admin/config/search/robotstxt_views`) and enter one route name per line, for example:
view.search_results.page_1
view.news.page_1Save the form. The module will pick up the changes immediately — no cache rebuild required.
Project information
- Project categories: Multilingual, Performance, Search engine optimization (SEO)
- Ecosystem: RobotsTxt
- Created by bekro on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
