Просмотр исходного кода

prevent crawlers filling hard disk with gitea repo archives.

Thomas Buck 1 год назад
Родитель
Сommit
42a9a42eae
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      roles/gitea/files/data_gitea_custom_robots.txt

+ 2
- 1
roles/gitea/files/data_gitea_custom_robots.txt Просмотреть файл

@@ -1,2 +1,3 @@
1
+# prevent mass generation of repo archives
1 2
 User-agent: *
2
-Disallow:
3
+Disallow: /*/archive/*

Загрузка…
Отмена
Сохранить