Note: Way to the Web Ltd. (the company behind ConfigServer) has closed permanently on August 31, 2025. cPanel now provides a version of CSF as described below.
cPanel will provide its own fork of CSF starting Feb 25th, 2026
Question
What are some useful CSF commands?
Answer
You can view all the CSF command line options by using either of the following commands.
# man csf
# csf -h
For ease of reference, here is a list of a few very useful CSF commands covering some of the most common tasks when managing CSF on your server.
-
Enable CSF:
# csf -e
-
Disable CSF:
# csf -x
-
Whitelist an IP:
# csf -a IP
Note: Replace
IPwith the IP address to whitelist. -
Blacklist an IP:
# csf -d IP
Note: Replace
IPwith the IP address to block. -
Unblock an IP:
# csf -dr IP
Note: Replace
IPwith the IP address to unblock. -
Search CSF for a rule:
# csf -g IP
Note: Replace
IPwith the IP address to search
Comments
0 comments
Article is closed for comments.