how you can identify if CSF has blacklisted your IP and how to fix it - VPS
In this article
- 1What is ConfigServer Security & Firewall (CSF)
- 21. Check if Your IP is Blacklisted
- 32. Find Your Public IP Address
- 43. Access the Server via SSH or Another IP
- 54. Unblock Your IP in CSF
What is ConfigServer Security & Firewall (CSF)
ConfigServer Security & Firewall (CSF) is a widely used firewall solution for servers with control panels like cPanel/WHM, DirectAdmin, Webmin, and Webuzo. If your IP address is blacklisted, you may face issues accessing your website, emails, or control panel.
1. Check if Your IP is Blacklisted
Try a Different Network: Use a mobile network or a different Wi-Fi to check if your website or control panel loads. Interpret Results: If your site loads from another network but not your usual one, your IP may be blacklisted by CSF.
2. Find Your Public IP Address
Check Your IP: Visit WhatIsMyIP.com or IPChicken.com. Note It Down: This IP address is required to unblock yourself.
3. Access the Server via SSH or Another IP
SSH Access: If possible, login using an alternative IP that is not blocked. VPN/Proxy: If SSH is inaccessible, use a VPN to change your IP and access your server.
4. Unblock Your IP in CSF
Unblocking via Control Panels
cPanel/WHM
1 Log in to WHM as an administrator. 2 Navigate to Plugins > ConfigServer Security & Firewall. 3 Find the Quick Unblock section, enter your blacklisted IP, and click Unblock.
DirectAdmin
1 Log in to DirectAdmin as Admin. 2 Navigate to Extra Features > ConfigServer Firewall & Security. 3 Use the Search IP feature to find the blacklisted IP and remove it.
Plesk
1 Log in to Plesk. 2 Navigate to Extensions > ConfigServer Security & Firewall. 3 Use the Unblock IP feature to remove your IP from the deny list.
Webuzo
1 Log in to Webuzo Admin Panel. 2 Navigate to Security > CSF Firewall. 3 Enter your blacklisted IP and click Unblock.
Unblocking via SSH (Command Line)
1 Access your server's terminal. 2 Run the following command, replacing your_ip_address with your actual IP:
csf -dr your_ip_address
Manually Remove IP from Deny List
1 Open the CSF deny file:
nano /etc/csf/csf.deny
2 Find and delete the line containing your IP. 3 Save and exit, then restart CSF:
csf -r
5. Whitelist Your IP (Prevent Future Blocks)
1 Open the CSF allow file:
nano /etc/csf/csf.allow
2 Add your IP address to a new line. 3 Save the changes and restart CSF:
csf -r
6. Adjust CSF Settings (If Frequent Blocks Occur)
Modify CSF Config: If your IP is repeatedly blocked, adjust the sensitivity of CSF by editing:
nano /etc/csf/csf.conf
Apply Changes:
csf -r
7. Seek Further Assistance
Contact Hosting Support: If issues persist, reach out to your web hosting provider. Consult CSF Documentation: Visit CSF Documentation for in-depth guidance.
By following these steps, you can identify and unblock your IP in CSF, ensuring uninterrupted access to your services. Regular monitoring of CSF settings can prevent future blocks and improve security!
Was this article helpful?
Your feedback helps us improve our documentation
Still need help? Submit a support ticket