Blocking Countries from Server Side (NGINX)

I’m going to put it here for my note.

https://frankindev.com/2021/10/20/nginx-geoip2

This could save a lot of money using the plugin from WordPress.

However, config on nginx is required.

Also it doesn’t work if your page is cache.

So you might need to exclude the hompage from cache. Otherwise it will not working.

Leave a Reply

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