Introduction
For some server administrators, going through WHM for every server and enabling Fork Bomb Protection can be very time consuming. While we do not currently have an API call for this, you can do this through these commands.
Procedure
To enable Fork Bomb Protection through command line, you can run this command:
/usr/local/cpanel/bin/install-login-profile --install limits
To disable Fork Bomb Protection, you can run this command:
/usr/local/cpanel/bin/install-login-profile --uninstall limits