Blocking Countries from Server Side (NGINX)

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

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 *