Best Practices for Setting Up a Puppeteer Proxy Server with SOCKS5h Support?

16 Replies, 2088 Views

Hey! For setting up a Puppeteer proxy server SOCKS5h, you definitely need to tweak the launch args.

Try adding `--proxy-server=socks5://your-proxy-ip:port` and `--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE your-proxy-ip"` to avoid DNS leaks.

Also, check out the `puppeteer-page-proxy` npm package—it’s a lifesaver for handling auth and proxy configs.

For cloud vs local, I’d say cloud is smoother since you avoid local network restrictions. Hope this helps!

Messages In This Thread



Users browsing this thread: 1 Guest(s)