vercel-firewall

Configure Vercel Firewall rules, IP blocks, rate limits, and DDoS protections via CLI.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill vercel-firewall-dsgalkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-firewall
Source: https://github.com/dsgalkar/dnyaneshwar_portfolio/tree/main/.agents/plugins/vercel/skills/vercel-firewall
Command: npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill vercel-firewall-dsgalkar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It guides safe configuration of Vercel's platform-level security controls—WAF custom rules, IP blocking, rate limiting, Attack Mode, and system bypass—without accidentally blocking real users, SEO crawlers, or checkout flows. ## Core Features & Use Cases - Custom WAF Rules: Create, edit, reorder, and stage rules with conditions on path, headers, geo, user agent, and JA4 fingerprints, with actions like deny, challenge, log, bypass, and rate_limit. - Staged Rollout Workflow: Enforces a log-first, preview-block, then production-block rollout so new rules are validated against real traffic before enforcement. - Attack Response & Mitigation: Covers Attack Mode for active attacks, system bypass for trusted IPs, IP blocks, and querying firewall metrics via vc metrics. - Use Case: When an API endpoint is being hammered by abusive clients, use this Skill to stage a rate-limit rule in log mode, review the traffic dashboard, then tighten and enforce it in production. ## Quick Start Ask the assistant to add a Vercel Firewall rule that rate limits your /api routes to 100 requests per minute per IP, staged in log mode first.

Frequently Asked Questions about vercel-firewall

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a rate limit rule with the Vercel Firewall CLI?

Use vercel firewall rules add with a path condition, the rate_limit action, and flags like --rate-limit-window, --rate-limit-requests, and --rate-limit-keys ip. Start with --rate-limit-action log and a generous limit, then tighten after reviewing traffic.

How do I block an IP address on Vercel?

Run vercel firewall ip-blocks block followed by the IP or CIDR, optionally scoped with --hostname or annotated with --notes. IP blocks are staged as drafts, so you must run vercel firewall publish --yes to make them live.

Does Vercel charge for traffic blocked by the WAF or DDoS mitigation?

No. Vercel does not bill for requests or bandwidth denied, challenged, or rate-limited by WAF custom rules, managed rulesets, or DDoS mitigations. You only pay for requests served before mitigation kicked in or not classified as an attack.

Why can't an AI agent enable Vercel Attack Mode directly?

Attack Mode requires interactive confirmation and is blocked for agents and scripts because of its severity—it challenges all unverified visitors. The user must run vercel firewall attack-mode enable themselves in a terminal.

What is the difference between system bypass and a bypass custom rule?

System bypass exempts trusted IPs or CIDRs from all firewall checks and takes effect immediately without publishing. A custom rule with the bypass action only skips remaining WAF custom rules and managed rulesets, and is staged as a draft requiring publish.

Why might a user-agent blocking rule block real users?

Substring matches like bot, crawler, or python over-match legitimate tools such as uptime monitors, link previewers, and CI systems. Pair user-agent conditions with path, geo, or rate conditions, and prefer Vercel's verified-bot signals for known crawlers.