Results 1 to 5 of 5
  1. #1

    CSF, allow whole country

    Is there a way in CSF to allow it to whitelist whole country?
    Meaning that it wouldn't block any ip's, even in case of false logins, if the visitor is from certain country.

    Note that I still want all countries to have access, but only allow one country with no csf blocks.
    Click yourself to Atrahost
    .: Shared, Reseller and VPS hosting on: US and EU servers :.

  2. #2
    Join Date
    Oct 2004
    Kerala, India
    Get the IP range from Here and add the range to the file /etc/csf/csf.allow and restart csf.
    David |
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Sep 2002
    Top Secret
    Quote Originally Posted by GwebHosting View Post
    Is there a way in CSF to allow it to whitelist whole country?
    This is not advisable, as this will cause your firewall to allow each and every connection from that country, bypassing all rules whatsoever

    # Warning: CC_ALLOW allows access through all ports in the firewall. For this
    # reason CC_ALLOW probably has very limited use
    This applies to manually allowing ip addresses as well. They can do whatever they like.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!

  4. #4
    I agree with linux-tech this can mess up things

  5. #5
    Check for this:

    # Each option is a comma separated list of CC's, e.g. "US,GB,DE"
    CC_DENY =
    CC_ALLOW =

    add the country code

Similar Threads

  1. CSF Country Block
    By Dan-CKS in forum Hosting Security and Technology
    Replies: 15
    Last Post: 03-03-2012, 10:29 AM
  2. Terms of service - Relevant to my country or server country?
    By papa_face in forum Running a Web Hosting Business
    Replies: 7
    Last Post: 07-26-2010, 10:41 PM
  3. Replies: 10
    Last Post: 11-02-2009, 11:24 PM
  4. block by country code in csf ?
    By neuman in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-19-2009, 12:40 AM
  5. CSF+IPTables, have to Restart CSF after reboot.
    By MikeDVB in forum Hosting Security and Technology
    Replies: 6
    Last Post: 06-03-2008, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts