Visitor Filter
How it Works Features Pricing About Us Changelog Status

Rules

Rules are the core mechanism for protecting your sites. Each rule defines a condition and an action to take when a visitor matches that condition.

Rule Structure

Every rule has three parts:

  1. Condition — What to match (IP, country, user agent, rate, etc.)
  2. Action — What to do when matched (block, challenge, redirect, allow)
  3. Priority — Evaluation order (lower number = higher priority)

Condition Types

TypeDescriptionExample
ipMatch specific IP or CIDR range192.168.1.0/24
countryMatch by GeoIP country codeCN, RU, KP
user_agentRegex match on User-Agent header/bot|crawler/i
rate_limitRequests per time window100 per 60s
pathURL path pattern/admin/*
referrerHTTP Referer header matchspam-site.com
fingerprintBrowser fingerprint similaritySimilarity threshold

Actions

ActionBehavior
BlockImmediately reject the request (403)
ChallengeShow a CAPTCHA or JS challenge before proceeding
RedirectSend visitor to a specified URL
AllowBypass all subsequent rules (whitelist)
LogRecord the event without taking action

Creating a Rule

  1. Navigate to Sites → [Your Site] → Rules
  2. Click Create Rule
  3. Select a condition type and configure its parameters
  4. Choose an action
  5. Set priority (optional — defaults to 100)
  6. Save and the rule takes effect immediately

Rule Evaluation Order

Rules are evaluated in priority order (lowest number first). The first matching rule's action is applied. If no rule matches, the default action is Allow.

Best practice: Place Allow rules (whitelists) at the lowest priority numbers so they evaluate first.