266 Views
With the ConfigServer Security Firewall (CSF) Plugin, we may restrict traffic to websites hosted on CWP Panel by nation. A customer who requites the ability to restrict specific nations functions more over here. These steps will walk you through the process of activating this functionality.
STEPS:-
1. Login to CWP Panel. (root privileges).
![Set Up CSF Firewall To Block Traffic By Country Via CWP Panel](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img1-1.png)
2. In the “NAVIGATION’ section, expand the ‘SECURITY’ option and click on ‘CSF FIREWALL’.
![Set Up CSF Firewall To Block Traffic By Country Via CWP Panel](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/cwp-img1.png)
3. Now click on ‘FIREWALL CONFIGURATION’ and open the configuration file.
![Set Up CSF Firewall To Block Traffic By Country Via CWP Panel](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/cwp-img3.png)
4. On the configuration page, find the ‘CC_DENY’ section.
![Set Up CSF Firewall To Block Traffic By Country Via CWP Panel](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/cwp-img4.png)
5. In this section we can block traffic by mention the country code for expamle IN for India, BZ for Brazil. And click on save changes then.
![Set Up CSF Firewall To Block Traffic By Country Via CWP Panel](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/cwp-img5.png)