XML Sitemaps and Robots Rules
An XML sitemap lists URLs a site owner considers useful for discovery. A robots.txt file communicates crawler access rules. They have different purposes and are not substitutes.
Keep the sitemap useful
Include canonical public URLs that return the intended response. Remove URLs that redirect, are duplicates, or should not be indexed. A sitemap is a discovery hint, not an indexing command.
Use robots rules carefully
Robots.txt can request that compliant crawlers avoid paths, but it is not access control and does not guarantee a URL disappears from search. Do not use it to protect private content; authentication is required.
Check the whole path
Verify status, canonical tags, internal links, and directives. A URL in a sitemap may still be unavailable, and a crawlable URL may not be indexed. Do not bypass a site’s robots policy during third-party analysis.
FAQ
Does a sitemap guarantee indexing?
No. It is a discovery hint.
Does disallow remove a URL from results?
Not reliably. Crawling and indexing are separate processes.
See the crawlability guide.