Home > Enterprise >  puppeteer works locally but results in cloudflare protection when running from aws ec2 ubuntu server
puppeteer works locally but results in cloudflare protection when running from aws ec2 ubuntu server

Time:04-16

I have a script written in nodejs using puppeteer and its working fine locally in headless mode. However, once I deploy it on my aws ec2 (ubuntu server), it stopped working. After a couple of tries I logged out the "page.content()" and figured out there was a cloudflare protection showing. How can I bypass that and why its not detected puppeteer when I run the script locally?

CodePudding user response:

Because cloudflare blocks datacenter traffic. You could use a residential proxy I suppose.

  • Related