Shield Setup
From signup to your first request flowing through Shield in about 10 minutes. DNS, cert provisioning, mode selection, the first 24h.
Prerequisites
- A verified domain in Settings → Domains. Shield can't protect a domain you haven't proven you own.
- Access to your DNS provider to add a CNAME record.
- An accessible origin (Cloud Run, Vercel, your own VPS — anything with a public IP / hostname).
Step 1 — Add the site in Shield
- Shield → + Add site
- Pick the verified domain (or subdomain).
- Enter your origin URL — where Shield should proxy verified traffic. e.g.
https://my-app-xyz.run.app. - Optional: paste your OpenAPI spec for Schema Enforcement (can do later).
- Click Create. Sectora provisions Cloudflare for SaaS metadata; you'll get DNS instructions on the next screen.
Origin options — one server, multiple IPs, or a load balancer
The origin URL is a single value — one URL, hostname, or IP (Shield prepends https:// if you omit the scheme). You can't type a list of IPs into that field. How you point it decides your origin topology:
- One server — put the IP or hostname directly:
203.0.113.10orhttps://my-app.run.app. - Multiple IPs (DNS round-robin) — put a hostname in the origin field and give that hostname several A records at your DNS. Shield resolves the hostname on each request, so traffic spreads across all the IPs automatically.
- Health-checked failover — point the origin at a load balancer hostname/IP and let the LB own the pool + health checks.
Multiple-IP example
# What visitors hit — CNAME'd to Shield (Step 2)
www.yourdomain.com CNAME customers.sectora.io (DNS only / gray cloud)
# Shield "origin URL" field: origin.yourdomain.com ← a HOSTNAME, not an IP
# That origin hostname's A records — your backend IPs go HERE:
origin.yourdomain.com A 203.0.113.10
origin.yourdomain.com A 203.0.113.11
origin.yourdomain.com A 203.0.113.12Caveat: multiple A records give you round-robin, not health-aware failover — if one IP goes down, a share of requests still hit it until you remove the record. For automatic failover, use a load balancer.
Step 2 — Configure DNS
At your DNS provider, add a CNAME for each domain listed on the site page. For a root domain, Shield also adds its www name, so that is two records:
# Routes user traffic to Shield
yourdomain.com CNAME customers.sectora.io (DNS only / gray cloud)
www.yourdomain.com CNAME customers.sectora.io (DNS only / gray cloud)No TXT record is needed. Cloudflare validates each hostname and issues its certificate over HTTP, through the CNAME, once it points at Shield. (Some DNS providers cannot put a CNAME on a root domain; use their CNAME-flattening or ALIAS record.)
Step 3 — Wait for cert provisioning
Sectora auto-issues a per-hostname TLS cert via Cloudflare for SaaS. Typical timeline:
- 0–2 min — DNS propagation; Cloudflare sees the CNAME and validates the hostname over HTTP.
- 2–10 min — Cert issuance complete. The Shield site page flips from "provisioning" to "active".
- 10–60 min — Edge propagation. Some PoPs may serve a Cloudflare default cert until the new cert reaches them.
If it's stuck in "provisioning" for > 30 min, open the site page: a domain that is not protected is listed there with what to fix (usually the CNAME is Proxied / orange cloud or points somewhere else). Once the record is right, click Retry verification on that domain.
Step 4 — Lock your origin
Shield only protects traffic that goes through it. If your origin also answers requests sent straight to its address, an attacker can skip Shield. Open Origin Lock on the site: Shield then sends a secret header with every request, and a snippet for your stack makes the origin refuse requests without it. Snippets cover Cloudflare Workers, Node.js / Express, Go, Python (FastAPI, Django, Flask), PHP, Laravel, WordPress (wp-config.php), Apache / LiteSpeed (.htaccess) and nginx. Each rejects a request when the secret is missing or empty, so a misconfigured origin fails closed. The page's check then confirms the origin really refuses a request without the header.
This replaces allow-listing Cloudflare's IP ranges at your firewall: every Cloudflare customer sends traffic from those ranges, so an IP allow-list does not prove a request came through Shield.
Step 5 — Test in Monitor mode
Every new site starts in Monitor mode (a subdomain added to a zone takes the zone's mode). All Shield layers run and record decisions, but NOTHING is blocked. Traffic passes through to your origin exactly as before.
Leave it in Monitor mode for at least 24 hours. The Shield analytics dashboard will populate with:
- Total requests and request latency.
- What WOULD have been blocked at each layer.
- Anomaly score distribution (the curve of legitimate traffic — your baseline).
- Bot vs human ratio.
- Geographic + ASN heat map.
Look for false positives. A rule that'd block 5% of your legit traffic is broken — tune it or add an exception before switching to Block.
Step 6 — Switch to Block mode
- Review the Monitor-mode analytics one more time. Confirm the would-block rate looks sane (typically 0.5–5% of requests).
- Shield → your site → Configuration → Protection Mode → Block.
- Watch the next 60 min closely. Real impact appears in the "blocked" chart.
If something looks wrong, switching back to Monitor is one click. No DNS change. It takes effect everywhere within about a minute.
Step 7 — Tune individual layers
Once you're comfortable in Block mode, walk through each layer. Recommended order:
- Managed Rulesets — start here, lowest FP risk.
- IP Access — block known-bad ASNs and obviously-attacker geographies.
- Rate Limiting — protect login + signup + sensitive endpoints from brute force.
- Virtual Patching — wire to your scanner output.
- Schema Enforcement — upload your OpenAPI.
- Bot Detection — most aggressive layer; enable last.
- Anomaly Scoring — fine-tuning the catch-all.
Troubleshooting
"Hostname stuck in provisioning"
- Confirm the CNAME is set to DNS only (gray cloud).
- Confirm the CNAME points at
customers.sectora.io, then click Retry verification on the site page. - A CAA record on your domain that does not allow Cloudflare's certificate authorities blocks issuance.
"Shield returns 502 / 504 origin_unavailable"
Shield could not reach your origin (504 when it timed out). The response body's reasondescribes the kind of failure and its ref identifies the request for support. Check that:
- the origin is up and accepts connections (an origin lock or firewall must let Shield's requests through);
- the origin presents a valid certificate from a public CA for its hostname;
- on a shared host (Vercel, Firebase Hosting, Cloud Run …), your domain is added as a custom domain there.
The site's Origin Lock page runs a full diagnosis of DNS, routing and the origin.
What's next
- Shield overview — architecture refresher.
- Virtual Patching — wire DAST/SAST findings to one-click rules.