acme.com/blog to Notra with a Cloudflare Worker, which works when your domain is on Cloudflare with the proxy turned on (orange cloud), whatever hosts your website. The Worker forwards the section paths to Notra before the request reaches your website, while everything else still goes to your normal host. Read the steps on every platform first, and replace acme.notra.site with the Notra address on your site’s Domains page.
1
Create the Worker
In the Cloudflare dashboard, open Workers & Pages → Create → Worker, name it
notra-site-proxy and replace its code with:worker.js
redirect: "manual" passes Notra’s redirects to the browser instead of following them.2
Route it on your domain
Open the Worker’s Settings → Domains & Routes → Add → Route, pick your zone and add one route per section:The
* covers /blog and every path below it, and the Worker passes any other request it receives straight through.3
Check
Open
https://www.acme.com/blog/_notra/probe.txt to confirm the Worker answers, then click Check on the domain in Notra.With Wrangler
To deploy the same Worker from your repository, add the routes to its Wrangler config:wrangler.jsonc
npx wrangler deploy.
Limits to keep in mind
- Bot Fight Mode and WAF rules run before the Worker and can block the check and AI crawlers, so allow your section paths, or at least the user agent
NotraSitesVerifier/1.0. - Cache rules that cache everything on your zone can keep old pages after you publish. Notra already sends the right
Cache-Controlfor every file, so exclude the section paths from such rules. - Already on Cloudflare Pages or Workers? Put the same check at the top of your own Worker’s
fetchhandler, or into a Pages Function atfunctions/blog/[[path]].jsandfunctions/changelog/[[path]].js.