Answers · AI crawlers
Our illustrators want their portfolio images kept out of AI training sets, so we're adding noai and noimageai to our robots meta tags and an X-Robots-Tag header. Which scrapers actually read those directives, where does the directive have to be for them to see it, and can it hurt how our images appear in Google?
Last updated
TL;DR: Only tools that choose to check them, and only where they look. The documented reader we found is img2dataset, the open-source downloader used to build image-text datasets for model training. By default it drops an image when the image's own HTTP response carries X-Robots-Tag noai, noimageai, noindex or noimageindex. It reads that response header on the image URL, not a robots meta tag in the HTML page around it and not robots.txt, and whoever runs it can turn the check off with --disallowed_header_directives '[]'. Its default user agent is a plain Firefox 72 string; an img2dataset token is added only if the operator sets one, so a header scoped to "img2dataset:" matches only then. Google's robots meta tag documentation (last updated March 24, 2026) doesn't list noai or noimageai among the rules it supports, but noindex and noimageindex are Google rules: putting them on image responses to reach img2dataset also asks Google to keep those images out of search results. Send X-Robots-Tag: noai, noimageai on image responses, and treat it as a request that some tools honor, not a block.
What should I check, step by step?
1. Put the directive on the image responses themselves: send an X-Robots-Tag: noai, noimageai header from the server or CDN for your image URLs. img2dataset checks the header on the image it downloads, not the HTML page that shows it.
- Keep the page-level robots meta tag if you like, but don't count on it for images. img2dataset's code reads X-Robots-Tag response headers only.
- Don't add noindex or noimageindex to image responses just to reach AI tools. Google documents both as its own rules, so they also ask Google to keep those images out of search results.
- Leave the header unscoped (no bot name in front). A header like "X-Robots-Tag: img2dataset: noai" only matches when the operator has set img2dataset as their user agent token, which is off by default.
- Check the header is really sent: request an image URL with curl -I and look for X-Robots-Tag in the response, including on CDN, resized and thumbnail URLs.
- Expect requests to keep arriving. img2dataset makes the request and drops the image after reading the response headers, and its default user agent looks like an ordinary Firefox browser, so your logs won't show which visits were img2dataset.
- Use robots.txt groups and access controls for crawlers that don't read these headers. noai and noimageai are not part of Google's documented rules and img2dataset is the one tool whose docs and code we found reading them.
- Write down the date you started sending the header and which URLs carry it, so you can show what you asked for if your images turn up in a dataset later.
Which scrapers actually read the noai and noimageai directives?
img2dataset's README has an Opt-out directives section: websites can pass the HTTP headers X-Robots-Tag: noai, X-Robots-Tag: noindex, X-Robots-Tag: noimageai and X-Robots-Tag: noimageindex, and by default img2dataset ignores images with such headers. Its option disallowed_header_directives defaults to ["noai", "noimageai", "noindex", "noimageindex"], and the README says passing '[]' downloads all images.
- The README describes img2dataset as a tool to retrieve images from the web for ML use, including training models such as CLIP and text-to-image models, and says the opt-out directives try to let creators who don't want their art used for indexing and training opt out.
- Google's robots meta tag and X-Robots-Tag documentation, last updated March 24, 2026, lists the rules Google supports (all, noindex, nofollow, none, nosnippet, max-snippet, max-image-preview, noimageindex, unavailable_after and others). noai and noimageai are not on that list. We found no other crawler documentation this run that commits to reading them, so treat any other tool as not reading them unless its own docs say so.
Where does a noai directive have to be for img2dataset to see it?
In img2dataset's downloader code, each image URL is requested and the response's X-Robots-Tag headers are parsed before the body is read. If any listed directive is present, the image is skipped with the note "Use of image disallowed by X-Robots-Tag directive". It never parses the HTML page the image appears on, so a <meta name="robots" content="noai"> tag doesn't reach it, and it doesn't fetch robots.txt.
- Google's page says the same X-Robots-Tag header is how you put rules on non-HTML files such as images, and that rules without a user agent name apply to all crawlers. Scoped headers follow the form "X-Robots-Tag: otherbot: noindex". img2dataset follows that form: a header scoped to a bot name only counts if that name equals the user agent token the operator set.
- The default request sends the user agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0". Only when the operator sets user_agent_token does it append a "(compatible; token; +https://github.com/rom1504/img2dataset)" part. So you usually can't scope a header to it or pick its requests out of your logs; an unscoped header is the one that works by default.
Can noai or noindex on your images affect Google, and what don't they cover?
Google documents noindex as "Do not show this page, media, or resource in search results" and noimageindex as "Do not index images on this page". img2dataset honors both by default, but sending them on image responses also asks Google to keep those images out of search results. noai and noimageai reach img2dataset without that cost, because Google doesn't list them as rules it uses.
- The header only works going forward and only for tools that check it. It doesn't remove images from datasets built before you added it, it doesn't apply when an operator turns the check off, and it doesn't stop crawlers that don't read it. That is why it belongs next to robots.txt groups for named AI crawlers and real access controls for anything private.
- Keep a dated record of the header and the URLs it covers. If your images later show up in a dataset, that record is what shows the opt-out was in place on a given date, which matters when you ask a dataset maintainer or model developer to remove them.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We started sending X-Robots-Tag: noai, noimageai on every image URL under /portfolio/ (origin and CDN) today, and checked it with curl -I on 20 sample images including thumbnails. Record what we changed and when.”
{
"tool": "record_action",
"arguments": {
"action_type": "security.config_change",
"outcome": "success",
"occurred_at": "2026-11-24T18:00:00Z",
"client_event_id": "noai-header:portfolio-2026-11-24",
"summary": "X-Robots-Tag: noai, noimageai added to image responses under /portfolio/ (origin + CDN, thumbnails included); verified with curl -I on 20 sample image URLs; noindex/noimageindex not used so Google Images listing is unchanged",
"action_sha256": "<sha256 of the header config and the curl -I output>"
}
}- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside your web server.
- It proves the entry was recorded, not that any scraper read the header or skipped your images. It doesn't fetch your images or check any dataset; the hash ties the receipt to the exact config and output you used.
Rightshold isn't affiliated with img2dataset or Google and can't see which tools request your images. img2dataset's behavior is as its README and downloader code on GitHub showed on November 24, 2026, and Google's supported rules are as its robots meta tag documentation (last updated March 24, 2026) listed them; both can change. Not legal advice.
What are the sources?
- img2dataset README: Opt-out directives and disallowed_header_directives
- img2dataset downloader code (X-Robots-Tag check and default user agent)
- Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications
Related
- How to block AI training crawlers in robots.txt without leaving AI search
- Why an AI training opt-out or robots.txt is not access control
- Does blocking CCBot remove your site from Common Crawl and AI training data?
- What the usage AI training robots.txt line is and who will honor it
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
