---
title: "How to Disable ModSecurity in cPanel"
description: "ModSecurity is server software for Apache that comes bundled with cPanel. ModSecurity&nbsp;helps protect your site from brute force attacks and, by default, automatically runs on all new accounts...."
url: https://www.inmotionhosting.com/support/edu/cpanel/how-to-disable-modsecurity-cpanel/
date: 2020-11-17
modified: 2024-01-04
author: "InMotion Hosting Contributor"
categories: ["cPanel"]
type: post
lang: en
---

# How to Disable ModSecurity in cPanel

![How to Disable ModSecurity in cPanel title image](https://www.inmotionhosting.com/support/wp-content/uploads/2020/11/howToDisableModSec-1024x538.png)

**[ModSecurity](/support/security/what-is-modsecurity-and-why-is-it-important/)** is server software for **Apache** that comes bundled with **cPanel**. ModSecurity helps protect your site from [brute force attacks](https://www.inmotionhosting.com/blog/what-is-a-brute-force-attack/) and, by default, automatically runs on all new accounts. ModSecurity should usually remain on. In certain situations, such as a [WordPress admin lockdown](/support/edu/wordpress/wp-login-brute-force-attack/#blocked-by-inmotion) caused by brute force attacks, you may need to temporarily deactivate ModSecurity to resolve an issue. The below steps show how to disable ModSecurity in cPanel. This applies to the latest versions of cPanel (starting in **cPanel version 82**).

While certain versions of ModSecurity used to allow admins to whitelist specific IP addresses, this feature is no longer supported due to security and performance concerns.

## Disable ModSecurity for Individual Domains

1. [Log into cPanel](https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/).
2. Choose **ModSecurity** listed under **Security**.![Mod Security Icon in cPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2020/11/modSecIcon.jpg)
3. Select the domain you are working with and switch ModSecurity from **On** to **Off**.![Mod Security Switch in cPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2020/11/theModSecSwitch.jpg)
4. Wait for the pop-up telling you that ModSecurity has been disabled.
5. Troubleshoot the issue that you are having.
6. Return and reactivate ModSecurity immediately after solving the issue you are experiencing. If you stop troubleshooting and need to wait before continuing, be sure to reactivate ModSecurity.![ModSecurity Disabled Warning](https://www.inmotionhosting.com/support/wp-content/uploads/2020/11/warning.jpg)**Note:** Do not leave ModSecurity disabled any longer than necessary.

Well done! You know how to disable ModSecurity through cPanel. ModSecurity is already running when you start with one of our [Shared Hosting plans](https://www.inmotionhosting.com/shared-hosting)!
