You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

How to Block a Whole Country Via CSF



In the event you need to block a whole country, this can be done via the CC_DENY option located within ConfigServer Security & Firewall.


  1. Log into WHM as root




  2. Click on the “ConfigServer Security & Firewall” link within the “Plugins” section.




  3. Click on the “Firewall Configuration” button.
    CSF CC_DENY 1




  4. Search for the “Country Code List and Settings” section.




  5. Enter in the 2 letter CIDR country code you would like to block within the CC_DENY section.
    CSF CC_DENY 2




  6. Scroll down to the very bottom and click the “Change” button.
    CSF CC_DENY 3




  7. Click the “Restart csf+lfd” button to apply the changes and restart the firewall.
    CSF CC_DENY 4




 

From here the country or countries added will no longer be able to access the server.


 
  • No labels