Tagged articles
1 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 17, 2021 · Operations

Block Foreign IPs Using NGINX ngx_http_geoip2 Module

This step‑by‑step guide shows how to install the libmaxminddb library, compile NGINX with the ngx_http_geoip2 module, download the latest GeoLite2 database, configure geoip2 directives, and verify that foreign IP addresses are blocked with a 404 response.

DevOpsIP blockingNGINX
0 likes · 8 min read
Block Foreign IPs Using NGINX ngx_http_geoip2 Module