Skip to content
SEO4 min read

Robots.txt for search and AI crawlers: what to check

Robots.txt now decides what AI search tools can read on your site as well as Google. How the rules work, where crawl gets wasted, and what to check.

On most business websites, robots.txt was set once at launch and never looked at again. That used to be fine. Now AI search tools and agents crawl sites too, and each reads the same file to decide what it can access.

Get it wrong in one direction and your pages can drop out of AI-generated answers. Get it wrong in the other and crawlers spend their time on thousands of near-duplicate URLs instead of the pages that bring you work.

A recent Search Engine Journal guide by Vahan Petrosyan covers the mechanics well. Here’s what matters for an established business, and what to check.

How crawlers read the file

Robots.txt is a plain text file at the root of your domain. It tells crawlers which paths they may and may not request. A few rules decide how it actually behaves:

  • Matching is case-sensitive for paths. A rule blocking filter= doesn’t block Filter=. Directive names and user-agent names aren’t case-sensitive, but the URLs are.
  • There are only two wildcards.* matches any sequence of characters and $ marks the end of a URL. There’s no full regular expression support.
  • A crawler with its own group ignores the general one. If you write a group of rules for a specific bot, it follows those rules and skips everything under User-agent: *. Any restriction you want it to keep has to be repeated in its own group.
  • The more specific rule wins. When rules conflict, Google applies the one that matches more characters of the URL. If an Allow and a Disallow are equally specific, Google picks the less restrictive one.

That third point is the one we see trip sites up. Someone adds a group for a new crawler with a broad Allow: /, and every restriction in the general section quietly stops applying to it.

Where crawl gets wasted

Some URLs exist for visitors but have no value to a crawler:

  • Internal search results. On WordPress these usually use an ?s= parameter. Every search anyone has ever run can become a crawlable URL.
  • Filter and sort combinations. Product or project listings with filters for size, colour, location or price can produce a near-infinite number of variations of the same page.
  • Action URLs. Google’s Gary Illyes has repeatedly told sites to block links like add-to-cart and wishlist actions, because crawling them wastes crawler and server resources.

Restricting these keeps crawlers on the pages that matter and avoids load spikes from bots working through endless parameters. Google is clear on one caveat: blocking low-value URLs doesn’t automatically move crawl budget to your other pages unless your site is already hitting its crawl capacity. For most small and mid-sized sites, the main benefit is cleaner crawling and less server load, not faster indexing.

Decide deliberately about AI crawlers

Not every AI crawler does the same job. Some collect data to train models. Others fetch pages live to answer a user’s question, which is how your business ends up cited in an AI answer. Blocking all of them with one rule, or with a firewall setting someone turned on, can remove you from both.

The right setup depends on your business. A trade business or a professional practice that wants to be found usually wants AI search and answer crawlers allowed. A business with proprietary content may decide differently about training crawlers. Either way, it should be a decision, not a default.

What robots.txt isn’t

Two common misreadings:

  • It isn’t security. It’s a request that well-behaved crawlers honour. Anything private needs authentication, not a Disallow line.
  • It doesn’t remove pages from search. A blocked URL can still appear in results if other sites link to it. To keep a page out of the index, it needs to be crawlable and carry a noindex tag.

A quick check for your site

  1. Open yourdomain.com.au/robots.txt and read it. If you don’t know why a rule is there, find out.
  2. Check whether any crawler has its own group, and whether that group repeats the restrictions it should.
  3. Look for internal search, filter and action URLs that are left open.
  4. Confirm whether AI crawlers are allowed or blocked, including at your hosting or firewall level, and that this matches what you want.
  5. Test any change in Google Search Console’s robots.txt report before relying on it.

If your site runs on a custom web app rather than a standard CMS, the routes, parameters and API endpoints it generates should be planned with crawlers in mind from the start. And if search drives a real share of your enquiries, robots.txt belongs in regular technical SEO checks, not just the launch checklist.

Written by

Gurdeep Saroa

Founder & full-stack engineer

Software developer turned performance marketer. Builds the automation, tracking and web systems GRIVITY delivers.


All 8 SEO articles

Let’s talk

Let’s build the system behind your next stage of growth

Tell us where manual work is holding you back. We’ll show you the system that fixes it — and what you’d own.

Request a growth audit
03 8400 0026contact@grivity.com.auMelbourne, Australia