Skip to content
Zarex

Every decision, explained

The dashboard lists every request Zarex saw: its verdict, the rule involved, the visitor's origin and the detail of each protection. The tool to validate a rule in DRY_RUN or understand a block.

Scenario

Most recent decisions first, filterable by verdict, period and IP address. Sample values.

PreviewDocs

VerdictRuleCountryPath
DENYSHIELDDE/search
ALLOW—FR/shop
DENYBOT_DETECTIONUS/products
DENYRATE_LIMITBR/api/login
ALLOW—CA/cart

Find a decision from your code

Every decision has a 32-character ID, the same as decision.id in your code. Return it in your error responses: a blocked customer passes it on, and you find the exact decision.

Test and production decisions are told apart by the key's environment.

What the log never keeps

Cookies, the Authorization header, request bodies and query strings are never stored. Only a few secret-free headers are kept.

Decisions are kept for one year.

In your code

Return the decision ID: it is the one in the log.

import { withZarex, shield } from "@zarex/next";

export const GET = withZarex(
  {
    key: process.env.ZAREX_KEY!,
    ipSource: "vercel",
    rules: [shield()],
    // L'identifiant renvoyé au visiteur est celui du journal.
    onDeny: (request, decision) =>
      Response.json({ erreur: "Requête refusée", id: decision.id }, { status: 403 }),
  },
  async () => Response.json({ produits: [] })
);

Ready for production

Kept for one year

Then deleted.

No secrets stored

No cookies, bodies or Authorization.

Test and production

Separated by the key used.

Same ID

In the log and in your code.

Other protections

Start by observing

Turn the rule on in DRY_RUN, watch the log, then switch to LIVE. A question before you start? Write to us.