There is a lot that can be done, first as mention by @elcidofaguy CloudFlare can help with forward-facing web applications by means of simplified protection against SMALL DDoS attacks directed towards the domain of a website. This doesn't mean you are fully protected however, the best means of protection would be selecting a hosting provider that has in-house hardware based protection that will mitigate attacks up to certain sizes (usually 10Gbps+). The reason I say this is that it is easy to find the IP of a server even behind CloudFlare and as such if the IP were attacked said attacker would be completely bypassing the CloudFlare protection, which most do.
Next off you want to make sure you have a Firewall in place, usually for cPanel hosts CSF (ConfigServer Firewall) is the #1 Go-To Choice. Properly configured, this will protect your server from numerous different types of intrusion. Beyond that it boils down to how you configure your software and maintain your systems.