← All docs

Filters & rules

Decide who reaches your money page and who sees the safe page.

Rules run in a fixed order for every request. The first rule that fails sends the visitor to the safe page. Everything else falls through to your destinations.

Pipeline order

  1. Bot signatures (curated + custom UA / header patterns)
  2. ASN reputation (datacenter / VPN / mobile / residential)
  3. Geo, language, device, browser, OS filters
  4. VPN / ISP filter
  5. Click-limit filter (per IP, sliding window)
  6. Engagement gates (mouse-move, cookie overlay, PrePage)
  7. Fingerprint clustering
  8. ML scoring (plan-gated)
  9. Rotation → destination pick

Rule types

TypeOperatorExample value
geoin / not_in["US","CA","GB"]
languagein / not_in["en","es"]
deviceeq"mobile"
osin["ios","android"]
browserin["chrome","safari"]
ua_regexmatch"^(?!.*bot).*$"
referrercontains"facebook.com"
asnin / not_in[15169, 8075]
ip_cidrin / not_in["203.0.113.0/24"]
ip_blacklistmatchstored list
vpneqfalse
click_limitlte{ per: "ip", window: "1h", max: 3 }
time_windowbetween{ tz:"UTC", from:"09:00", to:"22:00" }
cookie_overlayrequiredtrue
mouse_moverequiredtrue

Editing rules

Open Sites → your site → Rules. Add, reorder (drag), enable/disable individually, and test with the built-in simulator. Every save is recorded in the audit log and takes effect within one second.

Presets

A preset is a reusable bundle of rules — for example "Tier-1 only", "No datacenter", or "Facebook ads whitelist". Manage presets from Dashboard → Presets and attach them to any site. Presets stack on top of per-site rules; the effective ruleset is the union.

Advanced: writing rules by hand

Every rule is stored as JSON in site_rules.rules. You can bulk-import via Portability → Import:

[
  { "type": "geo", "op": "in", "value": ["US","CA","GB"] },
  { "type": "asn", "op": "not_in", "value": [15169, 8075, 14061] },
  { "type": "vpn", "op": "eq", "value": false },
  { "type": "click_limit", "op": "lte",
    "value": { "per": "ip", "window": "1h", "max": 5 } }
]

Bot signatures

ShieldGate ships with a curated list covering Google, Meta, Microsoft, VirusTotal, common security scanners, AI scrapers, SEO bots, and headless automation (Puppeteer / Playwright / Selenium). Admins can add custom signatures under Admin → Signatures.