Member-only story
Periodic Tor IP Rotation in 10 minutes
3 min readJun 20, 2018

The approach
We will set up Tor, create a proxy service to tunnel our requests through tor, and use the STEM
library to rotate the IP periodically.
Downloads
- Proxy Server: http://www.privoxy.org/
- Tor: https://www.torproject.org/download/download-easy.html.en
- Python: https://www.python.org/downloads/
- Pip: https://pip.pypa.io/en/stable/installing/
You probably have python and pip already installed. If you don’t, please follow the instructions in the link.
Both Privoxy and Tor has excellent installation guides for all major OSes, please follow that in the link to set it up correctly.
Configuration
Open privoxy config sudo vi /usr/local/etc/privoxy/config
(The path might be different for Linux/Windows)
Append the following line. Notice the . in the end.
forward-socks5 / 127.0.0.1:9150 .
Restart privoxy
sudo /path/to/Privoxy/stopPrivoxy.sh
sudo /path/to/Privoxy/startPrivoxy.sh