{"id":23275835,"url":"https://github.com/javapuppteernodejs/cloudflare-solver-","last_synced_at":"2025-04-06T11:33:23.933Z","repository":{"id":234372091,"uuid":"788764586","full_name":"javapuppteernodejs/Cloudflare-Solver-","owner":"javapuppteernodejs","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-19T03:20:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T17:18:01.572Z","etag":null,"topics":["captcha-recognition","captcha-solver","captcha-solving","cloudflare","cloudflare-api","cloudflare-bypass","cloudflare-captcha-solver","cloudflare-challenge","cloudflare-turnstile","cloudflare-turnstile-api","cloudflare-turnstile-bypass","cloudflare-turnstile-solver","solve-cloudflare","turnstile-bypass","turnstile-captcha-bypass","turnstile-captcha-solver","turnstile-captcha-solving","turnstile-cloudflare-solver","turnstile-solver"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javapuppteernodejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T03:18:02.000Z","updated_at":"2024-04-19T03:22:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"06527f46-78b9-4db8-adc1-d83dd5a0cd67","html_url":"https://github.com/javapuppteernodejs/Cloudflare-Solver-","commit_stats":null,"previous_names":["javapuppteernodejs/cloudflare-solver-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javapuppteernodejs%2FCloudflare-Solver-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javapuppteernodejs%2FCloudflare-Solver-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javapuppteernodejs%2FCloudflare-Solver-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javapuppteernodejs%2FCloudflare-Solver-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javapuppteernodejs","download_url":"https://codeload.github.com/javapuppteernodejs/Cloudflare-Solver-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["captcha-recognition","captcha-solver","captcha-solving","cloudflare","cloudflare-api","cloudflare-bypass","cloudflare-captcha-solver","cloudflare-challenge","cloudflare-turnstile","cloudflare-turnstile-api","cloudflare-turnstile-bypass","cloudflare-turnstile-solver","solve-cloudflare","turnstile-bypass","turnstile-captcha-bypass","turnstile-captcha-solver","turnstile-captcha-solving","turnstile-cloudflare-solver","turnstile-solver"],"created_at":"2024-12-19T21:16:44.963Z","updated_at":"2025-04-06T11:33:23.911Z","avatar_url":"https://github.com/javapuppteernodejs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to solve cloudflare turnstile and challange 5s in 2024 | Best Cloudflare solver\n![](https://assets.capsolver.com/prod/images/post/2024-04-19/ee96165e-e325-42b9-8d55-2cbd41358c2e.png)\n\n\n\nCloudflare, a popular security and performance solution, employs various protection mechanisms, including Turnstile and Challenge 5s, to safeguard websites from malicious activity. However, as a web user or developer, encountering these security measures can sometimes be a hindrance. This article will guide you through effective methods and discuss the best Cloudflare solvers to overcome Cloudflare Turnstile and Challenge 5s in 2024.\n\n## Bonus Code\n A bonus code for top captcha solutions; [CapSolver](https://www.capsolver.com/): **WEBS**. After redeeming it, you will get an extra 5% bonus after each recharge, Unlimited\n\n![](https://assets.capsolver.com/prod/images/post/2024-03-29/fbc29472-886c-45b2-9eb2-2b307f6d9700.png)\n\n## Understanding Cloudflare Turnstile\nCloudflare Turnstile is a free tool that aims to replace CAPTCHAs. By implementing a simple snippet of code, Turnstile provides website visitors with a hassle-free browsing experience, free from CAPTCHA challenges. It effectively prevents abuse and verifies the authenticity of visitors without compromising data privacy or subjecting them to the unpleasant user experience associated with CAPTCHAs. With Turnstile, websites can offer a more seamless and enjoyable interaction for their users.\n\n## Turnstiles types Supported by CapSolver\nIntroducing [CapSolver](https://www.capsolver.com/) - The Ultimate Automated CAPTCHA Solver:\nCapSolver emerges as the leading automated CAPTCHA solver, offering unparalleled capabilities in solving CAPTCHAs. With its state-of-the-art automation techniques and robust infrastructure, CapSolver ensures accurate and efficient CAPTCHA solving, making it the ideal choice for tackling Turnstile and other CAPTCHA challenges in 2024 and beyond.\n\n![](https://assets.capsolver.com/prod/images/post/2023-05-13/254a86e2-c054-4c42-9b57-5c219af2a3f8.gif)\n\nThe Turnstile/Challenge verification code is another attempt to replace reCaptcha/hCaptcha.CapSolver automatically support all of its subtypes:\n- Manually\n- Non-Interactive\n- Invisible\n\n\n## How to solve cloudflare turnstile\nNext we'll cover then solving Cloudflare Turnstile by means of a token. In the beginning, there is no need to specify subtypes during your call. It is not necessary to provide your own custom `User-Agent` yet,\nLets  ignore this parameter.\n\n\nThe task type `type` is as follows\n\n- `AntiTurnstileTaskProxyLess`\n\n### Step 1 Create the task\n\nCreate the task with the [createTask](../api-createtask.md).\n\nIn the process of using turnstile, we must input `websiteURL` and `websiteKey`, other parameters are optional.\n\n#### Task Object Structure\n\n| Properties     | Type               | Required | Description                                                  |\n| -------------- | ------------------ | -------- | ------------------------------------------------------------ |\n| type           | String             | Required | `AntiTurnstileTaskProxyLess`                                 |\n| websiteURL     | String             | Required | The address of the target page.                              |\n| websiteKey     | String             | Required | Turnstile website key.                                       |\n| metadata       | Map\u003cString,String\u003e | Required | Turnstile extra data . [Turnstile Documentation](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/) |\n| metadata.acton | String             | Optional | The value of the `data-action` attribute of the Turnstile element if it exists. |\n| metadata.cdata | String             | Optional | The value of the `data-cdata` attribute of the Turnstile element if it exists. |\n\n#### **Example Request**\n\n```txt\nPOST https://api.capsolver.com/createTask\nHost: api.capsolver.com\nContent-Type: application/json\n```\n\n```json lines\n{\n  \"clientKey\": \"YOUR_API_KEY\",\n  \"task\": {\n    \"type\": \"AntiTurnstileTaskProxyLess\",\n    \"websiteURL\": \"https://www.yourwebsite.com\",\n    \"websiteKey\": \"0x4XXXXXXXXXXXXXXXXX\",\n    \"metadata\": {\n       \"action\": \"login\",  //optional\n       \"cdata\": \"0000-1111-2222-3333-example-cdata\"  //optional\n    }\n  }\n}\n```\n\n#### Example Response\n\n```json lines\n{\n  \"errorId\": 0,\n  \"status\": \"idle\",\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"   // record taskId\n}\n\n```\n\n### Step 2  **Getting Result**\n\nUse the [getTaskResult](../api-gettaskresult.md) method to get the recognition results\n\nDepending on the system load, you will get the results within the interval of `1s` to `20s`\n\n#### **Example Request**\n\n```txt\nPOST https://api.capsolver.com/getTaskResult\nHost: api.capsolver.com\nContent-Type: application/json\n```\n\n```json lines\n{\n  \"clientKey\": \"YOUR_API_KEY\",\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"\n}\n```\n\n#### Example Response\n\n```json lines\n{\n  \"errorId\": 0,\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\",\n  \"status\": \"ready\",\n  \"errorCode\": null,\n  \"errorDescription\": null,\n  \"solution\": {\n    \"token\": \"0.mF74FV8wEufAWOdvOak_xFaVy3lqIDel7SwNhw3GgpICSWwTjYfrQB8mRT1dAJJBEoP7N1sESdp6WH9cTS1T0catWLecG3ayNcjwxVtr3hWfS-dmcBGRTx4xYwI64sAVboYGpIyuDBeMIRC3W8dK35v1nDism9xa595Da5VlXKM7hk7pIXg69lodfiftasIkyD_KUGkxBwxvrmz7dBo10-Y5zvro9hD4QKRjOx7DYj9sumnkyYCDx0m4ImDIIkNswfVTWI2V22wlnpHdvMgdtKYgOIIAU28y9gtdrdDkpkH0GHcDyd15sxQGd9VjwhGZA_mpusUKMsEoGgst2rJ3zA.UWfZupqLlGvlATkPo3wdaw.38d55cd0163610d8ce8c42fcff7b62d8981495cc1afacbb2f14e5a23682a4e13\",\n    \"type\": \"turnstile\",\n    \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36\"\n  }\n}\n```\n\n### Use SDK Request\n\n::: code-group\n\n```python\n# pip install --upgrade capsolver\n# export CAPSOLVER_API_KEY='...'\n\nimport capsolver\n\n# capsolver.api_key = \"...\"\nsolution = capsolver.solve({\n  \"type\": \"AntiTurnstileTaskProxyLess\",\n  \"websiteURL\": \"https://www.yourwebsite.com\",\n  \"websiteKey\": \"0x4XXXXXXXXXXXXXXXXX\",\n  \"metadata\": {\n\t \"action\": \"login\"  # optional\n  }\n})\n```\n\n```go [golang]\npackage main\n\nimport (\n  \"fmt\"\n  capsolver_go \"github.com/capsolver/capsolver-go\"\n  \"log\"\n)\n\nfunc main() {\n  // first you need to install sdk\n  //go get github.com/capsolver/capsolver-go\n\n  capSolver := capsolver_go.CapSolver{ApiKey: \"...\"}\n  solution, err := capSolver.Solve(map[string]any{\n    \"type\":       \"AntiTurnstileTaskProxyLess\",\n    \"websiteURL\": \"https://www.yourwebsite.com\",\n    \"websiteKey\": \"0x4XXXXXXXXXXXXXXXXX\",\n    \"metadata\": map[string]string{\n\t  \"action\": \"login\"  // optional\n    },\n  })\n  if err != nil {\n    log.Fatal(err)\n    return\n  }\n  fmt.Println(solution)\n}\n\n```\n\n## Understanding Cloudflare Chanllenge 5S\nIt uses the same underlying technology as Turnstile. It helps website owners to embed non-intrusive Cloudflare challenges on their websites to effectively prevent bot attacks. Also Cloudflare Challenge 5s introduces a brief 5-second delay before granting access to a website. Its purpose is to deter automated bots by requiring users to wait for a short period.\n\n## Chanlleges types Supported by CapSolver\nThere is no need to specify subtypes during your call. It is not necessary to provide your own custom `User-Agent` yet,\nwe will ignore this parameter.\n\n![1713496773366](https://github.com/javapuppteernodejs/Cloudflare-Solver-/assets/167292643/763f2636-decf-47a6-8b24-4611aa7b8b7f)\n\n\nThe task type `type` is as follows\n\n- `AntiCloudflareTask` Proxy required\n\n## How to Solve Cloudflare Challenge \nFirstly, as with Turnstile, we use CapSolver to create the task, (the steps are largely the same)\n\n### Step 1 Create Task\n\nCreate the task with the [createTask](../api-createtask.md).\n\nIn the process of using challenge, we must input `websiteURL`,`proxy` other parameters are optional.\n\n#### Task Object Structure\n\n| Properties | Type   | Required | Description                                       |\n|------------|--------|----------|---------------------------------------------------|\n| type       | String | Required | `AntiCloudflareTask`                              |\n| websiteURL | String | Required | The address of the target page.                   |\n| proxy      | String | Required | Learn [using proxies](../api-how-to-use-proxy.md) |\n\n#### **Example request**\n\n```txt\nPOST https://api.capsolver.com/createTask\nHost: api.capsolver.com\nContent-Type: application/json\n```\n\n```json lines\n{\n  \"clientKey\": \"YOUR_API_KEY\",\n  \"task\": {\n    \"type\": \"AntiCloudflareTask\",\n    \"websiteURL\": \"https://www.yourwebsite.com\",\n    \"proxy\": \"158.120.100.23:334:user:pass\"\n  }\n}\n```\n\n#### Example Response\n\n```json lines\n{\n  \"errorId\": 0,\n  \"status\": \"idle\",\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"  // record taskId\n}\n\n```\n\n### Step 2 **Getting Result**\n\nUse the [getTaskResult](../api-gettaskresult.md) method to get the recognition results\n\nDepending on the system load, you will get the results within the interval of `1s` to `20s`\n\n#### **Example Request**\n\n```txt\nPOST https://api.capsolver.com/getTaskResult\nHost: api.capsolver.com\nContent-Type: application/json\n```\n\n```json lines\n{\n  \"clientKey\": \"YOUR_API_KEY\",\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"\n}\n```\n\n#### Example Response\n\n```json lines\n{\n  \"errorId\": 0,\n  \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\",\n  \"status\": \"ready\",\n  \"solution\": {\n    \"cookies\": {\n      \"cf_clearance\": \"...\"\n    },\n    \"proxy\": \"...\",\n    \"token\": \"...\",\n    \"type\": \"challenge\",\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\"\n  }\n}\n```\n\n### Use SDK Request\n\n::: code-group\n\n```python\n# pip install --upgrade capsolver\n# export CAPSOLVER_API_KEY='...'\n\nimport capsolver\n\n# capsolver.api_key = \"...\"\nsolution = capsolver.solve({\n    \"type\": \"AntiCloudflareTask\",\n    \"websiteURL\": \"https://www.yourwebsite.com\",\n    \"proxy\": \"158.120.100.23:334:user:pass\"\n})\n```\n\n```go [golang]\npackage main\n\nimport (\n\t\"fmt\"\n\tcapsolver_go \"github.com/capsolver/capsolver-go\"\n\t\"log\"\n)\n\nfunc main() {\n\t// first you need to install sdk\n\t//go get github.com/capsolver/capsolver-go\n\n    capSolver := capsolver_go.CapSolver{ApiKey: \"...\"}\n\tsolution, err := capSolver.Solve(map[string]any{\n\t\t\"type\":       \"AntiCloudflareTask\",\n\t\t\"websiteURL\": \"https://www.yourwebsite.com\",\n\t\t\"proxy\":      \"158.120.100.23:334:user:pass\"\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t\treturn\n\t}\n\tfmt.Println(solution)\n}\n\n```\n## Conclusion\nIn 2024, we can leverage CapSolver as the best Cloudflare solution to deal with Cloudflare's Turnstile and Challenge 5s, two security mechanisms.CapSolver is a leading automated CAPTCHA resolution tool with excellent CAPTCHA resolution capabilities. Through its advanced automation technology and robust infrastructure, CapSolver is able to resolve CAPTCHA accurately and efficiently, making it an ideal choice to address Turnstile and other CAPTCHA challenges in 2024 and beyond.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavapuppteernodejs%2Fcloudflare-solver-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavapuppteernodejs%2Fcloudflare-solver-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavapuppteernodejs%2Fcloudflare-solver-/lists"}