Skip to main content
User guide

Access control

Allow and block lists and IP groups, access rule conditions and actions, geo access, the threat intelligence library, JA4 lists and bans.

These pages in the Access and CC protection (访问与 CC 防护) group control access by source and request characteristics. Viewing needs View protection policy, changes need Modify protection policy. For rate limits, challenges and AI crawlers, see CC and bot protection.

Precedence is: allow list, then block list, then bans.

Allow and block lists and IP groups

On Allow/block lists and IP groups (黑白名单与 IP 组):

TypeDescription
Allow list (白名单)Attacks are logged but not blocked. Listed IPs are exempt from bans, rate limits, challenges, geo access and access rules. API authentication, API specification checks and gRPC, WebSocket and LLM endpoint checks still apply
Block list (黑名单)Malicious sources, such as scanner IPs

IP groups can also be referenced from access rules. When creating one, enter a name and description, and optionally turn on Automatic subscription (自动订阅): choose a preset feed or enter a feed URL, refreshed every hour, every 6 hours, daily or weekly. Subscriptions need outbound access; in offline deployments use Import intelligence file (导入情报文件).

Entries consist of an IP or range, a description and an expiry (permanent or a set time). Import accepts CSV and TXT in three steps (choose file, review, done) and needs a default description. /0 ranges, loopback and unspecified addresses are rejected, and internal or reserved addresses must be allowed explicitly. Lists can be exported as CSV.

Access rules

Access rules (访问规则) are matched in order. Matching stops at the first allow or block.

Conditions: conditions within a group are combined with AND, and groups with OR, up to 10 groups after expansion.

FieldNotes
Source IP, IP groupA range, or a reference to an IP group
Country or regionGeography
Host name, path, methodPath supports starts with, equals, ends with, contains and regex
Header, cookie, query parameter, query string, user agentEquals, contains, regex, exists or does not exist
JA4 fingerprint, JA4 listTLS client fingerprint
Suspected bot scoreGreater than or equal to, or less than, a score
Crawler verification, crawler nameVerified, fake or unverifiable
Threat intelligenceMalicious networks, botnet / C2, known scanners, Tor exits, VPN / proxy, IDC / cloud hosts, attack tool fingerprints, automation library fingerprints
Request body, JSON body, form bodyThe first 64 KiB of the body is read
Response status, response header, response bodyJudged in the response phase; can only block or log

Actions:

ActionDescription
Block (拦截)Returns the 403 block page
Challenge (人机验证)Strength: by risk, at least PoW, or slider puzzle
Allow (放行)Skips later rules and attack detection. Turning on Still inspect and log attacks is recommended so that problems can be traced
Log only (仅记录)Logs only

Monitor mode (监控模式) makes a rule log matches without acting on them; it is on by default for new block and challenge rules. The scope is all sites or selected sites.

Before saving, use Match preview (命中预览) to replay up to 24 hours of requests and see definite and possible matches with the top IPs and paths. High-risk rules need confirmation before saving. The list can be reordered by dragging and shows hits today and over 7 days.

Geo access

Geo access (地域访问) controls access by country, region or province. Rules for all sites take priority, then site-specific rules in order.

  • Match conditions (匹配条件): choose the match dimension (country or region, or province) and the condition (in or not in).
  • Path prefixes: optional, up to 20, and not / alone.
  • Action: block (403), challenge or log only. If a site has challenges turned off, challenge becomes block.

Preview impact (预览影响) shows the effect by country or region, province and site, and warns if the rule would block the administrator's own IP.

Threat intelligence library

Threat intelligence library (威胁情报库) is built-in IP and JA4 intelligence, offline by default and updated through signed rule bundles. The page shows the data version, generation time, number of IP ranges and number of JA4 fingerprints.

Each category can be set to do nothing, log only, add to the bot score, challenge or block. By default only high-confidence categories are set to log only; Tor, VPN, IDC and automation libraries are left alone. IDC / cloud hosts cannot be set to block. When the data passes its validity period, block and challenge actions drop to log only.

Sites can follow global, use their own settings or turn intelligence off. Private addresses, the IP allow list, requests allowed by access rules and verified crawlers are never affected. IP / JA4 lookup shows which intelligence a single IP or fingerprint matches. For offline updates, use Import update package (导入更新包) with a signed .rstb file.

Your own AlienVault OTX account and CrowdSec CTI are configured under Settings > Threat intelligence; see Integrations.

JA4 lists

JA4 lists (JA4 名单) are named lists of JA4 TLS client fingerprints for use in access rules. Only HTTPS requests have a JA4 fingerprint. Lists can be added to, imported (optionally replacing every fingerprint) and exported, and show how many access rules reference them.

Bans

Bans (封禁管理) lists the ban decisions in effect. Sources are manual, RST WAF scenarios, SSH brute-force protection, CrowdSec scenarios and subscribed lists.

To ban an IP (封禁 IP):

  1. Enter an IP or range.
  2. Choose the type: ban (403) or challenge.
  3. Choose the duration: 4 hours, 24 hours, 7 days, or custom (such as 30m, 12h, 3d, up to 365 days).
  4. Enter a reason and select Ban (封禁).

Bans reach every node in about 15 seconds. IPs on the allow list cannot be banned, and banning internal addresses or very large ranges asks for confirmation. For long-term bans, add the IP to a block list group instead.

When you ban an attacker, the page shows the share of hostile events. If most of the traffic is legitimate, it warns you and defaults the action to observe.

With host protection on, bans are also written to the host firewall and apply to every port; see Installation.

On this page