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.