ModSecurity is a Web Application Firewall (WAF) that protects your website from common attacks like SQL injection and cross-site scripting (XSS).
Steps
-
Navigate to your website management page in iPanel.
[screenshot: website management page]
-
Click the Security tab.
[screenshot: security tab]
-
In the WAF Settings section, find the WAF Mode dropdown.
[screenshot: WAF mode dropdown]
-
Select Enabled to activate ModSecurity protection.
[screenshot: selecting Enabled from WAF mode dropdown]
-
Choose your preferred Ruleset: OWASP, COMODO, External, Local, or Custom.
[screenshot: ruleset selection]
-
Click Save Changes to apply.
[screenshot: save changes button]
Tip: Start with the OWASP ruleset as it provides comprehensive protection against the most common web vulnerabilities.