Cloudflare Turnstile कैसे हल करें
ऊपर का box एक live है Cloudflare Turnstile challenge। यह page Cloudflare Turnstile हल करके एक valid पाने के तीन आसान तरीके दिखाता है cf-turnstile-response token: CapSkip browser extension के साथ अपने आप, CapSkip SDK के साथ अपने कोड में, या आपके tools पहले से जिस captcha सेवा को कॉल करते हैं उसे CapSkip की ओर रूट करके। CapSkip एक तेज़, असीमित Cloudflare Turnstile सॉल्वर है जो आपके डिवाइस पर लोकल रूप से चलता है, इसलिए कोई प्रति-हल शुल्क नहीं है और आपकी मशीन से कुछ भी बाहर नहीं जाता।
विकल्प 1: ब्राउज़र एक्सटेंशन के साथ Cloudflare Turnstile हल करें
Cloudflare Turnstile बायपास करने का सबसे सरल तरीका है CapSkip कैप्चा सॉल्वर extension Chrome और Firefox के लिए। यह किसी भी पेज पर Turnstile widget को पहचानता है और उसे background में अपने आप हल कर देता है, कोई code लिखने और कोई token कॉपी करने की ज़रूरत नहीं।
extension इंस्टॉल करें
CapSkip को Chrome Web Store या Firefox Add-ons से जोड़ें। यह Brave, Edge, Opera और Vivaldi में भी काम करता है।
CapSkip ऐप चलाएँ
CapSkip desktop app इंस्टॉल करें और खोलें। यह हल आपके अपने डिवाइस पर करता है और extension के साथ जुड़ता है।
यह अपने आप हल कर देता है
इस पेज को रीलोड करें और CapSkip आपके लिए Turnstile क्लियर कर देता है। नियंत्रण में रहना पसंद करते हैं? कभी भी manual mode पर स्विच करें।
विकल्प 2: CapSkip SDK के साथ Cloudflare Turnstile हल करें
ऑटोमेशन, कोई स्क्रैपर या कोई बॉट बना रहे हैं? इस्तेमाल करें CapSkip captcha हल करने वाला SDK Cloudflare Turnstile हल करने के लिए Python, Node.js, PHP या C#। आप इस पेज की site key और URL पास करते हैं, और CapSkip एक ताज़ा Turnstile token लौटा देता है जिसे आप असली की तरह सबमिट कर सकते हैं।
0x4AAAAAADogn3t3_JKwKkgS
https://capskip.com/hi/captcha-demo/cloudflare-turnstile/
शुरू करने से पहले
CapSkip लोकल रूप से हल करता है। इसे डाउनलोड करके चलाएँ CapSkip desktop app और इसे बैकग्राउंड में खुला रखें। SDK इससे इस पर बात करता है 127.0.0.1:8080, इसलिए कोई cloud कॉल नहीं और कोई प्रति-हल शुल्क नहीं।
SDK इंस्टॉल करें
अपने प्रोजेक्ट में आधिकारिक CapSkip client जोड़ें।
pip install capskipnpm install capskipcomposer require capskip/capskipdotnet add package CapSkipTurnstile हल करें और एक token पाएँ
इस पेज की पास करें sitekey और url को turnstile()। CapSkip एक नया लौटाता है cf-turnstile-response token.
from capskip import CapSkip
# Connect to the CapSkip app running on your machine
solver = CapSkip(host="127.0.0.1", port=8080)
# Solve the Turnstile shown on this page
result = solver.turnstile(
sitekey="0x4AAAAAADogn3t3_JKwKkgS",
url="https://capskip.com/hi/captcha-demo/cloudflare-turnstile/",
)
token = result["code"] # the cf-turnstile-response token
print(token)const { CapSkip } = require('capskip');
// Connect to the CapSkip app running on your machine
const solver = new CapSkip({ host: '127.0.0.1', port: 8080 });
(async () => {
// Solve the Turnstile shown on this page
const result = await solver.turnstile(
'0x4AAAAAADogn3t3_JKwKkgS',
'https://capskip.com/hi/captcha-demo/cloudflare-turnstile/',
);
const token = result.code; // the cf-turnstile-response token
console.log(token);
})();<?php
require 'vendor/autoload.php';
use CapSkip\CapSkip;
// Connect to the CapSkip app running on your machine
$solver = new CapSkip(['host' => '127.0.0.1', 'port' => 8080]);
// Solve the Turnstile shown on this page
$result = $solver->turnstile(
'0x4AAAAAADogn3t3_JKwKkgS',
'https://capskip.com/hi/captcha-demo/cloudflare-turnstile/'
);
$token = $result['code']; // the cf-turnstile-response token
echo $token;using CapSkip;
// Connect to the CapSkip app running on your machine
var solver = new CapSkipClient(host: "127.0.0.1", port: 8080);
// Solve the Turnstile shown on this page
var result = await solver.TurnstileAsync(
"0x4AAAAAADogn3t3_JKwKkgS",
"https://capskip.com/hi/captcha-demo/cloudflare-turnstile/");
string token = result.Code; // the cf-turnstile-response token
Console.WriteLine(token);आपको एक लंबा token मिलता है जो से शुरू होता है 1. और इस site key के लिए वैध है, सबमिट करने के लिए तैयार।
token का उपयोग करें
token को widget के hidden में डालें cf-turnstile-response field। कुछ pages इसे यहां से भी पढ़ते हैं g-recaptcha-response। अगर इसमें एक callback परिभाषित किया गया था turnstile.render() config, इसे token के साथ चलाएँ। फिर form सबमिट करें, और आपका server इसे Cloudflare siteverify के साथ verify करता है। ध्यान दें कि the जाँचें इस पेज पर बटन टोकन को सीधे विजेट से पढ़ता है turnstile.getResponse(), इसलिए यह किसी ऐसे token के बजाय जो आप field में रखते हैं, widget के अपने token को वेरिफ़ाई करता है।
// 1. Drop the solved token into the Turnstile response field
document.querySelector('[name="cf-turnstile-response"]').value = token;
// Some implementations also read it from g-recaptcha-response:
// document.querySelector('[name="g-recaptcha-response"]').value = token;
// 2. If a callback was defined in turnstile.render(), run it with the token
if (window.tsCallback) window.tsCallback(token);
// 3. ...then submit your form.Cloudflare Challenge Page पर Turnstile
कुछ sites पूरी तरह Cloudflare के पीछे बैठती हैं और content लोड होने से पहले एक Turnstile challenge page दिखाती हैं। यहां भी आपको तीन वैल्यू चाहिए turnstile.render(): cData, chlPageData और action. फिर आप token को ठीक इसी के साथ सबमिट करते हैं the User-Agent जो CapSkip लौटाता है।
1. पैरामीटर इंटरसेप्ट करें (इसे Turnstile लोड होने से पहले inject करें)
// Override turnstile.render to capture the challenge parameters
const i = setInterval(() => {
if (window.turnstile) {
clearInterval(i);
window.turnstile.render = (container, params) => {
window.tsParams = {
sitekey: params.sitekey,
pageurl: window.location.href,
data: params.cData,
pagedata: params.chlPageData,
action: params.action,
};
window.tsCallback = params.callback; // call this with the solved token
console.log(JSON.stringify(window.tsParams));
return 'foo';
};
}
}, 50);2. कैप्चर की गई values के साथ हल करें, फिर लौटाए गए User-Agent को पुनः उपयोग करें
result = solver.turnstile(
sitekey="0x4AAAA...", # params.sitekey
url="https://the-protected-site.com/",
data="init_data...", # params.cData
pagedata="chl_page_data...", # params.chlPageData
)
token = result["code"]
user_agent = result["userAgent"] # submit the token with this exact User-Agentconst result = await solver.turnstile(
'0x4AAAA...', // params.sitekey
'https://the-protected-site.com/',
{ data: 'init_data...', pagedata: 'chl_page_data...' },
);
const token = result.code;
const userAgent = result.userAgent; // submit the token with this exact User-Agent$result = $solver->turnstile(
'0x4AAAA...', // params.sitekey
'https://the-protected-site.com/',
['data' => 'init_data...', 'pagedata' => 'chl_page_data...']
);
$token = $result['code'];
$userAgent = $result['userAgent']; // submit the token with this exact User-Agentvar result = await solver.TurnstileAsync(
"0x4AAAA...", // params.sitekey
"https://the-protected-site.com/",
new Dictionary<string, object?> { ["data"] = "init_data...", ["pagedata"] = "chl_page_data..." });
string token = result.Code;
string userAgent = result.UserAgent; // submit the token with this exact User-Agentraw HTTP API एक वैकल्पिक भी स्वीकार करता है action value और एक proxy, जो तब मदद करता है जब साइट जाँचती है कि token आपके अपने IP से बना है।
Python, Node.js, PHP या C# इस्तेमाल नहीं कर रहे? SDKs बस CapSkip HTTP API के ऊपर wrappers हैं (मानक in.php / res.php एंडपॉइंट्स), ताकि आप Cloudflare Turnstile को इससे हल कर सकें कोई भी भाषा, framework या tool। देखें Turnstile API संदर्भ.
विकल्प 3: अपना मौजूदा solver-service कोड CapSkip को भेजें
पहले से किसी pay-per-captcha service के ज़रिए Cloudflare Turnstile हल कर रहे हैं जैसे 2Captcha, Anti-Captcha या CapMonster? आपको एक भी पंक्ति फिर से लिखने की ज़रूरत नहीं है। CapSkip ऐप में शामिल है एक सर्विस एमुलेटर जो उन services' के अपने APIs को लोकल रूप से बोलता है: जो service आप इस्तेमाल करते हैं उसे चुनें, क्लिक करें hosts फ़ाइल में जोड़ें, और आपका बॉट, स्क्रैपर या तैयार tool उसे जो भी request पहले से भेजता है उसका जवाब CapSkip आपकी अपनी मशीन पर देता है, प्रति-हल बिल के बजाय एक फिक्स्ड कीमत पर।
अपनी service चुनें
CapSkip app खोलें और वह service चुनें जिससे आपका code पहले से बात करता है: 2Captcha, RuCaptcha, Anti-Captcha, CapMonster Cloud, CapSolver, DeathByCaptcha, SolveCaptcha या Captchas.io।
hosts फ़ाइल में जोड़ें
app में एक क्लिक उस service's के domain को CapSkip पर पॉइंट कर देता है, इसलिए आपके टूल द्वारा की गई कॉल्स किसी पेड API पर बाहर जाने के बजाय आपकी अपनी मशीन पर उत्तरित होती हैं।
अपना tool बिना बदले चलाएं
वही API key, वही request, वही polling loop। CapSkip उस service's के अपने format में जवाब देता है और आपके कोड को एक वैध cf-turnstile-response token वापस मिलता है।
स्विच करने पर नीचे कुछ भी नहीं बदलता। यह वही कॉल है जो आपका कोड आज करता है, सिवाय इसके कि अब Cloudflare Turnstile लोकल रूप से हल होता है और एक वैध cf-turnstile-response टोकन CapSkip से वापस आता है:
POST https://2captcha.com/in.php
key=YOUR_EXISTING_API_KEY
method=turnstile
sitekey=0x4AAAAAADogn3t3_JKwKkgS
pageurl=https://capskip.com/hi/captcha-demo/cloudflare-turnstile/
GET https://2captcha.com/res.php?key=YOUR_EXISTING_API_KEY&action=get&id=2122988149
OK|0.sBQmB… the cf-turnstile-response token, solved by CapSkipक्लाइंट लाइब्रेरीज़ उसी तरह काम करती हैं: एक Anti-Captcha शैली createTask / getTaskResult pair, या इन सेवाओं में से किसी एक पर बना कोई भी wrapper, emulator चालू होने के बाद काम करता रहता है। पूरा request और response reference मौजूद है the CapSkip API दस्तावेज़.
Cloudflare Turnstile हल करने पर और
उन tools और भाषाओं के लिए guides जिन्हें लोग आमतौर पर इस demo के साथ जोड़ते हैं।
इस Cloudflare Turnstile demo के बारे में
यह पेज एक लाइव है Cloudflare Turnstile demo जहाँ आप टेस्ट कर सकते हैं कि Cloudflare Turnstile कैसे काम करता है और उसे रियल टाइम में हल होते देख सकते हैं। Turnstile Cloudflare का आधुनिक कैप्चा और reCAPTCHA विकल्प है जो visitors को browser और व्यवहारिक संकेतों से सत्यापित करता है, अक्सर क्लिक करने के लिए कोई पहेली नहीं होती। इसका इस्तेमाल Turnstile token जनरेशन, को एक्सप्लोर करने के लिए करें cf-turnstile-response value, और वह verification flow जिस पर वेबसाइटें forms, logins और signups को spam, दुरुपयोग और बॉट से बचाने के लिए निर्भर करती हैं।
डेवलपर, टेस्टर और ऑटोमेशन इंजीनियर इस Cloudflare Turnstile टेस्ट पेज का इस्तेमाल इंटीग्रेशन जाँचने, सेटअप वैलिडेट करने और यह बेंचमार्क करने के लिए कर सकते हैं कि CapSkip Turnstile को कितनी तेज़ी से हल करता है। चाहे आपको Cloudflare Turnstile एक बार हल करना हो या हज़ारों हल ऑटोमेट करने हों, CapSkip एक Cloudflare Turnstile सॉल्वर जो तीन तरीकों से काम करता है: no-code कैप्चा सॉल्वर एक्सटेंशन Chrome और Firefox के लिए, और कैप्चा हल SDK Python, Node.js, PHP और C# के लिए, और उन captcha services की drop-in emulation जिनके लिए आप आज शायद प्रति हल भुगतान कर रहे हैं, सब कुछ एक फिक्स्ड कीमत पर असीमित हल के साथ। तीनों एक ही desktop AI से संचालित होते हैं कैप्चा सॉल्वर, एक बार इंस्टॉल किया गया और आपकी अपनी मशीन पर चल रहा, इसलिए किसी remote server पर कुछ भी queue नहीं होता और प्रति-हल कुछ भी बिल नहीं होता।
