# https://www.robotstxt.org/robotstxt.html # # Disallow and noindex are not additive — they conflict. # # `Disallow` stops a compliant crawler FETCHING a URL. It does not stop the URL # being indexed: a disallowed URL discovered elsewhere can still be listed, as a # bare URL with no snippet. And because the crawler never fetched it, it never # saw the `X-Robots-Tag: noindex` we send. # # For a route whose URL *is* the credential that is the worst possible outcome, # because a bare-URL listing publishes the bearer. Those routes are therefore # deliberately NOT disallowed here: we want crawlers to fetch them, see the # noindex header (nginx.conf.template) and drop them entirely. # # Fetching one is cheap for us — the redeem is reusable and marks only a # `last_used` timestamp, so a crawler cannot burn a supervisor's link. The cost # is a little redeem-event noise; the benefit is the header actually working. # # The magic-link landing routes are the destinations in # packages/auth/src/lib/destinations.ts, each served the raw bearer as # `//jwt-`: /portal, /screening, /menu, /roster, # /shft-sns-enrll (and /attendance, which shares the /portal route group). # None of them may appear below. robotsTxt.test.ts enforces that. # # Everything below is ordinary crawl hygiene on pages whose URL is not itself a # secret, where Disallow costs nothing. User-agent: * # `/c`, `/s/` and `/m/` are the legacy survey/message token routes. They are the # same class of problem as the magic-link routes above and arguably belong out # of this list too — but unlike the magic-link session, survey-token reuse has # not been verified, so freeing them could let a rendering crawler burn a # one-time survey token. Left disallowed pending that check. Disallow: /c # `/s/` not `/s`: the bare prefix also swallowed `/shft-sns-enrll`, which must # stay crawlable for the reason above. Disallow: /s/ # `/m/` not `/m`: the bare prefix also swallowed `/menu`, a magic-link landing. Disallow: /m/ Disallow: /identify Disallow: /sign-in/forgot/sent Disallow: /sign-in/reset/ Disallow: /logout Disallow: /manager Disallow: /handoff Disallow: /dashboard