vercel/vercel-plugin/vercel-firewall
Claude Code and agent skill by vercel/vercel-plugin
- vendor
Checking that the SKILL.md file is still in the repository.
Vercel Firewall expert guidance — automatic DDoS mitigation, the Vercel WAF (custom rules, IP blocking, managed rulesets, rate limiting), Attack Mode, system bypass, bot management, and the `vercel firewall` CLI. Use when configuring platform-level security, responding to attacks, or staging firewall rules.
Install
npx vskill@latest install vercel/vercel-plugin/vercel-firewallSKILL.md
Vercel Firewall
You are an expert in the Vercel Firewall including the vercel firewall CLI, Vercel WAF and platform-level protections (custom rules, managed rulesets, IP blocks, system bypass, Attack Mode, system mitigations). You follow all the best practices outlined below.
Core Knowledge
- Vercel ships a multi-layered firewall, not just a CDN. The Platform-wide Firewall provides DDoS Protections and is free for every customer. Customers can also configure a Web Application Firewall with IP blocks and custom rules. Vercel also provides managed rulesets such as OWASP Core Ruleset, Bot Protection and AI Bots.
- Automatic DDoS mitigation is on for every project on every plan, including Hobby, with no configuration required. It covers L3/L4/L7 attacks.
- Vercel does not bill for traffic blocked by DDoS mitigations or WAF. Usage is only incurred for requests served before mitigation kicked in or not classified as an attack. You do not pay for requests or bandwidth for denies, challenges, or rate-limits from WAF custom rules or managed rules.
- Custom rules allows the user to define their own Firewall rules. Includes actions
deny,challenge,log,bypass,rate_limit,redirectand matching on fields such ashost,path,query,protocol,scheme,method,route,ip_address,header,cookie,user_agent,environment,region,geo_continent,geo_country,geo_city, andja4_digest. See https://vercel.com/docs/vercel-firewall/vercel-waf/rule-configuration for full information.
Overview
Commands act on the linked project (vercel link). Pass --project <name> to target another project, including from an unlinked directory.
rules, managed-rulesets and ip-blocks changes are staged as drafts. vercel firewall publish makes them live (see Publishing). system-bypass, attack-mode and system-mitigations take effect immediately.
Custom rules
Custom rules define traffic policies based on request attributes. Block abuse, rate limit APIs, challenge suspicious requests, redirect legacy paths, or log traffic. Rules can also be defined declaratively in vercel.json via the routes property with a mitigate action, but only challenge and deny are supported that way — use the CLI or dashboard for log, bypass, rate_limit, or redirect.
View
Create — four modes
Multiple conditions (AND) and OR groups
Update and manage
rules update needs CLI 64.4+; older CLIs use rules edit, which still works as a deprecated alias.
Rules are evaluated in priority order (top to bottom). Reorder to control which rule matches first.
NOTE: When using update with --condition, it will overwrite all conditions listed in the rule. Make sure to specify all conditions when editing a rule.
Condition format
Each --condition is a JSON object:
Conditions within a group are AND'd. Multiple groups (separated by --or) are OR'd.
Operators
eq/neq (equals), sub (contains), pre (starts-with), suf (ends-with), re (regex), ex/nex (exists; omit value), inc/ninc (in set; value is array or comma-separated), gt/gte/lt/lte (numeric). Set neg: true to negate any operator.
Condition types
- Request shape:
path,raw_path(pre-rewrite),target_path(post-rewrite),route(e.g.,/blog/[slug]),server_action,method,host,protocol,scheme,environment(preview|production),region - Client:
ip_address(IP or CIDR),user_agent,geo_country,geo_continent,geo_country_region,geo_city,geo_as_number - Headers / cookies / queries — require
key:header,cookie,query - TLS fingerprints:
ja4_digest(all plans),ja3_digest(Enterprise only) - Bots:
bot_name,bot_category(priority projects only; see Bot management) - Rate limit grouping:
rate_limit_api_id
Actions
deny— block (403)challenge— show verification pagelog— log without blocking (use to tune before enforcing)bypass— skip remaining WAF custom rules and managed rulesets (does not bypass system-level mitigations — use System bypass for that)rate_limit— throttle by counting key (see Rate limit example for flags)redirect— redirect to a URL or path; use--redirect-url <URL>and optionally--redirect-permanent(301; default is a temporary 307 redirect)
deny, challenge, and rate_limit accept --duration (Pro/Enterprise): 1m, 5m, 15m, 30m, 1h. Persistent — deny --duration 30m blocks the client for 30 min after first match. Without a duration the action evaluates per-request. Be careful if using persistent actions because they will be blocked for that duration even if the Firewall rule is removed.
Rate limit example
--rate-limit-window— seconds, 10–3600 (over 600 Enterprise only)--rate-limit-requests— max per window, 1–10,000,000--rate-limit-keys— count byip(default) orja4.header:<name>needs Enterprise, or a priority project on Pro. Repeatable.--rate-limit-algo—fixed_window(default),token_bucket(Enterprise only)--rate-limit-action— when limit exceeded:rate_limitreturns 429 (default),deny403,challenge,log- Counters are per region — N regions can collectively exceed your configured limit by ~N×.
When the user asks for firewall help on a project — or asks "what rate limits should I add?" — proactively scan the repo for API endpoints and suggest concrete rate_limit rules. Most projects ship with no rate limiting and a single abusive client can run up the bill or knock the app over. A small, well-targeted set of rules catches the worst offenders without touching legitimate traffic.
Method scoping matters — GET /api/foo and POST /api/foo will likely need different rate limits. Always stage with --rate-limit-action log and a generous limit (5–10× the expected legitimate rate), then walk through the staged rollout in Best practices before tightening.
For more sophisticated counting (custom buckets, hashing identifiers from headers/cookies, sliding windows from your own code) point the user at the Rate Limiting SDK: https://vercel.com/docs/vercel-firewall/vercel-waf/rate-limiting-sdk.
Bot management
| Goal | Use | |
|---|---|---|
| Scripts and non-browser clients site-wide | Bot Protection managed rule (off/log/challenge, all plans) | |
| AI crawlers and assistants | AI Bots managed rule, per category: managed-rulesets update ai-bots --group ai-crawlers --action deny | |
| A bot category or named bot | Custom rule on bot_category / bot_name (priority projects) | |
| Signup, checkout, AI routes called by the app's frontend | BotID in code — see the botid skill | |
| Active flood | Attack Mode (user enables it) |
- Verified bots (confirmed by IP, reverse DNS or Web Bot Auth) skip Bot Protection and Attack Mode. AI Bots and custom rules still apply. A UA that only claims to be a bot isn't verified
- `bypass` custom rules also skip the managed bot rules — keep them narrow
- Challenge is a JS check, not a CAPTCHA; for server or mobile API callers it acts like
deny
bot-protection, ai-bots and bot-id are reserved project-level slugs: rules add, remove, enable, disable and move refuse them. Change Bot Protection and AI Bots with managed-rulesets update (see Managed rulesets). BotID stays on rules update bot-id. Start Bot Protection on log and review before challenge.
Bot name and category rules
Priority projects only. The CLI refuses them elsewhere. They match Vercel's verified identity, not the UA. Verified categories include search_engine_crawler, ai_crawler, ai_assistant, monitor, webhook, preview, advertising, search_engine_optimization, feed_fetcher, verification; copy exact values from traffic list --dimension bot.
Blocking search_engine_crawler removes the site from search; call that out before staging.
Managed rulesets
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Mar 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vercel-firewall/SKILL.md
Popularity
- Repository stars
- 9
- Repository forks
- 1
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vercel/vercel-plugin/vercel-firewall)