Skip to content

4. Applications (protected websites)

4.1. Adding a website

  1. «Applications» → «Add».
  2. Enter the domains (example.com, *.example.com) and the Origin — the website server address (http(s)://IP:port).
  3. Choose the listening ports (80/443) and a certificate (section 5).
  4. Set the mode: «Block» or «Detect» (log only — handy for the first days).
  5. Choose the sensitivity: low (PL1), medium (PL2), high (PL3), maximum (PL4).
  6. Save and press «Apply».

Start in «Detect» mode with low or medium sensitivity. High/maximum levels cause many false positives on real APIs.

4.2. False positives

Each block in the event log shows the CRS rule number. If a rule interferes with legitimate traffic, add it to the application's «Rule exclusions». Do not disable whole rule groups unless necessary.

4.3. Application access and limits

  • Allowed/denied addresses (IPs and networks) — for this application.
  • Allowed countries — an exclusive list: other countries are rejected.
  • Rate limit — requests per IP per window; exceeding it returns 429 and a temporary block.
  • Auto-block — an IP that WAF rules block often is temporarily blocked on all applications.

4.4. API protection

OpenAPI validation. Upload an OpenAPI 3.x schema (JSON or YAML, up to 2 MB). Requests under the configured path prefix are validated against the schema: method, path, parameters, headers and body. Action: «Block» (400) or «Log». Bodies over 1 MB are validated without the body.

API discovery. The WAF collects the API endpoints that are actually called (paths are turned into templates: /users/{id}). «Discovered APIs» shows the list and exports it as a ready OpenAPI schema that you can upload for validation.

JWT. For the configured prefixes the WAF verifies the token in the Authorization header: signature (RS, PS, ES, EdDSA; HS only if explicitly allowed), expiry, issuer (iss) and audience (aud). Keys come from an https JWKS URL or are pasted manually. A failed check returns 401.

4.5. Bot protection

Visitors are classified by User-Agent and behavior. For each category choose an action: allow, log, JS challenge or block.

Category Examples Default action
Scanners sqlmap, nikto, nuclei, masscan Block
Fake search bots «Googlebot» failing the DNS check Block
Headless browsers HeadlessChrome, PhantomJS JS challenge
Search bots (verified) Googlebot, Bingbot, Yandex — reverse and forward DNS Log
Scripts and libraries curl, python-requests, Go-http-client Log

The JS challenge is a page where the browser solves a small proof-of-work task and receives a signed cookie for a set time (12 hours by default). Real visitors pass it automatically in a fraction of a second; simple bots do not. «Challenge everyone» turns it on for the whole site («under attack» mode); you can also limit it to specific paths.

4.6. Login protection

Enter the login page path (for example, /login) and the names of the username and password fields. A failed login is detected by the server response code (401 and 403 by default).

  • Failures per IP — after N failures within the window the address is blocked for the set time.
  • Failures per username — protects against distributed guessing of one account from many addresses: the username is locked (429) for the set time.
  • Leaked passwords — the password is checked against Have I Been Pwned using k-anonymity: only the first 5 characters of its SHA-1 hash leave the appliance, never the password. Actions: log, an X-WAF-Leaked-Password header for the server (the site can ask the user to change the password) or block.

Usernames are stored only as HMAC; passwords are never stored.

4.7. IP reputation

For each category choose «Block» or «Log»:

Category Source
Tor exit nodes Tor Project (bulk exit list)
Malicious networks FireHOL level1 + Spamhaus DROP (IPv6)
Open proxies FireHOL proxies

Lists are downloaded automatically every 6 hours while a category is enabled in at least one application. Private and special-purpose networks are excluded. An incomplete or empty list never replaces the previous one. Status and «Update lists» are in the application form.

4.8. Virtual patches

A virtual patch closes a discovered vulnerability until the code is fixed: requests to a specific path with a dangerous parameter value are blocked.

  • Path — exact match (for example, /search);
  • Method — any or GET/POST/PUT/PATCH/DELETE;
  • Parameter — parameter name (empty — any);
  • Attack — SQLi, XSS, RCE (command injection), LFI (path traversal), SSRF or «strict» (only safe characters allowed).

Scanner report import. «Import report» accepts an OWASP ZAP (JSON) or Burp Suite (XML) report and adds patches for the SQLi, XSS, command injection, path traversal and SSRF findings. Review the list before saving.

4.9. Session protection

  • CSRF — state-changing requests (POST, PUT, PATCH, DELETE) from a browser on another site are rejected using the Origin, Referer and Sec-Fetch-Site headers. Requests without these headers (mobile apps, integrations) pass. Extra trusted sites can be listed.
  • Cookie signing — the WAF adds a signature to the values of selected cookies (for example, role or cart) and strips it from requests. The server receives the original value; a cookie altered by the client is removed or the request is blocked.

4.10. Upload antivirus

Files from upload forms (multipart/form-data) are scanned individually by ClamAV and your YARA rules; other binary bodies are scanned whole. Forms, JSON and text are not scanned. The engine is enabled in «System → Antivirus» (section 10.4).

  • Action — block (403) or log;
  • File larger than 1 MB — the WAF sees the first 1 MB of the body: «Scan the beginning» or «Reject (413)»;
  • If the antivirus is unavailable — allow (default) or reject (503);
  • Only paths — for example, /upload.