2

How to open a website protected by Cloudflare? such as https://coinlist.co,

I just want to open https://coinlist.co using Chromepd with headless = true flag, but Chrome prompts that "Chrome is being controlled by automated test software", and the chrome page blocks at the Cloudflare page. It seems like Cloudflare can detect the Chromedp.

Allen ZHU
  • 690
  • 5
  • 14

1 Answers1

2

You can try using the github.com/go-rod/stealth package based on the puppeteer stealth plugin like below:


import (
    "github.com/chromedp/chromedp"
    "github.com/go-rod/stealth"
)

chromedp.Run(
    ctx,
    chromedp.Evaluate(stealth.JS, nil),
)

If that doesn't work then you may need to use a captcha solver like 2captcha.

Shreyas Sreenivas
  • 331
  • 1
  • 5
  • 12