Skip to main content
Kinsta+Cloudflare

Deploy a Cloudflare Worker for Kinsta sites

Promptwatch can capture crawler logs when your Kinsta site proxies traffic through your own Cloudflare zone. This is called Origin-to-Origin (O2O) — traffic hits your Cloudflare zone first, then forwards to Kinsta. Configure DNS first, then deploy the Cloudflare Worker below.

Step 1: Set Up Proxied DNS for Kinsta

Set up proxied DNS for Kinsta in your Cloudflare zone. Follow Cloudflare’s Kinsta guide and Kinsta’s Cloudflare documentation:
  1. Create a proxied CNAME record pointing your hostname to [sitename].hosting.kinsta.cloud.
  2. Set Proxy status to Proxied (orange cloud).
[sitename] is the database name from MyKinsta → your site → Info → Database access. Your domain’s nameservers must be managed at Cloudflare (customers using Kinsta’s DNS need to move DNS management to Cloudflare). Kinsta’s built-in Cloudflare integration keeps working alongside your own zone.
Your DNS must be set up via CNAME — A records are not supported for forwarding traffic through Cloudflare Workers.

Create an access token so Promptwatch can deploy the crawler log Worker for you

We’ll automatically discover your Cloudflare zone, upload the script, and configure the route.

The token is only used for this deployment and is never stored.

Step 1: Create an API token on Cloudflare

Go to dash.cloudflare.com → My Profile → API Tokens and create a new Custom Token.

Enable the following permissions:

  • Account / Workers Scripts / Edit — Upload the crawler-log Worker script
  • Zone / Zone / Read — Locate your Cloudflare zone by domain name
  • Zone / Workers Routes / Edit — Attach the script to your domain route

Step 2: Paste the token and deploy

We’ll take it from here — the rest is automatic.

Auto-deploy is only available inside the Promptwatch app. Open Crawler Logs → Settings, select Kinsta + Cloudflare, switch to the Auto Deploy tab, paste your Cloudflare API token, and click Deploy Worker.
For a full list of API response codes, see API Response Codes.