Skip to main content

Security policies

The Security Policies tab lets FSP Admins configure multi-layer security for a domain through a 3-step pipeline: IP Rules → Rate Limit → WAF/OWASP. All changes accumulate as a draft and are applied only when you click "Save Changes".

note

The Security Policies tab is only accessible when WAF is On. If WAF is Off, the tab area is replaced by a "WAF is turned off" warning panel — re-enable WAF first.

Access security policies​

  1. From Domain Details, click the "Security Policies" tab. The pipeline header "How Rules Are Evaluated" appears with 3 step buttons and the "Discard" / "Save Changes" buttons (disabled when no changes exist).

Rule evaluation order:

IP Rules → Rate Limit → WAF / OWASP (Custom Rules → FPT Managed Rules → OWASP CRS) → Origin
  • IP Rules — all rules are checked; Allow takes precedence over Block, regardless of order.
  • Rate Limit — rules are evaluated independently; each matching rule increments its own counter. If several trigger at once, Block takes precedence over Challenge.
  • WAF / OWASP — evaluated in order Custom Rules → FPT Managed Rules → OWASP CRS; first match wins.
note

IP Rules and Rate Limit rules no longer use a Priority column. Both tables are sorted by Added At (newest first), and ordering does not affect evaluation.


Step 1 — IP Rules​

  1. Click the "1. IP Rules" step button (active by default when the tab opens). The IP Rules table appears.

Security Policies — IP Rules table with search, import, and export

The table shows: IP / CIDR · Action (Allow = green / Block = red) · Note · Added At — sorted by Added At descending. Use the Search by IP/CIDR box to filter the list. Empty table or no match → "No records found".

Add an IP rule​

  1. Click "Add Rule" → the dialog opens.

Add IP Rule — dialog

  1. Fill in the fields:

    • IP addresses or CIDR ranges (required) — one or more values separated by commas (e.g., 1.2.3.4, 5.6.7.0/24, 10.0.0.0/8). Each value is added as a separate rule. IPv4 and IPv4 CIDR only. Invalid input → "Invalid IP address or CIDR range."
    • Action — Block (default) / Allow
    • Note (optional) — reason for the rule (e.g., "Block known malicious range")
  2. Click "Add Rule" → the rule(s) are added to the draft; the dialog closes.

Edit an IP rule​

  1. Click ⋮ (More actions) → Edit → the Edit dialog opens with pre-filled data.

Edit IP Rule — dialog

  1. Update the IP/CIDR (a single value), Action, or Note.
  2. Click "Edit Rule" to save changes to the draft.

Delete an IP rule​

Click ⋮ → Delete → the rule is removed from the draft immediately (no confirmation).

note

Because Allow takes precedence over Block, an Allow rule for a specific IP is honored even when a broader Block CIDR also matches it. Order and position in the table do not change this.


Step 2 — Rate Limit​

  1. Click the "2. Rate Limit" step button. The Rate Limit Rules table and the Challenge Settings card appear.

Security Policies — Rate Limit Rules table with scope and search

The table shows: Path · Threshold (e.g., 100 req / 1 min) · Action (Block = red / Challenge = amber) · Scope (Per IP or Per IP + Path) · Added At — sorted by Added At descending. Use the Search by Path box to filter.

Add a rate limit rule​

  1. Click "Add Rule" → the dialog opens.

Add Rate Limit Rule — dialog

  1. Fill in the fields:

    • Path (required) — URL path pattern to rate-limit (e.g., /login, /api/*). Help text: " matches all sub-paths after the prefix. Example: /api/* matches /api/v1 and /api/v1/users."*
    • Threshold (requests) (required) — maximum requests per window (default 60; positive integer)
    • Window — counting interval: 10 sec / 30 sec / 1 min (default) / 5 min / 10 min / 1 hour
    • Action — Block (return 403) / Challenge (Browser Verification Challenge)
    • Scope — Per IP (default) or Per IP + Path
  2. Click "Add Rule" → the rule is added to the draft; the dialog closes.

warning

A wildcard path (containing *) can only use the Per IP scope. Submitting a * path with Scope = Per IP + Path shows the inline error "Wildcard paths only apply to the Per IP scope." and the rule is not added.

note

Example: To protect a login page from brute force — Path = /login, Threshold = 5, Window = 1 min, Action = Block, Scope = Per IP.

Challenge Settings​

Challenge Settings — browser verification preview

The Challenge Settings card is always visible in Step 2. When a rule's Action is Challenge, visitors see a brief verification page (~1 second) that most legitimate users pass automatically. Click "Preview what visitors see →" to preview it.

Edit or delete a rate limit rule​

Click ⋮ → Edit or Delete — same behavior as IP Rules (Delete is immediate, no confirmation).

Edit Rate Limit Rule — dialog


Step 3 — WAF / OWASP​

Click the "3. WAF / OWASP" step button. Several sections appear.

Rule evaluation priority (read-only)​

A read-only diagram shows the evaluation order, higher priority first, first match wins: 1. Custom Rules (green, "Your virtual patches") → 2. FPT Managed Rules (blue, "Curated by FPT Cloud") → 3. OWASP CRS (red, "Anomaly-scored baseline") → Origin.

WAF Rule Sets​

Security Policies — WAF Rule Sets toggle controlling OWASP CRS and FPT Managed Rules

The WAF Rule Sets card has a single toggle with an Enabled (green) / Disabled (gray) badge and the description "Controls FPT Managed Rules and OWASP CRS." The toggle controls both rule sets together:

  1. Click the toggle to switch state — it changes immediately and creates an unsaved change.
  2. When Disabled, the OWASP Protection Level and FPT Managed Rules cards are grayed out (opacity 50%) and become non-interactive, and those blocks gray out in the Rule evaluation priority diagram.
  3. Click "Save Changes" to apply.
warning

Saving while WAF Rule Sets is Disabled opens a confirmation dialog: "Are you sure you want to save? OWASP CRS and FPT Managed Rules will be disabled." and "Traffic will no longer be inspected by these rule sets." Click "Save" to confirm or "Cancel" to keep editing.

OWASP Protection Level — Paranoia Level​

OWASP CRS uses a cumulative anomaly-score model. Drag the Paranoia Level slider (PL1–PL4) to tune coverage; the label, large indicator (top right), and description update immediately:

LevelNameDescription
PL1ConservativeBaseline — low false positive rate. Safe to enable in production immediately.
PL2BalancedDetects more sophisticated attack variants. False positive rate increases.
PL3AggressiveVery aggressive — may block applications with complex or rich payloads.
PL4MaximumExtreme — recommended only for applications with strict input validation.
note

Start at PL1 and watch WAF Logs before increasing to PL2+. Test for false positives carefully before applying PL3/PL4 to production. The slider is disabled when WAF Rule Sets is off.

FPT Managed Rules (read-only)​

A read-only table of rules curated and maintained by the FPT Cloud security team — it runs after custom rules and before OWASP CRS, and cannot be added, edited, or deleted. Columns: Name (with a short description) · Category (Fraud / CVE / Webshell / Bot / Upload). Use Search by Name, Category to filter; a "N rules" counter shows the number displayed.

Custom Rules​

Security Policies — Custom Rules table with Match Summary

Custom rules run before OWASP and FPT Managed Rules; first match wins. The table shows: Priority · Name · Match Summary · Action · ⋮ — sorted by Priority ascending (lower number evaluated first). Use Search by Rule name to filter.

Action badges:

  • Block (red) — return 403.
  • Allow (green) — bypass all subsequent rules; request goes to origin immediately.
  • Challenge (amber) — Browser Verification Challenge.
  • Log only (gray) — record the match in logs only and keep evaluating subsequent rules (unlike Allow).

Add a custom rule​

  1. Click "Add Rule" → the Custom Rule Builder dialog opens.

Add Custom Rule — rule builder dialog

  1. Fill in:

    • Priority (required) — positive integer, unique among Custom Rules. Duplicate → "Priority already in use."
    • Rule name (required) — descriptive label (e.g., "Block sqlmap scanner")
    • Match conditions — each condition has Field + Operator + Value:
      • Field: Request path / Source IP or CIDR / HTTP method / User-Agent / Request header / Query string / Request body
      • Operator: equals / starts with / ends with / contains / matches regex
      • Value: the value to match
    • Click "Add Condition" to add more — all conditions must match (AND logic; at least one is required). "Remove condition" is disabled when only one remains.
    • Action: Block / Allow / Challenge / Log only
  2. Click "Add Rule" → the rule is added to the draft; the dialog closes.

note

Example: Block requests whose User-Agent contains "sqlmap" — Field = User-Agent, Operator = contains, Value = sqlmap, Action = Block.

Edit a custom rule​

Click ⋮ → Edit → the Edit Custom Rule dialog opens. Priority is read-only; update any other field and click "Edit Rule".

Edit Custom Rule — dialog


Export and import rules (CSV)​

IP Rules, Rate Limit, and Custom Rules each support CSV export and import:

  • Download template — downloads a sample CSV with the correct columns and five example rows.
  • Export — downloads the saved rules (not the current draft) as {type}_rules_{domain}_{YYYYMMDD}.csv. An empty table shows "No rules to export."
  • Import — pick a .csv file. The system validates the whole file; it must be 100% valid to continue. On a valid file, a confirmation dialog warns "Current rules will be permanently deleted. This action cannot be undone after you save changes." Click "Import & Replace" to replace all rules of that type, then Save Changes to apply.

Save and discard changes​

Any add, edit, or delete of rules, a Paranoia Level change, or toggling WAF Rule Sets creates a Dirty state — "Unsaved changes" appears in the pipeline header, and both "Save Changes" and "Discard" become enabled.

  • "Save Changes" → applies the entire policy configuration → toast "Changes saved." → buttons return to disabled (Clean state). When WAF Rule Sets is off, a confirmation dialog appears first (see WAF Rule Sets above).
  • "Discard" → opens the "Discard Changes" dialog.

Discard Changes — confirmation dialog

Click "Discard" (red) → reverts all changes to the last saved state (Clean). Click "Cancel" or × → closes the dialog; the draft is preserved.

note

Navigation guard: If you try to leave Security Policies (Back, switch tabs, use the sidebar) while in Dirty state, an "Unsaved Changes" dialog appears.

Unsaved Changes — navigation guard dialog

  • "Stay" → remain on the page; the draft is preserved.
  • "Leave Anyway" → exit and discard all unsaved changes.

Switching between the 3 steps (IP Rules ↔ Rate Limit ↔ WAF/OWASP) does not trigger this dialog — the draft is preserved when switching steps.


What's next​

  • WAF logs — monitor traffic and verify your policies are working.