You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
478 B

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