# robots.txt for growthnuts.com # Policy: allow all legitimate crawlers (search + AI answer engines + our own # audit tools); block only known low-value scraper bots. # # WHY THERE ARE NO PER-CRAWLER "Allow: /" GROUPS HERE. # # There used to be twenty of them — Googlebot, Bingbot, GPTBot, ClaudeBot, # PerplexityBot and the rest — each containing nothing but `Allow: /`. They # looked like documentation. They were actually an exemption. # # A crawler selects the single most specific group matching its own name and # MUST ignore every other group, including `User-agent: *` (RFC 9309 2.2.1; # Google states the same in its robots.txt spec). So a group reading # # User-agent: Googlebot # Allow: / # # does not add permission on top of the default group — it REPLACES it. Every # named crawler was therefore exempt from the /admin/ and /api/ disallows # below, which is precisely backwards from the intent. Googlebot was # free to walk /api/scan, and that endpoint fetches a third-party site on every # single request. # # Those crawlers are all allowed by default anyway: they match `User-agent: *`, # which allows everything except the paths named below. Deleting the groups # grants nothing new and closes the hole. The list of crawlers we welcome is # kept as a comment, where a comment belongs. # # Welcomed (each matches the * group, no separate entry required): # Search — Googlebot, GoogleOther, Google-Extended, Bingbot, Applebot, # Applebot-Extended, Brave-Search # AI — GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, # Claude-User, anthropic-ai, PerplexityBot, Perplexity-User, # Amazonbot, YouBot # Tooling — AhrefsBot, SemrushBot # # ==> DO NOT reintroduce a bare `User-agent: ` + `Allow: /` group. To # restrict a single crawler, give it a group that repeats every Disallow # below plus its own; to welcome one, do nothing at all. # # NOTE: Cloudflare may inject an edge-managed "Content Signals" block ahead of # this file, and its Bot Fight / "Block AI Bots" WAF can still return 403 to AI # crawlers regardless of these rules. Those are dashboard settings, not code — # see HUMAN_ACTIONS.md. # --------------------------------------------------------------------------- # Default group: everything may crawl everything, except the paths listed. # # These were four separate `User-agent: *` groups. Groups sharing a user-agent # are merged by the crawler, so the behavior was already correct, but the file # claimed in a comment that each user-agent appeared exactly once — and it did # not. One group, stated once. # # /admin/ — prospect data. The pages are noindex and sit behind Cloudflare # Access as well; this only stops the fetch. X-Robots-Tag in # _headers is the rule that actually prevents indexing, because a # disallowed URL can still be listed. # /api/ — not pages. /api/scan and /api/inspect fetch a third-party site on # every request, so a crawler walking them spends our budget and # theirs to produce JSON nobody reads. All are reached from a form, # never a link, so nothing is lost. # # No lines for /scripts/, build.js, server.js, *.py, *.bak, *.log or the # internal .md notes (removed 2026-10-26). None of them is deployed: # scripts/stage-dist.mjs copies the site into dist/ without them and fails the # deploy if one slips through, so each answers 404 in production. Naming them # here did not protect anything; it only published a list of internal files. # --------------------------------------------------------------------------- # There is deliberately no `Allow: /` line. It is redundant — a path with no # matching Disallow is already allowed — and actively harmful when it appears # first: RFC 9309 resolves conflicts by longest match, so /api/ would beat /, # but simpler parsers (Python's robotparser among them) take the first match # and would hand back "allowed" for every path here. User-agent: * Disallow: /admin/ Disallow: /api/ # --------------------------------------------------------------------------- # Low-value scrapers: blocked outright. # A named group is correct here — that is exactly the "most specific group # wins" behavior described above, used deliberately this time. # --------------------------------------------------------------------------- User-agent: MJ12bot Disallow: / User-agent: DotBot Disallow: / User-agent: BLEXBot Disallow: / User-agent: PetalBot Disallow: / User-agent: DataForSEOBot Disallow: / # Sitemap. # # /sitemap.xml is one plain urlset listing every indexable URL once. # Retired child maps (/sitemap-*.xml, /sitemap_*.xml, /sitemaps/*) 301 to it. Sitemap: https://growthnuts.com/sitemap.xml