Learn

Templates and presets

Templates and presets

Templates and presets give you a head start for common security tasks. Find them under Templates and presets in the menu.

Presets

A preset shows a preview of exactly what it will change before it applies anything. Applying a preset twice changes nothing.

Preset What it does
Block common attacks Switches on every attack detector, sets newer checks (Log4Shell, template injection, NoSQL injection, header injection, XXE, deserialization, SSRF, remote file inclusion) to blocking, and blocks probes for hidden files and unusual methods
Lock a path to your IP addresses Only your addresses may open a path such as /admin; everyone else gets 403
Allow only some countries Only visitors from chosen countries may open a path or the whole site (needs Client Locations)
Block anonymous proxies Refuses addresses known as proxies, VPNs or anonymizers (needs Client Locations)
Challenge visitors from other countries Visitors from other countries must pass a browser check before a path; verified search engines are left out (needs Client Locations)
Protect a login page Limits login attempts (POST to the login path) per client address
Limit requests per client A fair number of requests per minute per address, against aggressive bots
Challenge instead of refusing over the rate limit Same limit, but a browser over it gets the browser check instead of 429
Inspect request bodies Switches on body inspection: forms, JSON, multipart and uploads are checked for attacks
Refuse bodies that cannot be inspected For APIs that only take small JSON: a body larger than the limit gets 413 instead of being partly inspected
Protect a path with a sign-in Requires a sign-in to open a path; uses the gateway's own users and teams

Templates

Templates open the route, rule or rate-limit editor pre-filled for a common case. Edit the pre-filled values and save as a normal configuration change.

Example: quickly securing a fresh installation

  1. Open Templates and presets.
  2. Click Block common attacks → review the preview → Apply.
  3. Click Protect a login page → enter your login path (e.g. /account/login) → Apply.
  4. Click Limit requests per client → review → Apply.

Three configuration versions are created, each one audited and reversible.

Preset preview: protect a path