3
0
Fork 0

[ADD] [8.0] - web_no_crawler (#963)

8.0
Nedas Zilinskas 2018-06-26 18:25:01 +03:00 committed by Pedro M. Baeza
parent 1b4b1b77e4
commit a5d22dbdd9
12 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
**This file is going to be generated by oca-gen-addon-readme.**

View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import controllers

View File

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
'name': 'Disallow indexing completely via robots.txt',
'author': 'Ventor, Xpansa Group, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/website/tree/8.0',
'category': 'web',
'version': '8.0.1.0.0',
'depends': [
'base',
],
'installable': True,
'application': False,
'license': 'AGPL-3',
}

View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import main

View File

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
import openerp
from openerp import http
class Main(openerp.addons.web.controllers.main.Home):
@http.route('/robots.txt', type='http', auth="none")
def robots(self):
return http.request.make_response(
"User-agent: *\nDisallow: /",
[('Content-Type', 'text/plain')],
)

View File

@ -0,0 +1 @@
* Nedas Zilinskas <nedas.zilinskas@xpansa.com> (http://xpansa.com)

View File

@ -0,0 +1,3 @@
The development of this module has been financially supported by:
* Ventor, Xpansa Group (<https://ventor.tech/>)

View File

@ -0,0 +1,2 @@
This module was written to implement a robots.txt file to prevent web crawlers (like google) from indexing pages.
This module does not depend on Website module.

View File

@ -0,0 +1,3 @@
Installation as usual. No specific installation steps / configuration required.
**WARNING:** this module is not to be used with `Website` module as it has a separate functionality for robots.txt.

View File

@ -0,0 +1 @@
* Investigate possibilies for compatibility with `Website` module as it has a separate functionality for robots.txt.

View File

@ -0,0 +1,3 @@
To use this module, you need to:
No configuration needed. Once installed adds robots.txt (ex.: http://example.org/robots.txt).

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB