# How to Enable or Disable ModSecurity in Plesk?

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

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

In the **Plesk** control panel, you can access the ModSecurity configuration by following these steps:

1. In the main menu of your account within Plesk, go to **Web Application Firewall**.

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

2. The first options will allow you to disable or enable ModSecurity or enable it in **detection only** mode. In this mode, it will generate detection logs but will not block the execution of the website.

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

3. Below, you will find the configuration of the ModSecurity rules. This is an advanced section and should only be configured by the webmaster or specialized technician.
4. Once you have made a change in the ModSecurity configuration, you will need to save the changes by pressing the **OK** button.

<figure><img src="/files/az3xiQNxNJO8BkO6gpGM" 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-plesk/como-activar-o-desactivar-modsecurity-en-plesk.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.
