Magento

DataDome Magento with Fastly CDN integration detects and protects against bot activity.

This module is dedicated for use with Magento utilizing Fastly CDN.

DataDome works as a preflight to detect bots. A fingerprint is sent and DataDome detects in real-time if the traffic is legitimate or not.

The module has been developed to protect the visitors' experience: if any errors were to occur during the process, or if the timeout is reached, the module will automatically disable its blocking mechanism and allow the regular Fastly process to proceed.

Prerequisites

Before integrating DataDome bot protection in Magento, you need to:

  • Ask Fastly Support to enable DataDome support for your Fastly service as described here
  • Use Fastly integration version 1.2.127 or higher in Magento

How to install and configure

1. Enable Fastly Edge Modules


In order to enable Fastly Edge Modules you will need to turn them ON by going to the following location:

📘

Magento admin > Stores > Configuration > Advanced > System > Full Page Cache > Fastly Configuration > Advanced Configuration

Find Enable Fastly Edge Modules and select Yes then press the Save Config button at the top-right.


729729
After enabling, the Fastly Edge Module sub-menu should appear as seen below:
10021002

Click on Manage and then Refresh. Select DataDome Bot Detection integration in the list and click on Save.

11091109

2. Configure DataDome integration


Click on the gear icon (Edit Module) in the Action column to configure DataDome integration.
989989

Paste your server-side key and click on Upload. The server-side key is found in the DataDome dashboard.


16691669

## Settings

SettingDescriptionRequiredDefault
API KeyYour DataDome License keyYes
Exclusion regexThe regex that will be applied to req.url.extYes
Connection timeoutHow long to wait for a timeout (in milliseconds)Yes150
First byte timeoutHow long to wait for the first byte (in milliseconds)Yes50
Between bytes timeoutHow long to wait between bytes (in milliseconds)Yes50