Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bypass cloudflare browser check #61

Open
gemini0x2 opened this issue Nov 10, 2023 · 2 comments
Open

bypass cloudflare browser check #61

gemini0x2 opened this issue Nov 10, 2023 · 2 comments

Comments

@gemini0x2
Copy link

How can bypass the cloudflare browser check:

"Checking if the site connection is secure
site.com needs to review the security of your connection before proceeding."

I know that chromedriver should be able to byapass this check, but I'm not sure what args to use.
I have tried the following, but no luck:

  • "block-scripts": false,
    (Nothing happens with this")

  • "user-agent": "webdriver-chromium",
    (when I use this arg I get.. Error 1010 Ray ID: 82401f3f790b19aa • 2023-11-10 17:47:41 UTC
    Access denied
    What happened? The owner of this website (site.com) has banned your access based on your browser's signature (82401f3f790b19aa-ua60).)

I think the solution is in "browser-args", I tried changing the user agent to --user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3 and it worked, but then it crashes after crawling a few pages.

Is there a way to launch single-file with undetected-chromedriver

@in-plaintext
Copy link

example website and a command (Linux):

$ docker run singlefile 'https://www.phind.com/' > /tmp/phind.html

I don't know how to resolve the issue.

www.phind.com

Checking if the site connection is secure

www.phind.com needs to review the security of your connection before proceeding.
Enable JavaScript and cookies to continue

@gemini0x2 Blocking scripts certainly won't help with the access since the Cloudflare's check explicitly requires Javascript.

@Klar
Copy link

Klar commented Jul 22, 2024

anyone got a solution for this?

/edit

I found a solution:

using the chrome extension: https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc to get my cookies.

and the cli parameter for cookie generated file: --browser-cookies-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants