A quick robots.txt to tell bots to stop crawling tags. (#321)

pull/317/head
Tyler Kennedy 2022-12-30 12:14:12 -05:00 zatwierdzone przez GitHub
rodzic d247baa307
commit 7eff751224
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -36,6 +36,11 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
# Serve robots.txt from the non-collected dir as a special case.
location /robots.txt {
alias /takahe/static/robots.txt;
}
# Serves static files from the collected dir
location /static/ {
# Files in static have cache-busting hashes in the name, thus can be cached forever

Wyświetl plik

@ -0,0 +1,5 @@
User-Agent: *
# Don't allow any bot to crawl tags.
Disallow: /tags/
Disallow: /tags/*