Skip to main content

Blacklisting Countries

Comments

6 comments

  • keat63
    CSF firewall which is free, and will allow you to block countries by thier country code. adding a country code takes less than 30 seconds. although you need to be aware that the list of IP's against country code is not 100% accurate. In all honesty, if you don't have CSF firewall installed, then you really should consider it.
    0
  • 24x7server
    Hi, Exactly how many countries you are planning to block? The more the countries you add, more the fireawall takes time to load. Just make sure that you do not overload it.. If attack is more concern, you can get a hardware firewall solution from your datacenter on your server, which is more preferred than software firewall..
    0
  • linux4me2
    It's not as complete as the CSF approach, but if you are on a VPS (in which case CSF country blocks aren't recommended) or worried about the load on CSF blocking countries would cause, you can instead add a custom rule to ModSecurity and use the GeoIP country database to block/allow access to your sites for specific countries.
    0
  • cPanelMichael
    Hello, The previous posts should help point you in the right direction. Let us know if you have additional questions. Thank you.
    0
  • FlyBit
    Well, the server can handle the load, currently Brute force protection blocks about 200 - 300 hits per day. Blocking all countries but ours (clients are locally based, and server only used for backup and email). So adding one country at a time is about 500 - 7000 IP Blocks. So looking for a alternative that is much easier to manage and yet effective against attacks.
    0
  • cPanelMichael
    Hello, Note that the following feature request looks to be included in cPanel version 70: Geo Filtering added to the cpHulk Brute Force Thank you.
    0

Please sign in to leave a comment.