# How to activate or deactivate ModSecurity in cPanel?

If you find that your website displays a **403**, **405**, or **406** error, it is very likely that some element of your site is being blocked by a **ModSecurity** rule.

**ModSecurity** is an application firewall. What it does is block certain requests or code executions that it deems dangerous. You can configure ModSecurity to allow or block certain executions as required by your website.

In the **cPanel** control panel, you can access the ModSecurity settings by following these steps:

1. In the cPanel control panel, go to the **Security => ModSecurity** option.

<figure><img src="/files/ooTBLgy2FNAKQWdWRNGu" alt=""><figcaption></figcaption></figure>

2. On the new screen, you will see your main domain and its subdomains. You can enable or disable ModSecurity on each one using the buttons on the right.

<figure><img src="/files/ahJQkUNOn37TcRD1hBfm" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/web-hosting/opciones-avanzadas-cpanel/como-activar-o-desactivar-modsecurity-en-cpanel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
