Add /user/ to forge robots.txt exclusion
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m47s
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m47s
Crawlers follow auth redirects to /user/login which is pointless for them. Saves round-trips for both sides. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0a98f76068
commit
1631e11137
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ http {
|
||||||
# Serve robots.txt directly — block crawlers from expensive endpoints
|
# Serve robots.txt directly — block crawlers from expensive endpoints
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
default_type text/plain;
|
default_type text/plain;
|
||||||
return 200 "User-agent: *\nDisallow: /mirrors/\nDisallow: /users/\nDisallow: /*/archive/\nDisallow: /*/releases/download/\n";
|
return 200 "User-agent: *\nDisallow: /mirrors/\nDisallow: /user/\nDisallow: /users/\nDisallow: /*/archive/\nDisallow: /*/releases/download/\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Block swagger API docs — use forge.ops.eblu.me from tailnet
|
# Block swagger API docs — use forge.ops.eblu.me from tailnet
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue