CLIENT AREACall Us 1-800-383-5193


Call Us 1-800-383-5193


Call Us 1-800-383-5193

Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Block IP of Brute Force by CSF on DirectAdmin

by | Oct 31, 2021

Let us discuss how to block IP of Brute Force by CSF on DirectAdmin.

As part of our Server Management Services, we assist our customers with several DirectAdmin queries.

Today, let us see how we can perform this in Linux VPS Servers and Dedicated Linux Servers.


Block IP of Brute Force by CSF on DirectAdmin

For automatic IP blocking of Brute Force by CFS, our Support Techs recommend the steps below:

1. Initially, we go to the path below:

cd /usr/local/directadmin/scripts/custom/

2. In order to begin, we back up the and files:

cp cp

In some case the above files may not exist in the “usr / local / directadmin / scripts / custom” path.

Then, we will encounter the said error.

However, this will not cause any problems in the continuation of the process.

cp: cannot stat `': No such file or directory cp: cannot stat `': No such file or directory

3. We need to download the appropriate version using the following commands:

cd /usr/local/directadmin/scripts/custom/ wget -O wget -O wget -O chmod 700

4. Then to create the files, blocked_ips, and exempt_ips in the root path, we run:

touch /root/blocked_ips.txt touch /root/exempt_ips.txt

So far, the IPs do not block automatically by the CSF. Instead, it creates a button in the brute Force Monitor for the admin to block the desired IP.

Now, let us see how our Support Techs block IPs automatically.

To do so, we need to install the following script and follow the next steps.

5. Then to automatically block the IP we run the following command:

cd /usr/local/directadmin/scripts/custom wget -O chmod 700

6. In order to not overwrite the roles and roles of iptables with CSF, we turn off the execution of this service with the help of the following commands on the server.

chkconfig iptables off chkconfig ip6tables off mv /etc/init.d/iptables /etc/init.d/iptables~moved echo -e '#!/bin/bash\nexit 0;' > /etc/init.d/iptables chmod 755 /etc/init.d/iptables chkconfig iptables on chkconfig ip6tables on service iptables start

7. Once done, we make sure the IPs are blocked correctly.

For that, we can try the following command:

csf –g IP

[Stuck in between? We are here for you]



In short, we saw how our Support Techs fix the DirectAdmin error for our customers.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.



Submit a Comment

Your email address will not be published. Required fields are marked *