The Text and Data Mining Exception (TDM Opt-Out) is a legal mechanism, codified in directives like the EU's DSM Directive, that permits rightsholders to expressly reserve their rights against the automated computational analysis of their copyrighted works. This reservation, or opt-out, must be communicated in a machine-readable format, such as a robots.txt directive or a specific metadata tag, to prevent the ingestion of content for training foundation models.
Glossary
Text and Data Mining Exception (TDM Opt-Out)

What is Text and Data Mining Exception (TDM Opt-Out)?
A legal provision allowing rightsholders to reserve their rights against the automated computational analysis of copyrighted works for machine learning purposes, often signaled via machine-readable metadata.
The TDM exception creates a two-tiered system: a mandatory exception for scientific research, and an opt-out mechanism for commercial machine learning purposes. This framework forces AI developers to implement technical compliance layers that parse and respect these machine-readable signals, establishing a direct link between web governance protocols and copyright enforcement in the age of generative AI.
Frequently Asked Questions
Clarifying the legal and technical mechanisms that allow rightsholders to reserve their rights against the automated computational analysis of copyrighted works for machine learning purposes.
A Text and Data Mining (TDM) Exception is a statutory provision in copyright law that permits the automated computational analysis of copyrighted works to generate patterns, trends, and correlations, typically for non-commercial scientific research. Crucially, under frameworks like the EU Copyright Directive (Article 4) , this exception applies only if the rightsholder has not expressly reserved their rights in an appropriate manner. The exception distinguishes between the act of reading a work for analysis and the act of reproducing it for expressive output. If a rightsholder applies a valid machine-readable opt-out, the exception is voided, and a license is required for mining. This creates a legal boundary between open research corpora and protected commercial content, directly impacting the training datasets of foundation models.
How the TDM Opt-Out Mechanism Works
The technical implementation of the Text and Data Mining (TDM) opt-out allows rightsholders to publicly declare that their copyrighted works cannot be used for automated computational analysis without a separate license.
The Text and Data Mining Exception (TDM Opt-Out) is a legal provision that enables rightsholders to reserve their rights against the automated computational analysis of copyrighted works for machine learning purposes. This reservation is typically signaled via machine-readable metadata, such as the TDMRep protocol, which embeds opt-out declarations directly into HTML headers or robots.txt files for crawler compliance.
For the mechanism to be legally effective, the opt-out must be expressed in a structured, standardized format that AI crawlers can parse programmatically. The European Union's CDSM Directive explicitly requires that such reservations be made using machine-readable means, moving beyond simple natural language statements in terms of service to enforceable, automated signals that govern data ingestion pipelines.
Core Characteristics of the TDM Opt-Out
The Text and Data Mining (TDM) Opt-Out is a legal and technical mechanism that allows rightsholders to explicitly reserve their rights against the automated computational analysis of copyrighted works for machine learning purposes, typically signaled through machine-readable metadata.
Legal Basis in EU Copyright Law
The TDM exception originates from Article 4 of the EU Directive on Copyright in the Digital Single Market (CDSM Directive) . It permits reproductions and extractions for text and data mining, but critically, rightsholders can expressly reserve these rights in an appropriate manner, such as machine-readable means for online content. This creates a legally binding opt-out mechanism distinct from fair use doctrines.
Distinction from Fair Use
Unlike the US fair use doctrine, which is a flexible, case-by-case affirmative defense, the TDM opt-out is a preemptive, rights-based reservation. It does not require a balancing of four factors. If a rightsholder has properly reserved their rights, the exception simply does not apply, making it a more absolute and technically enforceable mechanism for content owners in jurisdictions implementing the CDSM Directive.
Enforcement and Crawler Compliance
Effective enforcement relies on AI developers honoring the opt-out signal. Major foundation model providers like OpenAI (GPTBot) and Google (Google-Extended) have published user-agent tokens that respect robots.txt disallow rules. However, compliance is not universal, and the opt-out creates a legal basis for copyright infringement claims against entities that ignore the reservation and proceed with unauthorized TDM.
Scope of Reservation
The opt-out applies specifically to reproductions and extractions for TDM purposes, not to the act of indexing for search engines or human browsing. The reservation can be applied to:
- Entire domains via
robots.txt - Specific subdirectories or file types
- Individual HTML pages via TDMRep meta tags This granularity allows rightsholders to permit indexing for search discovery while blocking ingestion for generative AI training.
Relationship to Terms of Service
The TDM opt-out is a technical and legal signal, distinct from but complementary to website Terms of Service (ToS). While a ToS can contractually prohibit scraping, the machine-readable opt-out provides a direct, automated instruction to crawlers. A robust defense combines both: explicit contractual prohibitions in ToS and machine-readable reservations to trigger the legal exception's inapplicability.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
TDM Opt-Out vs. Other Copyright Protections
A feature-level comparison of the Text and Data Mining Opt-Out mechanism against traditional DRM, DMCA Takedowns, and the Robots.txt Exclusion Protocol for managing AI training access.
| Feature | TDM Opt-Out | Digital Rights Management (DRM) | DMCA Takedown | Robots.txt Directive |
|---|---|---|---|---|
Primary Function | Reserves rights against automated computational analysis | Restricts access, use, and distribution of digital content | Removes infringing content post-publication | Instructs crawlers on allowed/disallowed paths |
Legal Basis | EU Copyright Directive (Art. 4); Machine-readable reservation | WIPO Copyright Treaty; DMCA Anti-Circumvention (17 U.S.C. ยง 1201) | Digital Millennium Copyright Act (17 U.S.C. ยง 512) | Voluntary industry standard; No statutory force |
Enforcement Mechanism | Pre-litigation reservation of rights; Contract law | Technological encryption; Legal prohibition on circumvention | Notice-and-takedown procedure; Safe harbor compliance | Voluntary compliance by bot operators |
Proactive vs. Reactive | Proactive | Proactive | Reactive | Proactive |
Machine-Readable Signaling | ||||
Prevents Ingestion into Training Data | ||||
Requires Technical Implementation | ||||
Standardized Protocol | TDM Reservation Protocol (TDMRep); robots.txt extension | Various proprietary schemes (Widevine, FairPlay, PlayReady) | Standardized notice form (17 U.S.C. ยง 512(c)(3)) | Robots Exclusion Protocol (RFC 9309) |
Related Terms
The Text and Data Mining Exception relies on a stack of legal, technical, and licensing mechanisms to enforce rights reservations. These related concepts define the operational landscape for controlling automated computational analysis.
Consent Management Platform (CMP)
A Consent Management Platform extends TDM opt-out signaling beyond web crawlers to user-level data flows. CMPs capture and transmit granular consent preferences, including Article 4(3) of the DSM Directive reservations, via standardized APIs. This ensures that even if content is lawfully accessed by a human, the machine-readable metadata attached to the session prevents subsequent automated analysis without explicit authorization.
Training Data Provenance
Training Data Provenance is the documented chain of custody that validates whether a TDM opt-out was respected during corpus assembly. Without robust provenance records, it is impossible to audit whether a foundation model ingested content from a rightsholder who had explicitly reserved their rights. This concept underpins Algorithmic Disgorgement claims, where models trained on infringing data may face deletion orders.
Content Licensing APIs
Where a TDM opt-out reserves the right to refuse, a Content Licensing API provides the programmatic on-ramp for authorized use. These interfaces allow rightsholders to define granular, machine-readable terms for text and data mining, including:
- Permitted use cases (e.g., non-commercial research only)
- Attribution requirements
- Royalty micro-payment triggers This transforms the binary opt-out into a dynamic, monetizable permissioning layer.
Machine Unlearning
Machine Unlearning is the technical remedy for a violated TDM opt-out. If a model is found to have ingested data in defiance of a rights reservation, unlearning algorithms attempt to excise the influence of that specific data from the model's weights without full retraining. This process is critical for enforcing the EU AI Act's transparency obligations and responding to post-hoc copyright infringement claims.
Fair Use Doctrine
The Fair Use Doctrine is the primary legal counterweight to the TDM exception in the United States. While the EU's DSM Directive creates a statutory opt-out mechanism, US law relies on a four-factor balancing test. Courts evaluate whether scraping for AI training constitutes transformative use, weighing the purpose, nature, amount, and market impact. The absence of a formal TDM opt-out in the US makes licensing and technical barriers the dominant control strategy.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us