zfcsoftware / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
531 stars 74 forks source link

Problem on turnstile and cf_clearance #89

Closed Hartyshow26 closed 1 month ago

Hartyshow26 commented 1 month ago

Hi,

I have a problem on the site Stake.games to go through CloudFlare challenge. My code is the following :

const { page, browser } = await connect({ turnstile: true, fingerprint: true });

And the browser is just stuck in CloudFlare screen and can't click on the checkbox : image

And some times the challenge is directly passed successfully but if I ask for cookies, I don't have any cf_clearance token... Is this normal ? I have used this solution for weeks without any problem and now for 1 week I can't get any new cf_clearance tokens !

Thanks in advance for your help !

CValeron commented 1 month ago

Same here, After I got last update, I have passed cf for a couple of days and now cannot pass cloudfare

TheFalloutOf76 commented 1 month ago

https://github.com/TheFalloutOf76/CDP-bug-MouseEvent-.screenX-.screenY-patcher

Hartyshow26 commented 1 month ago

Ok that work with your extension @TheFalloutOf76 thank you !

For the cf_clearance token problem, do you have a solution ?

TheFalloutOf76 commented 1 month ago

what is the problem?

Hartyshow26 commented 1 month ago

Well, I can't get any new cf_clearance token even after passing through CloudFlare in the site https://stake.bet/. Passing through CloudFlare doesn't generate any cf_clearance cookie. And if I succeed to get a cf_clearance token in my browser, putting it into cookies part of puppeteer doesn't change anything, it doesn't bypass anything

zfcsoftware commented 1 month ago

This issue has been resolved thanks to @TheFalloutOf76. The library has been updated and tested on a Linux server. There should not be any problems now. If you continue to experience this issue, please open a new one.

https://github.com/TheFalloutOf76/CDP-bug-MouseEvent-.screenX-.screenY-patcher

https://github.com/zfcsoftware/puppeteer-real-browser?tab=readme-ov-file#docker