---
title: About Bot Management with the Next-Gen WAF
summary: null
url: >-
  https://www.fastly.com/documentation/guides/security/bot-management/next-gen-waf/about-bot-management-with-the-next-gen-waf
---

When Bot Management is deployed with the Next-Gen WAF, Bot Management works alongside the Next-Gen WAF to analyze cache-miss requests, protecting your origin from bot attacks. This means that Bot Management only inspects traffic going to your origin.

## Prerequisites

Before configuring Bot Management and monitoring your bot traffic, you must:

- purchase [Bot Management](https://docs.fastly.com/products/bot-management) and the [Next-Gen WAF](https://docs.fastly.com/products/fastly-next-gen-waf) (Edge WAF deployment only).
- [deploy Bot Management](https://www.fastly.com/documentation/guides/security/bot-management/about-bot-management/#deploying-bot-management) using post-cache inspection on each Fastly service where you intend to use Bot Management.

## Quick start

After deploying Bot Management using post-cache inspection, Fastly immediately starts analyzing your traffic for bot activity and logging results. You can then:

- monitor and manage your bot traffic
- add client challenges
- add detection for headless bots

### Monitor and manage bot traffic

### Fastly Control Panel

1.   Log in to the [Fastly control panel](https://manage.fastly.com).

2.   Go to **Security** > **Next-Gen WAF** > [**Dashboards**](https://manage.fastly.com/security/ngwaf/dashboards).

3.   From the workspaces bar, click the menu <span class="inline-icons"><img src="https://www.fastly.com/documentation/img/icons/chevron-down.png" alt="Menu icon" /></span> to the right of the workspace name and select a workspace.

4. From the dashboards menu <span class="inline-icons"><img src="https://www.fastly.com/documentation/img/icons/chevron-down.png" alt="Menu icon" /></span>, select **Bot Management**.
5. Monitor the suspected bot activity and bot-related signals detected by the Next-Gen WAF.
6. [Create rules](https://www.fastly.com/documentation/guides/next-gen-waf/rules/about-rules) to control bot access to your web application. For example, you can add a rule to [block suspected bad bots](https://www.fastly.com/documentation/guides/next-gen-waf/rules/working-with-request-rules/#blocking-bad-bots).

### Next Gen Waf Control Panel

1.   Log in to the [Next-Gen WAF control panel](https://dashboard.signalsciences.net).

2.   From the **Sites** menu, select a site if you have more than one site.

3. Click the name of your workspace (site) in the upper left corner of the control panel.
4. From the dashboards menu <span class="inline-icons"><img src="https://www.fastly.com/documentation/img/icons/chevron-down.png" alt="Menu icon" /></span>, select **Bot Management**.
5. Monitor the suspected bot activity and bot-related signals detected by the Next-Gen WAF.
6. [Create rules](https://www.fastly.com/documentation/guides/next-gen-waf/rules/about-rules) to control bot access to your web application. For example, you can add a rule to [block suspected bad bots](https://www.fastly.com/documentation/guides/next-gen-waf/rules/working-with-request-rules/#blocking-bad-bots).

### Add client challenges

Client challenges are security tasks that verify users are human or accessing your web application through a legitimate browser. To minimize disruption to your application's user experience, you can configure these challenges to run invisibly in the background using non-interactive methods (e.g., JavaScript proof-of-work) and only present interactive challenges (e.g., CAPTCHA) when suspicious activity is detected. Alternatively, you can choose to serve only non-interactive or interactive challenges.

To add a challenge, complete the following steps:

1. Select the type of challenge you'd like to send and set it up.

   | Challenge type            | Served on an interstitial page                                                                                                                                                                                                                                                                                      | Embedded within a page                                                                                                                                                               |
   | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   | Dynamic challenge         | [Create a rule](https://www.fastly.com/documentation/guides/security/client-challenges/serving-challenges-with-interstitial-pages) with the [**Dynamic challenge**](https://www.fastly.com/documentation/guides/next-gen-waf/rules/about-rules/#action-types) action.                                               | [Modify the HTML](https://www.fastly.com/documentation/guides/security/client-challenges/embedding-dynamic-challenges-in-pages) of the page where you'd like to embed the challenge. |
   | Non-interactive challenge | [Create a rule](https://www.fastly.com/documentation/guides/security/client-challenges/serving-challenges-with-interstitial-pages) with the [**Browser challenge**](https://www.fastly.com/documentation/guides/next-gen-waf/rules/about-rules/#action-types) action and the **Allow Interactive** switch disabled. | Not supported.                                                                                                                                                                       |
   | Interactive challenge     | [Create a rule](https://www.fastly.com/documentation/guides/security/client-challenges/serving-challenges-with-interstitial-pages) with the [**Browser challenge**](https://www.fastly.com/documentation/guides/next-gen-waf/rules/about-rules/#action-types) action and the **Allow Interactive** switch enabled.  | Not supported.                                                                                                                                                                       |

   > **HINT:** Have a React or single-page application? Embed a dynamic challenge within your web application. React and single-page applications don't handle interstitial pages well.

2. Add rules to [validate challenge tokens and block requests with invalid tokens](https://www.fastly.com/documentation/guides/security/client-challenges/blocking-requests-with-invalid-challenge-tokens).

For quick start instructions on how to add client challenges, check out our [Getting started](https://www.fastly.com/documentation/guides/security/client-challenges/getting-started-with-client-challenges) guide.

### Add detection for headless bots

By default, Bot Management doesn't detect bots that leverage headless browsers (e.g., headless Chrome). You can optionally extend detection for headless bots by adding the following line within the `<head>` section of your HTML. This sets up the [Advanced client-side detection](https://www.fastly.com/documentation/guides/security/bot-management/using-advanced-client-side-detections) feature.

```html
<script src="/_fs-ch-1T1wmsGaOgGaSxcX/assets/script.js"></script>
```

## Related content

- [About Bot Management](https://www.fastly.com/documentation/guides/security/bot-management/about-bot-management)
- [Getting started with client challenges](https://www.fastly.com/documentation/guides/security/client-challenges/getting-started-with-client-challenges)
- [Using advanced client-side detection](https://www.fastly.com/documentation/guides/security/bot-management/using-advanced-client-side-detections)
