Cloudflare Worker

This module is dedicated to be used on Cloudflare, using Workers.

📘

Migration guide

If you were previously using the DataDome Cloudflare App or DataDome Worker v1, please follow this guide to migrate to DataDome Worker v2.

How to integrate DataDome Bot Protection with Cloudflare?

You have several options to install DataDome Worker v2, each suited for different scenarios and technical expertise levels.

  1. Using the Cloudflare Dashboard.

📘

When to choose this option?

  • You don't have a Cloudflare Worker yet.
  • You're unfamiliar with Cloudflare Workers development.
  • You want a quick setup with minimal technical knowledge.
  • You prefer a visual, guided installation process.
  1. Using Wrangler

📘

When to choose this option?

  • You're comfortable with command-line tools.
  • You don't have an existing Worker on the target domain/route.
  • You want full control over the Worker configuration.
  • You prefer local development and testing before deployment.
  1. Using npm package

📘

When to choose this option?

  • You already have a Worker protecting your domain/route and you do not want to use Workers HTTP Service Bindings.
  • You want to add DataDome protection to existing functionality.
  • You prefer managing dependencies through package managers.
  • You want to integrate DataDome into your existing codebase.
  1. Using Terraform

📘

When to choose this option?

  • You manage infrastructure with Terraform.