GICT knowledge base
What is ModSecurity and how to use it?
Published
ModSecurity is an open-source web-based firewall application (or WAF) supported by different web servers: Apache, Nginx, and IIS. With over 70% of all attacks now carried out over the web application level, organizations need every help they can get in making their systems secure.
ModSecurity is a web application firewall that can work either embedded or as a reverse proxy. Web application firewalls are deployed to establish an external security layer that increases the protection level, detects, and prevents attacks before they reach web-based software programs.
It provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging, and real-time analysis. ModSecurity commonly installed in conjunction with Apache, an open source web server. The benefits of using mod_security are numerous and encompass defense from many kinds of web-based attack including code injection and brute force attacks.
The module is configured to protect web applications from various attacks. ModSecurity supports flexible rule engine to perform both simple and complex operations. It can potentially block common code injection attacks which strengthens the security of the server. It comes with a Core Rule Set (CRS) which has various rules for cross website scripting, bad user agents, SQL injection, trojans, session hijacking, and other exploits.
Enable Mod-Security in cPanel
Follow the video tutorial given below or continue reading.
Here we can discuss how to enable ModSecurity in your cPanel interface.
1) Login to your cPanel account.
2) Go to the section ‘Security’.
3) Click the icon ‘ModSecurity’.
4) Here you can see the option for enabling the ModSecurity. Click the button ‘Enable’.
5) Now you can see a message ‘ModSecurity is enabled for all of your domains.
If you need any further assistance please reach our support department.
Related guides
Host Additional Domains on an Eligible InterServer Account
Check your hosting limits, choose a separate site or alias and use cPanel or DirectAdmin with deliberate DNS, content and certificate verification.
cPanelHardening Your cPanel Server: Beyond the Basics After CVE-2026-41940
Security is a moving target. With the recent discovery of CVE-2026-41940, it has become clear that just having a firewall isn't enough anymore.
cPanelcPanel and Plesk notice: Awstats,. Webalizer and Analog stats are being removed
Important Update: cPanel and Plesk Phasing Out Legacy Statistics Tools If you regularly check your website traffic through your hosting control panel, we have an...
cPanelThe dangers of shared licenses (in other words unofficial/cracked licenses)
Why Cracked cPanel Licenses Aren’t Worth the Risk: A Guide for InterServer Customers When you’re managing a server, every dollar counts.



