Prompt
How do I audit robots.txt and sitemap issues?
Latest observation
Oct 17, 2026
OpenAI APIWeb search: off
Here’s a practical way to audit robots.txt and sitemap issues for a website.
1) Audit robots.txt
What to check
-
Is it accessible?
- Visit:
https://example.com/robots.txt - It should return a 200 OK and plain text.
- Visit:
-
Are important pages accidentally blocked?
- Look for
Disallowrules that may block:- key landing pages
- product/category pages
- CSS/JS resources
- image files
- Common mistake:
Disallow: /blocks the whole site.
- Look for
-
Is Googlebot allowed where it should be?
- Check whether specific user agents have different rules:
User-agent: GooglebotUser-agent: *
- Check whether specific user agents have different rules:
-
Are sitemap URLs declared?
- Best practice:
Sitemap: https://example.com/sitemap.xml
- Best practice:
-
Are there conflicting rules?
- Multiple
User-agentsections can create confusion. - Make sure ordering and specificity are intentional.
- Multiple
-
Are you using
noindexin robots.txt?- This is no longer supported by Google.
- Use meta robots tags or headers instead.
Tools
- Google Search Console
- URL Inspection tool
- robots.txt tester is no longer a standalone public tool, but Search Console helps diagnose crawling/indexing issues.
- Bing Webmaster Tools
- Crawling tools
- Screaming Frog
- Sitebulb
- Semrush/Ahrefs site audits
Quick manual test
Try these URLs:
https://example.com/robots.txthttps://example.com/sitemap.xml- A few important pages you suspect may be blocked
2) Audit XML sitemaps
What to check
-
Is the sitemap reachable?
- Open the sitemap URL and ensure it loads.
- Should return 200 OK.
-
Is it valid XML?
- Check for parsing errors.
- Common issues:
- malformed XML
- unescaped characters
- bad namespace declarations
-
Are only canonical, indexable URLs included?
- Include:
- 200 status pages
- canonical versions
- Exclude:
- redirects
- 404/5xx pages
- blocked pages
- noindex pages
- duplicate or parameter-heavy URLs
- Include:
-
Do URLs match the canonical version?
- Example:
- sitemap should use
https://nothttp:// - use preferred host (
wwwvs non-www) - avoid trailing slash inconsistencies
- sitemap should use
- Example:
-
Is it too large?
- Limits:
- 50,000 URLs per sitemap file
- 50MB uncompressed per sitemap file
- If larger, split into multiple sitemaps and use a sitemap index.
- Limits:
-
Are the lastmod dates accurate?
- Helpful, but only if maintained properly.
- Don’t fake updates on every URL constantly.
-
Does the sitemap index reference all child sitemaps correctly?
- Check for broken links or outdated sitemap entries.
Cross-check against crawl data
Compare:
- URLs in sitemap
- URLs crawled by a site crawler
- URLs indexed in Search Console
Look for:
- URLs in sitemap but not indexable
- important pages missing from sitemap
- many non-canonical URLs included
3) Common problems to look for
Robots.txt issues
- Blocking important sections
- Blocking JS/CSS assets
- Blocking sitemap location
- Multiple conflicting directives
- Using robots.txt to hide sensitive content instead of proper access control
Sitemap issues
- Contains redirected URLs
- Contains 404s
- Contains noindex pages
- Incorrect canonical URLs
- Broken XML
- Missing important pages
- Old/obsolete URLs still present
4) Suggested audit workflow
-
Fetch
robots.txt- Review disallow rules and sitemap directives
-
Crawl the site
- Identify blocked pages, indexable pages, status codes, canonicals
-
Fetch and validate sitemap(s)
- Check XML validity and URL quality
-
Compare sitemap vs crawl
- Find mismatches:
- URLs in sitemap but blocked
- indexable pages missing from sitemap
- Find mismatches:
-
Check Search Console
- Coverage/Indexing reports
- Sitemaps report
- URL Inspection for representative URLs
-
Fix and resubmit
- Update robots.txt or sitemap
- Resubmit in Search Console
5) Simple checklist
Robots.txt
- Accessible at
/robots.txt - No accidental sitewide blocking
- Key assets not blocked
- Sitemap URL declared
- No conflicting directives
Sitemap
- Accessible and valid XML
- Only canonical, indexable URLs
- No redirects/404s/blocked pages
- Within size limits
- Split into sitemap index if needed
If you want, I can also give you:
- a step-by-step audit template
- a Screaming Frog workflow
- or a Python script to automatically check robots.txt and sitemap problems.