---
updatedAt: 2026-11-13T13:37:49.000Z
agentTools:
  projectIndex: https://docs.datadome.co/llms.txt
---

# Bunny

# Prerequisites

This article assumes that the user has already:

1. A pull zone configured (The website you would like to protect)
2. `DATADOME_SERVER_SIDE_KEY `available in your [DataDome dashboard](https://app.datadome.co/dashboard/management/integrations) ,
3. Your pull zone (**Caching > General**) need to have **Strip response cookies** disabled (without that DataDome cookie will be removed from the response)

![](https://files.readme.io/cf98bce7d2a23d2a421801919da87fa6c1551a16c8ca18899c9051ee3390da77-image.png)

<br />

# Installation

1. Go to **Scripting**
2. Click on **+ Add Script**

![](https://files.readme.io/5f5d07ed41267827979e44d960e549fe87a7132f9c498f87700fbad3154c7c0c-image.png)

3. Select **Default Standalone** inside Script Template

![](https://files.readme.io/1caad1be3ff9cddb07fb97975d59e192e35fa8911d2110107fb110f058549ed2-image.png)

4. Click on **Deploy with bunny.net**

![](https://files.readme.io/3f15471c06696b698d842a7cd9cba400149298d3c6b9b75318639d0b21fc257f-image.png)

5. Fill the following information and click on **Add Script**
   1. Script Name : `DataDome`
   2. Select Type : `Middleware`
6. Pull Zone : Select the zone you would like to protect

![](https://files.readme.io/8b4bcd6977798a9028eb20c44863a8af9825d81ff658fcef9e40356a27843cff-image.png)

7. Download the [DataDome Bunny module](https://package.datadome.co/cloud/DataDome-Bunny-latest.tgz) and use the content of `datadome.ts`
8. Click on **Save**
9. Go to **Environment > Secrets**
10. Add a new secret with key : `DATADOME_SERVER_SIDE_KEY `and value the value of your DataDome Server Side Key
    1. ![](https://files.readme.io/4e48024afd6f36060f6676287c5fb7a9ed5a5c430e38eacfce07bc45462bc4c6-image.png)
11. Click on **Save Secret**
12. Click on **Publish**

![](https://files.readme.io/4bff9a1b3d4e7e8e3a7e113eff8428dc5484c705da5a4224a885c5348ba90b0a-image.png)

7. When publishing the script world wide, enter a comment `v1` and click on **Publish Script**
8. ![](https://files.readme.io/9a2cb095b2ddefa5b78be3858f06d15c6ebd19be06992a35cf8c1ee706d469fd-image.png)

   Click on **Connect Pull Zone**
9. Select your pull zone you would like to protect

![](https://files.readme.io/91141408be7a884dff0660722c2d14f40bfa3afec1bb5ad7b9c631c674b8b0f8-image.png)

10. Click on **Connect Pull Zone**

You are now protected by DataDome.

## Configuration

The configuration is done using Bunny environment variables

### Server-side settings

| Setting name                      | Description                                                                                                          | Required | Default value                        | Example |
| :-------------------------------- | :------------------------------------------------------------------------------------------------------------------- | :------- | :----------------------------------- | :------ |
| DATADOME\_SERVER\_SIDE\_KEY       | Your DataDome server-side key, found in your [dashboard](https://app.datadome.co/dashboard/management/integrations). | Yes      | -                                    | -       |
| DATADOME\_TIMEOUT                 | Request timeout to DataDome API, in milliseconds.                                                                    | No       | 300                                  | 350     |
| DATADOME\_URL\_PATTERN\_EXCLUSION | Regular expression to exclude URLs from the DataDome analysis.                                                       | No       | List of excluded static assets below |         |
| DATADOME\_ENDPOINT                | The Datadome endpoint to target - [More info here](https://docs.datadome.co/docs/api-server)                                                   | No       | api.datadome.co                      |         |

```Text Excluded static assets
\\.(avi|avif|bmp|css|eot|flac|flv|gif|gz|ico|jpeg|jpg|js|json|less|map|mka|mkv|mov|mp3|mp4|mpeg|mpg|ogg|ogm|opus|otf|png|svg|svgz|swf|ttf|wav|webm|webp|woff|woff2|xml|zip)$

```

# FAQ

## Are requests in the cache protected by DataDome ?

**No.** The DataDome integration uses the `onOriginRequest` trigger. This means DataDome is executed only when Bunny CDN forwards a request to your origin server (a **Cache Miss**).

# Sub pages

* [Bunny Changelog](https://docs.datadome.co/docs/bunny-changelog.md)

# Sibling pages

* [Akamai EdgeWorkers](https://docs.datadome.co/docs/akamai-edge-worker.md)
* [Apache](https://docs.datadome.co/docs/apache.md)
* [Apigee](https://docs.datadome.co/docs/apigee.md)
* [Arc XP](https://docs.datadome.co/docs/arcxp.md)
* [Auth0](https://docs.datadome.co/docs/auth0.md)
* [AWS CloudFront](https://docs.datadome.co/docs/cloudfront-integration-setup.md)
* [Azion](https://docs.datadome.co/docs/azion.md)
* [Clerk](https://docs.datadome.co/docs/clerk.md)
* [Cloudflare Worker](https://docs.datadome.co/docs/cloudflare-worker.md)
* [Cloudflare Worker Rust](https://docs.datadome.co/docs/cloudflare-worker-rust.md)
* [Envoy](https://docs.datadome.co/docs/module-envoy.md)
* [F5 iRules](https://docs.datadome.co/docs/module-f5-irules.md)
* [FastMCP (Python)](https://docs.datadome.co/docs/fastmcp.md)
* [Fasterize](https://docs.datadome.co/docs/fasterize.md)
* [Fastly CDN (VCL)](https://docs.datadome.co/docs/module-fastly.md)
* [Fastly Compute JS](https://docs.datadome.co/docs/fastly-compute.md)
* [Fastly Compute Rust](https://docs.datadome.co/docs/fastly-compute-rust.md)
* [Go](https://docs.datadome.co/docs/go.md)
* [Google Cloud Load Balancer](https://docs.datadome.co/docs/google-cloud-load-balancer.md)
* [HAProxy](https://docs.datadome.co/docs/haproxy.md)
* [IIS](https://docs.datadome.co/docs/iis-aspnet.md)
* [ASP.NET Core](https://docs.datadome.co/docs/aspnet-core.md)
* [Java](https://docs.datadome.co/docs/module-java.md)
* [Keycloak](https://docs.datadome.co/docs/keycloak.md)
* [Kong](https://docs.datadome.co/docs/kong.md)
* [Magento](https://docs.datadome.co/docs/magento-with-fastly-cdn.md)
* [MuleSoft](https://docs.datadome.co/docs/mulesoft.md)
* [Next.js by Vercel](https://docs.datadome.co/docs/nextjs.md)
* [Nginx](https://docs.datadome.co/docs/nginx.md)
* [Node.js](https://docs.datadome.co/docs/nodejs.md)
* [OpenResty](https://docs.datadome.co/docs/openresty.md)
* [POQ Commerce](https://docs.datadome.co/docs/poq-commerce.md)
* [Python ASGI](https://docs.datadome.co/docs/python-asgi.md)
* [Ruby](https://docs.datadome.co/docs/ruby.md)
* [Salesforce Commerce Cloud](https://docs.datadome.co/docs/salesforcecommercecloud.md)
* [Traefik](https://docs.datadome.co/docs/traefik.md)
* [Tyk](https://docs.datadome.co/docs/tyk.md)
* [Varnish](https://docs.datadome.co/docs/varnish.md)
* [Using DataDome behind a CDN](https://docs.datadome.co/docs/cdn-integration.md)