Block Countries using CSF Firewall

To block countries from accessing your server or VPS can be done by editing your CSF firewall.
  1. Log into your WHM
  2. Sroll down to the bottom and click on the "Plugin" menu option
  3. Click the "ConfigServer Security&Firewall" link
  4. Search for "Counrty Code Lists and Settings"
  5. Search for "CC_DENY"
  6. In the field enter a comma seperated list of 2 letter Country Codes you want to block from accessing your Server/VPS.
    You can find the list of A2(ISO) codes here
    e.g. Entering US, GB, DE into the field will block all connections from United States, United Kingdom and Germany. This will not prevent connections from those countries if they use a VPN from a different location.
  7. Once done, scrol to the bottom of the page and click "Change" to update the firewall configuration.
  8. When the screen change to "Changes saved" you need to click "Restart csf+lfd" to restart the firewall and apply the updated configuration.

Be sure to visit your deny list once in a while to make sure it stays current.
  • hack, spam, data harvest, unauthorised
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Error Page Codes

What are Error Codes? These numbered error codes are how the Web server tells the userabout a...

Custom Error Code pages

What are custom Error Code pages? Instead of seeing the default error message, you can create...

Why are my FrontPage extensions not working?

You must first make sure you have installed the extensions from going into your cpanel and...

Do you have a manual for our control panel?

Yes, a manual for our control panel, cPanel is available.Go to to...

Where do I go to login to my control panel?

Log into the Exelwebs Client Portal Click on...

Powered by WHMCompleteSolution