How to Enable or Disable Mod Security in cPanel

Overview: How to Enable or Disable Mod Security in cPanel

This guide explains How to Enable or Disable Mod Security in cPanel step‑by‑step and why it matters for security, uptime, and performance. It’s written for small and medium businesses that rely on Blackhawk MSP for proactive, managed IT support in the Bay Area and beyond.

  • ✅ Clear, actionable steps
  • ✅ Best‑practice notes from our MSP engineers
  • ✅ Links to related services and help
Tip: If you’re short on time, contact us — we’ll handle this for you and verify everything is working.

Are you facing the issue of IP getting blocked repeatedly? If the answer is Yes, then it may have happened due to Mod Security.

What is Mod Security?

ModSecurity is a module that protects your website from various types of attacks. Mod Security protects a website from hackers, brute force attacks, cross-site request forgery(CSRF), and many other threats. Although it sometimes creates a problem, we do not recommend you to disable it but instead fix your software's vulnerability.


Disabling ModSecurity can help you determine whether ModSecurity blocks your IP or not. However, if your IP is blocked for a different reason, then contact us. We will find the exact reason behind it in order to resolve your issue so that you will not be required to disable the module.


How to Enable or Disable Mod Security in cPanel?

1. Log in to your cPanel account.


2. In the Security section, click on ModSecurity.
mod-security-icon.gif

3. If ModSecurity is enabled, it shows the Disable option. Click it to disable ModSecurity on all domains. The next time you want to enable it, click on Enable to enable it on all domains.
disable-modsecurity-in-cpanel.gif


How to disable ModSecurity only on selected domains?

You may have multiple domains, and you would want to disable or enable ModSecurity on selected domains.



1. Log in to cPanel, and from the Security section, click on ModSecurity.


2. Scroll down to the bottom of the page.


3. Under the Status option, next to the domain, click on On or Off.

modsecurity-disable-selected-domain-cpanel.gif


Hope you found this tutorial helpful.

Video tutorial temporarily unavailable while we refresh links. If you need more help, please call us at 1-925-218-4000.


Need help? Blackhawk MSP can do this for you, verify success, and document the change. Call 1‑925‑218‑4000 or open a ticket.

  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

How to Password Protect a Directory in cPanel

Overview: How to Password Protect a Directory in cPanel This guide explains How to Password...

How to Block an IP Address to Deny Access to Your Website

Overview: How to Block an IP Address to Deny Access to Your Website This guide explains How...

How to Protect Website Images From Being Displayed at an External Website

Overview: How to Protect Website Images From Being Displayed at an External Website This...

How to Block Any IP Address via an htaccess Rule

Overview: How to Block Any IP Address via an htaccess Rule This guide explains How to Block...

How to Disable Directory Browsing Using the htaccess Rule

Overview: How to Disable Directory Browsing Using the htaccess Rule This guide explains How...

Powered by WHMCompleteSolution