Country Blocking with nginx GeoIP on Ubuntu/Debian

Country Blocking with nginx GeoIP on Ubuntu/Debian

On Ubuntu/Debian, install nginx geoip module with Now edit nginx.conf Find Add below You can add 2 letter country code

Install GeoIP PHP Module in Ubuntu

Install GeoIP PHP Module in Ubuntu

To install GeoIP php module in Ubuntu, run To enable module, run You can see the PHP module with command

geoip

geoip

PHP Script to Find GeoIP info Install GeoIP Apache Module in CentOS Install GeoIP PHP Module in Ubuntu Country Blocking