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.
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
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.
After enabling, the Fastly Edge Module sub-menu should appear as seen below:
Click on Manage and then Refresh. Select DataDome Bot Detection integration in the list and click on Save.
Click on the gear icon (Edit Module) in the Action column to configure DataDome integration.
Paste your server-side key and click on Upload. The server-side key is found in the DataDome dashboard.
|API Key||Your DataDome License key||Yes|
|Exclusion regex||The regex that will be applied to req.url.ext||Yes||(?i)\.(avi|flv|mka|mkv|mov|mp4|mpeg|mpg|mp3|flac|ogg|ogm|opus|wav|webm|webp|bmp|gif|ico|jpeg|jpg|png|svg|svgz|swf|eot|otf|ttf|woff|woff2|css|less|js)$|
|Connection timeout||How long to wait for a timeout (in milliseconds)||Yes||150|
|First byte timeout||How long to wait for the first byte (in milliseconds)||Yes||50|
|Between bytes timeout||How long to wait between bytes (in milliseconds)||Yes||50|
Updated 3 days ago