TurtleGuard

Docs / Rules and filters

Countries, networks, subnets

Lists of countries, networks and addresses: who gets in, who is checked, who is kept out.

2 minute readUpdated 2026-11-07

Access can be limited by country, provider network (AS) or subnet. Separately there are address allow and deny lists and ready lists of known offenders.

Geo rules

Domain → Protection → Countries, networks, ranges. Each rule is what to check and what to do:

WhatExample
CountryCN, KZ — two-letter code
Network (AS)AS15169 — all addresses of a provider or cloud
Subnet203.0.113.0/24, 2001:db8::/32

Actions: Allow, Challenge (default) or Block. Rules run top to bottom and the first match wins. Up to 500 rules, not counted against plan limits.

“Allow” means no check, nothing more

A geo Allow rule removes the browser check, but limits, the WAF and your rules still apply to these visitors.

Typical setups

  • A site for one country: Challenge or Block for countries you have no visitors from. There is a ready rule template that blocks countries but keeps search bots.
  • Bots come from data centres: Challenge for the networks of large hosting providers.
  • An attack from one country: Block it for the duration.

Allow and deny lists

Domain → Settings → Request filter. Each entry is an address or subnet, with an optional expiry and note.

  • Deny list — requests from these addresses do not reach the site. A subnet no wider than /8 for IPv4 and /16 for IPv6.
  • Allow list — the address skips every check: the deny list, your rules, geo, limits, the browser check and the WAF. Put only your own addresses there: office, monitoring, your scripts.

The allow list does not close the site to others

Allow list entries only free those addresses from checks; everyone else is accepted as before. To open, say, the admin area only from the office, use the “Admin from the office only” rule template in Rules.

The number of list entries depends on the plan: 50 without a plan, 1,000 on a paid one.

Offender lists

Domain → Protection → Offenders from shared lists. Turn on “Use the lists” and pick an action for each source:

ListWhat is in itDefault
Tor exitsTor exit node addressesChallenge
Data centresCloud and hosting addressesOff
Spamhaus DROPNetworks hijacked by spammers and attackersBlock
AbuseIPDBAddresses with frequent attack reportsBlock
Open proxiesPublic proxy serversOff

If an address is in several lists, the strictest action applies. The lists update on their own.

In what order

Allow and deny lists come first, then your rules, then offender lists and geo rules. The full request path is in Custom rules.