ModSecurity is a plugin for Apache web servers that functions as a web application layer firewall. It's employed to stop attacks towards script-driven websites by employing security rules which contain particular expressions. This way, the firewall can prevent hacking and spamming attempts and shield even sites which are not updated often. As an example, a number of failed login attempts to a script administrative area or attempts to execute a particular file with the objective to get access to the script shall trigger certain rules, so ModSecurity will block out these activities the moment it identifies them. The firewall is incredibly efficient as it screens the entire HTTP traffic to an Internet site in real time without slowing it down, so it can prevent an attack before any harm is done. It additionally keeps an exceptionally thorough log of all attack attempts which contains more info than traditional Apache logs, so you could later analyze the data and take additional measures to improve the security of your Internet sites if needed.