From e1e1acdf75169a92fb656b665e9cc081d6f1e393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Thu, 20 Aug 2020 12:15:02 -0300 Subject: [PATCH] Adiciona Robots.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Versão inicial do arquivo robots.txt Adiciona ulr robots.txt Adiciona teste para robots.txt --- sapl/templates/robots.txt | 36 ++++++++++++++++++++++++++++++++++++ sapl/test_urls.py | 17 +++++++++++------ sapl/urls.py | 6 ++++-- 3 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 sapl/templates/robots.txt diff --git a/sapl/templates/robots.txt b/sapl/templates/robots.txt new file mode 100644 index 000000000..dad99b301 --- /dev/null +++ b/sapl/templates/robots.txt @@ -0,0 +1,36 @@ +User-agent: semrushbot +Disallow: / + +User-agent: BLEXBot +Disallow: / + +User-agent: SemrushBot +Disallow: / + +User-agent: AhrefsBot +Disallow: / + +User-agent: spbot +Disallow: / + +User-agent: dotbot +Disallow: / + +User-agent: ahrefsbot +Disallow: / + +User-agent: mojeekbot +Disallow: / + +User-agent: yandex +Disallow: / + +User-agent: baiduspider +Disallow: / + +User-agent: * +# Crawl Delay 60 seg. +Crawl-delay: 60 +Disallow: /materia/docacessorio/pdf/* +Disallow: /materia/docacessorio/zip/* +Disallow: /private/ \ No newline at end of file diff --git a/sapl/test_urls.py b/sapl/test_urls.py index 78d0388f4..8a5878e72 100644 --- a/sapl/test_urls.py +++ b/sapl/test_urls.py @@ -20,7 +20,6 @@ _lista_urls = lista_urls() def create_perms_post_migrate(sapl_app_config): - searched_perms = list() # The codenames and ctypes that should exist. ctypes = set() @@ -74,7 +73,6 @@ btn_login = ('