Fastly
VCL and Compute, including service chaining.
CloudFront
CloudFront Functions, Lambda@Edge, and Terraform.
Cloudflare
Workers for RSL and CAP enforcement.
Other CDNs
Generic patterns for any platform.
Before You Start
You need:- A Supertab Connect merchant account – contact sales to sign up
- A Website registered in the Supertab Connect dashboard with your domain’s base URL
- Your Website URN — found in your Website settings, e.g
urn:stc:merchant:system:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - A Merchant API key — generated under Website Details → API Keys in the dashboard
- Access to your CDN configuration for the domain you want to protect
Part 1: Serve Your RSL License
Your RSL license needs to be accessible athttps://yourdomain.com/license.xml. Supertab Connect hosts the license content — your CDN proxies the request to our origin and rewrites the URL so it stays on your domain.
1. Add Supertab Connect as an Origin
Add api-connect.supertab.co as an origin (sometimes called a backend, upstream, or host) with HTTPS on port 443.
2. Add routing for /license.xml
Create a rule, behavior, or condition that matches requests to /license.xml exactly and directs them to the Supertab Connect origin.
3. Add a URL rewrite
Before the request reaches the origin, rewrite the path to include your Website URN:
Your CDN must send
Host: api-connect.supertab.co to the origin — not your own domain. If you see 502 errors, check the host header override setting.https://yourdomain.com/license.xml in your browser and confirm you see your RSL license XML.
Part 2: Run the Supertab Connect SDK
The SDK validates theAuthorization: License <token> header on crawler requests. You deploy it as an edge worker or function that runs before your origin.
Install the SDK
Wire the request handler
InstantiateSupertabConnect once (it’s a singleton) and call handleRequest on each incoming request. The SDK handles bot detection, token extraction, JWT verification, enforcement, and analytics recording. You act on the result:
Configure the essentials
API key — Your Merchant API key from the Supertab Connect dashboard, stored as a secret in your CDN’s secret management system. Never hardcode it. Bot detection — The SDK includes built-in user-agent heuristics to identify crawler traffic. You can extend or override them by passing abotDetector function with your own signals:
SOFT (the default), which allows all traffic through but logs validation events. This lets you observe which requests would be blocked before enabling hard enforcement. Switch to STRICT once you are confident in your bot detection:
Part 3: Update robots.txt
Add aLicense: directive to your robots.txt so crawlers can discover your license:
User-agent: directives.
Example:
Cache Invalidation
Your CDN will cache the license response. If you update your license and need the change reflected immediately, purgehttps://yourdomain.com/license.xml from your CDN’s cache.
CDN-Specific Guides
Each reference page covers the full setup for that platform — origins, behaviors, functions, Terraform configs, and SDK integration patterns.Fastly
VCL and Compute service options, including VCL-to-Compute service chaining.
CloudFront
CloudFront Functions for RSL, Lambda@Edge for CAP, with a Terraform alternative.
Cloudflare
Worker-based RSL proxy and SDK Worker for CAP enforcement.
Other CDNs
Generic patterns for any CDN not listed above.