Methods to permit/deny site visitors by nation in CSF firewall through WHM?

We will make restrictions for the server entry based mostly on nations utilizing distinctive nation codes through the CSF interface in WHM.
We will write permit or deny guidelines based mostly on the requirement. We will get the nation code checklist from: After getting the checklist, observe the steps supplied beneath to use the block:
Login to the WHM panel as root and select the choice ConfigServer Safety & Firewall utilizing the search possibility.

Scroll down and choose the choice ‘Firewall Configuration’ from ‘csf – ConfigServer Firewall’ part.

There you possibly can see the configuration file and discover the ‘Nation Code Lists and Settings’ from that part.
Scroll down a bit and you’ll see the ‘CC_DENY’ part. There you possibly can present the nation codes you might want to block the entry from as supplied within the picture beneath:

A number of nations might be added with a comma separation with no areas in between. For instance, “AM, BM,CO” deny entry to the nations Armenia, Bermuda, and Columbia as proven within the picture beneath:

If we have to permit a number of nations solely and deny all others, higher use ‘CC_ALLOW_FILTER’ possibility there and supply the nation checklist in the identical means talked about earlier than.

As soon as the modifications are achieved, press the ‘Change’ button on the backside to avoid wasting the modifications after which restart the firewall to use the brand new settings.


HostSailor – Reasonably priced & Top quality VPS

🔥 Hot and trending web hostings deals 🔥 - Web Hostings Coupons, Sales, Deals and Discounts