Behind edge ✓host verge.run.placeproto httpscdn-loop vergcloud-staging; count=1
← Feature map

Firewall lab

Allow vs block fixtures. A blocked probe should return an edge/custom page — not origin JSON.

Quick setup — Firewall lab

Applies Verge config for this lab (firewall). Preflight (active domain + reachable CDN) runs first and must pass. Key stays in memory and is proxied server-side.

Example config

  • Name: Block probe evil (letters, numbers, spaces only)
  • Filter: (http.request.uri.path contains "/api/origin/firewall/probe" and http.request.uri.query contains "mode=evil")
  • Action: deny, Enabled: true

Setup guide

CDN → Domain [domain] → Security → Firewall → New

Suggested config

  • Name: Block probe evil (letters, numbers, spaces only)
  • Filter: (http.request.uri.path contains "/api/origin/firewall/probe" and http.request.uri.query contains "mode=evil")
  • Action: deny, Enabled: true

Verify

  1. Allow fixture → expect 200 + origin-reached
  2. Probe ?mode=evil → expect 403 edge block (Verge default, or branded firewall_error if custom-pages pack uploaded), not origin JSON
  3. Probe ?mode=benign → expect 200 from origin

Origin routes

All probes are same-origin through the CDN hostname. Open routes in a new tab to compare edge vs origin headers.

No request yet — hit a button above to run a probe.