Skip to content

Block bots from crawling Mintlify static assets - #3

Closed
LukasWodka wants to merge 1 commit into
mainfrom
fix/robots-txt-block-static-assets
Closed

Block bots from crawling Mintlify static assets#3
LukasWodka wants to merge 1 commit into
mainfrom
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

mintlifyBot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

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

ProjectStatusPreviewUpdated (UTC)
tracebloc🟢 ReadyView PreviewApr 16, 2026, 8:55 AM

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

@saadqbal

Copy link
Copy Markdown
Contributor

@LukasWodka the mintlify valiation action is failing. could you please promot in the same context to fix: https://github.com/tracebloc/docs/pull/3/checks?check_run_id=71609026405

This was referenced May 18, 2026
This was referenced May 21, 2026
@LukasWodkaLukasWodka mentioned this pull request May 28, 2026
10 tasks
@divyasinghds

Copy link
Copy Markdown
Contributor

Superseded by #45 — re-cut from current main because this branch was based on an old initial-commit state, and the link-rot failure here referenced files (getting-started/quick-setup, images/tracebloc-workflow-overview.png) that no longer exist on main, so rebasing in place produced unrelated conflicts. Same diff (5-line robots.txt) in #45.

Sign up for freeto 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.

4 participants

@LukasWodka@saadqbal@divyasinghds@waqaskhanroghani