Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Enable or Disable Mod Security in cPanel

Enable or disable ModSecurity in cPanel. Steps for KickHost customers in Kenya.

Share

ModSecurity is a firewall module that blocks suspicious requests. Sometimes it blocks legitimate actions, such as saving a post or uploading a file.

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

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

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

Keep it on where possible

Disabling ModSecurity lowers protection. Try to fix the cause first or ask support to whitelist a rule.

Disable only for testing

If you must turn it off, do it for a short test and turn it on again.

Frequently asked questions

Why am I getting blocked? A request may look like an attack to a rule. Support can check the log.

Is it safe to disable? It reduces security, so turn it off only when needed and for a short time.

Related guides

Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.

Found this useful? Share it.

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans