CrawlClick docs
Menu and search

How the CrawlClick publisher edge works

Your hostname points at a CrawlClick-run Cloudflare Worker that sends AI crawler requests and AI-referred visits through the CrawlClick proxy and passes every other request to your origin unchanged.

Status: Live. The edge is open to publishers in an invite-only pilot. CrawlClick support attaches your hostname; you do not deploy edge code.

The publisher edge is how a website earns from AI crawlers that read it. It is a Cloudflare Worker that CrawlClick deploys and runs in its own Cloudflare account as a Cloudflare for SaaS application. You do not deploy it. You verify your domain, CrawlClick support attaches your hostname to the Worker, and you point a CNAME at the hostname support gives you. From then on every request to your public host passes through the Worker, which decides in a few header checks whether the request goes to CrawlClick or straight to your origin.

The Worker runs after Cloudflare’s own TLS, DDoS and WAF layers, so those still apply to every request.

What path does a request take through the edge?

There are two paths, and the Worker chooses one per request.

  1. The origin path. The Worker calls fetch(request) and returns your origin’s response as it is. Cloudflare’s cache and security features behave as they would without CrawlClick. Ordinary readers, search engines, API clients, non-GET requests and non-HTML requests take this path.
  2. The CrawlClick path. The Worker forwards the request to the CrawlClick proxy with credentials attached. The proxy identifies the crawler, fetches the page from your separate origin hostname, may insert one disclosed sponsored block into the HTML, and returns the result. The Worker marks that response Cache-Control: private, no-store and X-Crawlclick: served.

The rules that choose the path are on Request routing. In short, a request takes the CrawlClick path when it is a GET, its Accept header allows HTML, and either its user agent matches the Worker’s AI crawler pattern or it looks like a person arriving from an AI answer engine.

What does each kind of visitor get?

Visitor Path What they receive
A reader arriving directly, from search or from social Origin Your origin’s response, unchanged and cacheable as before
Any HEAD, POST or other non-GET request Origin Your origin’s response, unchanged
A request whose Accept header does not allow HTML Origin Your origin’s response, unchanged
A verified, ad-eligible AI crawler CrawlClick Your page, possibly with one disclosed sponsored block, never cached
A request that claims a crawler user agent but fails verification CrawlClick Your page byte for byte, never cached, never billed
A reader arriving from an AI answer engine CrawlClick Your page byte for byte in production, never cached

A request on the CrawlClick path that fails for any reason gets your origin’s own response instead. Failure behaviour lists every case.

When does the proxy insert a sponsored block?

The proxy inserts a block only when all of these hold:

  • The request is identified as a known AI agent that is ad-eligible and in a search index, live fetch or agent phase. Training crawlers such as GPTBot and CCBot are routed and measured but never receive a block.
  • The identity is verified against the vendor’s published IP ranges or a valid Web Bot Auth signature, and no spoofing is suspected. See Verification tiers.
  • Your origin answered 200 with HTML (or no Content-Type), without a content coding, in valid UTF-8, and no larger than 2 MiB.
  • The same page has not already been filled for the same engine inside the fill window, which defaults to one day.
  • A campaign wins the auction and the insertion is recorded durably before the page is sent.

The block is one <aside class="crawlclick-sponsored"> element whose text begins Sponsored: and names the claim, with a rel="sponsored" link. It goes before </main>, else before </article>, else before </body>, else at the end of the document. Because the label is in the sentence itself, an engine that strips markup still reads the disclosure. What an engine later writes in an answer is measured, never assured.

What is billed, and what is only measured?

Billing is verified-only. A disclosed insertion served to a network-verified crawler or a signed agent is the billable event. A crawler user agent from an unverified address is logged as a claim and served your page unchanged. AI referral signals (the Referer header, utm_source, Sec-Fetch-*) can be forged, so they are measurement only: production never places or bills a block for a referred reader. Earnings terms are on the pricing page.

For ordinary readers whose Referer names a known AI or search host, the Worker may send a measurement beacon after the response has been returned. It carries the page URL, the referrer, the query string and the country Cloudflare reports, and no user identifier. A beacon failure never affects the page.

Where do I go next?