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
  • 20 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

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 Stop XML-RPC Attacks Server-Wide Using the cPFence WAF?

Important Note: Recommended Method to Block XML-RPC We’ve introduced a new and improved method...

How Does cPFence Handle Bots? Customize Your Bot Protection

cPFence currently detects and blocks over 1000 different bots, helping to reduce server load and...

WAF Not Working? Learn How to Troubleshoot

If the cPFence Web Application Firewall (WAF) is not functioning as expected, follow these...