ModSecurity is software that comes packaged with cPanel and is used for Apache servers. It helps in protecting your website against brute force attacks and is enabled by default on all new accounts. ModSecurity should generally remain activated, but in some circumstances such as when dealing with a WordPress admin lockdown caused by brute force attacks, it may be necessary to disable it temporarily. These are the steps to disable ModSecurity on cPanel, which apply to the latest cPanel versions (from version 82).

Previously, it was possible for admins to whitelist specific IP addresses using some versions of ModSecurity. However, this feature is no longer supported due to security and performance concerns.

Disable ModSecurity for Individual Domains

  1. Log into cPanel.
  2. Choose ModSecurity listed under Security.
    Mod Security Icon in cPanel
  3. Select the domain you are working with and switch ModSecurity from On to Off.
    Mod Security Switch in cPanel
  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
    Note: Do not leave ModSecurity disabled any longer than necessary.

Author

Kamran

Leave a comment

Your email address will not be published.Required fields are marked *