WordPress-IP-Geo-Block icon indicating copy to clipboard operation
WordPress-IP-Geo-Block copied to clipboard

Not issue: IP Geo API provider class for Nginx compiled with GeoIP module

Open ddur opened this issue 6 years ago • 2 comments

Hi, I created IP Geo API provider class for Nginx compiled with Module ngx_http_geoip_module

Gist IP Geo API provider class for ip-geo-block

Feel free to modify it and/or use as example or to include into your repository.

ddur avatar Jul 26 '18 13:07 ddur

Hi @ddur,

Thank you for the info.

Unfortunately, I'm not ready to install additional modules for nginx because I usually use MAMP Pro which has a few built-in extra modules. But in the future, I'll try!

As you know, GeoIP Legacy databases stopped to update.

How about leev/ngx_http_geoip2_module? I think GeoLite2 databases can be used because they are based on GeoIP2 APIs.

Note for Mac users: Homebrew Nginx

tokkonopapa avatar Jul 29 '18 09:07 tokkonopapa

Using latest Nginx-full package for Debian. Database is updated by https://packages.debian.org/stretch/geoip-database-contrib I guess package maintainers have taken care of old API.

By the way ... I installed Debian on all my old PCs and laptops. :) Much faster than MAMP/XAMP/VBox/Vagrant. VS Code uploads edited sources automatically via FTP.

ddur avatar Jul 29 '18 21:07 ddur