CAPSOLVER
Blog
How to solve Cloudflare Turnstile

How to solve Cloudflare Turnstile

Logo of Capsolver

Sora Fujimoto

AI Solutions Architect

13-May-2023

Resolving Cloudflare Turnstile Issues

Variants of Turnstile Supported by Capsolver

Turnstile/Challenge verification is an alternative to reCaptcha/hCaptcha. Our system automatically handles all its forms:

  • Manual
  • Non-Interactive
  • Invisible

Navigating the Cloudflare Turnstile

Prior to tackling Cloudflare, please familiarize yourself with the necessary preconditions and critical considerations:

Prerequisites:

  • Capsolver Access Key

Key considerations to ensure validity:

  • The Token provided by the getTaskResult method is the successfully solved captcha token.

For instructions on navigating the Cloudflare turnstile, refer to our guide. Certain parameters are essential while others are optional.
In this scenario, we will concentrate on the indispensable parameters. The task options for handling Cloudflare are:

  • AntiTurnstileTaskProxyLess: This task type utilizes our server's proxy.

We will employ AntiTurnstileTaskProxyLess as the site is protected by Cloudflare Turnstile.
Omission of any parameters or incorrect submissions might result in the token being rejected by the website. All the necessary parameters are illustrated in this image:

Structure for Resolving Cloudflare Turnstile Captcha

Step 1: Initiating a Task with Capsolver

Execute the createTask method to input the required data:

POST https://api.capsolver.com/createTask

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AntiTurnstileTaskProxyLess",
    "websiteURL": "https://www.yourwebsite.com",
    "websiteKey": "0x4XXXXXXXXXXXXXXXXX",
    "metadata": {
       "action": "login",  //optional
       "cdata": "0000-1111-2222-3333-example-cdata"  //optional
    }
  }
}

Step 2: Retrieving the Results

You will need to regularly query the getTaskResult API until the captcha is successfully solved.

Example of the required request:

POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json

{
    "clientKey":"YOUR_API_KEY",
    "taskId": "TASKID_OF_CREATETASK" //ID from the createTask method
}

Upon successful captcha resolution, you'll obtain a response akin to the following visual:
Resolved Cloudflare Turnstile

The acquired captcha token can be validated by submitting the token.

⚠️ Rejection of the token may suggest missing or incorrect details. Ensure it's not a cloudflare challenge 5s, which requires different parameters.

For guidance on resolving Cloudflare Challenge 5s IUAM, please visit this article: link

In summary, although it might appear challenging to navigate Cloudflare turnstile, with capsolver.com the process is streamlined and effective. Following the steps provided will allow you to effortlessly resolve Cloudflare issues.

Capsolver Team 💜

More

How to Solve Cloudflare with Puppeteer
How to Solve Cloudflare with Puppeteer

Learn how to effectively solve Cloudflare's security challenges using Puppeteer and CapSolver. This guide provides a step-by-step approach to bypass JavaScript checks and CAPTCHAs, enabling seamless web scraping and automation on Cloudflare-protected websites.

Cloudflare
Logo of Capsolver

Lucas Mitchell

26-Aug-2024

Understanding Cloudflare 1010 Error and How to Solve It
Understanding Cloudflare 1010 Error and How to Solve It

Learn how to resolve the Cloudflare 1010 error, commonly known as "Access Denied: Bad Bot." Understand the causes behind this error and discover practical solutions, including CapSolver integration, to bypass Cloudflare's security checks and ensure seamless access to websites.

Cloudflare
Logo of Capsolver

Lucas Mitchell

22-Aug-2024

How to solve cloudflare | Using Puppeteer Node.JS
How to solve cloudflare | Using Puppeteer Node.JS

We will explore how to effectively solve Cloudflare like Turnstile by using Puppeteer and Node.js and the help from Captcha solver

Cloudflare
Logo of Capsolver

Rajinder Singh

20-Aug-2024

How to Solve Turnstile Captcha: Tools and Techniques in 2024
How to Solve Turnstile Captcha: Tools and Techniques in 2024

Provide you with practical tips and some ways to uncover the secrets of solving turnstile CAPTCHAs efficiently.

Cloudflare
Logo of Capsolver

Sora Fujimoto

29-Jul-2024

cloudflare turnstile captcha
How to solve cloudflare turnstile captcha: best captcha solver

In this article, we will explore the best solutions for solving Cloudflare Turnstile, ensuring your operations remain uninterrupted and efficient.

Cloudflare
Logo of Capsolver

Sora Fujimoto

16-Jul-2024

 How to Identify if `action` is Required to Solve Cloudflare Turnstile Using CapSolver Extension
How to Identify if `action` is Required to Solve Cloudflare Turnstile Using CapSolver Extension

Learn to identify action for cloudflare turnstile effective captcha solving. Follow our step-by-step guide on using Capsolver's tools and techniques.

Cloudflare
Logo of Capsolver

Ethan Collins

17-Jun-2024