AWS WAF and other CAPTCHAs
How to solve the DataDome slider
DataDome blocks with a slider page and lifts the block with a cookie. Solving it takes three matching pieces: the captcha URL, your proxy and your User-Agent. The task costs $1.75 per 1,000.
What happens when DataDome blocks you
DataDome sits in front of a site and scores every request. When it decides a visitor needs a check, it answers with status 403 and a small page that loads a slider puzzle in an iframe from geo.captcha-delivery.com. A person drags the piece into place, DataDome issues a fresh datadome cookie, and the page reloads. That cookie, presented from the same connection details, is what lets later requests through.
The DatadomeSliderTask type returns that cookie. Unlike many token tasks it has two required inputs beyond the page URL: the captcha URL of the slider and your proxy. Both exist because DataDome ties its decision closely to the connection. The DataDome glossary entry explains the wider product.
The three things that must match
- IP address. The cookie is valid for the IP that solved the slider. Send your own proxy in the task and use the same proxy for every request afterwards.
- User-Agent. Send the User-Agent your client uses in the optional
userAgentfield, and keep it unchanged for the session. - The captcha URL. It encodes the block event your session triggered. A URL from another session or an older block does not produce a usable cookie.
Most failures with this CAPTCHA come from breaking one of these three, so it pays to design the code around them from the start.
Find the captcha URL
The fastest manual way is DevTools: load the blocked page, open the Elements panel, find the iframe whose src starts with https://geo.captcha-delivery.com/captcha/, and copy that full address. It contains parameters such as initialCid, hash, cid, t, referer and s.
In code you usually do not have a rendered iframe, but the 403 body contains the values the page script uses to build it. At the time of writing they sit in an inline object assigned to dd, written with single quotes, for example var dd={'rt':'c','cid':'AHrlqA...','hsh':'2211F5...','t':'fe','s':17434,'host':'geo.captcha-delivery.com'}. Two fields tell you what kind of block it is:
| Field | Value | Meaning for you |
|---|---|---|
| rt | c | A slider CAPTCHA; this task applies. |
| rt | i | A background device check, not the slider. This task is not the tool for it. |
| t | fe | A normal block that the slider can lift. |
| t | bv | The IP itself is banned. Change the proxy; solving will not help. |
When a site calls its API from JavaScript, the 403 for that call is often JSON with a url property that already holds the full captcha URL. Check for that first; it saves you from building the address yourself. These formats are DataDome's and can change, so compare your result with the iframe address in the browser when in doubt.
Build the URL from the block page
import json
import re
from urllib.parse import urlencode
DD_OBJ = re.compile(r"var\s+dd\s*=\s*(\{.*?\})", re.S)
def slider_url(block_html: str, page_url: str, dd_cookie: str) -> str | None:
try:
return json.loads(block_html)["url"]
except (ValueError, KeyError, TypeError):
pass
found = DD_OBJ.search(block_html)
if not found:
return None
dd = json.loads(found.group(1).replace("'", '"'))
if dd.get("rt") != "c" or dd.get("t") == "bv":
return None
query = {"initialCid": dd["cid"], "hash": dd["hsh"], "cid": dd_cookie,
"t": dd["t"], "referer": page_url, "s": dd["s"]}
if dd.get("e"):
query["e"] = dd["e"]
return f"https://{dd.get('host', 'geo.captcha-delivery.com')}/captcha/?{urlencode(query)}"
The cid parameter is the value of the datadome cookie your session received with the 403. The function returns None for blocks the slider cannot lift, so the caller can rotate the proxy instead of paying for a task that cannot help.
Solve with your proxy
import time
import requests
DD_GATE = "https://gatesolver.com"
def datadome_cookie(page_url, captcha_url, proxy, agent, key="YOUR_API_KEY"):
task = {"type": "DatadomeSliderTask", "websiteURL": page_url,
"captchaUrl": captcha_url, "proxy": proxy, "userAgent": agent}
sent = requests.post(f"{DD_GATE}/createTask", timeout=30,
json={"task": task, "clientKey": key}).json()
if sent.get("errorId"):
raise RuntimeError(sent["errorCode"])
for _ in range(40):
time.sleep(3)
got = requests.post(f"{DD_GATE}/getTaskResult", timeout=30,
json={"clientKey": key, "taskId": sent["taskId"]}).json()
if got.get("errorId"):
raise RuntimeError(got["errorCode"])
if got["status"] == "ready":
return got["solution"]["cookie"]
if got["status"] == "failed":
raise RuntimeError("slider task failed, not billed")
raise TimeoutError("DataDome slider not solved in time")
The proxy goes in the form http://user:pass@host:port. Use a proxy you control and can keep for the whole session; a rotating exit that changes on each request undoes the work as soon as the cookie is used.
Use the cookie from the same connection
The solution looks like datadome=3Fw..., possibly followed by attributes such as Max-Age or Domain after semicolons. Keep only the name and value, set it in the session, and retry with the same proxy and User-Agent.
exit_proxy = "http://dd_user:dd_pass@203.0.113.7:3128"
agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0 Safari/537.36"
target = "https://example.com/catalog/shoes"
s = requests.Session()
s.proxies = {"http": exit_proxy, "https": exit_proxy}
s.headers["User-Agent"] = agent
blocked = s.get(target, timeout=30)
if blocked.status_code == 403:
link = slider_url(blocked.text, target, s.cookies.get("datadome", ""))
if link:
pair = datadome_cookie(target, link, exit_proxy, agent).split(";")[0]
name, _, value = pair.partition("=")
s.cookies.set(name.strip(), value.strip(), domain=".example.com")
print(s.get(target, timeout=30).status_code)
Set the cookie domain to the site's registrable domain with a leading dot, matching what DataDome normally sets; check the Application panel on a manual solve if you are unsure.
When a browser is the better client
Plain HTTP clients work for pages that return their data in the HTML or in a JSON API. Some DataDome sites also run a JavaScript tag on every page that sends device signals in the background, and a client that never runs it may be blocked again soon after the cookie is set. If you see a fresh 403 within a few requests even with matching proxy and User-Agent, move the job into Playwright or Puppeteer with the same proxy. The flow stays the same: detect the block page, read the iframe address straight from the DOM, solve, and add the cookie to the browser context. A browser costs more CPU per page, so use it only for the sites that need it and keep the lighter client for the rest.
Keep the session healthy
DataDome keeps scoring after the slider. Requests that arrive far faster than a person could click, or that skip the assets a browser would load, can trigger a new block even with a valid cookie. Pace requests, keep one session per proxy, and treat a new 403 as a signal to slow down before solving again. The article on scraping without getting blocked covers pacing in more depth, and the note on residential or datacenter proxies helps you choose the proxy type.
Price and speed for this type are on the DataDome slider page.
Common questions
Why does DatadomeSliderTask require a proxy?
DataDome ties the cookie to the IP that solved the slider. Sending your own proxy makes the cookie valid for the address you browse from.
Where do I find the captcha URL?
In the src of the geo.captcha-delivery.com iframe on the block page, in the url property of a JSON 403, or by building it from the dd object.
What does t equal bv mean in the block page?
At the time of writing it marks a banned IP. Solving does not lift that block, so switch to another proxy.
Can I change the User-Agent after solving?
Keep it the same. A different User-Agent with the same cookie is a common reason for a new block.
Do I pay if the cookie is rejected?
A solved task is charged when the cookie is returned. Check proxy, User-Agent and captcha URL before retrying to avoid paying twice.
Keep reading
- DataDome Slider solver$1.75 per 1,000 tasks, answers under 10 seconds.
- DataDomeDataDome bot protection, the slider page it serves to suspicious clients, and the datadome cookie that clears it.
- Residential or datacenter proxies for CAPTCHA-heavy sites?Residential and mobile IPs meet fewer challenges on strict sites; datacenter IPs are cheaper and fine where checks are light.
- Scraping without getting blockedA blocking-free scraping checklist: settle these before the first request, watch these during a run, review these afterward.