New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to disable a rule by ID

Started by DA_MAN, January 08, 2019, 12:01:01 PM

Previous topic - Next topic

DA_MAN

I cannot seem to get modsecurity to disable ID 211190 for a website. The edit rules section is not clear on how to disable a rule by ID. I know how not to do it as it crashes Apache. Also saying, "For instructions please use our forum." when there are no instructions here is pretty silly.

Like so many things documented here on the forums and in the wiki are outdated. At least I cannot find anything on the new modsecurity interface. I don't want to have to entirely disable modsecurity just because I cannot figure out how to remove rules by ID.

paldig

#1
Hi,

Go to Mod Security> Accounts> Edit rules> Edit file> add the output below:

<IfModule mod_security2.c>
SecRuleEngine On
SecRuleRemoveById 211190
</IfModule>

Replace the mod_sec ID with the one you want to exclude, in your case it is 211190. Then restart/reload the apache server.