Mod Geoip Modul Plesk

Do we understand you correctly that you’d like us to ship mod_geoip with Apache web server?
—AK
-
EhudZ commented
1) Download the Geo2ip lite database:
# curl -Lo /usr/share/GeoIP/GeoLiteCountry.dat.gz https://dl.miyuru.lk/geoip/dbip/country/dbip4.dat.gz
Or download some other DB files from:
GeoIP Legacy Databases
Or, a paid one from Maxmind.
Note: 1) The IP Data Base file should be updated once in a month (/a while) as IPs are transferred between ISPs in various countries. The Maxmind file updates about once a month.
Note: 2) The Maxmind file FORMAT is expected to be change on May 2022. If not updating to a newer ModSecurity suitable module, the near future (from May 2022) Maxmind file should be converted to the legacy used file format. On December 2021, it downloads as file.dat.gz, so note the two file formats in the file name, before its uncompressed.2) uncompress the file (Converted the zip *.gz file to a *.dat file):
# gunzip /usr/share/GeoIP/GeoLiteCountry.dat.gz
3) Uploaded the COUNTRY file to:
# /usr/share/GeoIP/GeoLiteCountry.dat
-
Artur commented
...need block by country option for yesterday!!!
-
Daniel Farkas commented
Plus
-
Alexey commented
all great, but first server by default in plesk now nginx.
-
Cool Dark commented
Implement http://dev.maxmind.com/geoip/legacy/mod_geoip2/ for blocking / allowing countries explicitely and not to use a huge and slow .htaccess for ip-ranges.
-
Sergey Babkevych commented
Yes, correct
-
Anonymous commented
Yes, correct