diff options
author | Chris Palmer <c@seul.org> | 2005-06-10 19:36:24 +0000 |
---|---|---|
committer | Chris Palmer <c@seul.org> | 2005-06-10 19:36:24 +0000 |
commit | 0033aa3af1017de26c0d5e0ac299f38ba3c316b3 (patch) | |
tree | 56522db7c95ca2239349397494d78633a60f940e /contrib | |
parent | a3e5aa2d84536093831a715928843e5bdbac894b (diff) | |
download | tor-0033aa3af1017de26c0d5e0ac299f38ba3c316b3.tar tor-0033aa3af1017de26c0d5e0ac299f38ba3c316b3.tar.gz |
Helpful or-talk post for people wanting to use Tor only with some
domains.
svn:r4400
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/proxy-some-domains | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/contrib/proxy-some-domains b/contrib/proxy-some-domains new file mode 100644 index 000000000..eb238a2fe --- /dev/null +++ b/contrib/proxy-some-domains @@ -0,0 +1,52 @@ +Subject: +Re: Anonymous/Nonymous Communication Coexisting? +From: +Kristian Köhntopp <kris@xn--khntopp-90a.de> +Date: +Fri, 10 Jun 2005 08:56:19 +0200 +To: +or-talk@freehaven.net + +On Wednesday 08 June 2005 04:20, yancm@sdf.lonestar.org wrote: + +>> Is it possible to have a single application, such as a web +>> browser or a p2p client behave normally with normal url's but +>> use tor if the url is an xyz.onion address? Or is it +>> everything or nothing? + + +This is basically a question of using your proxy or not. You can +control the behaviour of your browser in great detail writing a +proxy.pac program in Javascript and setting that program as the +proxy autoconfiguration URL in your browser. + +An example: + +kris@jordan01:~> cat /srv/www/htdocs/proxy.pac + +function FindProxyForURL(url, host) +{ + var proxy_yes = "PROXY jordan01.int.cinetic.de:3128"; + var proxy_no = "DIRECT"; + + // Redirect all accesses to mlan hosts to the mlan proxy + if (dnsDomainIs(host, ".mlan.cinetic.de")) { + return proxy_yes; + } + + // Everything else is direct + return proxy_no; +} + +So here the program checks if the destination is a mlan-Host, and +if so, uses the appropriate proxy on jordan for the access, +while all other accesses are direct. + +You could do a similar thing with .onion accesses with a trivial +modification. + +Docs: +http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html + +Kristian + |