Mod security is an apache server module which protects your website from various attacks. Mod security is a set of rules that blocks some regular expressions to prevent your website from hackers. Mod-security always filters the data on your website and defend your website from malicious attack. It blocks the common code injection attack and strengths your server security.

How to disable mod-security rule in WHM ?

Mod- security filters all the requests send to the server and respond for them according to set of rules. If the request succeeds then the request passed to the website but if it fails, then mod-security blocks it. But sometimes the mod-security can’t recognize the valid HTTP request and blocks it too. In this case we need to modify the rules according to our need. You can disable the rule through ConfigServer ModSecurity Control (cmc) plugin, but if it's not installed on your server then you can follow this link : https://hoststud.com/resources/how-...dsecurity-control-cmc-on-dedicated-server.288.

To disable the mod-security rule in WHM first you have to check the rules which are causing the issue. Sometimes a particular rule triggers many times and blocks your IP. In this case you have to check the triggered rules by following steps and after that you can disable that particular rule:

  • Login to WHM
  • Click on “mod-security tools” option under security center tab.
tools.png

  • Here you can check the rule trigger for your domain with IP address or domain name.
  • After checking the rule, let’s assume rule “950109” is triggering while making modification for your website.
rule.png

  • Now we have to disable rule “950109” on your server.
  • Click on “Config server Modsec control” under Plugin tab. Configserver Modsec control (cmc) is a plugin which you have to install on your server first, to disable mod-security rules.
config1.png

  • Here you can enter the rule 950109 in text box “ModSecurity rule ID list” to disable it.
config2.png

  • Now click on "save global whitelist" and particular rule will be disabled on your server.
Author
bhawanisingh
Views
5,212
First release
Last update
Rating
0.00 star(s) 0 ratings
Top