Search code examples
c#proxyincludetor

Include Vidalia/Tor into another Program


I want to make a small webbrowser for anonymous and secure webbrowsing and I want to use Vidalia/Tor for the anonymity, it shall use the Tor proxy 127.0.0.1:8118 by standart. Now I want to make this simple so a user doesn't have to run vidalia when he wants to use this webbrowser. Is there a way to make vidalia automatically run in the background when someone starts my browser? I'm running on Windows 7 64 bit and use VS2012


Solution

  • You don't need to use Vidalia, because it's purpose is just to control/monitor tor. You can have your program perform this function instead. You want to get the "expert bundle", which is just tor itself with no supporting programs. The tor license allows you to redistribute it with your program.

    Put some code in your browser that checks for port 8118 being open. If it's not, it should try to launch tor, then wait for port 8118 to open. You probably also want it to kill the tor process when it exits.