Web scraping
Choosing proxies for CAPTCHA solving
Some CAPTCHA answers are tied to an IP address and some are not. Knowing which is which tells you when to send a proxy with the task, what kind to choose, and how to keep the answer valid once it arrives.
Two families of answers
CAPTCHA answers come in two kinds, and the kind decides whether the proxy matters. Tokens, such as a reCAPTCHA response or a Turnstile token, are short strings you place into a form or request. The site's server sends them to the vendor for checking, and in most configurations the vendor does not strictly compare the IP that solved the widget with the IP that submits the form. Clearance cookies, such as Cloudflare's cf_clearance and the DataDome cookie, are different: they are issued to a specific visitor, and the site checks them against the address and browser identity on every later request.
That split maps directly onto GateSolver's task types. Token types offer a proxyless variant, while the two cookie types require your proxy.
Proxyless tasks: the default for tokens
A proxyless task is solved from our side without any address from you. For reCAPTCHA v2, reCAPTCHA v3, Cloudflare Turnstile, GeeTest v3 / v4, MTCaptcha and AWS WAF, start with the proxyless type. It is faster to set up, there is nothing to configure, and in most cases the token is accepted no matter which address submits it.
Use a proxyless task until you have evidence that it is not enough. Evidence looks like this: a token that the site rejects consistently, while the same flow succeeds when you solve the widget by hand from the scraper's address. When that happens, switch the same task to its proxy variant (for example ReCaptchaV2Task instead of ReCaptchaV2TaskProxyLess) and add a proxy field.
Tasks that require your proxy
Two types need a proxy every time, because their answers are cookies bound to an address:
- Cloudflare Challenge (
AntiCloudflareTask): the returnedcf_clearancecookie only works from the IP that earned it, with the same user agent. - DataDome Slider (
DatadomeSliderTask): the returneddatadomecookie must be used from the same IP and user agent as the proxy in the task.
Here the proxy is not an option to tune; it is part of the answer. If your scraper's traffic leaves from one address and the task was solved through another, the cookie is worthless.
The same-IP rule in practice
When a task carries a proxy, use exactly that proxy for every request that will carry the answer. In code, that means the proxy string lives in one place and is passed both to the task and to your HTTP client or browser. With rotating gateways, it also means using a session id or sticky port so the gateway keeps returning the same exit address for the length of the session.
import requests
EXIT = "http://user-session-7f3a:secret@gw.example-proxy.net:7000"
ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
job = dict(type="AntiCloudflareTask", websiteURL="https://shop.example.org/catalog",
proxy=EXIT, userAgent=ua)
site = requests.Session()
site.proxies = {"http": EXIT, "https": EXIT}
site.headers["User-Agent"] = ua
# after the task is ready:
# site.cookies.set("cf_clearance", answer["cookies"]["cf_clearance"], domain="shop.example.org")
Note that requests alone may still be challenged on strongly protected sites because of its TLS handshake; the sketch shows where the proxy and user agent must line up, not a full client. The guide to reusing cf_clearance covers the client side in more depth.
Residential, datacenter, ISP or mobile
When you do send a proxy, its network type shapes how the challenge behaves, because the protection scores the address before anything else.
| Type | How sites tend to see it | Good fit |
|---|---|---|
| Datacenter | Known hosting ranges, often scored as higher risk | Business sites, light protection, high volume of easy pages |
| Residential | Home connections, ordinary reputation | Consumer sites, cookie-based challenges, regional pricing |
| ISP (static residential) | Residential ranges hosted in data centers, stable | Long sessions that need one address for hours |
| Mobile | Carrier addresses shared by many phones | Sites that are strict with everything else |
For the two proxy-required types, residential or ISP addresses are usually the comfortable choice. A datacenter address may receive a harder challenge, or a clearance that expires quickly, which shows up as extra solves for the same number of pages. Mobile addresses are rarely necessary for CAPTCHA work and cost the most.
Format and authentication
Proxies go into the task as a single string: http://user:pass@host:port. Keep the scheme, include credentials if the proxy needs them, and test the exact string from your own machine before sending it in a task, because a dead or misconfigured proxy makes the task fail. Failed tasks are not charged, but they cost time. The proxy format for tasks answer lists the accepted shapes, and how to test a proxy shows a quick check.
Location
Pick an exit country that matches the content you are collecting and the locale your browser claims. A clearance earned from one country and used for a session whose language and time zone suggest another is an avoidable inconsistency. For token types solved proxyless, location usually matters less, but if a site serves a different widget or site key per region, read the key from a page loaded in the same region you will submit from.
How many proxies you need
For proxy-bound cookies, think in sessions, not requests. Each session needs one address for its lifetime, and each address can carry a limited number of sessions per site before it attracts attention. Estimate the number of parallel sessions you will run, add headroom for addresses that get flagged, and that is your pool. The how many proxies do I need answer walks through the arithmetic.
A quick decision path
Ask three questions in order. Does the answer come back as a cookie that later requests must carry? Then the task needs your proxy, and that proxy must be the one your client uses. Does the site reject proxyless tokens even though your form submission is otherwise correct? Then move that token type to its proxy variant with a sticky address. Neither? Stay proxyless and spend your effort on pacing and session handling instead, which reduces how many challenges you meet in the first place. Write the decision down per site, so the next person on the project does not repeat the experiment.
Common mistakes
- Rotating between solve and use. The most frequent cause of rejected cookies: the gateway handed out a new address after the task finished.
- Changing the user agent. A clearance earned under one user agent and replayed under another fails on cookie-based checks.
- Sending a proxy when none is needed. For token types, an unnecessary proxy adds a hop and a point of failure without improving acceptance.
- Using a burned address. If an address is already blocked by the site, the solve may succeed while every later request is refused. Retire it.
Keep the setup simple: proxyless for tokens until proven otherwise, one sticky residential address per session for cookie answers, and the same proxy string shared by the task and the client. We do not sell proxies, so you bring your own from the provider you already use.
Common questions
Do I need a proxy for reCAPTCHA v2 tasks?
Usually not. Start with ReCaptchaV2TaskProxyLess and switch to ReCaptchaV2Task with your proxy only if the site keeps rejecting otherwise valid tokens.
Which GateSolver tasks always need a proxy?
AntiCloudflareTask for the Cloudflare check page and DatadomeSliderTask. Both return cookies that only work from the proxy's IP.
Can I use a rotating proxy for a Cloudflare Challenge task?
Only with a sticky session that keeps one exit address. If the address changes after the solve, the cf_clearance cookie stops working.
Does GateSolver provide the proxies?
No. You supply your own proxy in the task when one is needed. Proxyless types use no proxy from you.
Will a datacenter proxy work for cookie challenges?
It can on lightly protected sites, but many treat hosting ranges as higher risk. Residential or ISP addresses usually give longer lasting clearances.
Keep reading
- Should I use a proxyless task or my own proxy?Use proxyless tasks for token widgets, and pass your own proxy when the answer is a cookie tied to your IP.
- Proxyless taskTasks the solver completes from its own network versus tasks that run through your proxy, and how to pick between them.
- 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.
- Cloudflare Challenge solver$0.84 per 1,000 tasks, answers under 10 seconds.