Quote:
Originally Posted by IslandLizards
I have/manage multiple dedicated servers in different data centers around the US. Some of them are running WHM.
In WHM:
1. On left under Plugins > ConfigServer Security & Firewall
2. Under the "csf - ConfigServer Firewall" section > Firewall Configuration
Look for the section called "Country Code Lists and Settings"
In teh "CC_DENY =" field place the country code. Multiple can be separated by comma. China is CN. Here is a list of all codes for reference: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
3. Scroll to the bottom of the Firewall Configuration page and click on the Change
4. When the page refreshes, click Restart csf+lfd button to restart CSF with new settings.
Let me know if you have any questions.
|
Thank you! That tip is pretty handy to have available. Never noticed it in WHM before, as the last time I looked into something like that I had to key in every IP address related to the country to be blocked.