Enable Nginx GeoIP module
Some of security configuration requires GeoIP detection. It also useful for tracing and should be easy as adding '--with-http-geoip-module' option to configure command for the package.
Added in Plesk Obsidian 18.0.46:
nginx shipped with Plesk is now compiled with ngx_http_geoip2_module out of the box. This makes it possible to use MaxMind Geo IP databases to detect visitor’s geographical location by their IP address. This, in turn, makes it possible to limit access to websites to visitors from certain countries, or to automatically redirect them to country-specific URLs.
--
IG
-
Fabio Perri commented
+ 1 for me !
-
Anonymous commented
would like to see that module as well, as this would allow us to create a module/extension for blocking countries on nginx-only servers/websites
-
Sylvio commented
+1 but actually as I understand Geoip needs a registration to work from begging of 2020 isn't it ?
-
SagePtr commented
+1
-
Alexander Dimitrov commented
ngx_http_geoip2_module - creates variables with values from the maxmind geoip2 databases based on the client IP (default) or from a specific variable (supports both IPv4 and IPv6) and it would be nice if Plesk provides such module.
-
Daniel commented
@escapet use one of the latest php versions, get into php settings check geoip module and add extension in php.ini i guess. Dont remember sorry.
-
Escapet commented
@daniel eould you have the direct link ?
-
Daniel commented
@escapet the module is active now for a half year. Check plesk support pages how to enable.
-
Escapet commented
April 2019 and still nothing has happened... too bad!
A lot need this
-
Daniel commented
Yeah this module really should be included by default, almost every website can need this. They could leave it disabled by default in the php extensions.
-
Rahul Kumar commented
This is 2018, so may I know is it implemented? Anybody, plesk staffs, hearing user's voice?
Can't expect such things from a paid software. Nowadays, Opensource softwares are respnding better than paid.
-
Marco commented
It is today 4th June 2017. I asked in 2015 for integration of geoip in Nginx. Regretfully it is not done. Now i dont need plesk anymore. I believe its bet will no to include mod_geoip. You have improved a lot on user friendliness and integrated thousands of apps and useless tools.
Good bye it was a honor to work with you since Version 8-12.5 but i will no longer be your client with any version coming without geoip in nginx integraded
Marco
-
Taylor S commented
How is this not a thing yet? It basically takes 1 library geoip-dev and a configure flag
-
Cool Dark commented
+1
-
Michael Huber commented
let the spammers from Ukrain, russia and China outside
-
Anonymous commented
It'd be a great addition to the sw-nginx build. Enforcing rate limits is a must have these days and using ngx_http_geoip_module should be a very effective way to slow down the botnets' brute force attacks against commonly abused locations, like Wordpress/Joomla/Drupal or Magento login pages. A basic example:
limit_req_zone $geoip_country_code zone=geoipcountrycode:10m rate=5r/m;
location ~* (\/wp-login\.php|\/administrator) {
limit_req zone=geoipcountrycode burst=10;
proxy_pass http://real.serv.er:7080;
[...] -
Anonymous commented
Second this
-
Marcelo Vetter commented
Second this
-
trialotto commented
It seems to be the case that this Nginx module will be supported in future releases.
For the time being, one can compile a custom binary for Nginx, with geoip module and add this binary to the Plesk instance.
I will return on this on the plesk forum.
Any other potential modules that you (all) want in Nginx?
I can include them in the compilation and testing of the Nginx binaries....
Regards....
-
Max commented
This is a must have for Plesk!!!
http://dl3.joxi.net/drive/0004/0365/266605/160120/6990fa48cc.jpg