proxy-some-domains 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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
  9. On Wednesday 08 June 2005 04:20, yancm@sdf.lonestar.org wrote:
  10. >> Is it possible to have a single application, such as a web
  11. >> browser or a p2p client behave normally with normal url's but
  12. >> use tor if the url is an xyz.onion address? Or is it
  13. >> everything or nothing?
  14. This is basically a question of using your proxy or not. You can
  15. control the behaviour of your browser in great detail writing a
  16. proxy.pac program in Javascript and setting that program as the
  17. proxy autoconfiguration URL in your browser.
  18. An example:
  19. kris@jordan01:~> cat /srv/www/htdocs/proxy.pac
  20. function FindProxyForURL(url, host)
  21. {
  22. var proxy_yes = "PROXY jordan01.int.cinetic.de:3128";
  23. var proxy_no = "DIRECT";
  24. // Redirect all accesses to mlan hosts to the mlan proxy
  25. if (dnsDomainIs(host, ".mlan.cinetic.de")) {
  26. return proxy_yes;
  27. }
  28. // Everything else is direct
  29. return proxy_no;
  30. }
  31. So here the program checks if the destination is a mlan-Host, and
  32. if so, uses the appropriate proxy on jordan for the access,
  33. while all other accesses are direct.
  34. You could do a similar thing with .onion accesses with a trivial
  35. modification.
  36. Docs:
  37. http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
  38. Kristian