Enabling shell fork bomb protection in WHM (Web Host Manager) is important to keep your server safe from fork bomb attacks. A fork bomb is a type of attack that quickly creates a huge number of processes, overwhelming the server and causing it to slow down or crash. By turning on this protection, you can help prevent your server from being overloaded and keep it running smoothly.
Here’s how you can enable shell fork bomb protection in WHM:
Steps to Enable Shell Fork Bomb Protection in WHM:
- Log into WHM account
- In the WHM search bar on the left, type Shell Fork Bomb Protection to find the setting quickly.
- On the Shell Fork Bomb Protection page, you’ll see an option to enable protection
- Click on the Enable Protection button.
Note::Why the shell fork bomb protection is disabled on the shared/reseller server?
If the cloudlinux is enabled on the server in that case the shell fork is disabled
Configuration file – etc/security/limits.conf
Example – Imagine you’re on a shared server with 10 other users. If someone runs a fork bomb without any protections in place, it could crash the server, affecting everyone. By setting a limit like ulimit -u 100, each user can only create 100 processes, so even if someone runs a fork bomb, it won’t be able to crash the server—only the user who ran the bomb will be affected, as they won’t be able to create more processes.

