opyeb robotslab

robotslab · Audit

Auditing a crawl policy — steps and checklist

Audit order, pre-release checklist, confirming with logs

A robots.txt deployed with a mistake can remove a site from search entirely, or open internal paths to collection. Check it with the same routine before every release, and confirm real behaviour in the logs afterwards.

The order to check in

  1. Confirm /robots.txt answers 200 at the host root. If there is a redirect, check the final URL as well.
  2. Run the file through a parser and look at the group and rule counts. Zero rules or an empty group usually means the wrong file was deployed.
  3. Pick ten to twenty representative paths and check the verdicts: home, a listing, a detail page, search results, admin and an attachment.
  4. Simulate search crawlers and AI crawlers separately. Confirm that a path allowed for search is blocked for training where intended.
  5. Check that the Sitemap URL is absolute and really answers 200.
  6. After deployment, read the server logs by crawler and look for requests to blocked paths. Adjust the rules when they disagree with the intent.

Failures that show up most

SymptomCauseFix
The whole site disappears from searchDisallow: / applied to the default groupSplit the groups and block only what must be blocked
Images and CSS are not collectedA full block with no exceptionsReopen rendering assets with Allow
Only some pages are indexedSearch result URLs are blocked too aggressivelyPrefer canonical tags and noindex over blocking
A rule seems to do nothingThe rule sits outside a User-agent groupMove it inside the group
The Sitemap is not readIt is written as a relative pathUse the absolute URL
Crawling stops suddenlyrobots.txt returns a 5xxCheck CDN and proxy error responses

Pre-release checklist

Confirming with logs

robots.txt is voluntary, so the file alone does not prove what is collected. Read the server logs by crawler; if requests keep arriving for a blocked path, the file may be cached or the crawler may ignore it. The major crawlers cache robots.txt for about a day, so the previous rules can still apply right after a change.

Blocking a path in robots.txt does not remove an already indexed page. To drop it from an index, use a noindex response or the search engine's removal request. Blocking with robots.txt can prevent the crawler from ever seeing the noindex.

Questions

How often should this be checked?

Whenever the path structure changes, and at least once a quarter. Add new crawler tokens as they appear.

Can a bad robots.txt be reverted?

Fix the file and deploy again, but crawler caches can delay the effect by about a day. Make important changes during low traffic.

Why does a test tool disagree with a real search engine?

Non-standard per-crawler extensions and caching explain most differences. Compare with the real logs and the search engine's own tool.

Run the checklist through the tool once and keep the report.

Open the tool

This article follows RFC 9309 (Robots Exclusion Protocol, September 2022), the robots.txt internet draft (September 2022) and the llmstxt.org proposal (September 2024). Every domain and rule shown is synthetic.