​How To Secure A cPanel WHM Server in Dedicated Hosting Plan?

Dedicated server comes with full root access and WHM Panel. Server Security is very important to keep your websites and other data secure as new methods of attacks and hacks are popping up almost every day, so it is critically important to keep your servers secure and updated. This will make the servers highly resistant to attacks, hacks and other threats.

1) Strong Server Passwords

If the passwords are not strong enough to withstand the brute force, there is no point in securing the server with other means. Because it is widely open to the world otherwise. So keep strong and lengthy alphanumeric passwords with multiple characters. There are online tools to check password strength and it can guide you to set a strong password

2) Updating CPanel
Updating cPanel to the latest version is the best way to keep the system from vulnerabilities and bugs as cPanel releases the bug fixes regularly.

You can update cPanel via WHM,
WHM >> cPanel >> Upgrade to Latest Version >> Click to upgrade

You can also do this via Command Line

/scripts/upcp –force

3) Tweaking CPanel And WHM Access
It is always best to keep SSL based encryption when you login to cPanel and WHM. For this goto:

WHM >> Server Configuration >> Tweak Settings >> Redirection

4) Enable CPHulk Brute Force Protection
cPHulk is a commonly used tool to protect the server from Brute Force attacks. You can enable cPHulk via:

WHM >> Security Center >> cPHulk Brute Force Protection.

5) Disable Compiler Access To Users Other Than Root
You can either disable disable compiler access to all users or you can enable it for trusted users via:

WHM >> Security Center >> Compiler Access

6) Install ClamAV
ClamAV is a cPanel plugin for protection against Viruses and malwares. You can install it via,

WHM >> Manage Plugins >> Tick ‘Install and keep updated’ check box in ClamAV and click ‘Save’