---
title: How to Manage ModSecurity in cPanel
description: "**In short:** ModSecurity is a web application firewall that works with the web server and protects your site from common attacks such as SQL injection and XSS by inspecting HTTP requests. Control it from cPanel, then Security, then ModSecurity: turn…"
url: "https://www.hyyat.com/en/knowledgebase/modsecurity-cpanel/"
updated: "2026-09-30"
category: Website control panel ( cpanel )
---

# How to Manage ModSecurity in cPanel

**In short:** ModSecurity is a web application firewall that works with the web server and protects your site from common attacks such as SQL injection and XSS by inspecting HTTP requests. Control it from cPanel, then Security, then ModSecurity: turn it on or off for all domains, or for each domain separately. Only turn it off temporarily to diagnose a problem, then turn it back on.

ModSecurity is one of the most important security tools for web servers. It inspects HTTP traffic and blocks known attack patterns before they reach your website.

**1.** Log in to cPanel (see [how to log in to cPanel](https://www.hyyat.com/en/knowledgebase/how-to-log-in-to-cpanel/)).

**2.** In the **Security** section, click **ModSecurity**.

![ModSecurity](https://hyyathost.com/images/2017/07/23/Screenshot-7_23_201712_22_49PM.png)

**3.** Use the switch at the top to turn ModSecurity on or off for all your domains, or the On/Off switch next to each domain or subdomain.

![ModSecurity per domain](https://hyyathost.com/images/2017/07/23/Screenshot-7_23_201712_50_54PM.png)

**Tip:** if a legitimate action on your site is blocked (for example saving a page), contact support with the time and URL so we can adjust the rule, instead of leaving ModSecurity off.

**Related service:** [Hyyat Host shared hosting](https://www.hyyat.com/en/shared-hosting-2/) includes ModSecurity protection and 24/7 support.

 **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Web Hosting](https://www.hyyat.com/en/hosting/)[Saudi Hosting](https://www.hyyat.com/en/saudi-hosting/)
