SEO & Webmaster Practice · Ch. 1
robots.txt for SEO and AI search: groups, sitemaps and noindex
WebTool Team · Published 2026-10-12 · SEO / GEO / robots.txt
robots.txt controls cooperative crawling, noindex controls indexing, and a sitemap helps discovery. Start with crawl access before diagnosing rankings or AI citations. Paste your configuration into the robots.txt generator and checker for basic text checks.
A public-site template
User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml
Replace the origin, publish at /robots.txt, and verify that the real URL returns text with HTTP 200. A login page, challenge or HTML error is not the intended file. API and admin exclusions do not replace authentication.
Specific groups do not inherit the wildcard group
If you add an OAI-SearchBot group with Allow: /, repeat the /api/ and /admin/ exclusions in that group. WebTool applies the same exclusions to its wildcard and named AI groups. Check the selected group rather than assuming rules accumulate from *.
Search access and training access are separate decisions
OAI-SearchBot and GPTBot serve different purposes. Follow the provider's published controls instead of treating training access as a prerequisite for search traffic. A crawler visit is also not an impression, citation or human visit.
Disallow is not noindex
A crawler blocked from fetching a page may not see its noindex tag. For a public page you want removed from indexing, make the exclusion readable. For private data, require authentication. Text linting does not simulate URL matching or confirm real access.
Diagnose the actual bottleneck
- Check HTTP responses and redirects for the page, robots.txt and sitemap.
- Confirm the canonical URL and reciprocal language links.
- Inspect the specific URL in webmaster tools and record the indexing reason.
- For indexed pages with low impressions, examine the user problem and the evidence the page provides.
- For impressions with low clicks, compare the query with the title and the page's actual result.