About the protection mode (agent mode)

Protection mode (also known as Agent mode) is a workspace (also known as site) setting that determines how the Next-Gen WAF agent handles request processing. Options include:

  • Blocking: enables request blocking and logging. This option actively protects your web application and provides visibility into your web traffic. Legitimate traffic is still allowed.
  • Logging (also known as Not Blocking): enables request logging. This option provides visibility into your web traffic but doesn't actively protect your workspace (site).
  • Off: disables request processing. The agent doesn't block or log requests. This option doesn't uninstall the agent.

HINT: This guide discusses protection mode (agent mode) in the context of using the Next-Gen WAF. To enable protection mode using Fastly DDoS Protection, check out our guide about DDoS Protection instead.

About the Blocking option

When the Protection mode (Agent mode) menu is set to Blocking, the Next-Gen WAF:

When requests are blocked, the 406 response code is returned unless you specified a different custom response code. You can view non-sensitive portions of blocked requests and response metadata via the control panel and API you use to interact with the Next-Gen WAF.

About the Logging (Not Blocking) option

When the Protection mode (Agent mode) menu is set to Logging (Not Blocking), the Next-Gen WAF logs requests based on our storage policy and all traffic is allowed.

IMPORTANT: The Logging (Not Blocking) option never blocks requests. Requests that match rules with a block action will be allowed.

Changing the protection mode (agent mode)

To change the protection mode (agent mode), compete the following steps:

  1. Fastly control panel
  2. Next-Gen WAF control panel

IMPORTANT: If you've been assigned the user or billing role, you cannot change the protection mode.

  1. Log in to the Fastly control panel.
  2. Go to Security > Next-Gen WAF > Workspaces.
  3. Click the gear Gear icon next to the workspace that you want to modify.
  4. Click Protection mode.

    The Protection mode setting set to Block

  5. Select the protection mode for the workspace. Options include:

    • Block: enables request blocking and logging. This option actively protects your web application and provides visibility into your web traffic. Legitimate traffic is still allowed.
    • Log: enables request logging. This option provides visibility into your web traffic but doesn't actively protect your workspace.
    • Off: disables request processing. The agent doesn't block or log requests. This option doesn't uninstall the agent.
  6. Click Update.