Today, I will demonstrate how one can use the
tor program as a system-wide proxy on macOS and thereby avoid censorship and gain anonymity.
Step 1: Install tor
You can do this from your Terminal, simply by running
brew install tor
Step 2: Add the custom script to your
You can find the script at my github repo. Copy the 2 functions, and paste it into .bash_profile at the very end.
And that's pretty much it. Surf the web anonymously now, and when you're done, go back to the terminal and hit Ctrl+C and it will cancel the tor relay.
Caveat: In case, the tor relay fails to cancel for some reason, the proxy will still be using the tor port and therefore the entire web will be unavailable. Simply run
stoptor if this happens and it will clear up the proxy back to it's default setting i.e. no proxy.
For those who prefer a video version of the same, check this out: