Hello is it possible to block or allow certain countries in Nginx Ingress (community). It seems possible on Nginx installed on servers (link) But I want to apply similarly to this on Nginx Ingress.
Asked
Active
Viewed 1,480 times
1
-
Were you able to accomplish this? The selected answer doesn't answer the question for me. It just enables the GeoIP support. – DarkWingDuck Aug 03 '23 at 12:46
1 Answers
2
That is documented in the user-guide. You need to set --use-geoip2 true
and --maxmind-license-key KEY
.
Note that geoip
is discontinued:
Note: MaxMind legacy databases are discontinued and will not receive updates after 2019-01-02, cf. discontinuation notice. Consider use-geoip2 below.

Henrik Pingel
- 9,380
- 2
- 28
- 39
-
And how can we block/allow a country? This answer just enables GeoIP support. The user guide doesn't mention how to whitelist or blacklist a country. I think this doesn't answer the question. I also cannot find any answer on the web. – DarkWingDuck Aug 03 '23 at 12:41