Skip to main content

BotShield Signal Pixel

The BotShield Signal Pixel is an opt-in passive signal collection layer built into the <botshield-verify> web component. When enabled with signals="true", it combines edge scoring, behavioral fingerprinting, and third-party integrations (Cloudflare Turnstile) to produce a tamper-proof bot score — without requiring any user interaction.
The Signal Pixel is not a separate integration. It is a capability of the same <botshield-verify> web component used for active passkey verification. Add signals="true" to enable it.

Three Layers of Defense

The Signal Pixel is Layer 1 of BotShield’s defense-in-depth architecture:

Quick Start

Or with BotShield.render():

Tamper-Proof Signal Tokens

The signal_score returned in the client event is for display only. It can be spoofed via DevTools. Always validate using the signal_token on your server.
The Signal Pixel returns an opaque signal_token (e.g. bs_sig_a1b2c3...) alongside the display score. This token maps to the real score stored in BotShield’s database — it cannot be faked.

Server-Side Validation

Signal tokens are one-time use and expire after 10 minutes. Once validated, the token is consumed and cannot be reused.

Cloudflare Turnstile Integration

When you enable Cloudflare Turnstile in your BotShield dashboard, the web component automatically loads and runs Turnstile alongside the Signal Pixel. No code changes needed.

Setup

  1. Go to Partner DashboardIntegrationsCloudflare Turnstile
  2. Enter your Turnstile Site Key and Secret Key
  3. Click Save
Recommended Turnstile settings:
  • Widget Mode: Invisible — BotShield handles all UI
  • Pre-clearance: Yes
  • Pre-clearance Level: Interactive (high)
That’s it. The web component detects the configuration and loads Turnstile automatically on every page load.

Combined Confidence Scoring

When you pass both token and signal_token to verify-token, BotShield returns a combined confidence score that factors in all available signals:

Scoring Method

The bot score is a combined metric from two independent layers:

Edge Scoring (Server-Side — Can’t Be Spoofed)

Evaluated at the Cloudflare Worker edge before any HTML is served.

Behavioral Fingerprint (Client-Side)

Runs over a 1.5-second collection window inside an isolated context.

Score Ranges

Full Escalation Flow

The most powerful pattern — passive Signal Pixel screening with automatic escalation to passkey verification when the score is ambiguous:

Security

  • Signal collection runs in an isolated context — cannot access the parent page’s DOM, cookies, or storage
  • signal_token is tamper-proof — always validate server-side, never trust signal_score alone
  • Behavioral fingerprint collects device/environmental signals only — no PII, no tracking
  • Turnstile secret keys are stored encrypted and used server-side only — never exposed to the client

Next Steps

Web Component Reference

Full API docs for <botshield-verify> and BotShield.render()

API Reference

Backend SDK methods for server-side validation

Enable Turnstile

Configure integrations in your Partner Dashboard

Playground

Test Signal Pixel + Turnstile with live scoring