How to Enable / Disable WAF Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF rules in cPFence for OLS/LS based on rule IDs.

Disable WAF Rule

To disable a specific WAF rule by ID, use the following command:

cpfence --disable-waf-rule RULE-ID

Replace RULE-ID with the actual ID of the rule you want to disable. This command disables the specified rule and updates the configuration.

Enable WAF Rule

To re-enable a previously disabled WAF rule by ID, use the following command:

cpfence --enable-waf-rule RULE-ID

Replace RULE-ID with the actual ID of the rule you want to enable. This command enables the specified rule and updates the configuration.

  • enable waf rule, disable waf rule
  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to Enable / Disable WAF?

This guide provides simple instructions for enabling and disabling the Web Application Firewall...

How to Block or Whitelist Certain User Agents ?

This guide will help you block or whitelist specific user agents in cPFence. You can manage these...

How to Identify Problematic WAF Rule IDs in cPFence?

When your website encounters a WAF-related error (typically a 403 Forbidden error), you may need...

Whitelisting and Managing WAF Rules in cPFence

To manage the OpenLiteSpeed (OLS)/LiteSpeed (LS) Web Application Firewall (WAF) through cPFence,...

How to Use the cPFence WAF Testing Tool ?

To manually test the WAF (Web Application Firewall) on your WordPress site, you can trigger...