OdooWiki OCA HUB

Alter robots.txt disallow indexing

website_no_crawler folder_open OCA/website open_in_new
Website License: AGPL-3

By default, /robots.txt on an Odoo installation with website module installed will allow indexing by webcrawlers.

This module will overwrite view that generates /robots.txt and won't allow to index.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets you stop search engines like Google from indexing your Odoo website by changing the /robots.txt file. A setting controls whether crawling is blocked or allowed.

This module changes the /robots.txt file that search engines read when they visit your website. Normally Odoo's website allows crawlers to index your pages; after installing this module the file tells them not to.

  • It adds a configuration setting called website.crawler.disable, which is switched on by default when the module is installed.
  • When this setting is on, the /robots.txt file contains "Disallow: /", which asks search engines to stay away from the whole site.
  • When the setting is off, the file no longer blocks crawling, so search engines can index the site again.
  • The file still points crawlers to your sitemap (sitemap.xml) so they can find your pages when indexing is allowed.

The module works by replacing the template that Odoo uses to generate /robots.txt and by taking over the web route that serves that file. It depends on the Website app and does not add any new menus or screens of its own; the behaviour is controlled through the existing configuration parameter. No other Odoo areas, models or business documents are affected.

Depends on

website

Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 14.0
  • You can enable crawler by editing the default system parameter "website.crawler.disable" (in the menu Settings > Parameters > System Parameters).

No useable features for an user are available. To view the results, visit /robots.txt on your site.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.