Before a search engine or an AI assistant can show your website to anyone, a program called a crawler has to visit and read it. A few plain text files tell those crawlers where they may go and what they will find.

You can check all three in a browser in under a minute. This guide explains what each does and what to look for.

1. robots.txt: where crawlers may go.

The robots.txt file sits at the top level of your site, at yourdomain.com/robots.txt. It lists which parts of the site crawlers are asked not to visit, and it usually points to your sitemap.

It is a request, not a lock. Well-behaved crawlers follow it, but it does not hide private information. It also does not remove a page from search results; that needs a “noindex” instruction on the page itself.

2. The sitemap: what your site contains.

A sitemap is a list of the pages you want search engines to know about, usually at yourdomain.com/sitemap.xml. It helps crawlers find every page, including new ones with few links pointing to them.

List only real, working pages at their preferred addresses. Submit the sitemap once in Google Search Console and Bing Webmaster Tools, and keep it updated automatically when pages are added.

3. AI crawlers.

AI companies run their own crawlers, with names such as GPTBot, ClaudeBot, and PerplexityBot. Some gather content for answering questions in real time, and some for training models. Each company documents how to allow or block its crawlers in robots.txt.

If you want AI assistants to be able to describe and cite your business, do not block these crawlers. If you would rather keep your content out of AI training, you can disallow the relevant ones. It is a business decision, not a technical one.

4. llms.txt: a summary for AI.

llms.txt is a newer, proposed convention: a plain text file at yourdomain.com/llms.txt that summarizes your site and links to its most useful pages, written for language models.

It is not an official standard, and AI companies have not committed to using it. It costs little to add and may help, but treat it as an optional extra. Clear pages and a correct sitemap matter far more.

5. Common mistakes to check for.

The most damaging mistake is a robots.txt that blocks the whole site, often left over from when the site was being built. One line can remove a website from search results.

The others are quieter but still cost visibility.

  • “Disallow: /” left in robots.txt after launch
  • A sitemap listing deleted or redirected pages
  • A sitemap that is never updated
  • Blocking the files that make pages display properly
  • No sitemap submitted to Search Console
Your starting point

Check your own site.

  • Open yourdomain.com/robots.txt and confirm it does not block the whole site
  • Confirm robots.txt points to your sitemap
  • Open your sitemap and confirm it lists your current pages
  • Submit the sitemap in Google Search Console
  • Decide whether AI crawlers should be allowed
  • Review Search Console’s page indexing report each month

Common questions.

01Does every website need a robots.txt file?

It is not strictly required, since crawlers will visit a site without one. It is still worth having, because it tells crawlers where your sitemap is and lets you keep them out of areas such as admin or search-result pages.

02Does blocking a page in robots.txt remove it from Google?

No. It stops Google reading the page, but the address can still appear in results if other sites link to it. To remove a page from search results, allow it to be crawled and add a noindex instruction.

03Should I add an llms.txt file to my website?

It is optional. It is quick to add and does no harm, but there is no confirmed benefit yet because AI companies have not committed to reading it. Get robots.txt, the sitemap, and your page content right first.

  • robots.txt
  • XML sitemap
  • llms.txt
  • AI crawlers
  • GPTBot
  • technical SEO basics
Need help with this?

Explore our website care & support service, or tell ZAHMMY about your project.