worker
worker copied to clipboard
How to avoid CloudFlare Capcha?
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"
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"}
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.