Linux has a thing called proxychains, how would I make my own in Python? Works by jumping to different proxies, making it hard to track
Think about how these things work. Let's say you want to connect to a server with a domain name of www.xyz.co.uk (just an example). You would first send a GET request to the server with some headers and a bit of data to tell you who you are. The server then returns the data as per the request to the computer that sent it. A proxychain just does that, but with some middleman steps.
You might be able to keep some kind of DB to keep track of valid IPs that have your proxychain program. If you do, you'd access this DB in your program, then map out a set of IPs to pass through with your request. Once you find a path, encrypt your data some amount of times, then pass the encrypted data to the first middleman system. They will then un-encrypt the data a single time, then pass that to the next. Rinse and repeat until the request reaches the last middleman. That last one will actually call the request to the website, then pass the contents back down the line until it reaches your machine.
LTT video here