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

How to avoid CloudFlare Capcha? #25

Open
byteshiva opened this issue Jun 9, 2022 · 2 comments
Open

How to avoid CloudFlare Capcha? #25

byteshiva opened this issue Jun 9, 2022 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@byteshiva
Copy link

For example, I tried open a site behind Cloudflare, and it threw the below error. How can I avoid Cloudflare captcha errors? or How could I install privacypass chrome extension provided by Cloudflare

{
    "text": "RETURN DOCUMENT(@url, {driver: 'cdp'})",
    "params": {
        "url": "https://some.site.behind.cloudflare/"
      }
}
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n
\n
Please enable cookies.
\n
\n
\n \n
One more step

\n \n \n
Another way to prevent getting this page in the future is to use Privacy Pass. You may need to download version 2.0 now from the [Chrome Web Store](https://github.com/%22https://chrome.google.com/webstore/detail/privacy-pass/ajhmfdgkijocedmfjonnpjfojldioehi/%22).

\n
\n\n\n
\n
\"\"\n\n \n\n\n\n\n"
@ziflex
Copy link
Member

ziflex commented Nov 16, 2022

Try to use a different agent name.

For example:

{ driver: "cdp", userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome 76.0.3809.87 Safari/537.36"}

@ziflex
Copy link
Member

ziflex commented Nov 16, 2022

Also, you may try to not use headless mode in Chrome. But at this moment, you will need to implement it yourself because the official Ferret Chromium Docker image does not support it.

@ziflex ziflex added help wanted Extra attention is needed question Further information is requested labels Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants