CSF to lock the entire server specific country
Today I will explain how we can block access to our server from a particular country using the CSF. The whole should not take more than a minute, let's get started!
List of country codes is the most current blocking To use the option in the CSF must edit the file from the SSH:
1 | /etc/csf/csf.conf |
find the line:
1 | CC_DENY = "" |
codes and make it a country that we want to block:
1 | CC_DENY = "US,GB,DE" |
Then save and restart CSF:
1 | csf -r |
Related entries:
If everything went well, we should see something like this 8
ifconfig: command not found solution in Ubuntu / Debian / Centos
The guide below describes how to install WhatsApp Messenger on Ubuntu
My Weather Indicator is an application designed specifically for Ubuntu 20.04
Crayon Syntax Highlighter plugin PHP support 8.0 and 8.1