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:
tdm-reservation:1if mining rights are reserved,0otherwise;tdm-policy(optional): the address of a policy explaining how to get a licence. The specification expects a machine-readable document (ODRL, as JSON-LD).
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
- Open
https://your-site/.well-known/tdmrep.jsonin a browser: the file should display. - For headers, run
curl -I https://your-site/an-image.jpgand look fortdm-reservation: 1. - For files, drop an image into NoTrain Stamp: any reservation present is shown.
To stamp the images themselves, see opt your images out of AI training.