JimmyLaurent / cloudflare-scraper

A package to bypass Cloudflare's protection
MIT License
286 stars 30 forks source link

About the solution to fix this package through js challenge #44

Closed DreamOfIce closed 1 year ago

DreamOfIce commented 1 year ago

Recently, I am also doing related research and found that this package only needs to modify the conditions of the detection part of the js challenge slightly to pass the js challenge normally: In src/utils.js

  function isCloudflareJSChallenge(body) {
-   return body.includes('managed_checking_msg');
+   return body.includes('/cdn-cgi/images/trace/jsch');
  }