I wrote a bot in nodejs that makes a request and gets a json as a response. It started as a webscraper using puppeteer but later I realized I could just make a fetch request and get the data that I needed, besides chrome uses too many resources and could only get 4 instances running at the same time in this old pc that I’m using as a server.
I was using surfshark as a VPN and I had the script containerized with docker, so each container would connect to a different vpn, make 10 requests and then connect to a different server. The response has an Age header that resets every 30 seconds so the script waits accordingly in order to get a fresh response each time before connecting to a different server.
The thing is surfshark blocked my account because they don’t allow webscraping. I was kind of greedy I guess because I had 24 containers running, each one connected to a different location and rotating all day between servers.
I thought about using proxies but most of the companies block the domain that I’m fetching the data from, so I’m going to try with another vpn.
I’m using Cyberghost since they allow to download the openvpn config files and that way I can connect to a vpn programmatically, but I don’t want to have my account blocked so I need a way to somehow mimmic an actual person using the vpn.
Does anyone knows how I could try and fake traffic to make it look like it isn’t a bot using the vpn ?
Any advice on how to not get blocked by the vpn is greatly appreciated .