How to enable or disable Bot Protection for a specific domain?

To manage the Web Application Firewall (WAF) through cPFence, it’s important to know how to manage it through the WebUI tools or CLI.

 

Using the WebUI

  1. Open the cPFence WebUI on your Main Control Panel server and go to WAF Management.
  2. Under WAF Controls, click Bot Protection for Domain.
  3. Enter your domain (e.g., a.com) and click the corresponding button.

This only disables auto-protection — you can still use your own custom blacklist/whitelist in this mode:

  • Bots:

    • Blacklist: nano /opt/cpfence/app/cpfwaf/userdata_bl_agents

    • Whitelist: nano /opt/cpfence/app/cpfwaf/userdata_wl_agents

CLI Options

cpfence --enable-bot-protection-domain DOMAIN
cpfence --disable-bot-protection-domain DOMAIN

Replace DOMAIN with your actual domain name.


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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

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 Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF (Web Application...

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