Issues with router_get_by_nickname() (3)
[tor/rransom.git] / contrib / proxy-some-domains
blobeb238a2feb0f5118d28eec95629c492ee8a115ad
1 Subject:
2 Re: Anonymous/Nonymous Communication Coexisting?
3 From:
4 Kristian Köhntopp <kris@xn--khntopp-90a.de>
5 Date:
6 Fri, 10 Jun 2005 08:56:19 +0200
7 To:
8 or-talk@freehaven.net
10 On Wednesday 08 June 2005 04:20, yancm@sdf.lonestar.org wrote:
12 >> Is it possible to have a single application, such as a web
13 >> browser or a p2p client behave normally with normal url's but
14 >> use tor if the url is an xyz.onion address? Or is it
15 >> everything or nothing?
18 This is basically a question of using your proxy or not. You can 
19 control the behaviour of your browser in great detail writing a 
20 proxy.pac program in Javascript and setting that program as the 
21 proxy autoconfiguration URL in your browser.
23 An example:
25 kris@jordan01:~> cat /srv/www/htdocs/proxy.pac
27 function FindProxyForURL(url, host)
29         var proxy_yes = "PROXY jordan01.int.cinetic.de:3128";
30         var proxy_no  = "DIRECT";
32         // Redirect all accesses to mlan hosts to the mlan proxy
33         if (dnsDomainIs(host, ".mlan.cinetic.de")) {
34                 return proxy_yes;
35         }
37         // Everything else is direct
38         return proxy_no;
41 So here the program checks if the destination is a mlan-Host, and 
42 if so, uses the appropriate proxy on jordan for the access, 
43 while all other accesses are direct.
45 You could do a similar thing with .onion accesses with a trivial 
46 modification.
48 Docs:
49 http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
51 Kristian