瀏覽代碼

prevent crawlers filling hard disk with gitea repo archives.

Thomas Buck 1 年之前
父節點
當前提交
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/*

Loading…
取消
儲存