How to anonymize the programs from your terminal (such as wget, curl, etc.)?

  • curl /usr/bin/torify: torsocks not found in your PATH. Perhaps it isn't installed? (tsocks is no longer supported, for security reasons.)
    – user7521
    Commented May 28, 2015 at 16:01

1 Answer 1


Torify is a simple wrapper that attempts to find the best underlying Tor wrapper available on a system. It calls torsocks or tsocks with a tor specific configuration file.

It'll take measures to ensure that an application, which has not been designed for use with Tor (such as TorChat), will use only Tor for internet connectivity. Also ensure that there are no leaks from DNS, UDP or the application protocol.

You should read the documentation at ​Tor Project before attempting to "torify" any applications your self.


Torify should be already installed with your Tor server.

If not, you've to install tor, which is usually found on all the repository so for Debian, Ubuntu and Mint you just have to type:

sudo apt-get install tor

On OSX with Homebrew: brew install tor torsocks

After installation and configuration, and starting the tor server, you can prefix torify before any command.

Example usages:

$ torify curl ifconfig.me
$ torify wget -r --mirror -S http://dppmfxaacucguzpc.onion
$ torify links http://dppmfxaacucguzpc.onion/

Read more:

  • 3
    Yeah, torify is fine with e.g. telnet, netcat. Don't attempt to use torify with something like p2p, e.g. bittorrent, it will either not work, or deanonymise you, or probably both. Commented Aug 26, 2014 at 22:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .