Country blocking rejects requests from the countries you list. It is useful when a site only serves customers in certain regions and receives heavy attack traffic from elsewhere. It is in Aegisify WAF → Abuse & Bots → Source and Behavioral Intelligence → Country blocks (Pro).
Requirements
Country blocking needs a Geo/ASN provider: either Cloudflare headers (if your site is behind Cloudflare) or MaxMind MMDB. With the provider set to None, country blocks have no effect. See Geo/ASN provider.
Entering countries
Use comma-separated ISO 3166-1 alpha-2 codes, such as CN, RU, KP. Codes are two letters; check a reference list if you are unsure of a code.
Things to consider first
- Customers travel and use VPNs. A blocked country can include your own staff or loyal customers.
- Search engines and services may crawl from many countries.
- Attackers can use servers anywhere, including in your own country, so country blocks reduce noise but are not a complete defense.
- Check whether your business has legal or contractual obligations to serve certain regions.
A careful approach
- Review your logs and Attack Story to see where malicious traffic actually originates.
- Block only countries with high attack volume and no legitimate audience.
- Monitor support requests after enabling.
The Block List tab also shows the country reported for blocked events when a provider is available.
Related: Country blocking enforcement, ASN blocking.
