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.

Why is country blocking not working on my site?

Country blocking in Aegisify WAF depends on several pieces working together. If blocked countries can still reach the site, check each of these.

1. Pro license

Country blocking is part of Abuse & Bots, which requires an active Pro license through Aegisify Core. On Free installations the controls are view-only.

2. A Geo provider is selected

In Abuse & Bots → Source and Behavioral Intelligence, the Geo / ASN provider must be Cloudflare headers or MaxMind MMDB. With None, country blocks are ignored.

3. The provider actually returns data

  • Cloudflare: the site must really be proxied through Cloudflare (orange cloud) so the country header is present.
  • MaxMind: the PHP extension must be loaded and the MMDB path must point to a readable file.

4. Codes are correct

Use two-letter ISO codes separated by commas, for example RU, CN. Country names or three-letter codes will not match.

5. The real visitor IP is used

If the site is behind a proxy or CDN without proper IP handling, the WAF may see the proxy’s address instead of the visitor’s, giving the wrong country.

6. The block is logged

Country and ASN blocks are enforced early by the WAF engine and logged with the category intel_geo_asn_block. If you see no such events, the provider is not returning a country for the request.

Verifying

Visit the site through a VPN located in a blocked country, then check Logs / Attack Story for the block event.

Related: Country blocking, Geo/ASN provider.

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

Find this article interesting, please share.