let's talk

AI Crawlers and robots.txt for Law Firms

Which AI crawlers decide whether a law firm can be cited in ChatGPT, Claude, Perplexity, Copilot and Google's AI features, which ones only collect training data, and how to write a robots.txt that keeps the first group and blocks the second.

Pawan Khatri

Pawan Khatri

Founder

About Pawan

Published · 9 min read

Most law firm websites have a robots.txt file that nobody at the firm has read. It was written by a theme, a plugin or a developer years ago, and it now decides whether ChatGPT, Claude, Perplexity and Copilot can read the firm's pages, and so whether they can cite them.

The AI companies run several crawlers each, and they do different jobs. Some build the index an assistant searches when it answers a question. Some collect content to train future models. Some fetch a page only when a user asks. Blocking the wrong one can take a firm out of AI answers while doing nothing to protect its content. This post lists each crawler, says what its owner says it does, and gives a robots.txt that most firms can start from. The law firm GEO hub covers the rest of the work.

Three kinds of AI crawler

Every major provider now separates its agents into three roles:

  1. Search crawlers index pages so the assistant can find and cite them. Blocking one keeps the firm out of that assistant's answers.
  2. Training crawlers collect content for future models. Blocking one keeps the firm's content out of training and has no effect on citations, according to each provider's own documentation.
  3. User agents fetch a page when a person asks the assistant to open it or look something up. They act for the user, and some providers say robots.txt may not bind them.

The table below sets out what each provider says.

ProviderCrawlerRoleWhat the provider says
OpenAIOAI-SearchBotSearch"Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers."
OpenAIGPTBotTrainingDisallowing it "indicates a site's content should not be used in training generative AI foundation models."
OpenAIChatGPT-UserUser"Not used for crawling the web in an automatic fashion"; robots.txt "may not apply".
AnthropicClaude-SearchBotSearchDisabling it "prevents our system from indexing your content for search optimization."
AnthropicClaudeBotTrainingBlocking it signals "the site's future materials should be excluded from our AI model training datasets."
AnthropicClaude-UserUserDisabling it "prevents our system from retrieving your content in response to a user query."
PerplexityPerplexityBotSearch"Designed to surface and link websites in search results on Perplexity"; not used for training.
PerplexityPerplexity-UserUser"Generally ignores robots.txt rules" because a user requested the fetch.
GoogleGooglebotSearch, including AI Overviews and AI ModeNormal search rules and snippet controls apply.
GoogleGoogle-ExtendedTraining and Gemini grounding"Does not impact a site's inclusion in Google Search."
AppleApplebot-ExtendedTrainingPages that disallow it "can still be included in search results."

Microsoft's Copilot and Bing's AI summaries cite pages that Bing has indexed, and Bingbot does that crawling. Bing Webmaster Tools now reports how often a site is cited in Copilot and Bing's AI summaries; our post on measuring AI referrals covers that report.

The mistake we see most often

A firm reads that AI companies train on websites, and adds a block for every AI name it can find, including the search crawlers. Its pages stop appearing in ChatGPT, Claude and Perplexity answers. Its content may already sit in older training data, so the block protects little.

The opposite mistake is quieter. A firm's robots.txt allows everything, but a bot-protection service in front of the site shows a challenge page to unfamiliar visitors. A person clicks through; a crawler cannot. OpenAI's help page on ChatGPT search says the site's host or CDN must allow OpenAI's published search crawler IP addresses. A firm with a perfect robots.txt can still be invisible to ChatGPT because of a firewall setting.

Check both, in that order. First read what robots.txt says, then check what the server and firewall do when each crawler arrives.

A robots.txt most firms can start from

This allows the search crawlers and blocks the training crawlers. Adjust it to the firm's own view on training, and keep any existing rules for private areas such as client portals.

```

Search crawlers are allowed, so assistants can cite the firm

User-agent: OAI-SearchBot Allow: /

User-agent: Claude-SearchBot Allow: /

User-agent: PerplexityBot Allow: /

Training crawlers are blocked

User-agent: GPTBot Disallow: /

User-agent: ClaudeBot Disallow: /

User-agent: Google-Extended Disallow: /

User-agent: Applebot-Extended Disallow: /

Everyone else, including Googlebot and Bingbot

User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example-law.com/sitemap.xml ```

Three notes on it:

  • A crawler follows the group with the most specific User-agent match, and ignores the * group if a named group matches it. So a rule you want every crawler to obey, such as keeping the client portal out, has to be repeated in each named group, or the named groups should be left out for crawlers you are content to treat like everyone else.
  • Blocking Google-Extended keeps content out of Gemini training and grounding in Gemini Apps. It does not affect AI Overviews or AI Mode, which use Googlebot. To limit what Google's AI features quote, Google points to nosnippet, data-nosnippet, max-snippet and noindex.
  • robots.txt is public. Anyone can read it. Do not list private paths that are not otherwise protected.

Should a law firm block training at all?

It is the firm's decision, and there are reasonable views on both sides.

Reasons to block training crawlers:

  • The firm's articles took lawyers' time to write and check, and the firm would rather they were not absorbed into a model without credit.
  • Some firms publish detailed procedural guidance and prefer that clients reach it on the firm's site, where it carries a disclaimer and a date.

Reasons to allow them:

  • A model that has read the firm's pages may describe the firm more accurately even when it answers without searching.
  • The content is public already, and older versions may be in training data from before the block.

Whichever the firm decides, the search crawlers are a separate decision, and most firms that want clients from AI answers should allow them.

Client confidentiality is a different control

robots.txt is a request that well-behaved crawlers honour. It secures nothing. OpenAI says robots.txt "may not apply" to ChatGPT-User, and Perplexity says its user agent "generally ignores robots.txt rules". Anthropic's page notes that blocking by IP address may not reliably opt a site out.

So anything confidential (client portals, document rooms, intake forms with attached files, staging copies of the site) needs a login, not a robots.txt line. The professional rules on confidentiality, such as ABA Model Rule 1.6 or the Law Society of Ontario's Rule 3.3, are about what the firm discloses. A page left open to the internet has been disclosed to anyone who finds it, crawler or not.

How to check what is happening

  1. Read robots.txt at the root of the domain and confirm each group does what the firm intends.
  2. Read the server logs for the crawler names in the table. If OAI-SearchBot or PerplexityBot never appears, something is stopping it, or the site has not been discovered yet.
  3. Check the firewall or CDN. Look for bot-fight modes, challenge pages and country blocks. Allow the providers' published IP ranges for their search crawlers where the service supports it.
  4. Check Google separately. Search Console's URL Inspection shows whether Googlebot can fetch and index each page. AI Overviews draw on the same index.
  5. Wait and re-check. OpenAI says robots.txt changes take about 24 hours to apply; Perplexity says up to 24 hours.

Settings that change robots.txt without anyone deciding to

On most law firm sites, nobody edits robots.txt by hand. Something else writes it, and the firm finds out later.

  • WordPress. WordPress serves a virtual robots.txt when no file exists, and SEO plugins such as Yoast and Rank Math let editors change it from a settings screen. The setting "Discourage search engines from indexing this site", meant for staging copies, is sometimes left on after launch. It tells every crawler, search and AI alike, to stay away.
  • CDN and firewall services. Cloudflare and similar services offer one-click settings to block AI crawlers, and some can also write lines into the robots.txt they serve. These settings often block search and training crawlers together. If the firm uses one, read what each option blocks before switching it on.
  • Hosting migrations. A new host or a rebuilt site may ship a default robots.txt that replaces the old one. Our launch checklist for every website includes reading the live robots.txt on the day the site goes live.
  • Staging sites. A staging copy of the site at a public address, open to crawlers, can be indexed and cited instead of the real site. Put staging behind a password.

A five-minute test any firm can run

  1. Open https://yourfirm.com/robots.txt in a browser. Read every User-agent group and its Disallow lines. A single Disallow: / under User-agent: * blocks every crawler without its own group.
  2. Search the file for the names in the table above. Note which are allowed, which are blocked and which are not mentioned. A crawler that is not mentioned follows the * group.
  3. Open the site in a private browser window from a network outside the firm's office. If a challenge page appears before the home page, crawlers are likely to meet it too.
  4. In Google Search Console, run URL Inspection on the home page and one practice page, and use "Test live URL". If Googlebot is blocked, AI Overviews cannot use the page either.
  5. Ask an assistant that searches the web to summarise one of the firm's practice pages by its address. If it says it cannot access the page, something between the crawler and the page is stopping it.

The result is a short list of which crawlers can read the site, which cannot, and which of those the firm meant to block. Fixing the unintended ones is usually a ten-minute change. Write down the decision and the date, so the next developer or agency knows the blocks are deliberate.

Firms with several sites or languages

Each domain and subdomain has its own robots.txt. A firm with example-law.com, ar.example-law.com and an old example-legal.com that still serves pages has three files to check. The Arabic and French versions of a site are where we most often find an old block, because they were set up by a different developer at a different time. In the UAE and in Canada, where clients ask questions in Arabic or French, a blocked language site removes the firm from every answer in that language.

Where this fits

Crawler access is the entry condition. It decides whether an assistant can cite the firm, not whether it will. What earns the citation is covered elsewhere in this cluster. It comes from pages that state the rule and the deadline plainly (how to get your law firm recommended by ChatGPT), consistent listings in directories and bar registers, and measurement (measuring AI referrals). The other file firms ask about, llms.txt, has its own post: llms.txt for law firms.

Market-specific rules on what a firm may publish are on the GEO pages for India, the USA, the UAE and Canada.

We check crawler access in the first month of every GEO and SEO retainer, which starts at US$2,000 a month. A free first look is available through our SEO audit tool.

Sources

  • OpenAI, "Overview of OpenAI Crawlers": https://developers.openai.com/api/docs/bots
  • OpenAI Help Center, "ChatGPT search": https://help.openai.com/en/articles/9237897-chatgpt-search
  • Anthropic, "Does Anthropic crawl data from the web, and how can site owners block the crawler?": https://support.claude.com/en/articles/8896518
  • Perplexity, "Perplexity Crawlers": https://docs.perplexity.ai/guides/bots
  • Google Search Central, "Google's common crawlers" (Google-Extended): https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers
  • Google Search Central, "AI features and your website": https://developers.google.com/search/docs/appearance/ai-features
  • Apple, "About Applebot": https://support.apple.com/en-us/119829
  • Bing Webmaster Blog, "Introducing AI Performance in Bing Webmaster Tools" (10 February 2026): https://blogs.bing.com/webmaster/February-2026/Introducing-AI-Performance-in-Bing-Webmaster-Tools-Public-Preview
  • RFC 9309, Robots Exclusion Protocol: https://www.rfc-editor.org/rfc/rfc9309

Frequently Asked Questions

Should a law firm block AI crawlers?

Block the training crawlers if the firm does not want its pages used to train models, and allow the search crawlers. OpenAI says sites that block OAI-SearchBot "will not be shown in ChatGPT search answers", while blocking GPTBot only keeps content out of training. Anthropic and Perplexity split their crawlers the same way.

Does blocking Google-Extended remove a firm from AI Overviews?

No. Google says Google-Extended "does not impact a site's inclusion in Google Search" and is not a ranking signal. It governs use in Gemini training and grounding. AI Overviews and AI Mode follow the normal Googlebot rules and snippet controls such as nosnippet and max-snippet.

Do AI assistants obey robots.txt?

Their automatic crawlers say they do. The agents that fetch a page because a user asked are different. OpenAI says robots.txt "may not apply" to ChatGPT-User, and Perplexity says Perplexity-User "generally ignores robots.txt rules". robots.txt is a request, so content that must stay private needs a password.

How quickly do robots.txt changes take effect for AI crawlers?

OpenAI says changes take about 24 hours to apply to its search results, and Perplexity says up to 24 hours. Other providers do not publish a figure.

Can a firewall block AI crawlers by mistake?

Yes. Bot-protection services that show a challenge page stop crawlers that cannot complete it. OpenAI says a site's host or CDN must allow its published search crawler IP addresses for the site to appear in ChatGPT search. Check the firewall's bot settings as well as robots.txt.

Case studies

Services that we provide

Plan your firm's SEO

Book a strategy call

Send us your site and tell us where your lawyers are admitted. We will reply within one working day with what your Search Console shows and the first pages we would write.

I'm happy with what Konan & Spade delivered, and I'm seeing a worthwhile return on the investment. They do their research. They check the Law Society of Ontario's rules and research every article, disclaimer and compliance point the way a law firm needs.
Benjamin Cohen-MurisonLawyerCohen Murison Law, Toronto

Work with us

Monthly retainers start at

$2,000 / month

Our process:

  1. Schedule a discovery call

    A 30-minute deep dive into your past marketing, your competitors and where you actually want to be cited.

  2. Receive your growth plan

    A tailored strategy naming the right channels, the priorities, and a clear roadmap to get there.

  3. Start getting found

    We hold a kickoff call, implement the plan, and start moving visibility inside the first 30 days.

No decks, no discovery theatre

Tell us where you want to be found

Tell us what you need

Let's talk

Send us the shape of the problem and we will reply within one working day.

Prefer email? [email protected]

let's talk