cloudscraper icon indicating copy to clipboard operation
cloudscraper copied to clipboard

hCaptcha

Open Tobbe opened this issue 5 years ago • 3 comments

Not really a bug report, but I noticed that cloudflare switched to using hCaptcha instead of reCaptcha. Only update I had to do to my script was to set both g-recaptcha-response and h-captcha-response form fields.

    captcha.form['g-recaptcha-response'] = token;
    captcha.form['h-captcha-response'] = token;

I'm not sure if you actually do have to set both, or if h-captcha-response is enough, but they do have both fields in their form and just g-recaptcha-response is not enough.

Tobbe avatar Mar 30 '20 05:03 Tobbe

Working or have you found a solution?

SwenenzY avatar Apr 13 '20 23:04 SwenenzY

It's working fine. But if this is a change that they've made across the board I think some of the examples here needs to be updated :)

Tobbe avatar Apr 14 '20 06:04 Tobbe

I use both lines too

narra-dev avatar Apr 15 '20 17:04 narra-dev