Want to cut down on agent bots constantly hammering your websites? Cloudflare’s Search for Agents can help.

Just before Thanksgiving, Cloudflare gave website owners something to be thankful for: Search for Agents. This beta feature, already available to all Cloudflare customers, including free users, indexes a website on its network and adds a search endpoint to the site’s own domain. That means, instead of AI agent bots crawling your site page by page and wasting your bandwidth and server resources, AI agents can query it directly.

“Today we’re introducing Search for Agents, which puts that setup behind a toggle in your Cloudflare dashboard,” Cloudflare said in its announcement. The setup is the company’s AI Search service, which already lets customers add a website as a data source and have its pages crawled, converted, and indexed. Site owners can switch the feature on from their Cloudflare dashboard’s Quick Actions or with the API.

Control and cost

You still keep your existing AI controls. This means you can continue to use your domain’s bot management, Cloudflare’s AI Crawl Control, and web application firewall (WAF) settings. It also works with “Cloudflare’s Disallow AI Training” setting.

Put it all together, and this means you can pick and choose what content Cloudflare indexes. The feature works alongside Cloudflare’s Markdown for Agents, which converts individual pages for agents that ask for Markdown. However, you don’t need to use Markdown for Agents or convert your site’s content into Markdown. Search for Agents will take care of that for you.

Once Search for Agents has finished indexing your site, the program automatically advertises the search endpoint on every page of your site. This means an AI agent can access the content you want it to without wasting resources answering every AI query by the agents reading every page.

Once enabled, Cloudflare creates an AI Search instance for your zone, starts indexing, and exposes a search endpoint at /.well-known/search on your domain. To help agents find it, Cloudflare adds metadata to the head of HTML responses. That metadata carries agent instructions, the endpoint URL, and a documentation link. Sites that also use Markdown for Agents get the same information in the front matter of their Markdown responses.

When an agent sends a keyword or natural-language question, it usually uses either an HTTP GET or POST request. Search for Agents, though, uses the new HTTP QUERY protocol.

QUERY, you ask, what’s that? It’s a new IETF Proposed Standard as Request for Comments (RFC) 10008. This protocol was co-authored by Cloudflare’s Principal Systems Engineer James Snell. A QUERY request asks the target resource to process the enclosed content safely and idempotently and return the result. Safe in this context means the client doesn’t expect any change to server state. Idempotent means the request can be retried after a connection failure. Consider it your new word for the day.

This works by positioning QUERY between GET and POST. GET, as always, puts the query in the URI, which runs into size limits, encoding overhead, and logging exposure. POST carries a body, but nothing signals that the operation is a safe query. QUERY carries a body like POST and is explicitly safe and idempotent like GET.

QUERY’s reply is relevant content in Markdown, with source references and scores, not a generated answer. Cloudflare’s reasoning is that the agent already has its own model and a conversation with the user, so it only needs your site’s information. You don’t need your site wasting tokens coming up with its own answers.

By default, the instance crawls the site through sitemaps and links, follows up to five link hops, and uses hybrid vector and keyword retrieval. Site owners don’t need to rewrite anything in Markdown, because Cloudflare does the conversion.

What about JavaScript-heavy sites? JavaScript-heavy sites are supported, but only if the crawler is set to render pages. Does the Search for Agents’ one-click setup also enable this feature? Good question. I don’t know the answer yet; AI Search’s website source can render pages in a headless browser before indexing them. Given JavaScript’s popularity, one presumes that Cloudflare will automatically render the JavaScript sites.

So why would you use Search for Agents? Besides reducing the bot load on your website, the endpoint returns the site’s actual content in Markdown with sources and scores, not an AI-generated answer. This means your content is the source of truth, not a third-party AI taking on what your content says. I like this plan a lot.

As for AI agent developers, it gives their agents a standard, discoverable way to find the site’s content. Agents can also query the endpoint in plain language or keywords, over GET or the new QUERY method. I see this as a win for them too.

If Search for Agents does it well, as I suspect it might, I can easily see other content delivery network (CDN) vendors following in Cloudflare’s footsteps and RFC 10008 quickly gaining popularity. We’ll soon see as people start deploying Search for Agents.