# Hand-maintained. Served at /robots.txt because Flask mounts the build at the # root (server.py: static_url_path="/"), so this file needs no route — and it # is outside /static/, so it is Cache-Control: no-cache and an edit is live on # the next deploy rather than a year later. User-agent: * # The whole logged-out surface, and nothing else, is worth indexing. Allow: /$ Allow: /signin Allow: /signup # Public card stacks: one page per stack, built on the server so a crawler reads # the cards rather than the landing page (services/stacks/public_stacks.py). The # trailing slash matters -- `/stacks` itself is the owner's own list, which is # behind sign-in and Disallowed below. Listed in the second sitemap. Allow: /stacks/ # The developer docs (services/public_api/developer_docs.py): a page Flask builds, read # signed out, and the one page about the API and the MCP connector. Allow: /developers # The privacy policy (services/privacy_policy.py): built the same way, and the # URL the App Store listing names. Allow: /privacy # The terms of service (services/terms_of_service.py): built the same way, and # the URL ChatGPT's plugin listing names. Allow: /terms # The help docs (services/help_docs.py): a page per feature, built the same # way. A prefix, so it covers the index and every page under it. Allow: /docs # The words pages (services/words/page.py): hubs and term pages for slang and # new words, built the same way. Only reviewed pages exist for a crawler; they # are listed in the third sitemap. Allow: /words # The signed-in routes are gated server-side already; this is not about # secrecy. It is that the SPA fallback answers every one of them with the same # index.html, so a crawler that followed them would index twenty URLs carrying # one identical document — thin duplicate content, fed to the crawler by the # site it is meant to rank. Disallow: /generate Disallow: /cards Disallow: /review Disallow: /review/study Disallow: /review/first Disallow: /review/usage # A new account's card of its own, after its first sitting. Disallow: /own-card Disallow: /notes # The Dictionary is open signed out, but the SPA still answers it with the # one index.html; a crawler gets nothing from it until the entry page is built # on the server the way a public stack's is. Disallow: /dictionary Disallow: /dictionary/history Disallow: /tutor Disallow: /tutor/runs Disallow: /import Disallow: /import/anki Disallow: /settings Disallow: /success Disallow: /versionHistory Disallow: /stacks$ # Generating a stack: a signed-in page under the public prefix. Longer than # `Allow: /stacks/`, so it wins for this one path. Disallow: /stacks/generate # The Premium Stacks list is signed-in; each stack on it is a public page of # its own, which `Allow: /stacks/` and the stacks sitemap already cover. Disallow: /stacks/premium # A folder of the owner's stacks (FolderPage): signed-in, and private. Disallow: /stacks/folders Disallow: /api/ # Where a confirmation link lands (services/email/verification_message.py). One-time # codes, so there is nothing here for a crawler but the same index.html — and # a bot that followed one would spend somebody's code for them. Disallow: /auth/ # The MCP connector's consent screen: one-time requests from an assistant, and # nothing for a crawler but the sign-in form. Disallow: /oauth/authorize # The browser extension's connect page: a one-time handoff, and nothing for # a crawler but the sign-in form. Disallow: /extension/connect # Absolute, as the sitemap protocol requires. Same origin as the canonical # link in index.html; see CANONICAL_HOST in server.py. The first is the fixed # pages and is hand-maintained; the second is every public stack, generated # per request by Flask because a stack is published by a user, not a deploy. # The third is the reviewed words pages, generated from their catalog. Sitemap: https://xiaozhujian.study/sitemap.xml Sitemap: https://xiaozhujian.study/sitemap-stacks.xml Sitemap: https://xiaozhujian.study/sitemap-words.xml