ในหลายกรณี reCAPTCHA v3 ขัดขวางการเข้าถึง ทำให้ผู้ใช้หงุดหงิด จำกัดการเข้าถึงข้อมูลที่เปิดอยู่ ทำให้แอปพลิเคชันและไซต์ทดสอบทำได้ยาก ใช้ตัวแก้ปัญหา reCAPTCHA v3 สำหรับการบายพาสอัตโนมัติ
reCAPTCHA v3 สาธิต
หน้านี้อธิบายวิธีการแสดง reCAPTCHA v3 และวิธีการทำงานของการยืนยัน reCAPTCHA v3 reCAPTCHA v3 เป็นแคปต์ชาประเภทใหม่ล่าสุดจาก Google ซึ่งไม่มีความท้าทายดังนั้นจึงไม่จำเป็นต้องมีการโต้ตอบกับผู้ใช้ แต่จะให้คะแนน "ความเป็นมนุษย์" แทน - คะแนน
How to solve reCAPTCHA v3
Explore the source code of the website and search for
grecaptcha.executecall. The call can be anywhere in the website code, inside<script>elements of the page of inside the included javascript files. For example, on our demo page source code you will find:window.grecaptcha.ready(function() { grecaptcha.execute( '6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', {action: 'demo_action'}, ).then(function(token) { if (window.verifyRecaptcha) { window.verifyRecaptcha(token); } }); });
There you can find all the required values to solve the captcha with our API. And also you can see .then() method call - that's the code that handles the token after it was generated. You need to call the same code and pass the token received from our API.
Send
sitekey,pageurlandactionvalues to our API.With SDK (recommended):
PHP
// https://github.com/2captcha/2captcha-php require(__DIR__ . '/../src/autoloader.php'); $solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY'); try { $result = $solver->recaptcha([ 'sitekey' => '6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', 'url' => 'https://2captcha.com/demo/recaptcha-v3', 'version' => 'v3', 'action' => 'demo_action', 'score' => 0.9, ]); } catch (\Exception $e) { die($e->getMessage()); } die('Captcha solved: ' . $result->code);Python
# https://github.com/2captcha/2captcha-python import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from twocaptcha import TwoCaptcha api_key = os.getenv('APIKEY_2CAPTCHA', 'YOUR_API_KEY') solver = TwoCaptcha(api_key) try: result = solver.recaptcha( sitekey='6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', url='https://2captcha.com/demo/recaptcha-v3', version='v3', action='demo_action', score=0.9 ) except Exception as e: sys.exit(e) else: sys.exit('solved: ' + str(result))