This article provides a guide to install ConfigServer Firewall (CSF) in cPanel Server. This guide requires root-level access on cPanel VPS or cPanel dedicated server.
Install CSF in cPanel Server
To install ConfigServer Firewall (CSF) in cPanel server, follow the steps below:
- Login to SSH as Root user
- Run the following commands:
cd /usr/src rm -fv csf.tgz wget https://raw.githubusercontent.com/waytotheweb/scripts/main/csf.tgz tar -xzf csf.tgz cd csf sh install.sh
- Login to WHM
- Access ConfigServer Security & Firewall in WHM (WHM -> Plugins -> ConfigServer Security & Firewall)

You can now configure and manage CSF firewall from WHM/cPanel.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.
