DataDome Cookie Generator is a project designed to interact with DataDome's API to generate secure cookies. DataDome is a renowned solution specializing in bot mitigation and protecting websites from various malicious activities. This project aimed to aid interactions with sites that utilize DataDome for protection, such as footlocker.com
, asus.com
, mcdonalds.com
and so on.
Tip
Alternatively, you can use capsolver.com for doing things more easily.
- Node.js (>= 13.2.0)
-
Clone the repository.
git clone https://github.com/ceodavee/datadome-bp.git
-
Navigate to the project directory.
cd datadome-bp
-
Install the dependencies.
npm install
-
Start the server by running the following command:
node --experimental-modules source/main.mjs
-
The server will start and will be available at http://localhost:{configured-port}/cookie-generator.
- Endpoint:
POST /cookie-generator
- Request Body:
Content-Type has to be
application/json
{ "targetDomain": "http://example.com" }
- Success Response:
{ "raw": "raw_cookie_string", "cookie": "cookie_name=cookie_value", "value": "cookie_value" }
- Error Response:
{ "Error": "Error Message" }
In one of my older projects, Footlocker Bot, there is also a method to bypass DataDome, albeit with a different approach. You may find it insightful to check out this method as well; however, please note that the DataDome bypass in the Footlocker Bot project is no longer operational. The functionality of this current project is not verified recently.
This project was operational about 0.5 years ago from the time of this documentation. It may not be working anymore as it has not been tested recently. Please try and verify it in your environment, and use it responsibly, respecting all relevant laws and website terms of service.