Announcement

Collapse
No announcement yet.

Proper syntax for disabling Mod Security rules

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proper syntax for disabling Mod Security rules

    Hi,

    What is the correct syntax for Disabling Mod Security rules via .htaccess? The instructions (https://cpdemo.resellerspanel.com/he...uto_login=true) say:

    Code:
    <IfModule ModSecurity2.c>
    SecRuleRemoveById <id>
    </IfModule>
    However, after trial & error for hours, I found that the following seems to work:

    Code:
    <IfModule security2_module>
    SecRuleRemoveById <id>
    </IfModule>
    Support are saying that the first one is the correct one, but I can not get it to work! Anyone else run into this?
    Last edited by clivejo; 07-05-2022, 07:15 PM.

  • #2
    You are missing the actual id code. I will look something like this:

    <IfModule ModSecurity2.c>
    SecRuleRemoveById 900011
    </IfModule>

    The instructions are in the link you've provided.

    Comment

    Working...
    X