

Trình giải Cloudflare Challenge tốt nhất
Trình giải Cloudflare Challenge
Cloudflare Challenge là gì?
Cloudflare Challenge là một cơ chế chống bot sử dụng các thử thách JavaScript, dấu vân tay trình duyệt và CAPTCHA như một phương án dự phòng để phát hiện và chặn lưu lượng truy cập tự động hoặc đáng ngờ.
Thông tin thêm về trình giải Cloudflare ChallengeBản demo Cloudflare Turnstile
www.demo.com
Verifying you are human by completing the action below.
www.demo.com needs to review the security of your connection before proceeding.
Cách giải Cloudflare Challenge - Hướng dẫn API
Dịch vụ giải CAPTCHA tự động của CapSolver có thể giúp bạn giải quyết Cloudflare Challenge dễ dàng. Dịch vụ của chúng tôi có sẵn thông qua CapSolver API. Vui lòng đăng ký trên CapSolver để sử dụng dịch vụ CAPTCHA.
Step 1 : Creating a Task
Create the task with the createTask.
In the process of using challenge, we must input websiteURL and websiteKey, other parameters are optional.
Task Object Structure
| Properties | Type | Required | Description |
|---|---|---|---|
| type | String | Required | AntiCloudflareTask |
| websiteURL | String | Required | The address of the target page. |
| proxy | String | Required | Your Static proxy or Sticky proxy. Learn Using proxies |
| userAgent | String | Optional | The user-agent you used to request the target website. Only Chrome's userAgent is supported. |
| html | String | Optional | The response of requesting the target website, it usually contains "Just a moment..." and status code is 403. we need this html for some websites, please be sure to use your sticky proxy to dynamically scrape the HTML every time. |
Example Request
txt
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
json lines
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AntiCloudflareTask",
"websiteURL": "https://www.yourwebsite.com",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
"html": "<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title>...",
"proxy": "ip:port:user:pass"
}
}
Example Response
json lines
{
"errorId": 0,
"status": "idle",
"taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca"
}
Step 2 : Getting Results
Use the getTaskResult method to get the recognition results
Depending on the system load, you will get the results within the interval of 1s to 20s
Example Request
txt
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
json lines
{
"clientKey": "YOUR_API_KEY",
"taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca"
}
Example Response
json lines
{
"errorId": 0,
"taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca",
"status": "ready",
"errorCode": "",
"errorDescription": "",
"solution": {
"cookies": {
"cf_clearance": "Bcg6jNLzTVaa3IsFhtDI.e4_LX8p7q7zFYHF7wiHPo...uya1bbdfwBEi3tNNQpc"
},
"token": "Bcg6jNLzTVaa3IsFhtDI.e4_LX8p7q7zFYHF7wiHPo...uya1bbdfwBEi3tNNQpc",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
}
}
Giải quyết Cloudflare Challenge với CapSolver SDK
Hỗ trợ các loại CAPTCHA phổ biến
Giải quyết CAPTCHA dễ dàng với CapSolver
Chúng tôi nỗ lực làm cho việc tích hợp các sản phẩm của mình vào cơ sở hạ tầng của bạn trở nên dễ dàng nhất có thể. Với hỗ trợ đa ngôn ngữ và các ví dụ mã có sẵn, chúng tôi đảm bảo khởi đầu nhanh chóng cho các dự án web của bạn.


Các dịch vụ giải CAPTCHA phổ biến mà chúng tôi hỗ trợ

reCAPTCHA v2 / v3
Cloudflare Challenge
AWS WAF
Hình ảnh sang Văn bản
Cloudflare Turnstile
Thêm nhiều loại
Đảm bảo tuân thủ các quy địnhDành cho tất cả người dùng

Chúng tôi ủng hộ việc sử dụng công nghệ một cách đạo đức để thúc đẩy phúc lợi con người và kiên quyết phản đối các hành vi bất hợp pháp hoặc lạm dụng giải pháp của chúng tôi. Chúng tôi lên án nghiêm khắc việc thu thập dữ liệu nhạy cảm trái phép, đồng thời ủng hộ việc tổng hợp dữ liệu công khai có trách nhiệm. Nếu bạn phát hiện lạm dụng nền tảng, vui lòng báo cáo. Để củng cố niềm tin, chúng tôi đã ra mắt trung tâm quyền riêng tư chuyên biệt cung cấp công cụ và kiến thức về quyền dữ liệu.