Vercel 16 ▲ Vercel Firewall & Deployment Protection — Configuring WAF rules, Bot Management, BotID, and preview authentication
Every git push to a Vercel project produces a deployment, and every deployment gets its own immutable URL. That URL is unguessable, but unguessable is not the same as secret. It gets pasted into Slack threads, attached to bug reports, embedded in support tickets, and sent in the Referer header of an outbound link. A preview build that talks to a staging database with real customer rows is one copy-paste away from being public. Deployment Protection exists to close that gap, and the Vercel Firewall exists to close the gap that protection leaves open — production traffic from bots, scrapers, credential stuffers, and the occasional abusive client.
The two systems sit at different layers and solve different problems. The Firewall is a rules engine that runs at the edge before your code is invoked: it inspects the request, matches it against custom rules, managed rulesets, and rate limits, and decides whether the request is logged, challenged, blocked, or allowed through. Deployment Protection is an authentication layer that decides whether a request is allowed to reach a deployment at all, using Vercel SSO, a shared password, an IP allowlist, or an automation bypass secret. Bot Management and BotID sit on top of the Firewall: Bot Management is the edge-level signature and behaviour classifier, and BotID is Vercel’s newer per-request verification system that runs a lightweight client script and returns a server-side verdict.
This chapter covers the rule model behind custom WAF rules — condition groups, operators, and the four actions — then the managed rulesets, rate limiting, and IP blocking that come built in. It moves on to Bot Management and BotID, walks through the client and server halves of a BotID integration, and finishes with the Deployment Protection modes, the scope settings, and the automation bypass that lets CI and synthetic monitors reach a protected preview. The sections are ordered the way a request travels: rules first, bots second, authentication last.
Key point: The Firewall evaluates custom rules and managed rulesets at the edge before your function runs, while Deployment Protection is a separate gate that decides whether the request is allowed to reach the deployment at all — and the automation bypass secret is the only supported way for a machine to pass that gate.
Why it exists
The public-preview problem. Vercel’s core model is one deployment per commit, which means a project can have hundreds of live URLs at any moment. Each one serves the real application, often wired to a non-production database, sometimes wired accidentally to a production one. There is no login wall by default on a *.vercel.app preview URL, and the URL is discoverable through link sharing, browser history, and referrer leakage. Deployment Protection is the answer to a specific question: how do you keep the preview workflow without keeping the exposure.
The bot problem. A meaningful share of internet traffic to any public endpoint is automated. Some of it is welcome — search engine crawlers, link previewers, uptime monitors. Much of it is not: scrapers pulling pricing tables, credential stuffers replaying leaked password lists against /api/login, card testers validating stolen numbers against a checkout, and AI crawlers ingesting content at a rate no human ever would. The Firewall exists because a per-request decision at the edge is dramatically cheaper than handling the same request inside a serverless function.
The abuse and cost problem. Serverless billing scales with invocations and duration. A single abusive client that opens ten thousand parallel connections to a database-backed route does not just degrade service for everyone else — it generates a real invoice. Rate limiting and IP blocking are cost controls as much as security controls, and they are the reason the rate limit action lives inside the same rules engine as the block action rather than in a separate system.
The layered-defence problem. No single control is sufficient. A signature-based ruleset misses a custom scraper. A rate limit misses a distributed botnet that stays under the threshold from each IP. A challenge misses a headless browser that solves it. Each layer in the pipeline covers the previous layer’s blind spot, and the pipeline ordering matters — a request should be cheaply rejected at the outermost layer that can reject it.
The automation problem. Every protection scheme breaks automation. CI runs an end-to-end suite against a preview. A synthetic monitor pings a health endpoint every minute. A visual regression tool screenshots a staging URL. All of them are, from the protection layer’s point of view, indistinguishable from an attacker. The bypass secret exists so that automation can be given a credential instead of being exempted by IP or user agent, which would be trivially spoofable.
The trade-off. Every rule is a false-positive risk. A rule that blocks curl blocks the developer debugging the API at 2am. A rule that challenges all non-US traffic breaks a legitimate international customer. A rate limit set too low causes an outage during a legitimate traffic spike. The Firewall’s log action exists precisely because the safe way to deploy a rule is to run it in observe mode first and read the traffic it would have matched.
a. Custom rules — conditions, operators, and actions
A custom rule has three parts: a name, one or more condition groups, and an action. The condition groups are the interesting part, because the grouping is what gives the rule its boolean structure. Conditions inside a single group are combined with AND. Separate groups are combined with OR. So a rule with two groups fires when either group’s conditions are all true.
Each condition is a triple: a field, an operator, and a value. The fields are the parts of an HTTP request the edge can see — the path, the method, the host, the client IP address, the user agent, the country, an arbitrary header, and the TLS fingerprints ja3_digest and ja4_digest. The operators compare the field against the value: equality, inequality, substring containment, prefix, suffix, regex match, and membership in a list.
{
"name": "Block command-line and headless clients",
"active": true,
"action": { "mitigate": { "action": "deny" } },
"conditionGroup": [
{
"conditions": [
{ "type": "user_agent", "op": "sub", "value": "curl" }
]
},
{
"conditions": [
{ "type": "user_agent", "op": "sub", "value": "HeadlessChrome" }
]
}
]
}
This rule has two condition groups and each group has one condition, so the two are OR’ed: the request is denied if the user agent contains curl or contains HeadlessChrome. The action {"mitigate": {"action": "deny"}} is the block action — the request is rejected at the edge with a 403 and your function is never invoked.
The AND structure comes from putting multiple conditions in the same group. This rule challenges a login attempt that is a POST to the login path from outside the United States:
{
"name": "Challenge foreign login attempts",
"active": true,
"action": { "mitigate": { "action": "challenge" } },
"conditionGroup": [
{
"conditions": [
{ "type": "path", "op": "eq", "value": "/api/login" },
{ "type": "method", "op": "eq", "value": "POST" },
{ "type": "country", "op": "neq", "value": "US" }
]
}
]
}
The challenge action is materially different from deny. A denied request is rejected outright. A challenged request is served a JavaScript challenge or an interstitial that a real browser solves transparently and a scripted client typically does not. A real user in Canada sees a brief pause and then the page. A credential-stuffing script sees a wall. The challenge action is the right default for rules that touch legitimate user flows, because it degrades gracefully where a block would not.
The fourth action is bypass, which is how exceptions are expressed. A bypass rule short-circuits the rest of the evaluation for a matched request, so it must be written narrowly.
{
"name": "Allow the internal status monitor",
"active": true,
"action": { "bypass": {} },
"conditionGroup": [
{
"conditions": [
{ "type": "header", "op": "eq", "key": "x-monitor-key", "value": "internal-probe" }
]
}
]
}
Header conditions compare a named header against a value, which is why they carry both a key and a value. A header-based bypass is only as secret as the header value, so treat that value as a credential — rotate it, do not commit it, and do not reuse it across projects.
The log action completes the set. A logged rule matches requests, records them in the firewall observability view, and takes no other action. It is the correct first deployment for any rule whose false-positive rate you have not yet measured.
b. Managed rulesets, rate limiting, and IP blocking
Custom rules express the things you know about your own application. Managed rulesets cover the things nobody wants to write by hand: the long tail of generic attack signatures. Vercel ships two — the OWASP Core Ruleset, which covers the classic injection and traversal families (SQL injection, cross-site scripting, local and remote file inclusion, command injection, protocol violations), and the Vercel Managed Ruleset, a curated set of signatures maintained by Vercel that targets traffic observed across its network rather than the generic OWASP corpus.
Both rulesets are toggled on per project and each has an action and a paranoia level. The action is the same log / challenge / deny vocabulary as custom rules. The paranoia level controls how aggressively the signatures fire: level 1 catches the obvious attacks with a low false-positive rate, and each level above it adds stricter signatures and a correspondingly higher chance of flagging legitimate traffic. The practical guidance is to start at level 1 with the action set to log, read the matches for a week, and only then move to challenge. Jumping straight to deny at level 3 on a form-heavy application is a reliable way to block real customers.
Rate limiting is expressed as a rule action rather than a separate configuration surface, which keeps the condition system available for scoping. The rate limit payload carries three things: how many requests are permitted, over what window, and what the requests are keyed on.
{
"name": "Rate limit signup per IP",
"active": true,
"action": {
"mitigate": {
"action": "rate_limit",
"rateLimit": {
"requests": 20,
"window": "60s",
"keys": ["ip"]
}
}
},
"conditionGroup": [
{
"conditions": [
{ "type": "path", "op": "eq", "value": "/api/signup" },
{ "type": "method", "op": "eq", "value": "POST" }
]
}
]
}
The keys array is the part that deserves thought. Keying on ip is the default and the cheapest, and it is the right choice for unauthenticated endpoints. Keying on a header is what you reach for when the application already carries an identity — an API key header, a session cookie — because then the limit follows the account rather than the network address, which defeats a distributed attacker rotating through proxies. Keying on path or host gives you a coarse global limit rather than a per-client one. Multiple keys compose: a rule keyed on both ip and a header enforces the limit per pair.
IP blocking is the bluntest tool and still the most useful one during an active incident. It accepts individual addresses and CIDR ranges, and the entries are evaluated before the custom rules, so a blocked address never reaches rule matching. The pattern that works is temporary and specific: block the /24 during an attack, unblock it when the attack stops. Permanent blocklists accumulate stale entries and eventually block a legitimate customer who inherited a recycled address.
c. Bot Management and BotID
Bot Management is the edge classifier. It inspects each request against a combination of signatures, header consistency checks, and behavioural signals, sorts the traffic into categories — verified search crawlers, known AI crawlers, generic scrapers, and unclassified automation — and applies the action configured for each category. The important distinction it draws is between verified and unverified bots. A verified crawler is one whose claimed identity has been checked against the published IP ranges of that crawler; Googlebot claims to be Googlebot constantly and is only occasionally telling the truth. Verified crawlers can be allowed through, which is what you want if search indexing matters. Unverified automation claiming to be a crawler can be challenged.
BotID is the newer and more precise layer, and it works differently. Rather than classifying from the request alone, BotID runs a small client-side script that collects signals from the actual browser session and then verifies those signals server-side. The verification happens inside your function through a single call, and the result is a verdict you branch on.
The integration has three pieces. First, the Next.js config is wrapped so the BotID instrumentation is injected into the build:
// next.config.ts
import { withBotId } from "botid/next/config";
const nextConfig = {
// ... your existing config
};
// Wraps the config and injects the BotID client script
export default withBotId(nextConfig);
Second, the client declares which routes it will protect. This is the instrumentation-client.ts entry point, which runs in the browser before any protected request is made:
// instrumentation-client.ts
import { initBotId } from "botid/client/core";
// Each entry tells BotID to attach verification signals
// to matching requests made from the browser
initBotId({
protect: [
{ path: "/api/signup", method: "POST" },
{ path: "/api/login", method: "POST" },
],
});
Third, the server verifies. checkBotId() reads the signals attached to the request, validates them, and returns a verdict object. It is an async call, so it belongs at the top of the handler:
// app/api/signup/route.ts
import { checkBotId } from "botid/server";
import { NextResponse } from "next/server";
export async function POST(request: Request) {
const { isBot, isVerifiedBot } = await checkBotId();
// Verified crawlers get a distinct branch from generic automation
if (isBot && !isVerifiedBot) {
return NextResponse.json({ error: "Automated access denied" }, { status: 403 });
}
// ... the real handler runs only for verified humans
return NextResponse.json({ ok: true });
}
The distinction BotID adds over Bot Management is that the decision is made per-request and inside your code, which means it can be combined with application context. A signup attempt from a session that has been open for forty seconds and moved a mouse is a different proposition from the same endpoint hit by a fresh session with no interaction history, and BotID’s signals encode that difference. The verification is also not a wall the user sees — there is no puzzle to solve in the normal path — which is the reason it can be applied to conversion-critical routes where a visible CAPTCHA would cost signups. In local development the check resolves to a human verdict so that the flow is not blocked while you work.
d. Deployment Protection — modes, scope, and bypass
Deployment Protection answers a binary question: may this request reach this deployment. It has three authentication modes and one automation escape hatch.
Vercel Authentication is the default and the only mode available on every plan. A request to a protected deployment is redirected to a Vercel login, and access is granted to anyone whose Vercel account has been given access to the project — the team members, plus anyone invited as a viewer. It is the right default for a preview workflow because it requires no shared secret and revokes automatically when someone leaves the team.
Password Protection replaces the SSO redirect with a single shared password prompt. It exists for the audience that does not have Vercel accounts: an external client reviewing a staging build, a designer without a seat, a stakeholder sign-off. It is weaker than SSO by construction, because a shared password cannot be revoked per person, but it is the correct tool when the audience is outside the team.
Trusted IPs is the inverse mode: requests from an allowlisted CIDR range skip authentication entirely, and everything else still must authenticate. It is the mode for an office network or a VPN egress, and it composes with the other modes rather than replacing them.
Orthogonal to the mode is the scope. Standard Protection protects all preview deployments and the generated production deployment URLs, while leaving your custom production domain public — which is almost always what you want, because production is supposed to be public and the raw *.vercel.app URLs are not. All Deployments extends protection to everything including the production domain, and is the setting for a pre-launch site or a fully private internal tool.
The bypass is the part that matters for automation. Generating a Protection Bypass for Automation secret in the project settings produces a value that is automatically exposed to your deployments as the VERCEL_AUTOMATION_BYPASS_SECRET environment variable. A request that carries it in the x-vercel-protection-bypass header passes the protection gate without authenticating:
// A CI job or monitor calling a protected preview
const response = await fetch(`${process.env.PREVIEW_URL}/api/health`, {
headers: {
// The secret is issued per project and rotates on demand
"x-vercel-protection-bypass": process.env.VERCEL_AUTOMATION_BYPASS_SECRET!,
},
});
// A 401 here means the secret is missing, stale, or scoped to another project
if (!response.ok) throw new Error(`Health check failed: ${response.status}`);
For browser-driven automation the header is awkward because the browser makes its own subresource requests that will not carry it. The alternative is the cookie flow: a request carrying x-vercel-set-bypass-cookie: true along with the bypass header causes Vercel to set a _vercel_jwt cookie, and the browser session then passes protection for subsequent navigations. Playwright and Cypress handle this cleanly by setting the header in the context configuration and letting the cookie be established once.
// playwright.config.ts
import { defineConfig } from "@playwright/test";
export default defineConfig({
use: {
extraHTTPHeaders: {
// Sends the bypass on every request the browser context makes
"x-vercel-protection-bypass": process.env.VERCEL_AUTOMATION_BYPASS_SECRET!,
},
},
});
The header approach is preferable to the query-parameter alternative, because query strings end up in access logs, in Referer headers, and in screenshots. A bypass secret in a URL is a bypass secret leaked.
Complete Example Session
// ============================================
// PART 1: THE BLOCK RULE
// ============================================
{
"name": "Block scrapers by user agent",
"active": true,
"action": { "mitigate": { "action": "deny" } },
"conditionGroup": [
{ "conditions": [{ "type": "user_agent", "op": "sub", "value": "python-requests" }] },
{ "conditions": [{ "type": "user_agent", "op": "sub", "value": "Go-http-client" }] }
]
}
// ============================================
// PART 2: THE CHALLENGE RULE
// ============================================
{
"name": "Challenge login from new countries",
"active": true,
"action": { "mitigate": { "action": "challenge" } },
"conditionGroup": [
{
"conditions": [
{ "type": "path", "op": "eq", "value": "/api/login" },
{ "type": "country", "op": "neq", "value": "US" },
{ "type": "country", "op": "neq", "value": "CA" }
]
}
]
}
// ============================================
// PART 3: THE RATE LIMIT RULE
// ============================================
{
"name": "Rate limit checkout per session",
"active": true,
"action": {
"mitigate": {
"action": "rate_limit",
"rateLimit": { "requests": 10, "window": "60s", "keys": ["ip", "header"] }
}
},
"conditionGroup": [
{ "conditions": [{ "type": "path", "op": "pre", "value": "/api/checkout" }] }
]
}
// ============================================
// PART 4: THE BYPASS RULE
// ============================================
{
"name": "Allow the load test runner",
"active": true,
"action": { "bypass": {} },
"conditionGroup": [
{ "conditions": [{ "type": "header", "op": "eq", "key": "x-loadtest", "value": "run-42" }] }
]
}
// ============================================
// PART 5: THE MANAGED RULESETS
// ============================================
{
"crsEnabled": true,
"crsAction": "log", // observe first, challenge later
"crsParanoiaLevel": 1, // lowest false-positive rate
"managedRulesetAction": "challenge",
"managedRulesetEnabled": true
}
// ============================================
// PART 6: THE IP BLOCK LIST
// ============================================
{
"bypass": [],
"block": [
{ "ip": "203.0.113.44", "note": "active scraper, incident 2025-06-02" },
{ "ip": "198.51.100.0/24", "note": "temporary /24 during attack" }
]
}
// ============================================
// PART 7: THE BOTID CONFIG
// ============================================
import { withBotId } from "botid/next/config";
export default withBotId({
reactStrictMode: true,
images: { remotePatterns: [{ hostname: "cdn.example.com" }] },
});
// ============================================
// PART 8: THE BOTID CLIENT HOOK
// ============================================
import { initBotId } from "botid/client/core";
initBotId({
protect: [
{ path: "/api/signup", method: "POST" },
{ path: "/api/login", method: "POST" },
{ path: "/api/checkout", method: "POST" },
],
});
// ============================================
// PART 9: THE BOTID SERVER CHECK
// ============================================
import { checkBotId } from "botid/server";
import { NextResponse } from "next/server";
export async function POST() {
const { isBot, isVerifiedBot } = await checkBotId();
if (isBot && !isVerifiedBot) {
return NextResponse.json({ error: "denied" }, { status: 403 });
}
return NextResponse.json({ ok: true });
}
// ============================================
// PART 10: THE CI BYPASS
// ============================================
const health = await fetch(`${process.env.PREVIEW_URL}/api/health`, {
headers: {
"x-vercel-protection-bypass": process.env.VERCEL_AUTOMATION_BYPASS_SECRET!,
},
});
The ten parts covered the four rule actions in sequence, the managed ruleset configuration, the IP block list, the three-file BotID integration, and the automation bypass that lets a CI job reach a protected preview.
Quick Reference
Condition Fields
| Field | Matches On |
|---|---|
path | Request path, no query string |
method | HTTP method |
host | Hostname |
ip_address | Client IP |
user_agent | User agent header |
country | GeoIP country code |
header | Named header, via key |
ja3_digest / ja4_digest | TLS fingerprint |
Operators
| Operator | Meaning |
|---|---|
eq | Exactly equals |
neq | Not equal |
sub | Contains substring |
pre | Starts with |
suf | Ends with |
re | Regex match |
inc | In a list |
Actions
| Action | Effect |
|---|---|
log | Record only |
challenge | JS challenge, passes real browsers |
deny | 403 at the edge |
bypass | Short-circuits remaining rules |
rate_limit | Counts, then mitigates over the limit |
Deployment Protection Modes
| Mode | Plan | Identity |
|---|---|---|
| Vercel Authentication | All | Vercel account |
| Password Protection | Pro+ | Shared password |
| Trusted IPs | Enterprise | CIDR allowlist |
| Bypass secret | All | x-vercel-protection-bypass |
Rate Limit Keys and Windows
| Setting | Values |
|---|---|
keys | ip, header, path, host |
window | 10s, 60s, 300s, 600s |
requests | Integer threshold per window |
Best Practices
✅ Do This:
// Deploy new rules in observe mode first
{ "action": { "log": {} } } // ✅
// Challenge rather than block user-facing flows
{ "action": { "mitigate": { "action": "challenge" } } } // ✅
// Keep bypass rules narrow
{ "conditions": [{ "type": "header", "op": "eq", "key": "x-key", "value": "v" }] } // ✅
// Key rate limits on identity where available
"keys": ["ip", "header"] // ✅
// Verify the BotID verdict server-side
const { isBot } = await checkBotId(); // ✅
// Send the bypass as a header, not a query param
"x-vercel-protection-bypass": secret // ✅
❌ Don’t Do This:
// Ship a deny rule untested against live traffic
{ "action": { "mitigate": { "action": "deny" } } } // ❌
// Block by country without an exception path
{ "type": "country", "op": "eq", "value": "US" } // ❌
// Trust the user agent alone for a critical route
{ "type": "user_agent", "op": "sub", "value": "Googlebot" } // ❌
// Start the OWASP ruleset at a high paranoia level
"crsParanoiaLevel": 4 // ❌
// Put the bypass secret in a URL
"/api/health?x-vercel-protection-bypass=abc" // ❌
// Assume client-side BotID alone blocks bots
initBotId({ protect: [...] }); // ❌
Common Pitfalls
| Pitfall | Why It Happens | Fix |
|---|---|---|
| Legitimate users blocked | Deny rule deployed without observation | Run in log first |
| Rule never fires | Conditions split across groups | Move ANDs into one group |
| Bypass leaks | Secret in a query string | Use the header |
| Rate limit burns everyone | Keyed on ip behind a shared NAT | Add a header key |
| BotID always passes | Client script not initialised on the route | Check initBotId paths |
| Preview returns 401 in CI | Bypass secret scoped to another project | Regenerate per project |
| OWASP noise | Paranoia level too high | Drop to level 1 |
| Production accidentally private | Scope set to All Deployments | Switch to Standard |
Real-World Examples
1. Block a user agent family
{ "type": "user_agent", "op": "sub", "value": "python-requests" }
2. Challenge a non-standard method
{ "type": "method", "op": "eq", "value": "TRACE" }
3. Protect an admin path by IP
{ "type": "path", "op": "pre", "value": "/admin" }
4. Rate limit an unauthenticated endpoint
"rateLimit": { "requests": 5, "window": "60s", "keys": ["ip"] }
5. Emergency /24 block
{ "ip": "198.51.100.0/24", "note": "attack in progress" }
6. BotID client registration
initBotId({ protect: [{ path: "/api/signup", method: "POST" }] });
7. BotID server gate
const { isBot } = await checkBotId();
if (isBot) return new Response("denied", { status: 403 });
8. Preview password for a client
{ "protection": "password", "scope": "standard" }
9. CI bypass header
headers: { "x-vercel-protection-bypass": secret }
10. Playwright bypass context
use: { extraHTTPHeaders: { "x-vercel-protection-bypass": secret } }
Visual
The Request Pipeline
┌────────────────────────────────────────────────────────────┐
│ INCOMING REQUEST │
│ │ │
│ ▼ │
│ [1] Firewall ip block, custom rules, rate limit │
│ │ │
│ ▼ │
│ [2] Managed OWASP CRS, Vercel signatures │
│ │ │
│ ▼ │
│ [3] Bot layer signatures, challenge, BotID │
│ │ │
│ ▼ │
│ [4] Protection sso, password, trusted ip, bypass │
│ │ │
│ ▼ │
│ [5] Function your code finally runs │
└────────────────────────────────────────────────────────────┘
Condition Group Evaluation
┌────────────────────────────────────────────────────────────┐
│ GROUP 1 GROUP 2 │
│ path = /api/login user_agent contains curl │
│ method = POST country = BR │
│ country != US ────────────────────── │
│ ────────────────────── AND between conditions │
│ AND between conditions │
│ │
│ GROUP 1 OR GROUP 2 ──► match ──► apply action │
└────────────────────────────────────────────────────────────┘
Action Escalation
┌────────────────────────────────────────────────────────────┐
│ log record only zero user impact │
│ │ │
│ ▼ │
│ challenge invisible JS check real users pass │
│ │ │
│ ▼ │
│ deny 403 at the edge function not invoked │
│ │ │
│ ▼ │
│ bypass skip remaining rules use very narrowly │
└────────────────────────────────────────────────────────────┘
Deployment Protection Scope
┌────────────────────────────────────────────────────────────┐
│ STANDARD PROTECTION │
│ preview-abc.vercel.app ──► protected │
│ project-git-branch.vercel.app ──► protected │
│ www.example.com ──► PUBLIC │
│ │
│ ALL DEPLOYMENTS │
│ preview-abc.vercel.app ──► protected │
│ project-git-branch.vercel.app ──► protected │
│ www.example.com ──► protected │
│ │
│ BYPASS │
│ any of the above + x-vercel-protection-bypass ──► allow │
└────────────────────────────────────────────────────────────┘
Summary
| Item | Value |
|---|---|
| Rule structure | name, conditionGroup, action |
| Group logic | AND within a group, OR across groups |
| Actions | log, challenge, deny, bypass, rate_limit |
| Managed rulesets | OWASP CRS, Vercel Managed Ruleset |
| Rate limit keys | ip, header, path, host |
| Bot classification | Bot Management at the edge |
| Bot verification | BotID via checkBotId() |
| Protection modes | Vercel Auth, Password, Trusted IPs |
| Protection scope | Standard vs All Deployments |
| Automation bypass | x-vercel-protection-bypass header |
| Bypass env var | VERCEL_AUTOMATION_BYPASS_SECRET |
Key takeaways:
- Condition groups carry the boolean structure. Conditions inside one group are AND’ed; separate groups are OR’ed. Most rules that “never fire” have their ANDs split across two groups.
challengeis the safe default action. It degrades gracefully for real browsers and stops scripted clients, whiledenyis a hard 403 that should be reserved for rules you have already observed inlogmode.- Managed rulesets and paranoia levels are tuned, not enabled. Level 1 with the action set to log is the safe starting point; escalating to deny at a high paranoia level on a form-heavy site blocks real customers.
- Rate limit keys decide who gets limited. Keying on
ipalone punishes everyone behind a shared NAT, so add a header key wherever the application already carries an identity. - BotID is a two-sided integration. The client registers protected routes with
initBotId, the server makes the decision withcheckBotId, and skipping either half leaves the gate open. - The bypass secret is a credential, not an exemption. Send it in the
x-vercel-protection-bypassheader, keep it out of query strings, and rotate it when a CI runner is retired.
Remember: The Firewall and Deployment Protection solve adjacent problems at different layers, and the ordering between them is the whole design. Block what you can at the edge for free, challenge what you are unsure about so real browsers still pass, let verified crawlers through so indexing is not damaged, and treat the bypass secret as the single supported door for machines. Run every new rule in observe mode first — the cost of a false positive is an outage, and reading the log for a week is cheaper than reading the incident report.
Stop using slow, ad-bloated tool sites! 🤮
🔎 Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
✅ Finance (Mortgage, Interest, Inflation)
✅ Tech (Base64, JSON, Dev Suite, IP)
✅ Health (BMI, BMR, TDEE)
✅ Productivity (Timer, Workspace, QR)
⚡️ Fast & Private
🔒 No data leaves your device
💎 100% Free
🔗 Use it now: https://tools.kandz.me
🔖 Bookmark it—you’ll need it later!