If your website is hosted on a cPanel hosting plan without a firewall, then it is recommended to have a CSF firewall, considering the security aspects of your server.
On a daily basis, there are many malicious activities and brute force attacks on the server, you can check such activities in the server log. So servers and your data are constantly at risk if not protected by a reliable firewall.
CSF Firewall is commonly known as ConfigServer Security and Firewall. It has become the most popular firewall because it is not only easy to use but also provides a cPanel interface and can be easily installed and tuned by any novice user. CSF is an advanced version of the firewall as it provides the user with wider configuration options compared to other firewalls. It is easy enough to install and configure and even a novice user can easily install it.
This can be easily integrated with WHM/cPanel and is considered the most reliable firewall, hence it is widely preferred by website hosting companies to protect Linux hosting servers.
How to Install CSF Firewall cPanel ?
The basic attribute is to have a SSH access of the server first of all. You may get this access with VPS, dedicated and cloud hosting.
STEP 1: SSH in your server
STEP 2: Download CSF from https://download.configserver.com/csf.tgz
STEP 3: The download file has to be extracted now
tar -xzf csf.tgz
STEP 4: Once the file is extracted, you can proceed with installing CSF with the following command
cd csf sh install.sh
When the CSF firewall is installed, it can be located in the WHM’s menu – Plugins – ConfigServer Security & Firewall.
When you access the CSF page, you must proceed according to the guidelines mentioned in the wizard. It is essential to configure the Firewall level depending on your requirements. Once the process is completed, you can turn On the CSF from the Firewall Configuration and set “TESTING” to 0.
Also Read : How to configure the CSF Firewall in WHM