Files
claudeandClaude Opus 5.5 76c09e8f2f
Demo / hello (push) Successful in 40s
Serve a robots.txt that keeps crawlers off expensive pages
Crawlers (ClaudeBot about 5,000 requests in 10 minutes, plus others) walked blame, commit and history pages and overloaded alpha-worker-3, where Discourse's database kept restarting on 2026-11-18. The role now manages robots.txt as a ConfigMap mounted at /data/gitea/public/robots.txt (gitea_robots_txt), and restarts Gitea when it changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:13:51 -05:00

28 lines
730 B
Plaintext

# gitea.eom.dev: crawlers are welcome on repository front pages, issues and releases,
# but please skip the expensive per-commit views (they overloaded a small server).
User-agent: *
Crawl-delay: 10
Disallow: /*/*/blame/
Disallow: /*/*/commit/
Disallow: /*/*/commits/
Disallow: /*/*/raw/
Disallow: /*/*/media/
Disallow: /*/*/src/commit/
Disallow: /*/*/src/tag/
Disallow: /*/*/compare/
Disallow: /*/*/archive/
Disallow: /*/*/_edit/
Disallow: /*/*/_delete/
Disallow: /*/*/_new/
Disallow: /*/*/rss/
Disallow: /*/*/atom/
Disallow: /*/*/graph
Disallow: /*/*/activity
Disallow: /*/*/search
Disallow: /*/*/find/
Disallow: /*/*/wiki/?action=_revision
Disallow: /api/
Disallow: /explore/code
Disallow: /user/
Disallow: /DevOps/truecharts/