Set Up Geo-Blocking
🔒 Security
·
Updated 3 weeks ago
Set Up Geo-Blocking
With IP access control, you can restrict access to routes by IP address, CIDR range, or country.
Modes
| Mode | Description |
|---|---|
| Whitelist | Only listed IPs/ranges/countries have access |
| Blacklist | Listed entries are blocked, all others have access |
Setup
- Create or edit a route
- Enable the IP Access Control toggle
- Choose mode: Whitelist or Blacklist
- Add rules:
- IP: e.g.
203.0.113.50 - CIDR: e.g.
10.0.0.0/8 - Country: e.g.
DE,US,GB
- IP: e.g.
- Save
Prerequisite for country filtering: An ip2location.io API key must be configured under Settings → Advanced → ip2location.
Examples
Germany only: Whitelist + Country DE
Block China and Russia: Blacklist + Country CN, RU
Office network only: Whitelist + CIDR 203.0.113.0/24