summaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-14 23:29:56 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-14 23:30:17 +0900
commit3a005f23696ad17d02582ec0e2d972620b999ab1 (patch)
treec3935dfa6bb446f02717e5783a5c886b1bfe7901 /Caddyfile
parent05f78805dd4516b44d6724229628d8f6402c8a0e (diff)
Add crawler bypass header to skip X-Robots-Tag
Requests with X-Crawler-Access header and the correct token will have the X-Robots-Tag response header removed, allowing trusted crawlers to index the site. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index fa8e706..7e05478 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -1,12 +1,20 @@
golive.yyamashita.com {
header Referrer-Policy "no-referrer"
header X-Robots-Tag "noindex, nofollow"
+
+ @crawler_bypass header X-Crawler-Access "f9a3c1e847b2d056"
+ header @crawler_bypass -X-Robots-Tag
+
reverse_proxy tokyo-app:3000
}
whoisband.yyamashita.com {
header Referrer-Policy "no-referrer"
header X-Robots-Tag "noindex, nofollow"
+
+ @crawler_bypass header X-Crawler-Access "f9a3c1e847b2d056"
+ header @crawler_bypass -X-Robots-Tag
+
reverse_proxy whois-app:3000
}
code.yyamashita.com {