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.
Working...
X