Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How does country blocking work in Aegisify WAF?

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

  1. Review your logs and Attack Story to see where malicious traffic actually originates.
  2. Block only countries with high attack volume and no legitimate audience.
  3. 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.

2026-12-01T03:52:04+00:00January 12th, 2026||

Find this article interesting, please share.