I'm always excited to take on new projects and collaborate with innovative minds.

Phone

+855 12 282 686

Email

samnangrosady9@gmail.com

Social Links

Web Development

ngx whitelist/blacklist module + ngx-mod-http-geoip module

ngx_http_geo_module | ngx_http_geoip_module | ngx_http_access_module

ngx whitelist/blacklist module + ngx-mod-http-geoip module

Module geo_module

The ngx whitelist/blacklist module in nginx provides a straightforward way to restrict or permit access to your server based on the IP address of the client making the request. You can define specific IP addresses or range

Comparison ngx_http_geo_module and ngx_http_access_module

The ngx_http_geo_module and ngx_http_access_module are both modules in Nginx, the popular web server and reverse proxy server. Here is a brief comparison between the two:

  • Use ngx_http_geo_module when: you need granular control over access based on various criteria, require dynamic updates, or need to manage a large number of IP addresses efficiently.
  • Use ngx_http_access_module directives when: you have a simple use case of allowing or denying access to specific IP addresses or ranges and want a straightforward solution without the need for complex rules.

Module nginx-mod-http-geoip

nginx-mod-http-geoip is an nginx module that allows you to determine the geographical location of an IP address. This module integrates MaxMind's GeoIP databases with nginx, enabling you to access information about the country, region, city, latitude, and longitude associated with a particular IP address.
 

Full content:Dev.to
Demo:Github
 

 

1 min read
Jan 14, 2025
By Samnang Rosady
Share

Leave a comment

Your email address will not be published. Required fields are marked *

Related posts

Aug 15, 2025 • 1 min read
Redis Commander

redis commander: redis monitoring tool

May 08, 2025 • 3 min read
Jinja: The Templating Wizard That Saves Devs From Keyboard Trauma

Jinja: template engine

May 02, 2025 • 2 min read
A Guide to Setting Up Local HTTPS Portals with Docker

Mimicking production environments with HTTPS setups ensures more accur...