aboutsummaryrefslogtreecommitdiff
path: root/robots.txt
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-18 21:30:12 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2022-12-19 14:14:05 +0000
commitcc6d9cc7fc010db9be6c2d90fd054fb2d189d629 (patch)
tree667023ef4d1976928d7055e441efc3afc789e375 /robots.txt
parente10159691e799d0f31f5314c73f47511cc974f46 (diff)
downloadcgit-cc6d9cc7fc010db9be6c2d90fd054fb2d189d629.tar
cgit-cc6d9cc7fc010db9be6c2d90fd054fb2d189d629.tar.gz
cgit-cc6d9cc7fc010db9be6c2d90fd054fb2d189d629.zip
ui-tree,ui-blame: bail from blame if blob is binary
This avoids piping binary blobs through the source-filter. Also prevent robots from crawling it, since it's expensive. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'robots.txt')
-rw-r--r--robots.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/robots.txt b/robots.txt
index 4ce948f..1b33266 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1,3 +1,4 @@
User-agent: *
Disallow: /*/snapshot/*
+Disallow: /*/blame/*
Allow: /