How does it work now?
Can I bypass hCaptcha on Cloudflare-protected page with 2Captcha API?
Yes, you can. Our 2Captcha Solver extension for Google Chrome does this automatically. You can try to use it to make sure it works in your case.
Is there an easy way to bypass hCaptcha on Cloudflare-protected page?
Just get the extension and enable it, then open a webpage where you want to bypass hCaptcha challenge and search for
captcha-widget element. Inspect this element, it will have some attributes including
Can 2Captcha do all this complex things for me?
Unfortunately no, we can not do all these actions on our side. We can solve the captcha and provide you a valid token, the rest of the job must be done on your side.
What is the recommended approach?
hcaptcha.render(container, params) method.
Store the original render function inside a variable, then use your own function that will catch both arguments
params and return the original render method.
Parse the arguments inside your function to get the callback definition from
params. Then call the callback found passing the token as the only argument.
Another approach is to completely deobfuscate the callback code to understand what data the code consume and use to generate the data used in the request to