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

Installation

composer require drupal/robotstxt_views
drush en robotstxt_views

Configuration

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_1

Save the form. The module will pick up the changes immediately — no cache rebuild required.

Supporting organizations: 

Project information

Releases