Knowledgebase

Blocking traffic from certain countries

Posted by SudoHacks, 12-09-2013, 07:37 PM
I get a lot of spam traffic from ua, ru, and cn. Wondering if there is a way to block all traffic from those countries outright? Could this be done only at the domain level, or could it be done at reseller level to effect all domains on that account? My reseller account is on WHM. Thanks.

Posted by The Pro Host, 12-09-2013, 07:40 PM
I think something like that can be done through cloudflare, in the security settings

Posted by dcdan, 12-09-2013, 07:41 PM
Theoretically, you could do that by exporting IP ranges from geoip database. However, generally, this will not really solve the problem, at least not completely. Besides, adding many iptables rules (>1000) will result in an additional load on your server.

Posted by SudoHacks, 12-09-2013, 07:44 PM
Yeah exactly. Was hoping for a higher level rule. Will check out CloudFlare. Thanks.

Posted by The Pro Host, 12-09-2013, 07:51 PM
It's domain level, but it saves bandwith and has some really good features such as full threat control and ddos protection, and my favourite feature 'always online'

Posted by damoncloudflare, 12-10-2013, 04:12 PM
You can. The only issue, however, is that our country block is not a full block. It would present a captcha page to visitors & a human visitor could still enter the site (really designed to help stop bots). We will likely make this capable of a full block next year.

Posted by XViD, 12-10-2013, 05:01 PM
You can use mod_geoip to block http traffic from specific countries if your host supports it: http://dev.maxmind.com/geoip/legacy/...sed_on_country Another way is to use CSF if you have such access as it has country level blocking



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
With Who To Go?? (Views: 607)


Language:

Client Login

Email

Password

Remember Me

Search