Skip to content

Site Rules ​

Fox Network inspects every request at the edge. On top of the platform's default DDoS / CC scrubbing, you can write your own WAF rules under site details → Site rules.

Site rules

Execution Order ​

A request passes through these steps in order:

  1. Kernel ban: banned IPs are dropped immediately
  2. Access authentication: returns 401 if not passed
  3. Request rate and concurrency limits: returns 429 when exceeded
  4. IP allowlist: a match skips all WAF rules below
  5. Platform global rules
  6. Integrated rules you have enabled
  7. Site rules

A matching Block rule ends the request; later rules do not run. Click Execution order to see the full effective order for the site.

New Rule ​

Click New rule:

New rule

  1. Rule name: something recognisable, such as "Admin challenge".
  2. When incoming requests match: add one or more conditions.
    • Conditions in a group are combined with AND; groups are combined with OR. Any condition can be negated.
    • Fields: URI path, full URI, query string, method, host, request header, User-Agent, source IP, country/region, client type, threat signature, intel score.
    • Operators: equals, contains, starts with, ends with, matches regex. Text matching is case-insensitive; query strings and full URIs are URL-decoded first.
  3. Trigger (optional): act only after the same IP matches more than a set number of times within a time window. Useful against abuse.
  4. Then take action: choose an action (see below).
  5. Saved rules are published to all nodes automatically.

Actions ​

ActionEffect
BlockReturns the block page.
ChallengeThe browser completes a computational check automatically, then continues. Real users barely notice; a pass is valid for a while.
Challenge (High)Computational check plus a visual check. Strongest option, for endpoints under active attack.
SkipAllows the request and skips the remaining site rules (platform global rules still apply).

The top of the list shows used / limit; the limit depends on your plan. Rules run in list order and can be reordered with the arrows.

Examples ​

Challenge the admin area

  • Condition: URI path starts with /admin
  • Action: Challenge

Block a country/region from the login page

  • Condition: URI path equals /login AND country/region is CN
  • Action: Block

Block common attack signatures

  • Condition: threat signature is SQL injection, XSS, path traversal or command injection
  • Action: Block

API abuse protection

  • Condition: URI path starts with /api/
  • Trigger: more than 100 requests in 10 seconds
  • Action: Challenge

Regex rules

If a regex hits the backtracking limit because of a long request or the way it is written, the request is blocked (403). Prefer simple operators such as "starts with" and "contains".