cloudflare-scrape icon indicating copy to clipboard operation
cloudflare-scrape copied to clipboard

New CF technique: cvId 2, non-interactive

Open AltayAkkus opened this issue 2 years ago • 4 comments
trafficstars

So a lot of issues have been stacking up for the challenge type, and I have looked into it: https://gist.github.com/AltayAkkus/591dbef9872c9148d6effb06bcc5417b The html returned has a huge array that stores user-specific options, the website, the time started, a random nonce, how long the delay should be etc.

This is deposited into window._cf_chl_opt and read by the javascript that is imported via the cpo element. Looking at it, it is randomly generating, reads the clouflare challenge options, and generates a hash which is appended to the URI. The js changes for different rayIds, so yeah well fuck.

AltayAkkus avatar Aug 02 '23 23:08 AltayAkkus

Hi, I was looking at your repo because I have the same problem as you are mentionning here. I havn't been able to find any solution to resolve this challenge yet. Were you able to work on it ? Do you think that cfscrape could be adapted to bypass this challenge ?

PaulinBenoit avatar Dec 21 '23 20:12 PaulinBenoit

if you add a whole javascript environment which simulates your browser and passes the checks, yes.

AltayAkkus avatar Jan 23 '24 08:01 AltayAkkus

@AltayAkkus And if you exceed some rate limit and trigger captcha then you will need to use a captcha solver service (which is usually paid)

lord8266 avatar Jan 24 '24 13:01 lord8266

yea they have essentially won.

AltayAkkus avatar Jan 24 '24 23:01 AltayAkkus

closing because they won

AltayAkkus avatar Jun 10 '24 14:06 AltayAkkus