codemanki / cloudscraper

--DEPRECATED -- 🛑 🛑 Node.js library to bypass cloudflare's anti-ddos page
MIT License
602 stars 139 forks source link

hCaptcha #339

Open Tobbe opened 4 years ago

Tobbe commented 4 years ago

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.

SwenenzY commented 4 years ago

Working or have you found a solution?

Tobbe commented 4 years ago

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 :)

narra-dev commented 4 years ago

I use both lines too