HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT? [STEP BY STEP]☑️

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT? [STEP BY STEP]☑️

Here in this documentation you will learn how to block traffic by country in whole server via WHM root access.

One of the most-requested features on cPanel servers is the ability to manage and filter traffic at a country level. With the ConfigServer Firewall (CSF) plugin in WebHost Manager, you can do exactly that. But before getting started let us quick watch this video

Follow the steps given below to block traffic by country in CSF Firewall:

Step #1: Open the Firewall Plugin in WHM

Login to your WebHost Manager(WHM)

Navigate to Plugins section

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

Select ConfigServer Security & Firewall.

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

Now click on the Firewall Configuration button to open the configuration file.

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

Step #2: Deny Access by Country Code

On the Firewall Configuration page, scroll down to the Country Code Lists and Settings section.

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

Use the CC_DENY field to block by country code:

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

The CC_DENY field accepts two-letter country codes, such as “US” for the United States of America, “GB” for Great Britain, and “DE” for Germany.

HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT
HOW TO BLOCK TRAFFIC BY COUNTRY IN WHOLE SERVER VIA WHM ROOT

Multiple countries can be comma separated with no spaces in between, such as “US,GB,DE” to deny access to the US, Great Britain, and Germany.

Step #3: Save Your Changes

That’s it!!!

We hope you have found this tutorial useful on how to block traffic by country via CSF Firewall in WHM.

If you enjoyed this tutorial, please consider following us on Facebook and Twitter.

Facebook Page- https://facebook.com/redserverhost
Twitter Pagehttps://twitter.com/redserverhost.com

If you have any query, feel free to let us know via the comments section below.

Thanks for Reading!!!

Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

Scroll to Top