Skip to content
Byteboat
NoTrain Stamp · by Byteboat4 min readUpdated

TDMRep: declare an AI opt-out for a whole website

Stamping your files protects images wherever they travel. To cover your web pages as well, publish the same reservation at site level with TDMRep.

What is TDMRep?

TDMRep (TDM Reservation Protocol) is a protocol published by a W3C Community Group (final report in 2024). It gives a standard way to express the text and data mining reservation provided for by Article 4 of EU Directive 2019/790. It comes down to two values:

Three ways to publish it

1. One file for the whole site

The simplest, even on static hosting: put a file at /.well-known/tdmrep.json on your domain.

[
  {
    "location": "/*",
    "tdm-reservation": 1,
    "tdm-policy": "https://example.com/ai-licence.json"
  }
]

location accepts patterns: you can reserve only /portfolio/*, for example.

2. HTTP headers

Useful for images and PDFs served directly. With nginx:

add_header tdm-reservation "1" always;
add_header tdm-policy "https://example.com/ai-licence.json" always;

With Apache (.htaccess, headers module enabled):

<IfModule mod_headers.c>
  Header set tdm-reservation "1"
</IfModule>

3. Tags in HTML pages

<meta name="tdm-reservation" content="1">
<meta name="tdm-policy" content="https://example.com/ai-licence.json">

NoTrain Stamp generates these snippets from your settings, plus a line for the IETF AIPREF draft in robots.txt.

What about robots.txt?

robots.txt tells crawlers which pages not to visit, crawler by crawler (for example GPTBot, Google-Extended or CCBot). It helps, but you have to know each crawler, and it is not a rights statement. TDMRep instead states a reservation that applies to everyone and is attached to your content. Use both:

User-agent: GPTBot
Disallow: /

User-agent: CCBot
Disallow: /

Check that it works

To stamp the images themselves, see opt your images out of AI training.

This guide is general information, not legal advice.

Guides

Other tools