Search code examples
delphihttpindytor

Using Indy with Tor


I am building an application in witch privacy is essential. I need to send a HTTP Post request to a server .

How can I route the request trough Tor ( https://www.torproject.org/ ) ?


Solution

  • From the FAQ - https://www.torproject.org/docs/faq.html.en#CompatibleApplications

    There are two pieces to "Torifying" a program: connection-level anonymity and application-level anonymity.

    Connection-level anonymity focuses on making sure the application's Internet connections get sent through Tor. This step is normally done by configuring the program to use your Tor client as a "socks" proxy, (...)

    Information on "How do I use a TIdTCPClient with a SOCKS Proxy?" can be found at

    http://www.indyproject.org/KB/index.html?howdoiuseaproxywithindy.htm

    (iirc IdHTTP is based on TIdTCPClient)