Penyelesai Cloudflare Challenge Terbaik

Penyelesai Cloudflare Challenge

Apa itu Cloudflare Challenge?

Cloudflare Challenge adalah mekanisme anti-bot yang menggunakan tantangan JavaScript, sidik jari browser, dan CAPTCHA sebagai cadangan untuk mendeteksi dan memblokir lalu lintas otomatis atau mencurigakan.

Lebih lanjut tentang penyelesai Cloudflare Challenge

Cara Menyelesaikan Cloudflare Challenge - Panduan API

Layanan CapSolver membantu Anda menyelesaikan Cloudflare Challenge dengan mudah. Tersedia melalui API CapSolver. Silakan daftar di CapSolver untuk menggunakan.

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 Copy
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
json lines Copy
{
  "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 Copy
{
  "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 Copy
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
json lines Copy
{
  "clientKey": "YOUR_API_KEY",
  "taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca"
}

Example Response

json lines Copy
{
  "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"
  }
}

Selesaikan Cloudflare Challenge dengan SDK CapSolver

Mendukung CAPTCHA Populer

Selesaikan CAPTCHA dengan Mudah Menggunakan CapSolver

Kami berusaha membuat integrasi produk kami semudah mungkin. Dengan dukungan multibahasa dan contoh siap pakai, kami memastikan awal yang cepat.

Dokumentasi Pengembang

Uji Coba Gratis

Kenali berbagai jenis CAPTCHA

reCAPTCHA v2 / v3
Cloudflare Challenge
AWS WAF
Gambar ke Teks
Cloudflare Turnstile
Jenis Lainnya

Memastikan Kepatuhan terhadap PeraturanUntuk Semua Pengguna

Compliance badges including CCPA, GDPR, and ISO

Kami mendukung penggunaan teknologi secara etis dan menentang praktik ilegal. Kami mendukung agregasi data publik secara bertanggung jawab. Jika Anda menemukan penyalahgunaan, silakan laporkan. Kami telah meluncurkan pusat privasi dengan alat dan wawasan tentang hak data.