About Bot Management

Fastly's Bot Management allows you to identify bots and decrease unwanted bot activity on your web applications. You can deploy Bot Management on your Fastly services using one or both of the following deployment options:

  • Pre-cache inspection: Bot Management inspects all requests before they reach your cache layer, allowing you to control bot access to both cached and uncached resources. This deployment option enables ContentGuard.
  • Post-cache inspection: Bot Management works alongside the Next-Gen WAF to analyze cache-miss requests, protecting your origin from bot attacks. This means that Bot Management will only inspect traffic going to your origin.

Prerequisites

Before enabling Bot Management for your services, you need to:

  • review the Bot Management limitations.

  • purchase the required products for your Bot Management deployment option. Pre-cache inspection requires Bot Management. Post-cache inspection requires Bot Management and Next-Gen WAF (Edge WAF deployment only).

    IMPORTANT: The Essential platform for the Next-Gen WAF does not support Bot Management.

Choosing a deployment option

The deployment option you choose determines which Bot Management features are available. Pre-cache inspection features work on all traffic before caching, while post-cache inspection features integrate with the Next-Gen WAF for detection on origin-bound traffic. For comprehensive protection, you can use both deployment options.

Bot Management featurePre-cache inspectionPost-cache inspectionDescription
Advanced client-side detectionsDetect bots that leverage headless browsers such as headless Chrome.
AI bot detectionDetect AI crawlers and fetchers.
Client challengesRequire users to prove that they are human or that a connection is happening through a legitimate browser.
Client fingerprintingIdentify client types and detect bots designed for malicious activities.
Private Access TokensProtect access resources on your origin.
Server-side detectionDetect bots by analyzing server-side attributes, including HTTP header anomalies and User-Agent spoofing.
Verified BotsValidate self-identified bots.

Deploying Bot Management

Once all prerequisites have been met, you can use the Fastly control panel or API to deploy Bot Management on your Fastly services.

  1. Control panel
  2. API

To deploy Bot Management on a service using the Fastly control panel, follow these steps:

  1. Log in to the Fastly control panel.
  2. From the Home page, select the appropriate service. You can use the search box to search by ID, name, or domain.
  3. Click Service configuration.
  4. In the Security area, click the Bot Management switch to the On position.
  5. For pre-cache inspection only, click the ContentGuard switch to the On position.

You can then optionally configure client challenges, advanced client-side detections, and ContentGuard for those services. Note that the other Bot Management features require no additional setup.

Monitoring bot traffic

Once you've deployed Bot Management, you can use the following dashboards to monitor bot traffic targeting your web applications:

  • Bot overview: dashboard that displays pre-cache inspection metrics about the volume and types of bot traffic directed at your service.
  • Bot Management: dashboard that displays post-cache inspection metrics about suspected bot activity and bot-related signals detected by the Next-Gen WAF.