Why cPanel Security Matters
At UnderHost.com, we build security into our shared hosting, managed business hosting, and WordPress hosting infrastructure – but your cPanel configuration completes the protection. Follow these expert techniques to harden your environment:
1. Password Policies & Two-Factor Authentication
Eliminate the #1 attack vector:
- Enforce 12+ character passwords with special characters
- Enable 2FA in cPanel → Security → Two-Factor Authentication
- Consider our UnderMail for secure authentication emails
2. Keep Software Updated
Configure automatic updates in WHM:
WHM → Update Preferences → Enable "Automatic Updates" WHM → EasyApache 4 → Update PHP/Apache stack
UnderHost’s UnderManagement handles this automatically for managed clients.
3. SSH Hardening
- Disable root login in /etc/ssh/sshd_config
- Change default port from 22
- Implement key-based authentication
- Restrict IP access in WHM → Security Center → SSH Access
4. Enable cPHulk Brute Force Protection
Configure in WHM → Security Center → cPHulk:
- Set reasonable attempt limits (5-10 failed logins)
- Enable email notifications
- Whitelist your IP addresses
5. Firewall Implementation
For UnderHost servers, we recommend:
- CSF (ConfigServer Firewall) with WHM integration
- Enable SPI, packet filtering, and port flood protection
- Regularly update firewall rules via WHM → Plugins → ConfigServer Security & Firewall
6. ModSecurity Web Application Firewall
Activate in WHM → ModSecurity™ Vendors:
- Use OWASP Core Rule Set (CRS)
- Create custom rules for your applications
- Monitor logs in WHM → ModSecurity™ Tools
7. AutoSSL Deployment
Ensure all domains have HTTPS:
- WHM → SSL/TLS → Manage AutoSSL
- Enable for all accounts
- Set automatic renewal
For advanced SSL needs, explore our offshore hosting solutions.
8. IP Access Restrictions
Manage in cPanel → Security → IP Blocker:
- Block known malicious IP ranges
- Restrict admin areas to your office IP
- Combine with UnderHost Monitoring for real-time alerts
9. Service Minimization
Reduce attack surface in WHM → Service Manager:
Disable: - FTP (use SFTP/SSH only) - Unused PHP versions - Legacy mail protocols
10. Proactive Monitoring
Essential monitoring tools:
- WHM → Logs → Latest Visitor
- Integrate UnderHost REALTIME Monitoring
- Review cPanel → Metrics → Bandwidth regularly
Enterprise-Grade Security with UnderHost
For mission-critical security:
- 10Gbps DDoS-protected servers with hardware firewalls
- Offshore hosting for legal protection
- Managed security services including weekly audits
Need expert help securing your cPanel? Our @CustomerPanel team provides 24/7 security consultations and emergency hardening.