Learn

Rules: allow, block and log

Rules decide what happens to each request, in order of priority (lowest number first). The first rule that matches wins.

Rules

Rule actions

Action What happens
Allow The request is forwarded. Rate limits and attack detection are skipped. Use sparingly, for trusted sources only.
Block The request gets 403. The visitor sees a short generic message.
Log only The request is forwarded, but the match is recorded in the request log.
Challenge A browser is sent to a brief proof-of-work check; it then goes through. API clients get 403.

Conditions

A rule matches when all its conditions match:

Condition Examples
Client IP 203.0.113.5, 203.0.113.0/24, 10.0.0.0/8
Country BE, NL, DE (needs Client Locations)
Region or city (needs Client Locations)
Network (ASN) An autonomous system number
Is a proxy True/false (needs Client Locations)
Is a known search engine (verified) True/false
Method GET, POST, PUT, …
Host www.example.com, *.example.com
Path /admin, /api/users/*
Query string Contains a specific value
User-Agent Contains or matches a pattern
Any header Header name and a value condition
Route Applies only to named routes
Is on IP list A subscribed blocklist

Priority

Lower priority numbers run first. If two rules could match, the one with the lower number wins. The rules list shows them in priority order. Drag to reorder, or enter a number when editing.

IP block lists and allow lists

IP block and allow lists are rules with a list of addresses and CIDR ranges, one per line. They are created and managed the same way as other rules — the editor just shows a text area for the addresses instead of conditions.

Detection-only mode

A rule can run in Detection only mode: it logs what it would do, but does not actually block or allow. Use this to test a new rule on live traffic before switching it on. The whole firewall can also be switched to detection-only from the dashboard badge.

Example: block all traffic except your office

  1. Add a rule with action Allow, condition Client IP = 203.0.113.0/24 (your office), priority 1.
  2. Add a rule with action Block, no conditions (matches everything), priority 2.

Result: only your office can access the site.

Example: apply the common attack presets

Go to Templates and presets → Block common attacks. The preset shows a preview of exactly what it will add, then applies it. It switches on every attack detector and blocks common probes for hidden files and unusual methods.