diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-14 23:29:56 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-14 23:30:17 +0900 |
| commit | 3a005f23696ad17d02582ec0e2d972620b999ab1 (patch) | |
| tree | c3935dfa6bb446f02717e5783a5c886b1bfe7901 /Caddyfile | |
| parent | 05f78805dd4516b44d6724229628d8f6402c8a0e (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-- | Caddyfile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 { |
