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 to all web servers — Apache2, OpenLiteSpeed, and LiteSpeed.

Procedure 

For OpenLiteSpeed, you can do this using a custom configuration.

If you want to disable rules for a specific domain in OpenLiteSpeed, you can add the following configuration inside the domain-specific configuration file (e.g., domain.com.conf). For more details, you can refer to the official documentation here:
https://webuzo.com/docs/developers/custom-virtualhost-config/#openlitespeed-configuration


module mod_security  {

    modsecurity  on
    modsecurity_rules `

        SecRuleRemoveById 941160

        SecRuleRemoveById 949110 `
}

For Apache2 and LiteSpeed, you can do this using a custom configuration or .htaccess file

Note : 

You can do this using a custom configuration or .htaccess. For more details, please refer to the official documentation here:
https://webuzo.com/docs/developers/custom-virtualhost-config/#apache-configuration


SecRuleRemoveById  949110
add this in conf or .htaccess

How 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