# robots.txt for dotafours.com ONLY. # # champdle.com keeps public/robots.txt; the DotaFours vhost aliases THIS file onto /robots.txt # (api/_scripts/nginx-dotafours.conf). Both hosts run one build off one route table, so every # League route is still *reachable* here - /play/quadra, /meta-report/*, /user-submitted/*, # /leaderboard, /collection/*. `Disallow: /` plus a narrow allowlist is what keeps them out. # # ▶ THE ALLOWLIST IS THE WHOLE SITE. Everything else is closed: # # / the landing page # /play/dota the boards hub (renders the default lane) # /play/dota/easy the Easy board # /play/dota/hard the Hard board # /privacy the DOTA privacy policy (features/static/dota-privacy.page.ts) # /user-submitted the community hub, its feed and its gallery # /user-submitted/explore # # ...minus the two authoring surfaces below it, which need a session and have no crawl value. # Longest match wins, so `Disallow: /user-submitted/mine` beats `Allow: /user-submitted` - the # same shape champdle.com's own robots.txt uses for the same two paths. # # ⚠ The board URLs are `/play/dota/...`, NOT `/play/...`. The path carries the mode slug because # one route table serves both brands (`play/:slug/:variant`). Shortening these lines to `/play` # would disallow every board on the site. User-agent: * Allow: /$ Allow: /play/dota Allow: /privacy Allow: /user-submitted Disallow: /user-submitted/mine Disallow: /user-submitted/create Disallow: / # `Allow: /$` is the landing page and ONLY the landing page: the `$` anchors the match to the end # of the URL, so it opens `/` without opening `/meta-report` with it. Longest-match wins, so the # 2-character Allow beats the 1-character Disallow for the root and nothing else. A crawler that # does not understand `$` reads it as a literal path that matches nothing and keeps the root # disallowed - wrong, but in the safe direction. # # `Allow: /play/dota`, `Allow: /privacy` and `Allow: /user-submitted` are deliberately UNANCHORED, # unlike `/$`. `/play/dota` has to open its two lane sub-paths and `/user-submitted` has to open # /feed and /explore, and no other route on either brand begins with any of the three strings, so # a prefix match opens exactly what is intended. Anchoring `/privacy$` would also cost the # compatibility note above for no gain. # # The two Disallow lines under the hub are the exception the prefix needs: without them the same # prefix would also open /user-submitted/mine and /user-submitted/create. # # ⚠ THIS FILE IS HALF THE POLICY. robots.txt controls CRAWLING, not indexing - a disallowed URL # can still be indexed URL-only if something links to it, and disallowing a page actually PREVENTS # Google from reading a `noindex` on it. The other half is the per-brand whitelist in # core/seo/seo-route-policy.ts, which serves `noindex, follow` on every non-allowlisted route. # The two must list the same paths; `seo-route-policy.spec.ts` fails if they drift. # The sitemap is dotafours.com's own, NOT champdle.com's. Both are generated into the same browser # dist by frontend-v3/scripts/generate-sitemap.mjs and the vhost aliases the DOTA one onto # /sitemap.xml, the same way it aliases this file onto /robots.txt. Absent that alias this URL # serves the League sitemap - ~190 champdle.com URLs off the DOTA domain. # # It lists the canonical paths above: the landing page, the two boards, /privacy, and the two # community pages that canonicalise to themselves. The bare /play/dota is crawlable but absent # from the sitemap because it renders the default lane and so canonicalises to /play/dota/easy - # a sitemap must only ever assert canonical URLs, which is also why /user-submitted/feed is absent # (it canonicalises onto /user-submitted). Sitemap: https://dotafours.com/sitemap.xml