vercel-firewall
Skill1 starsChanged 28 days agoMITView on GitHub
Sets up and reviews the Vercel Firewall so scanners and junk traffic cost nothing while visitors, search engines and AI assistants still get in. Covers a deny rule for the paths vulnerability scanners probe (generated and checked against the site's real files by scripts/firewall-rules.mjs), Bot Protection (log first, then challenge), the AI Bots ruleset and its trade-off for AI citations, rate limits for forms and APIs, firewall rules in vercel.json, and reading the firewall log. Use it when setting up or reviewing security on Vercel, blocking bots, scanners or WordPress probes, deciding whether to block AI crawlers, or when usage shows lots of bot or 404 traffic. Changes are prepared for a person to approve.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- vercel/vercel-plugintheir own version, first seen Nov 12, 2026
- openai/pluginstheir own version, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- openai/plugins★ 8.4ksame name
- vercel/vercel-plugin★ 353same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/geo-ai-search/assets/llms.txtllms.txt
- geo-ai-searchSkill
- seo-geo-vercel-playbookSkill
- seo-metadataSkill
- seo-technical-auditSkill
- site-migrationSkill
- structured-dataSkill
- vercel-cost-optimizationSkill
- vercel-static-configSkill
- web-performanceSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
The other half of the job is not blocking the wrong things: search engines, AI search bots, link-preview fetchers and uptime monitors.
- Very specific: line 40
If a real path collides (a site that really serves .log files, say), exclude it with --keep log and check again.
- Distinctive: line 55
AI Bots ruleset: leave it on Allow (or Log) when the site wants to appear in AI answers.
- Distinctive: line 69
Prefer Challenge over Deny for anything people might hit.
- Very specific: line 72
Keep a way back: vercel firewall rules disable "<name>" and publish.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vercel Firewall for static sites
A static site has no WordPress, no PHP and no .env file, yet scanners ask for them all day.
Each ask is a billed request and an uncached 404. A deny rule turns them into free, blocked
requests: traffic that WAF rules deny or challenge incurs no CDN requests or data transfer
(Vercel, WAF usage and pricing, checked 4 November 2026).
The other half of the job is not blocking the wrong things: search engines, AI search bots, link-preview fetchers and uptime monitors.
Steps
Generate the rules and prove they match no real file:
node <skill>/scripts/firewall-rules.mjs --check-dist dist # every file in the build node <skill>/scripts/firewall-rules.mjs --check-sitemap https://www.example.com/sitemap.xml node <skill>/scripts/firewall-rules.mjs # the CLI commands to apply themIf a real path collides (a site that really serves
.logfiles, say), exclude it with--keep logand check again.--test /wp-login.php,/about/shows single paths.- Show the plan to the person and get approval. Firewall changes are live for every visitor once published.
- Apply with one of:
- Vercel CLI in the linked project: the
vercel firewall rules add …commands the script prints, thenvercel firewall publish --yes(changes stay drafts until published). - REST API:
--format restprintsPATCH /v1/security/firewall/config?projectId=…&teamId=…bodies (rules.insert). vercel.json(routes format only, deny or challenge only):--format vercel-json.- Dashboard: Project → Firewall → Configure, using the same pattern.
- Vercel CLI in the linked project: the
- Bot Protection: set to Log first, check the log for a few days for legitimate traffic that would be challenged (link previews, monitors, partners' integrations), then Challenge. Verified bots (Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot and many more in Vercel's directory) are not evaluated.
- AI Bots ruleset: leave it on Allow (or Log) when the site wants to appear in AI answers.
Its Deny blocks AI search and user-requested fetches too, not only training. To refuse training
only, use
robots.txt(seegeo-ai-search) or a custom rule naming specific training bots. - Verify:
vercel firewall overviewand the Firewall tab show what was denied; test a few real pages and a link preview; runrobots-check.mjs --fetchfromgeo-ai-search. - Review monthly: top blocked paths and new scanner patterns; add them to the rule.
Details and commands: references/rules.md and references/bot-management.md.
Rules of thumb
- Deny by path only what the site can't have. Never deny
/.well-known/(security.txt, app links, domain verification). - Prefer Challenge over Deny for anything people might hit; Deny is for paths no person needs.
- Rate-limit only endpoints that take input (form handlers, APIs, search), never static pages.
- Attack Challenge Mode is for an active attack, not a permanent setting.
- Keep a way back:
vercel firewall rules disable "<name>"and publish.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

