VantlyAll tools
All web tools

Robots.txt generator

Write a robots.txt without the one line that hides your whole site.

Search engines
Block AI crawlers
robots.txt
User-agent: *
Disallow: /admin
Disallow: /cart
Disallow: /checkout

Sitemap: https://example.com/sitemap.xml

Save this as robots.txt at the root of your domain. It only works there, not in a subfolder.

Questions

What does Disallow: / do?
It asks every crawler to ignore the entire site.
Is robots.txt a security measure?
No, and treating it as one is a mistake.
Does it stop a page appearing in Google?
Not reliably.
Should I block AI crawlers?
Blocking keeps you out of the training data and out of AI answers, which is increasingly how people find things.
Where does the file go?
At the root of the domain, so example.com/robots.txt.