This guide highlights the importance of server security in protecting your data, preventing breaches, and ensuring reliable website performance. WHM provides powerful tools and configurations to enhance server security effectively.
Steps to Secure Your Server via WHM:
- Strengthen Password Policies:
- Go to WHM > Security Center > Password Strength Configuration.
- Set a high minimum password strength for all accounts.
- Encourage users to create complex passwords combining letters, numbers, and symbols.
- Go to WHM > Security Center > Password Strength Configuration.
- Enable Two-Factor Authentication (2FA):
- Navigate to WHM > Security Center > Two-Factor Authentication.
- Activate 2FA to add an extra layer of security to WHM and cPanel logins.
- Ensure all admin and user accounts enable this feature.
- Navigate to WHM > Security Center > Two-Factor Authentication.
- Configure Brute Force Protection:
- Go to WHM > Security Center > cPHulk Brute Force Protection.
- Enable cPHulk to block repeated login attempts from suspicious IP addresses.
- Whitelist trusted IPs and configure notifications for blocked attempts.
- Go to WHM > Security Center > cPHulk Brute Force Protection.
- Restrict Root Access:
- Navigate to WHM > Security Center > Manage Wheel Group Users.
- Remove unnecessary users from the wheel group, restricting root-level access.
- Use Host Access Control to limit SSH access to trusted IP addresses.
- Navigate to WHM > Security Center > Manage Wheel Group Users.
- Disable Unnecessary Features:
- Disable Anonymous FTP under WHM > Service Configuration > FTP Configuration.
- Disable Shell Access for users unless necessary via WHM > Account Functions > Manage Shell Access.
- Disable Anonymous FTP under WHM > Service Configuration > FTP Configuration.
- Secure DNS and Email Services:
- In WHM > DNS Functions, configure DNS zones to avoid spoofing and ensure records are correctly set.
- Use Mail Routing Settings to determine how emails are delivered, preferring secure configurations.
- Update Software and Enable AutoSSL:
- Regularly update WHM/cPanel to the latest version for security patches.
- Navigate to WHM > SSL/TLS > Manage AutoSSL and enable AutoSSL to provide SSL certificates for all domains.
- Set PHP open_basedir Protection:
- Enable PHP open_basedir Protection via WHM > Security Center > PHP open_basedir Tweak.
- This prevents users from accessing files outside their home directory using PHP.
- Use ModSecurity for Web Application Security:
- Install and configure ModSecurity via WHM > Security Center > ModSecurity™ Vendors.
- Protect your server from web-based threats, such as SQL injections and cross-site scripting (XSS) attacks.
- Install and configure ModSecurity via WHM > Security Center > ModSecurity™ Vendors.
- Monitor and Scan for Malware
- Install a malware scanner like ClamAV or use WHM’s built-in tools to perform regular scans.
- Check for Trojan Horses in WHM > Security Center > Security Advisor.
- Backup Regularly:
- Set up automatic backups in WHM > Backup > Backup Configuration.
- Ensure critical data is safe and recoverable in case of an attack or failure.
- Set up automatic backups in WHM > Backup > Backup Configuration.
Best Practices for Server Security
- Restrict IP Access: Use Host Access Control to allow connections only from trusted IPs.
- Use Secure Protocols: Always access WHM and cPanel over HTTPS.
- Enable Firewall Protection: Use a firewall like CSF (ConfigServer Security & Firewall) for additional protection.
- Review Logs: Regularly monitor server logs for suspicious activities.
By following these steps, you can guarantee your server is protected from common vulnerabilities and threats.
If you are thinking about starting a website and searching for affordable hosting, be sure to visit our cPanel Hosting page.