Skip to main content

Util::Turnstile - recognition of Cloudflare Turnstile captcha

Util::Turnstile parser overview

This parser is used only as a connectable component in other parsers, where it may be necessary to solve Cloudflare Turnstile captchas, as well as in custom JavaScript parsers.

The principle of operation of this parser is to send Turnstile data (usually it is sitekey and the URL of the page on which the Turnstile captcha was received) to the solving service and receive a token in response, consisting of numbers and letters. The correctness of solving depends only on the solving service, usually the services almost always solve Turnstile correctly.

TODO: (next) Describe connection/usage and/or provide a link to an example

Capabilities

  • Supports working with such services: AntiCaptcha, RuCaptcha, 2captcha, CapMonster.cloud, CapSolver, captchas.io
  • Ability to configure response waiting time and status check delay

Use cases

  • Bypassing Cloudflare Turnstile in parsers where it is optionally or necessarily required to solve this type of captcha to obtain results

Requests

The parser accepts two types of requests:

  • sitekey url
  • sitekey url proxy user-agent

Parameters are separated by a space and mean:

  • sitekey - this is the Turnstile sitekey
  • url - the page on which the Turnstile is located
  • proxy - the proxy through which Cloudflare Turnstile was received. The parameter must be in the format login:[email protected]:[email protected] for proxies with authorization or ip:[email protected] for proxies without authorization
    • type can be http, https, socks4, socks5
  • user-agent - the user agent with which Turnstile was received

Results

As a result, the Cloudflare Turnstile token will be output:

0.uM0rQLy_vdWZNwOml8TMpvPgtXuqMs3H_2A7D5txxc27kHNFcGh2UOS1MQ82GiF3Dd6-VyOEgdBf1Ef3Q6xjwRYZH3V8YJdv4wgxfTtyH5stVsBOP6qWrE0Zu-txfDmJIJ_THkeK8wrYODLwj3p948zdiufJScERCVhsx1aPIurXAidPWhJslVutd4uTbMAvuGcYg7Nj-wwbW6VKGuofBHIx116Xt7_9eXISzWFy5se95e2FYVY4n4oGU3xSkoUnUCw0fcBMBP8Vik8Qde-qd53mc7YAGKeRKj9yV0t2erTc4i9ZeRjR22Fxm1nN_SkbdAHjj-oATJmxyfMAFoT_MEwe2WliuvuoPrkCAZYe8S0.QqD0sL8h2B_8jYaa792YPA.04643a6fbd94c593eee9770924ddefbd6d227e84dcfca973ab840728c122fc5d

Possible results

  • $resp - Cloudflare Turnstile response (token)
  • $error - if an error occurred, its description

Possible settings

The Provider parameter is used to select the service.

ParameterDefault valueDescription
Client key-Client key for online solving services
Provider url-Provider URL, allows you to override the domain. You can specify several separated by commas, the parser will use each of them in random order. Can be empty, the parser automatically uses the necessary one depending on the selected solving service
ProviderAntiCaptchaSolving service
Wait between get status5Delay between status retrieval
Max wait time300Maximum solving waiting time
Threshold % for Capmonster.Cloud0Confidence threshold (used only in capmonster.cloud)