How to Enable / Disable WAF Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF (Web Application Firewall) rules in cPFence using either the command-line interface or the browser-based WebUI.

Using the WebUI

Open the cPFence WebUI on your Main Control Panel server and follow these steps:

 

 

 

 

  1. Go to WAF Management from the left sidebar.
  2. Under WAF Controls, choose either Enable WAF Rule by ID or Disable WAF Rule by ID.
  3. Enter the Rule ID and click the corresponding action button (Enable or Disable).

You can also manage domain-specific WAF rules using the other buttons available in the same section.

Using the CLI

Disable a 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 rule number, e.g., 2007.

Enable a WAF Rule

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

cpfence --enable-waf-rule RULE-ID

Replace RULE-ID with the rule number you want to restore.


Need Further Assistance?

If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.

  • enable waf rule, disable waf rule
  • 20 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Why my custom WAF rules are not working?

If your custom ModSecurity rules aren’t taking effect, it’s often due to duplicate rule IDs or...

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 Enable / Disable WAF?

The cPFence Web Application Firewall (WAF) now fully supports Apache, Nginx, OLS, and LSWS web...

How to Identify Problematic WAF Rule IDs in cPFence?

New! You can now use an automatic tracking tool to identify problematic WAF rules in real time....

How to Stop XML-RPC Attacks Server-Wide Using the cPFence WAF?

Note: This feature is now part of the WP-AutoShield Module and is active by default and done...