Block entire US country IPs, except google IPs?

mageshm

Well-Known Member
Apr 17, 2014
90
1
6
Chennai, INDIA
cPanel Access Level
DataCenter Provider
Re: Block entire US country IPs, except google IPs, how to do that?

@ basketmen,

This can be done by CSF but most of the IP in Geoipdatabase and those IP you can't block. If you want to enable particular IP that also can be done by CSF. Whta purpose you are going to do, so that i ll suggest best way.
 

keat63

Well-Known Member
Nov 20, 2014
1,961
267
113
cPanel Access Level
Root Administrator
Re: Block entire US country IPs, except google IPs, how to do that?

I blocked China in CSF Country Codes, then discovered that our purchasing team could no longer email a supplier out in China.
Until I have time to look at this more in depth, i removed the CC block.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Re: Block entire US country IPs, except google IPs, how to do that?

Hello :)

Yes, as mentioned, it's a good idea to use a firewall management tool such as CSF to handle these types of blocks:

CSF Firewall

Thank you.