Quick answer: How do you opt out of AI training in robots.txt?
The proposed AIPREF signal for AI training opt-out is User-agent: __usage_ai-training followed by Disallow: / in your website's robots.txt file. However, as of November 4, 2026, this is a draft industry preference, not a universal working block. Google announced plans to support the shared signal in 2027.
User-agent: __usage_ai-training
Disallow: /
Meaning: a participating AI provider should interpret this as a preference against using content from all paths for generative AI model training. It does not automatically stop crawling, remove pages from Google or force every AI provider to comply.
Google published its AI training control announcement on October 30, 2026. The underlying technical proposal is an IETF Internet-Draft, and its details may change.
What is AIPREF, and how does the AI training policy token work?
AIPREF is an effort to standardize machine-readable preferences about AI uses of website content. Instead of writing a separate preference for every AI company, publishers could publish a shared policy token in their existing robots.txt file.
The draft uses ordinary User-agent, Allow and Disallow syntax. For example, a publisher might express a training opt-out for the whole site but allow one public folder:
User-agent: __usage_ai-training
Disallow: /
Allow: /press-kit/
This means the AI-training preference is different for /press-kit/. It is not a security setting or a guarantee that content cannot be copied. Your public pages can still be visited by people and by crawlers subject to their own rules.
How to block AI training now: Google-Extended and GPTBot
If you need controls today, use each provider's documented rules rather than relying only on AIPREF. These are examples to review alongside your existing rules, not a replacement for your entire robots.txt file.
Google: restrict Google-Extended
User-agent: Google-Extended
Disallow: /
Google-Extended covers specified Gemini model training and Gemini Apps grounding uses. Google says this token does not affect ordinary Google Search inclusion or rankings, but an opt-out can affect eligibility for Gemini Apps grounding.
OpenAI: restrict GPTBot training crawls
User-agent: GPTBot
Disallow: /
OpenAI documents GPTBot for model-training crawling and OAI-SearchBot for ChatGPT search. These are independent controls. If you want your public website eligible for ChatGPT search discovery, do not accidentally block OAI-SearchBot while configuring training preferences.
Read the official Google crawler documentation and OpenAI crawler guide before deployment.
AIPREF vs Google-Extended vs GPTBot: What should you use?
| Control | Main purpose | Status on Nov 4, 2026 |
|---|---|---|
__usage_ai-training | Shared AI training preference | Draft; Google support planned for 2027 |
Google-Extended | Specified Gemini training and grounding uses | Available |
GPTBot | OpenAI training crawler | Available |
OAI-SearchBot | OpenAI search discovery | Separate from GPTBot |
Important nuance: Google says that once it supports AIPREF, a training opt-out without an explicit Google-Extended instruction is intended to be treated as a Google-Extended disallow. An explicitly configured Google-Extended rule provides a separate choice. Check the latest documentation before depending on that future behavior.
Does blocking AI training affect Google SEO or AI Overview traffic?
Do not confuse AI model training with search indexing. Blocking GPTBot does not automatically block OAI-SearchBot. Google says Google-Extended is not a Google Search ranking signal. AIPREF is not a way to improve rankings, guarantee AI citations or remove your site from AI answers.
Google also documents a separate Search generative AI control for AI Overviews and AI Mode. That is a different decision from AI model training. Blocking Googlebot or adding a sitewide noindex by mistake can damage organic visibility.
If your main concern is visibility rather than AI training, read why Search Console's Generative AI report may not show data and why indexed pages can receive zero impressions.
How to add an AI training opt-out to robots.txt safely
- Open your current file: visit
https://yourdomain.com/robots.txt. Back it up before editing. - Choose your actual goal: restrict AI training, limit AI-search inclusion or block crawling. These are not identical.
- Add the appropriate group: keep existing crawler and sitemap directives intact. Use the proposed AIPREF group only with its draft status understood.
- Publish at the domain root: for a PHP or WordPress website,
robots.txtnormally belongs at/public_html/robots.txt(or the configured public web root), not inside/blog/. - Check the live response: confirm the file loads with HTTP 200, displays plain-text rules and contains no accidental broad
Disallow: /underUser-agent: *. - Verify search access: inspect important URLs in Google Search Console. Keep your sitemap available and monitor organic clicks after changing crawler instructions.
For MTP DigiTech users on PHP: if you also publish new blog files frequently, follow our dynamic XML sitemap guide. For crawling and page structure basics, see what makes an SEO-friendly website.
AI crawler robots.txt mistakes that can hurt your website
- Expecting instant universal protection: the AIPREF proposal is not yet universally supported, and robots.txt is a voluntary signal, not access control.
- Blocking all crawlers: placing
Disallow: /beneathUser-agent: *can block legitimate crawlers, including search crawlers. - Confusing training and search: the GPTBot and OAI-SearchBot settings serve different purposes.
- Replacing your whole file: you may accidentally remove useful rules, existing sitemaps or exceptions for site assets.
- Assuming noindex equals AI training opt-out: indexing and model-training preferences address different uses.
For a full review of crawl rules, canonicals, XML sitemaps and indexation, see our technical SEO audit services. If you're managing both AI search and conventional organic growth, our SEO and AEO/GEO services focus on discoverability, clarity and measurable outcomes.
Frequently asked questions about AIPREF and AI training opt-out
Is AIPREF robots.txt supported by Google right now?
Google announced support plans on October 30, 2026 and aims to support the shared training preference in 2027. The proposed token is not yet a universally enforced opt-out.
What is the correct AIPREF policy token?
__usage_ai-training. Write it after User-agent:, then use a Disallow: path to express the training opt-out for that path.
Can I block AI training but still rank in Google?
Yes, that is a separate decision. Google-Extended does not control ordinary Google Search ranking or inclusion. Keep Googlebot access and indexing requirements in mind.
Does blocking GPTBot remove my website from ChatGPT Search?
Not automatically. OpenAI uses a separate OAI-SearchBot for search. Review both settings and your actual crawler access rules.
Does robots.txt stop AI crawlers from reading private information?
No. Robots.txt is publicly visible and relies on crawler cooperation. Protect confidential pages with authentication and proper access controls.
Should I use Google-Extended or the new AIPREF signal?
For a Google-specific control today, review Google-Extended. AIPREF aims to simplify training preferences across participating providers later. You can plan for both, but avoid assuming universal support.
Will this increase rankings, clicks or AI citations?
No direct ranking boost is promised. Measure organic search and AI referral outcomes separately when deciding whether to allow certain training or grounding uses.
Where do I upload robots.txt on Hostinger?
Usually at the public site root such as public_html/robots.txt, not inside a subfolder. Confirm by opening https://yourdomain.com/robots.txt after upload.
Related SEO guides, courses and services
Continue with related topics on MTP DigiTech:
- Google Search Console impressions but no clicks — diagnose low CTR before blaming AI features.
- Exclude branded queries with Search Console regex — measure non-branded SEO changes.
- Search Console multimodal filter not showing — understand another recent reporting feature.
- Practical SEO course — cover robots.txt, crawling, indexing and reporting.
- Conversion rate optimization course — measure lead quality and conversion journeys as traffic sources change.
- Conversion rate optimization services — improve outcomes from the traffic your website already earns.
For implementation and AEO/GEO strategy, MTP DigiTech, a digital marketing company in Nagpur, India, supports technical SEO, analytics, search visibility and conversion-focused improvements.
Sources checked November 4, 2026: Google Search Central · IETF draft · OpenAI crawler documentation.
Need an AI crawler and technical SEO audit?
Get a practical review of robots.txt, Googlebot access, AI crawler preferences, indexing, internal links and conversion paths before making sitewide changes.
Request Technical SEO Audit →