The TDM opt-out, where TDM stands for text and data mining, is a copyright tool that matters for every website whose content AI providers can collect. Copyright law generally allows lawfully accessible works to be reproduced for TDM. According to the EU AI Act, such techniques may be used extensively to train large AI models. A TDM opt-out is the legal side of the decision to keep content out of the training data of future AI models; the practical routes are what an AI training opt-out is about.

What the law says

The basis is the EU Directive on copyright in the Digital Single Market (DSM Directive) of 2019, implemented in Germany in Section 44b of the Copyright Act (UrhG). Under it, TDM is allowed as long as rights holders have not expressly reserved this use. For works available online, German copyright law ties the effect of such a reservation to a machine-readable form. According to the directive, a reservation does not affect uses other than TDM.

The EU AI Act builds on this: providers of general-purpose AI models, which typically include large language models, must have a policy to identify and comply with such reservations. Whether the legal exception for TDM covers the training of large language models at all has not been settled; the question is before the Court of Justice of the European Union.

What counts as machine-readable

Neither the DSM Directive nor Section 44b of the German Copyright Act specifies what machine readability requires for a reservation. The directive gives metadata and the terms and conditions of a website or service as examples. How far that reaches is disputed, and the highest courts have not settled it.

A statement in a website’s legal notice or terms of use makes a reservation understandable to people; whether such text on its own counts as a machine-readable reservation is one of these open questions. Sites therefore often declare a reservation in technical formats as well.

Reservations in robots.txt

The EU’s Code of Practice for general-purpose AI models names one format explicitly: robots.txt. In this voluntary code, published in July 2025, signatories commit to using crawlers that read and follow robots.txt when they collect data for TDM and for training their models. Crawlers are programs that fetch web pages automatically. Signatories include OpenAI, Google, and Anthropic. For example, the lines “User-agent: GPTBot” and “Disallow: /” tell OpenAI’s training crawler, GPTBot, not to fetch any page of the site.

A rule in robots.txt addresses either a token—the name a provider defines for a crawler or a use—or, with “User-agent: *”, every crawler that has no rules of its own in the file. A reservation in robots.txt therefore targets AI training only if it addresses each provider’s training crawlers and the tokens they document specifically for training.

There are also formats designed specifically for reservations. TDMRep, for example, is a protocol from an open community group at the web standards body W3C, first published in 2022 as a report of its own, not as an official W3C standard; among other places, it declares the reservation in a dedicated file on the server or in a page’s HTML. Cloudflare, a provider of network services for websites, declares restrictions that sites state with its Content Signals in robots.txt to be express reservations under the DSM Directive. Whether AI providers read such additional protocols depends on the provider.

TDM opt-outs and AI answers

A TDM opt-out concerns text and data mining only. Whether a website can appear as a source in AI answers depends mainly on which crawlers its robots.txt allows: with OpenAI and Anthropic, separate AI index crawlers such as OAI-SearchBot collect the sources for answers, and blocking the training crawlers does not shut them out. With Google, by contrast, the Google-Extended token covers both the training of future Gemini models and grounding in the Gemini Apps, that is, using content as the basis for answers.

A site that also blocks the crawlers for answers is making an AI answer opt-out: a decision that goes beyond a TDM opt-out and costs visibility, because those AI systems can then largely no longer use its pages as sources or show them as AI citations. Even so, not every provider applies robots.txt to a User-triggered fetcher, which retrieves pages because a person asks for them in a chat.