SpyderBot Documentation

Cloudflare

Cloudflare is used when request-level infrastructure evidence is required and the supported connection is available. Depending on the approved integration, it may provide observed requests, requested URLs, response or access outcomes, bot/network identity signals, policy or block context, and source freshness information.

Use the SpyderBot Cloudflare Worker when you want edge injection of wfm.js plus server-side bot/AI-agent signals without changing origin application code. The official Worker is released on GitHub as v1.0.0 — deploy with Cloudflare's button or copy the paste-ready snippet from Integrations.

Cloudflare request evidence does not prove content understanding, citation, recommendation, training use, or human referral outcomes. Follow AI Traffic → Cloudflare Setup for current scopes and verification.


What it tracks

  • Bots and AI agents: POST /server-track with visitor IP/country in the JSON body, real HTTP status and method
  • Humans: injected wfm.js (Worker does not server-track humans)
  • Session continuity via first-party _spyd_sid cookie (shared with wfm.js)

Cloudflare request evidence from this Worker does not prove citation, recommendation, or training use — it measures visits and bot activity.


Deploy to Cloudflare (recommended)

Deploy to Cloudflare

  1. Click Deploy to Cloudflare (opens the official flow for spyderbotlabs/spb-cloudflare-worker v1.0.0).
  2. When prompted for a secret, paste your SpyderBot tracking key as TRACKING_KEY.
  3. Add a route that covers HTML pages (avoid pure static/CDN asset paths).
  4. If you use CSP, allow script-src and connect-src for https://spyderbot.net (and your tracking API origin).
  5. Confirm Measurement Health shows connected and receiving.

Alternative: paste-ready snippet

  1. Copy the Worker from Integrations → Cloudflare Worker (URLs match this environment).
  2. Deploy in Cloudflare Dashboard → Workers & Pages → Create → paste → Deploy.
  3. Attach routes and CSP as above.