How to block port no 80

Many shared hosts have the function of blocking port 80 and other ports in a cPanel account when malicious files are detected in that cPanel account.

Can you tell me how I can implement this function in the WHM Panel? What complement / software do I need to install in the WHM panel for this feature to work?