The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Block entire US country IPs, except google IPs?

Discussion in 'Security' started by basketmen, Feb 3, 2015.

  1. basketmen

    basketmen Well-Known Member

    Joined:
    Sep 9, 2010
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    Hi guys, i want to block entire US country IPs

    i get US country ips list like from this site Block Visitors by Country | IP2Location.com

    but i want to except google ips, how to do that? someone should already did this before, but i cant found the answer yet
     
  2. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page