Expertise level: Medium
Mod_security is an Apache module that provides intrusions detection and prevention for web applications. It aims at shielding web applications from known and unknown attacks, such as SQL injection attacks, cross-site scripting, path traversal attacks, etc.
To install mod_security on a cPanel server, follow the steps given below:
- Follow the steps given in the article "How can I compile Apache and PHP from WHM?".
- While selecting modules in the "Short Options List", select "Mod Security".
- Recompile Apache (As per the article "How can I compile Apache and PHP from WHM?").
Please refer to the screen captures: