How to Enable / Disable WAF?

This guide provides simple instructions for enabling and disabling the Web Application Firewall (WAF) in cPFence for OLS/LS.

Enable WAF

To enable the WAF, use the following command:

cpfence --enable-ols-waf

This command activates the latest cPFence WAF for OLS/LS, applying the necessary configurations.

Disable WAF

To disable the WAF, use the following command:

cpfence --disable-ols-waf

This command deactivates the cPFence WAF for OLS/LS and updates the configuration accordingly.

  • enable waf, disable waf
  • 23 Users Found This Useful
Was this answer helpful?

Related Articles

How to Enable / Disable WAF Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF rules in cPFence for...

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...