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:

find the line:

codes and make it a country that we want to block:

Then save and restart CSF:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.