What is robots.txt?
A small text file at the top of your site (yourbusiness.com/robots.txt) that tells search engines and other crawlers which parts they may visit. It's a request rather than a lock, but Google, Bing and the big AI companies follow it.
Rules are grouped by crawler name. A crawler uses the group that names it, or the "*" group if none does. Within a group, the most specific matching rule wins.
What good looks like
For most small businesses, almost nothing: let everyone in, keep out a few private areas such as a shopping cart or admin pages, and name your sitemap.
Common mistakes
- "Disallow: /" left over from building the site, which keeps search engines out of everything.
- A robots.txt that errors (a 5xx answer): Google then stops visiting your site until it loads.
- Blocking a page in robots.txt to hide it from search. Google can still list the address; use a "noindex" setting instead.
- A sitemap line pointing at an old address or a test site.