ModSecurity is an Apache module which protects your website from various attacks. It protects the attacks against web applications and also allows for HTTP traffic monitoring, logging and real-time analysis. It strengthens the security of the server by blocking common injection code attacks. As most of the attacks are done at the web application level, ensure the systems to be very secured.
ModSecurity is an open source web-based firewall application (WAF) which is supported by different web servers like Apache, Nginx and IIS. It supports flexible rule engine for performing both simple and complex operations and also has Core Rule Set which has certain rules for Trojans, cross website scripting, SQL injection, session hijacking, and other exploits. It works in the background and checks every page request against various rules to filter the malicious requests.
To know how to enable and disable ModSecurity in cPanel, click here to view the video tutorial.