HostArmada Web Hosting Knowledge Base

Knowledge is power! Use that power and achieve total and unconditional control over the Web Hosting Services!

How to enable/disable mod_security in cPanel?

Mod_security, or sometimes referred to as Modsec, is an open-source WAF(web application firewall). It features a toolkit for real-time monitoring, logging, and access control for web applications and is quite flexible in regards to the ruleset that can be applied. We have a custom-tailored set of rules on our shared servers that aim to prevent a vast number of attacks established on a web application level. By default, mod_security is enabled on all our servers, however, there are certain situations where you might want to disable it because you are unable to execute specific scripts or run your application because they trigger one of the rules we configured. To disable it, follow these steps below:

  • Log into your cPanel account. If you are not sure how to do this, please follow our tutorial on the matter. 
  • Once you have logged inside, please navigate to the "Security" section, and from there, click on the "ModSecurity" Icon.

 

Access the Modsecurity feature in cPanel

 

  • You will be redirected to a page containing a list of all your domains on the server. To disable mod_security for all domain names, please press the "Disable" button on the top of the screen, which is located inside a blue text box.
  • If you want to disable Modsec for an individual domain name, please use the toggle switch and set it to "Off". This toggle switch is located on the right side of the table section corresponding to the domain you wish to modify.

 

Enable or Disable Modsecurity for all or particular domain names

 

  • Once this is done, you will receive a green textbox on the top right corner, notifying you that the service has been turned "Off".

Was this article useful and on point?

Find out more about HostArmada entire range of optimized Web Hosting Services and take action today on improving your website Loading Speed, Security, and overall Stability!