Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    122
    Likes Received:
    0
    Trophy Points:
    66
    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:
    1
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    1,038
    Likes Received:
    47
    Trophy Points:
    28
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice