Skip to content
Search
Search
Learn
Glossary
Research
Platforms
News
Tools
About

CloudflareFeature

Cloudflare can redirect AI training crawlers to canonical URLs

A new AI Crawl Control setting sends verified AI training crawlers a 301 redirect to a page's canonical URL. Other visitors see the page as usual.

Published

#What is new

On April 17, 2026, Cloudflare added Redirects for AI Training to AI Crawl Control, according to its changelog. When a verified AI training crawler requests a page whose canonical tag points to another URL, Cloudflare answers with a 301 redirect to that URL. Everyone else, from browsers to search engines and AI search agents, gets the original page. The announcement pitches it at deprecated and duplicate pages.

#Why Cloudflare built it

Cloudflare's developer docs keep old versions online with a deprecation banner, a noindex tag and a canonical tag pointing to the current page. None of that changed what training crawlers read. On that site, bots in the AI Crawler category made 4.8 million visits in 30 days and fetched deprecated pages as often as current ones. In March 2026, OpenAI crawled the legacy Workers docs about 46,000 times. In the first seven days with the redirect on, every training crawler request to a page with a canonical pointing elsewhere was redirected.

The redirect does nothing for content already in training data, and Cloudflare calls better AI answers a hypothesis it is still testing. Our read: for training crawlers, a status code is the one signal on this list that a site can enforce. A banner or a noindex only asks.

#Which requests get the redirect

The documentation sets out the conditions. The redirect fires only when all of these hold:

  • the request comes from a verified bot in Cloudflare's AI Crawler category, which includes GPTBot, ClaudeBot and Bytespider
  • the origin returns HTML (content-type: text/html)
  • the canonical tag is in the <head>, within the first 256 KB of the uncompressed HTML
  • the canonical URL is on the same origin and differs from the requested URL

Relative canonical URLs are resolved against the request URL. AI Assistant and AI Search bots are never redirected, and neither are unverified crawlers. Cross-origin canonicals are ignored by design, because sites often use them to consolidate domains. Self-canonical pages are left alone.

If two pages point their canonicals at each other, Cloudflare uses the Referer header to spot the loop and serves the page instead of redirecting again. Single Redirects and Bulk Redirects run before Cloudflare contacts the origin, so a matching rule there takes the request first. The training redirect also runs before Markdown for Agents converts a page, so a crawler that asks for Markdown still gets the 301.

#Setup, plans and logs

The toggle is under AI Crawl Control, Quick Actions, and it works from your existing <link rel="canonical"> tags with no other setup. It costs nothing extra on Pro, Business and Enterprise plans. A configuration rule limits it to a subdomain or path, and it can also be turned on through the API. On Cloudflare for SaaS, a zone can enable it for all custom hostnames, or for chosen ones on an advanced subscription. Our guide to Cloudflare's AI bot settings covers the other controls in the same dashboard.

Each redirect is logged with its target in the redirects_for_ai_training_target field, which you can query through the GraphQL Analytics API or Logpush.

#What to check

  • Crawl your site for pages whose canonical points to a different URL, and confirm each target is the page you want training crawlers to read. A wrong canonical now sends them to the wrong page.
  • On long pages, check that the canonical tag sits near the top of the <head>, ahead of large inline scripts or styles that could push it past 256 KB.
  • Review any Single Redirect rules you wrote for AI crawler user agents. Once this setting covers those paths, the rules duplicate it, and Cloudflare notes they count against plan limits.
  • A week after you switch it on, compare the logged redirect targets with your list of deprecated pages to see which old URLs crawlers still ask for.