Switch to ADA Accessible Theme
Close Menu

The Text File That Decides Whether AI Search Can Quote a Law Firm

Isometric illustration of small robots at a gate, one passing through and one held behind a barrier, beside a rules sheet, a shield and a server stack, with the MileMark logo

A partner asks why ChatGPT recommends two competitors for a question the firm has answered in detail on its own site. The usual suspects get blamed first: content, reviews, links. Sometimes the cause is more mechanical. The crawler that feeds the answer was never allowed to read the page, because of a line in a text file or a firewall setting that nobody at the firm remembers choosing.

AI search visibility starts with access. Before any system can describe a firm’s practice, it has to be able to fetch the pages, and the rules that govern that fetch are now more detailed than the old “let Google in” setup most law firm sites still run on.

Search Crawlers and Training Crawlers Are Separate Requests

The major AI companies now split their bots by purpose, and each one can be allowed or refused on its own in robots.txt. That split is what makes a deliberate policy possible.

OpenAI’s crawler documentation describes three agents. OAI-SearchBot surfaces websites in ChatGPT’s search features, and sites that opt out of it will not be shown in ChatGPT search answers, though they can still appear as navigational links. GPTBot collects content that may be used to train OpenAI’s foundation models. ChatGPT-User visits a page when a person’s question calls for it, and because a user started that request, OpenAI notes that robots.txt rules may not apply to it. OpenAI also says changes to robots.txt can take about 24 hours to reach its search systems.

Perplexity follows a similar pattern. PerplexityBot is its search crawler and, by Perplexity’s own description, is not used to crawl content for AI foundation models. Its user-triggered fetcher, Perplexity-User, generally ignores robots.txt. Anthropic runs ClaudeBot for training, Claude-SearchBot for search quality, and Claude-User for fetches made at a user’s request.

Google works differently, and this is where many firms get it wrong. There is no separate crawler for AI Overviews or AI Mode. Those features draw on the regular Search index that Googlebot builds, so blocking Googlebot removes a firm from both ordinary results and AI answers. Google’s documentation on the Google-Extended token explains that it controls training and grounding in Google’s generative AI products outside Search, and that it does not affect inclusion in Google Search or act as a ranking signal. Inclusion in AI Overviews, AI Mode and generative features in Discover is governed by a separate generative AI setting in Search Console, which Google rolled out to all sites on August 31, 2026. Every property is set to include by default.

A Starting Policy Most Firms Can Adopt

For a firm that wants clients to find it through AI assistants, the search agents should be open. Training is a separate business decision. Some firms are comfortable contributing public marketing pages to model training; others prefer to decline. Either choice is reasonable, and declining training does not by itself remove a site from AI search results, since the search and training agents are controlled independently.

A robots.txt that keeps search access open and declines training can look like this:

User-agent: OAI-SearchBot
User-agent: PerplexityBot
User-agent: Claude-SearchBot
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://www.example.com/sitemap.xml

A firm that is happy to allow training simply leaves out the second group. The last group should reflect whatever the site already needs for ordinary crawling. Every group should be checked against the firm’s existing file before anything is replaced, because a careless edit is the fastest way to block Googlebot by accident.

Two habits keep the file honest. Write rules by agent name rather than relying on a blanket “block all AI” list copied from a forum, since those lists often mix search and training bots together. And keep a dated note of what changed and why, so the next website vendor does not undo a deliberate choice.

Where Access Breaks Without Anyone Deciding

Blocks are often accidental. The robots.txt file can look fine while the problem sits somewhere else entirely.

  • Firewall and CDN settings. Cloudflare began asking new domains in July 2025 whether to allow AI crawlers, with blocking as the starting point. A firm that moved its DNS to Cloudflare may have answered that prompt without much thought. Perplexity’s documentation also warns that Cloudflare’s Bot Fight Mode can still challenge its crawlers even when a custom rule allows them.
  • Security plugins. WordPress security tools sometimes rate-limit or block unfamiliar user agents. A crawler that receives an error page learns nothing about the firm.
  • Leftovers from a redesign. A staging site is often built with a site-wide “Disallow: /” or WordPress’s “discourage search engines” box checked. When the site launches, the setting comes along. This belongs on any redesign checklist.
  • Subdomains. A robots.txt file covers only its own host. A blog on blog.firm.com or a Spanish site on a separate subdomain needs its own file and its own review.
  • Pages that depend on scripts. Not every crawler renders JavaScript the way a browser does. A practice area page whose text loads only after scripts execute may look empty to them, even with every permission in place.

A file written for a staging server has no business on a live one.

What llms.txt Does and Does Not Do

Firms are increasingly pitched on llms.txt, a proposed standard for a Markdown file at the site root that gives AI agents a short summary of a site and links to its most useful pages. It is a proposal, not an access control. It does not allow or block any crawler, and none of the crawler documentation from OpenAI, Google, Perplexity or Anthropic cited here treats it as a factor in whether a site appears in their search features.

Its heaviest use so far is in software documentation, where coding tools follow it to find reference pages. For a law firm, it is a low-cost addition that WordPress SEO plugins such as Yoast SEO can generate. If a firm publishes one, it should list the pages that best describe the practice: the main practice area pages, attorney bios, office pages and a plain summary of who the firm represents. It should not be sold as a visibility fix, and it should never be maintained instead of robots.txt and the firewall rules that actually decide access.

A Quarterly Access Check

Access settings drift as plugins update, hosts change and vendors come and go. A short routine, run every quarter and after any site change, catches most problems:

  1. Open the live robots.txt file at the root of every host the firm uses and read each group. Confirm that Googlebot is not caught by a broad rule.
  2. Check the robots.txt report in Search Console for fetch errors or parsing warnings, and use URL Inspection on a few key practice pages.
  3. Confirm the Search Console generative AI setting matches the firm’s intent.
  4. Review firewall and CDN bot settings, including any AI crawler toggles, and compare them with the robots.txt policy. The two should agree.
  5. Search the server logs for the agent names above. Requests that return errors or challenge pages point to a block that robots.txt does not show. Because user agent strings can be spoofed, OpenAI, Perplexity and Google publish IP ranges that a host can use to verify genuine traffic.
  6. Load two or three important pages with JavaScript disabled to confirm the main text is in the HTML.

None of this guarantees a citation. Access is the precondition, and the pages still need clear, specific content that answers the questions clients ask. That broader work is the focus of AI marketing for law firms, and it rests on the same technical foundation as law firm SEO.

Common Questions

Will blocking GPTBot keep a firm out of ChatGPT answers?

Not on its own. OpenAI treats GPTBot and OAI-SearchBot as independent settings, so a firm can decline training while remaining eligible for ChatGPT search. Blocking OAI-SearchBot is what removes a site from ChatGPT search answers, apart from navigational links.

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

No. Google states that Google-Extended does not affect inclusion in Google Search. AI Overviews and AI Mode are managed through the generative AI setting in Search Console, and blocking Googlebot would remove the firm from Search entirely.

Who should own these settings at a law firm?

Whoever manages the website, with the policy approved by a partner and written down. The robots.txt file, the CDN dashboard and the Search Console property are often handled by three different vendors. Good website design puts them under one documented owner so a change in one place does not quietly contradict another.

MileMark is a digital marketing agency for law firms that builds websites designed to get found in Google and AI search. If you are not sure which crawlers can reach your site today, our free website audit will show what is open, what is blocked and what to fix first.

Contact Our Award Winning Legal Marketing Agency Today

We aren’t the type of company to over-promise and under-deliver when it comes to building your law firm brand. We have built thousands of custom, responsive law firm websites up to Google’s latest mobile and accessibility standards. We have 60+ years of combined legal marketing expertise at MileMark, we exclusively build and optimize attorney websites, including AI search marketing. We utilize only the best strategies from dozens of studies and experiences on optimizing sites, conversions, trends and outcomes. Boost your presence online, contact our law firm marketing experts for a free website consultation today.

Tampa, FL
813-200-5844

5100 W Kennedy Blvd
Suite 152
Tampa, FL 33609

Fort Lauderdale, FL
954-446-9016

500 E Broward Blvd
Suite 1710
Fort Lauderdale, FL 33394

Boca Raton, FL
561-570-1987

20283 State Road 7
Suite 24
Boca Raton, FL 33428

Miami, FL
305-728-5184

701 Brickell Ave
Suite 1550
Miami, FL 33131

Orlando, FL
407-530-0110

121 S Orange Ave
Suite 1500
Orlando, FL 32801

Baltimore, MD
410-609-6168

100 International Dr
23rd Floor
Baltimore, MD 21202

Neptune, NJ
732-515-4141

3600 Route 66
Suite 150
Neptune, NJ 07753

Scranton, PA
570-218-5645

SNB Plaza
108 N Washington Ave
Scranton, PA 18503

Hermosa Beach, CA
310-928-2970

2447 Pacific Coast Hwy
2nd Floor
Hermosa Beach, CA 90254

  • facebook
  • X
  • linkedin
  • instagram
  • youtube
  • tiktok

© MileMark Media, LLC. All rights reserved.