Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions website_no_crawler/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**This file is going to be generated by oca-gen-addon-readme.**
2 changes: 2 additions & 0 deletions website_no_crawler/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2016 B-informed B.V.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
18 changes: 18 additions & 0 deletions website_no_crawler/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2016 B-informed B.V.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Alter robots.txt disallow indexing',
'summary': 'Disables robots.txt for indexing by webcrawlers like Google',
'license': 'AGPL-3',
'version': '11.0.1.0.0',
'website': 'https://github.com/OCA/website',
'author': "B-Informed B.V.,Odoo Community Association (OCA)",
'category': 'Website',
'depends': [
'website',
],
'data': [
'views/disable_robots.xml',
],
'installable': True,
}
4 changes: 4 additions & 0 deletions website_no_crawler/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Roel Adriaans <roel.adriaans@b-informed.nl>
* `Tecnativa <https://www.tecnativa.com>`_:

* Ernesto Tejeda
3 changes: 3 additions & 0 deletions website_no_crawler/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.
2 changes: 2 additions & 0 deletions website_no_crawler/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
No useable features for an user are available.
To view the results, visit /robots.txt on your site.
Binary file added website_no_crawler/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions website_no_crawler/views/disable_robots.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="website.robots">
User-agent: *
Disallow: /
Sitemap: <t t-esc="url_root"/>sitemap.xml
</template>
</odoo>