Skip to content

Block bots from crawling Mintlify static assets#3

Open
LukasWodka wants to merge 1 commit intomainfrom
fix/robots-txt-block-static-assets
Open

Block bots from crawling Mintlify static assets#3
LukasWodka wants to merge 1 commit intomainfrom
fix/robots-txt-block-static-assets

Conversation

@LukasWodka
Copy link
Copy Markdown
Contributor

Summary

Adds a custom robots.txt to block bots from crawling Mintlify static asset bundles.

Context

Clarity bot traffic data (Apr 10-16) shows ~200 bot requests/week hitting /mintlify-assets/_next/static/ JS/CSS chunks. These have zero SEO value and waste crawl budget.

Changes

New robots.txt file:

  • Blocks /mintlify-assets/ (JS/CSS/font bundles)
  • Keeps existing /cdn-cgi/ block
  • Preserves sitemap reference

Test plan

  • Verify docs.tracebloc.io/robots.txt returns updated rules after deploy
  • Confirm all docs pages are still crawlable

Generated with Claude Code

Clarity data shows bots (Apple, OpenAI, Google) spending ~200 requests/week
on /mintlify-assets/_next/static/ JS/CSS chunks. These have zero SEO value.

Added custom robots.txt that blocks /mintlify-assets/ while keeping
the existing /cdn-cgi/ block and sitemap reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Apr 16, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tracebloc 🟢 Ready View Preview Apr 16, 2026, 8:55 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants