Tag

GeoIP2

0 views collected around this technical thread.

Architect's Guide
Architect's Guide
Jun 5, 2024 · Information Security

How to Block Foreign IP Addresses in Nginx Using the ngx_http_geoip2 Module

This guide explains step‑by‑step how to install the GeoIP2 library, compile Nginx with the ngx_http_geoip2 module, download the MaxMind GeoLite2 database, configure Nginx to map country codes, and block non‑Chinese visitors by returning a 404 response.

GeoIP2IP blockingLinux
0 likes · 8 min read
How to Block Foreign IP Addresses in Nginx Using the ngx_http_geoip2 Module
Java Architect Essentials
Java Architect Essentials
Aug 22, 2022 · Operations

Blocking Foreign IP Access with Nginx Using the ngx_http_geoip2 Module

This tutorial explains how to install the ngx_http_geoip2 module, upgrade Nginx to version 1.18, configure GeoIP2 databases, and modify the Nginx configuration to automatically reject requests from foreign IP addresses, complete with command‑line examples and verification steps.

GeoIP2IP blockingLinux
0 likes · 8 min read
Blocking Foreign IP Access with Nginx Using the ngx_http_geoip2 Module
Architecture Digest
Architecture Digest
Jun 8, 2022 · Backend Development

Blocking Foreign IP Access with Nginx Using the ngx_http_geoip2 Module

This tutorial explains how to prevent overseas IP addresses from reaching a website by installing the libmaxminddb-devel dependency, adding the ngx_http_geoip2 module to Nginx, upgrading to Nginx 1.18, configuring GeoIP2 database paths, mapping country codes, and returning a 404 response for foreign requests.

GeoIP2IP blockingLinux
0 likes · 7 min read
Blocking Foreign IP Access with Nginx Using the ngx_http_geoip2 Module
Laravel Tech Community
Laravel Tech Community
Jul 2, 2021 · Operations

Blocking Foreign IP Access in Nginx with the ngx_http_geoip2 Module

This guide explains how to install the ngx_http_geoip2 module, upgrade Nginx, configure GeoIP2 databases, and modify the Nginx configuration to block requests from foreign IP addresses, providing step‑by‑step commands and example code for a Linux server.

GeoIP2IP blockingLinux
0 likes · 8 min read
Blocking Foreign IP Access in Nginx with the ngx_http_geoip2 Module