buy
  • Home
  • /
  • Docs
  • /
  • How Tos
  • /
  • How to disable specific modsecurity rules for a specific domain or All Domains
How to disable specific modsecurity rules for a specific domain or All Domains

Overview

1.  How to disable specific modsecurity rules for a specific domain.
2. How to Disable a Specific ModSecurity Rule for All Domains.

1. how to disable specific ModSecurity rules for a specific domain

Note: You will need to manually create the apache2, custom, and domain folders under /var/webuzo-data. Then, add the configuration file with your domain name inside /var/webuzo-data/apache2/custom/domains/domain.conf.
The same procedure applies for all web servers, including Apache2, Nginx, OpenLiteSpeed, and LiteSpeed.

Procedure 

You do this by custom conf or htaccess.

To disable rules for a specific domain, you can add the following configuration inside the domain-specific configuration file (e.g., domain.com.conf):

module mod_security  {

    modsecurity  on
    modsecurity_rules `

        SecRuleRemoveById 941160

        SecRuleRemoveById 949110 `
}

Note : 

You can do this using custom conf or .htaccess.

SecRuleRemoveById  949110 add this in conf or .htaccessHow

To disable specific id please prefer the below 2steps

2. How to Disable a Specific ModSecurity Rule for All Domains.

Navigate to the webuzo admin panel>Home > Security > ModSecurity Rules 

image
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list