/vercel-firewall
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
Claude Code
$ npx -y skills add vercel/vercel-plugin --skill vercel-firewall --agent claude-code
Codex
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a codex -y
Cursor
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a cursor -y
Gemini CLI
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a gemini-cli -y
GitHub Copilot
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a github-copilot -y
OpenCode
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a opencode -y
Windsurf
$ npx skills add vercel/vercel-plugin --skill vercel-firewall -a windsurf -y
SKILL.md
vercel-firewall.SKILL.mdname: vercel-firewall
description: 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.
metadata:
priority: 7
docs:
- 'https://vercel.com/docs/vercel-firewall'
- 'https://vercel.com/docs/cli/firewall'
bashPatterns:
- '\bvercel\s+firewall\b'
promptSignals:
phrases:
- 'vercel firewall'
- 'vercel waf'
- 'attack mode'
- 'ddos protection'
- 'ip block'
- 'managed ruleset'
- 'bot protection'
- 'system bypass'
- 'rate limit rule'
- 'ai bots'
- 'ai crawler'
- 'verified bot'
allOf:
- [firewall, vercel]
- [waf, vercel]
- [ddos, vercel]
- [challenge, vercel]
- ['rate limit', vercel]
- ['system bypass', vercel]
- ['ip block', vercel]
noneOf: []
minScore: 6
retrieval:
aliases:
- ddos protection
- waf rules
- bot protection
- rate limiting
- attack mode
- ip allowlist
- traffic filtering
- verified bots
- owasp core ruleset
intents:
- protect from ddos
- block malicious traffic
- configure firewall
- rate limit api
- allow bot through firewall
- enable attack mode
- publish firewall rule
entities:
- Vercel Firewall
- Vercel WAF
- DDoS
- Attack Mode
- Bot Protection
- Managed Rulesets
- System Bypass
- JA3
- JA4Vercel 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](#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`, `redirect` and matching on fields such as `host`, `path`, `query`, `protocol`, `scheme`, `method`, `route`, `ip_address`, `header`, `cookie`, `user_agent`, `environment`, `region`, `geo_continent`, `geo_country`, `geo_city`, and `ja4_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.
vercel firewall overview # active rules, blocks, bypasses, attack-mode, drafts
vercel firewall overview --json
vercel firewall diff # show unpublished draft changes
vercel firewall diff --json
`rules`, `managed-rulesets` and `ip-blocks` changes are **staged** as drafts. `vercel firewall publish` makes them live (see [Publishing](#publishing)). `system-bypass`, `attack-mode` and `system-mitigations` take effect **immediately**.
Custom rules
[Custom rules](https://vercel.com/docs/vercel-firewall/vercel-waf/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
vercel firewall rules list # table of all rules
vercel firewall rules list --expand # show conditions + actions
vercel firewall rules list --json
vercel firewall rules inspect "My Rule" # full detail of one rule
vercel firewall rules inspect "My Rule" --json
Create — four modes
# AI — TTY only, BLOCKED FOR AGENTS/SCRIPTS
vercel firewall rules add --ai "Rate limit /api to 100 requests per minute by IP"
# Interactive wizard — TTY only, BLOCKED FOR AGENTS/SCRIPTS
vercel firewall rules add
# Flags — works in scripts and agents
vercel firewall rules add "Block crawlers" \
--condition '{"type":"user_agent","op":"sub","value":"crawler"}' \
--action deny --yes
# JSON payload — works in scripts and agents (`--data` needs CLI 64.2+; older CLIs use `--json <payload>`)
vercel firewall rules add --data '{"name":"Block crawlers","conditionGroup":[{"conditions":[{"type":"user_agent","op":"sub","value":"crawler"}]}],"action":{"mitigate":{"action":"deny"}}}' --yesMultiple conditions (AND) and OR groups
# AND — multiple --condition flags in the same group
vercel firewall rules add "Secure admin" \
--condition '{"type":"path","op":"pre","value":"/admin"}' \
--condition '{"type":"geo_country","op":"eq","neg":true,"value":"US"}' \
--action deny --yes
# OR — use --or to start a new group
vercel firewall rules add "Block dangerous methods" \
--condition '{"type":"method","op":"eq","value":"DELETE"}' \
--or \
--condition '{"type":"method","op":"eq","value":"PATCH"}' \
--action challenge --yesUpdate and manage
`rules
Read more
name: vercel-firewall
description: 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.
metadata:
priority: 7
docs:
- 'https://vercel.com/docs/vercel-firewall'
- 'https://vercel.com/docs/cli/firewall'
bashPatterns:
- '\bvercel\s+firewall\b'
promptSignals:
phrases:
- 'vercel firewall'
- 'vercel waf'
- 'attack mode'
- 'ddos protection'
- 'ip block'
- 'managed ruleset'
- 'bot protection'
- 'system bypass'
- 'rate limit rule'
- 'ai bots'
- 'ai crawler'
- 'verified bot'
allOf:
- [firewall, vercel]
- [waf, vercel]
- [ddos, vercel]
- [challenge, vercel]
- ['rate limit', vercel]
- ['system bypass', vercel]
- ['ip block', vercel]
noneOf: []
minScore: 6
retrieval:
aliases:
- ddos protection
- waf rules
- bot protection
- rate limiting
- attack mode
- ip allowlist
- traffic filtering
- verified bots
- owasp core ruleset
intents:
- protect from ddos
- block malicious traffic
- configure firewall
- rate limit api
- allow bot through firewall
- enable attack mode
- publish firewall rule
entities:
- Vercel Firewall
- Vercel WAF
- DDoS
- Attack Mode
- Bot Protection
- Managed Rulesets
- System Bypass
- JA3
- JA4Vercel 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](#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`, `redirect` and matching on fields such as `host`, `path`, `query`, `protocol`, `scheme`, `method`, `route`, `ip_address`, `header`, `cookie`, `user_agent`, `environment`, `region`, `geo_continent`, `geo_country`, `geo_city`, and `ja4_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.
vercel firewall overview # active rules, blocks, bypasses, attack-mode, drafts vercel firewall overview --json vercel firewall diff # show unpublished draft changes vercel firewall diff --json
`rules`, `managed-rulesets` and `ip-blocks` changes are **staged** as drafts. `vercel firewall publish` makes them live (see [Publishing](#publishing)). `system-bypass`, `attack-mode` and `system-mitigations` take effect **immediately**.
Custom rules
[Custom rules](https://vercel.com/docs/vercel-firewall/vercel-waf/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
vercel firewall rules list # table of all rules vercel firewall rules list --expand # show conditions + actions vercel firewall rules list --json vercel firewall rules inspect "My Rule" # full detail of one rule vercel firewall rules inspect "My Rule" --json
Create — four modes
# AI — TTY only, BLOCKED FOR AGENTS/SCRIPTS
vercel firewall rules add --ai "Rate limit /api to 100 requests per minute by IP"
# Interactive wizard — TTY only, BLOCKED FOR AGENTS/SCRIPTS
vercel firewall rules add
# Flags — works in scripts and agents
vercel firewall rules add "Block crawlers" \
--condition '{"type":"user_agent","op":"sub","value":"crawler"}' \
--action deny --yes
# JSON payload — works in scripts and agents (`--data` needs CLI 64.2+; older CLIs use `--json <payload>`)
vercel firewall rules add --data '{"name":"Block crawlers","conditionGroup":[{"conditions":[{"type":"user_agent","op":"sub","value":"crawler"}]}],"action":{"mitigate":{"action":"deny"}}}' --yesMultiple conditions (AND) and OR groups
# AND — multiple --condition flags in the same group
vercel firewall rules add "Secure admin" \
--condition '{"type":"path","op":"pre","value":"/admin"}' \
--condition '{"type":"geo_country","op":"eq","neg":true,"value":"US"}' \
--action deny --yes
# OR — use --or to start a new group
vercel firewall rules add "Block dangerous methods" \
--condition '{"type":"method","op":"eq","value":"DELETE"}' \
--or \
--condition '{"type":"method","op":"eq","value":"PATCH"}' \
--action challenge --yesUpdate and manage
`rules
Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Other skills on vercel.
More skills from other plugins.
container
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…
frontend-forge-fe-oper…
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download…
agent-advisor
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…
agents-sdk
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Questions about vercel-firewall.
- Which coding agents can use vercel-firewall?
- vercel-firewall installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

