Quick Start
Choose the integration that fits your platform:Client SDK Embed
Drop a script tag on your page. No backend required.
Server SDK
Full control via REST API or TypeScript SDK.
Storefront Gate
DNS-level protection. No code changes.
Prerequisites
- A BotShield Partner account (request access)
- Your site key (
pk_live_...) from Settings > Site Keys - Your API key (
bs_prod_...) from Settings > API & Credentials
Option A: Client SDK Embed
The fastest path. Add a single script tag and the<botshield-verify> web component handles everything.
1. Add the Script Tag
2. Add the Widget
Place the widget before your checkout or submit button:3. Handle the Result
4. Validate Server-Side (Recommended)
Option B: Server SDK
For platforms that need full backend control over the verification flow.1. Install the SDK
2. Create a Session
3. Create a Verification Link
4. Receive the Result
Via webhook (recommended):Option C: Storefront Gate
DNS-level protection for your entire storefront. No code changes. Works on any Shopify plan.1. Add a CNAME Record
Point your storefront domain to BotShield:2. Set as Primary Domain
In Shopify (or your platform), set the gated domain as your primary storefront domain.3. Enable Protection
Toggle protection ON in the BotShield Partner Dashboard under Storefront Gate.How It Works
- Unverified visitors are redirected to a BotShield challenge page
- On successful verification, a
botshield_sessioncookie is set - Subsequent requests pass through to your origin
- Session TTL: 30-60 minutes (standard) or 3-10 minutes (drop mode)
What Happens During Verification
Regardless of which option you choose, the user experience is:- BotShield presents a verification prompt
- The user authenticates with their device (Face ID, Touch ID, or device passcode)
- A signed, one-time-use token is generated
- The token is returned to your platform