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!

How to setup Country Browsing from Cpanel

Discussion in 'Security' started by bet2indo, Feb 22, 2014.

  1. bet2indo

    bet2indo Registered

    Joined:
    Feb 22, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi, I need a tutorial How to Block Country IP.

    May somebody help me how to setup at cpanel

    thx
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,834
    Likes Received:
    85
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    You will have to add all ip's in your .htaccess file which you want to block. You can update your .htaccess file through your cPanel File manager.

    Block Visitors by Country | IP2Location.com

    ip2location.com will generate a list for a single country as CIDR, htaccess allow/deny, or iptables.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Your access level is listed as "Website Owner". Thus, since you do not have root access to the system, you would have to use the .htaccess file to prevent IP addresses from accessing your website. The previous post offers some guidance on this.

    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