How to block countries with nginx?


#1

I’m having issues with a certain country sending hordes of useless hits which eats up my resources.

i’m hoping there is an easy way through easyengine because i did a quick search and it seems i would have to recompile nginx with the geoip module??

thanks in advance!


#2

@FalconX1

--with-http_geoip_module is already there in nginx-custom package which comes with EasyEngine.

You can check it with nginx -V command


#3

what are the chances nginx custom package will mess things up?

it’s essentially the same with extra modules compiled in right?

EDIT: until i get verification i decided to use Cloudflare as they have a country filter.


#4

Hi @FalconX1

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile:


#5