agentleFS
sharabarinilliasharabarinillia/SEO-GEO-Vercel-Playbook-Skill/skills/vercel-firewall/SKILL.md

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

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
  1. Distinctive:

    The other half of the job is not blocking the wrong things: search engines, AI search bots, link-preview fetchers and uptime monitors.

    line 27
  2. Very specific:

    If a real path collides (a site that really serves .log files, say), exclude it with --keep log and check again.

    line 40
  3. Distinctive:

    AI Bots ruleset: leave it on Allow (or Log) when the site wants to appear in AI answers.

    line 55
  4. Distinctive:

    Prefer Challenge over Deny for anything people might hit.

    line 69
  5. Very specific:

    Keep a way back: vercel firewall rules disable "<name>" and publish.

    line 72

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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 them

    If a real path collides (a site that really serves .log files, say), exclude it with --keep log and check again. --test /wp-login.php,/about/ shows single paths.

  2. Show the plan to the person and get approval. Firewall changes are live for every visitor once published.
  3. Apply with one of:
    • Vercel CLI in the linked project: the vercel firewall rules add … commands the script prints, then vercel firewall publish --yes (changes stay drafts until published).
    • REST API: --format rest prints PATCH /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.
  4. 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.
  5. 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 (see geo-ai-search) or a custom rule naming specific training bots.
  6. Verify: vercel firewall overview and the Firewall tab show what was denied; test a few real pages and a link preview; run robots-check.mjs --fetch from geo-ai-search.
  7. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.