AI Tools & Software

Block AI Crawlers From Website: Robots.txt Options, Tradeoffs and Limits

Abstract blue chart graphic with the label Block Ai Crawlers From Website

If you want to block AI crawlers from website content, the first thing to know is that there is no single switch. Different companies run different bots for different purposes, such as training models, powering search features and fetching a page when a user asks. Blocking some can reduce your visibility in AI search, while allowing others may let your content be used for training. This guide explains OpenAI's published crawler controls, what is known about Google-Extended, how robots.txt works, and the tradeoffs and limits, based on OpenAI's bots documentation and third-party reports, checked on 15 October 2026.

What robots.txt can do to block AI crawlers from website content

Robots.txt is a plain text file at the root of your site that asks crawlers which paths they may fetch. It is a request, not a lock. Well-behaved crawlers follow it, but it does not stop copying by people or by bots that ignore it, and it does not remove content that has already been collected. For truly private content, use authentication, not robots.txt.

OpenAI's three bots

OpenAI's documentation describes separate bots with separate purposes:

  • OAI-SearchBot is used for search. OpenAI says sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as plain navigational links.
  • GPTBot crawls content that may be used to train generative AI foundation models. OpenAI says disallowing GPTBot indicates your content should not be used in training.
  • ChatGPT-User handles actions a user triggers in ChatGPT or custom GPTs, such as fetching a page. OpenAI says it is not used for automatic crawling and that, because users start these requests, robots.txt rules may not apply.

Each setting is independent, so you can allow search visibility while blocking training.

Example: appear in ChatGPT search but opt out of training

The approach OpenAI's documentation describes can be written as:

``` User-agent: OAI-SearchBot Allow: /

User-agent: GPTBot Disallow: / ```

To opt out of search as well, you would disallow OAI-SearchBot. OpenAI notes that changes can take about 24 hours to take effect for search. This example is an illustration of the documented approach; test your file and check OpenAI's current documentation before relying on it.

Google-Extended

Google's crawler documentation describes Google-Extended as a standalone product token that web publishers can use to manage whether content Google crawls from their sites may be used for training future generations of Gemini models, and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI. It says Google-Extended has no separate HTTP user agent string, because crawling uses existing Google user agent strings, and that it does not affect a site's inclusion in Google Search or act as a ranking signal. The opt-out is a robots.txt group with `User-agent: Google-Extended` and `Disallow: /`. Check Google's current documentation before relying on it.

Other AI companies

Other AI companies publish their own user agents and rules, and these change over time. Check each company's documentation for crawler names, purposes and whether they honour robots.txt. Keep a list of the bots you have chosen to allow or block, with the date and source of the documentation, and review it every few months.

The visibility tradeoff

Blocking AI search bots can reduce the chance of being cited or shown in AI search answers, while blocking training bots does not necessarily affect search features. Think about your goals. A publisher worried about training use may block training bots but allow search bots. A business that wants referrals from AI answers may want to be visible. There is no universally right choice.

Step-by-step: update your robots.txt

  1. List the bots you want to allow or block and why.
  2. Copy your current robots.txt as a backup.
  3. Add separate groups for each bot using the names in the vendor's documentation.
  4. Keep rules for ordinary search engines unchanged unless you intend otherwise.
  5. Validate the file with a robots.txt tester.
  6. Upload it to the site root and confirm it loads at /robots.txt.
  7. Check server logs after a few days to see crawler behaviour.

Beyond robots.txt

Some sites also use meta tags, HTTP headers, firewall rules or bot-management services to limit access. These can block bots that ignore robots.txt, but can also block legitimate traffic by mistake, so test carefully. Terms of service and licensing statements can also state your position on AI use. Seek legal advice for contracts and copyright questions; robots.txt is a technical signal, not a legal agreement.

Checking that it works

Look at your server or CDN logs for the user agent names. Remember that some requests are user-initiated and may not follow robots.txt, as OpenAI notes for ChatGPT-User. Treat logs as evidence of behaviour, not proof of compliance, and revisit your settings when vendors update their documentation. Our guides to AI for Google Business Profile and deep research AI tools explain how AI products use web content.

Example: a small publisher

A small recipe site wants to stay discoverable in AI search but not be used for training. The owner lists the bots, copies robots.txt, allows OAI-SearchBot, disallows GPTBot, adds a Google-Extended group after reading current documentation, validates the file and checks logs after a week. She notes the settings in a document with links to each vendor's documentation and sets a calendar reminder to review them in three months.

Common mistakes

  • Assuming one rule blocks all AI.
  • Blocking search bots by accident.
  • Typos in user agent names.
  • Forgetting to back up robots.txt.
  • Treating robots.txt as security.

Related reading

Blocking decisions are part of a wider content strategy. See our explainer on what MCP is in AI for how AI tools connect to data, and our guide on whether it is safe to upload files to ChatGPT for the other side of data sharing. Our guide to writing a newsletter with AI covers using AI on content you control.

Documenting your decision

Write down why you chose your settings, who approved them and when you will review them. If your policy changes, such as allowing search bots to gain visibility, update the file and the document together.

More to explore

For more tools grouped by job, browse our AI tools by profession guide.

FAQ

Can I block all AI crawlers with one line?

No. Different companies use different bots for training, search and user-initiated fetches, so you need separate rules.

Will blocking GPTBot remove me from ChatGPT search?

OpenAI describes GPTBot as the training crawler and OAI-SearchBot as the search crawler, with independent settings.

Does robots.txt stop ChatGPT-User?

OpenAI says robots.txt rules may not apply to ChatGPT-User because users trigger those requests.

What is Google-Extended?

Google's documentation describes it as a standalone robots.txt product token that lets publishers manage whether crawled content may be used for training future Gemini models and for grounding, and says it does not affect inclusion in Google Search. Check Google's documentation.

Does blocking remove content already used?

No. Blocking affects future use and cannot undo past training.

Conclusion

To block AI crawlers from website content, separate training bots from search and user-initiated bots, write precise robots.txt groups, test the file and check logs. Weigh the visibility tradeoffs, remember robots.txt is a request rather than security and review vendor documentation regularly.

Sources and methodology

OpenAI's crawler descriptions come from OpenAI's bots documentation (https://developers.openai.com/api/docs/bots), checked 15 October 2026. Google-Extended details come from Google's common crawlers documentation (https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers), read in a browser on 15 October 2026. The robots.txt example illustrates documented behaviour and should be tested. This guide is based on our earlier research and testing of AI assistants, automation, productivity and writing tools, linked throughout. It contains no vendor pricing or legal claims beyond those attributed below. Features, prices and platform rules change; check each provider's current terms.