User-agent: * # The agent search endpoint (docs/site-search-plan.md §10). "Disallow: /*/search?" below also # matches /.well-known/search?; the longer Allow pattern wins. Allow: /.well-known/search Disallow: /*/account/ Disallow: /*/switch-language Disallow: /react # Site search results and its JSON endpoints: infinite query URLs, noindex anyway. # Anchored so blog/FAQ slugs that merely start with "search" stay crawlable. Disallow: /*/search? Disallow: /*/search$ Disallow: /*/search/ Disallow: /search? Disallow: /search$ Disallow: /search/ # Allow public API docs, OpenAPI specifications, and LLM guides Allow: /openapi/ Allow: /api-docs/ Allow: /openapi/swagger/ Allow: /llms.txt Allow: /llms-full.txt Allow: /skill.md Allow: /gender-api-vs-chatgpt.md Allow: /bulk-gender-lookup.md Allow: /nationality-from-name.md Allow: /split-first-and-last-name.md Allow: /how-to-choose-a-gender-api.md # Explicitly welcome AI Crawlers and Generative Engines. # # NOTE: robots.txt groups do not inherit. A crawler that matches one of the # user-agents below uses ONLY this group and ignores "User-agent: *" entirely, # so every Disallow has to be repeated here. Until 2026-07-28 this group had # just "Allow: /", which told these crawlers that /*/switch-language was fair # game — Meta's agent alone hit it 11,356 times in one day, and every hit # created a 7-day PHP session in Redis. # # "Allow: /" still applies to everything else: the longer, more specific # Disallow patterns win for those paths, so the welcome stays intact. User-agent: GPTBot User-agent: ChatGPT-User User-agent: ClaudeBot User-agent: Claude-Web User-agent: PerplexityBot User-agent: Applebot-Extended User-agent: Google-Extended User-agent: Meta-ExternalAgent Allow: / Allow: /.well-known/search Disallow: /*/account/ Disallow: /*/switch-language Disallow: /react Disallow: /*/search? Disallow: /*/search$ Disallow: /*/search/ Disallow: /search? Disallow: /search$ Disallow: /search/ # LLM Crawler Discovery Link llms: https://gender-api.com/llms.txt Sitemap: https://gender-api.com/sitemap.xml