Documentation

Your first signal,
in a few steps.

Connect your site, install the runtime, and inspect what your browser actually observes.

01 · Connect

Give your site its own key.

Create a free account, add your website during onboarding, and copy its public installation key. Add the origins where you plan to run detection, including your local development origin when needed.

A site key is public and belongs in your browser integration. Your account password, session, and Stripe credentials never belong in client-side code.

02 · Install

Choose your integration.

Use the hosted loader for a script-tag installation or the side-effect-free ES module for explicit lifecycle control. Replace the public key below with your site’s key. The host shown is this deployment.

HTML
<script
  async
  src="https://YOUR_HOST/api/public/v1/loader.js"
  data-site="YOUR_PUBLIC_SITE_KEY"
></script>

The hosted loader initializes your site, detects automatically, and evaluates the configured recovery experience. Set window.blockSignalConfig = { mode: 'manual' } before the script loads to take explicit control through window.BlockSignal.

03 · Understand

Read the report, not just the label.

Detection returns a structured report with status, evidenceStrength, coverage, uncertainty, reasonCodes, and individual probes. Evidence strength is not a calibrated probability of a visitor using an extension.

Detection status meanings
StatusWhat it means
clear / probably_clearAvailable signals support healthy ad-resource behavior.
blocked / probably_blockedObserved failures support likely blocking. Recovery still requires the configured eligibility rules.
unknownInsufficient, restricted, or conflicting evidence. Keep the reader’s page open.

Offline requests, policy restrictions, and timeouts need context. Inspect reason codes and controls before treating a failure as ad blocking.

04 · Integrate

A small, explicit client API.

Core client methods
MethodBehavior
detect(options?)Run detection; use cacheBust: true for fresh resource requests. Runtime failure resolves an unknown report.
recheck()Verify the failures in the prior report with fresh probes. A successful unrelated probe does not count as recovery.
page(context)Update an SPA route and clear the prior report and experience. Run a fresh detection for the new page.
on(event, callback)Subscribe to events including detection, recovered, and error. Returns an unsubscribe function.
show() / hide()Evaluate a configured experience or hide it. show() returns mounted, not-mounted, or cancelled.
destroy()Cancel active work, clean up observers and UI, and release this client.
SPA navigation
client.page({ path: "/articles/next", articleId: "next" });
const report = await client.detect();

const unsubscribe = client.on("error", (event) => {
  console.warn("BlockSignal runtime", event);
});

// During cleanup:
unsubscribe();
client.destroy();

05 · Configure responsibly

Consent and content security policy.

The client starts in essential-only mode. Apply your publisher’s consent decision with client.consent("essential_only"), "consent_aware", or "analytics". Use identify() for coarse subscriber state, never personal identifiers.

Allow the service origin in the CSP directives required by your enabled probes: connect-src, script-src, img-src, and frame-src. For nonce-based script policies, place the page’s per-response nonce on the hosted script. Restrictive policies remain explicit in the detection report.

Do not weaken your CSP with unsafe-inline for this integration. Authorize recovery styles with an allowed stylesheet via data-stylesheet or the SDK’s stylesheetUrl. If the UI cannot mount, the page stays open.

See a real report next.

Run detection in this browser, then compare the result with a controlled scenario.

Open the detector lab