Privoxy Main Configuration Closed

From Hareidi English
Revision as of 09:00, 31 October 2007 by WikiSysop (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

For Microsoft Windows, right click on the "P" icon in the Start Bar, and select Edit->Main Configuration. For other operating systems edit the "config" file. Replace the entire contents of that file by cutting and pasting the information below:

  1. Sample Configuration File for Privoxy v3.0.6
  2. $Id: config,v 1.56 2006/11/14 01:54:36 hal9 Exp $
  3. Copyright (C) 2001-2006 Privoxy Developers http://privoxy.org
  4. #
  5. Table of Contents #
  6. #
  7. I. INTRODUCTION #
  8. II. FORMAT OF THE CONFIGURATION FILE #
  9. #
  10. 1. LOCAL SET-UP DOCUMENTATION #
  11. 2. CONFIGURATION AND LOG FILE LOCATIONS #
  12. 3. DEBUGGING #
  13. 4. ACCESS CONTROL AND SECURITY #
  14. 5. FORWARDING #
  15. 6. WINDOWS GUI OPTIONS #
  16. #
  17. I. INTRODUCTION
  18. ===============
  19. This file holds the Privoxy configuration. If you modify this file,
  20. you will need to send a couple of requests (of any kind) to the
  21. proxy before any changes take effect.
  22. When starting Privoxy on Unix systems, give the name of this file as
  23. an argument. On Windows systems, Privoxy will look for this file
  24. with the name 'config.txt' in the same directory where Privoxy
  25. is installed.
  26. II. FORMAT OF THE CONFIGURATION FILE
  27. ====================================
  28. Configuration lines consist of an initial keyword followed by a
  29. list of values, all separated by whitespace (any number of spaces
  30. or tabs). For example,
  31. actionsfile default.action
  32. Indicates that the actionsfile is named 'default.action'.
  33. The '#' indicates a comment. Any part of a line following a '#'
  34. is ignored, except if the '#' is preceded by a '\'.
  35. Thus, by placing a # at the start of an existing configuration line,
  36. you can make it a comment and it will be treated as if it weren't
  37. there. This is called "commenting out" an option and can be useful.
  38. Note that commenting out and option and leaving it at its default
  39. are two completely different things! Most options behave very
  40. differently when unset. See the the "Effect if unset" explanation
  41. in each option's description for details.
  42. Long lines can be continued on the next line by using a `\' as the
  43. last character.
  1. 1. LOCAL SET-UP DOCUMENTATION
  2. =============================
  3. If you intend to operate Privoxy for more users than just yourself,
  4. it might be a good idea to let them know how to reach you, what
  5. you block and why you do that, your policies, etc.
  1. 1.1. user-manual
  2. ================
  3. Specifies:
  4. Location of the Privoxy User Manual.
  5. Type of value:
  6. A fully qualified URI
  7. Default value:
  8. Unset
  9. Effect if unset:
  10. http://www.privoxy.org/version/user-manual/ will be used,
  11. where version is the Privoxy version.
  12. Notes:
  13. The User Manual URI is the single best source of information on
  14. Privoxy, and is used for help links from some of the internal
  15. CGI pages. The manual itself is normally packaged with the
  16. binary distributions, so you probably want to set this to
  17. a locally installed copy. For multi-user setups, you could
  18. provide a copy on a local webserver for all your users and use
  19. the corresponding URL here.
  20. Examples:
  21. The best all purpose solution is simply to put the full local
  22. PATH to where the User Manual is located:
  23. user-manual /usr/share/doc/privoxy/user-manual
  24. The User Manual is then available to anyone with
  25. access to the proxy, by following the built-in URL:
  26. http://config.privoxy.org/user-manual/ (or the shortcut:
  27. http://p.p/user-manual/).
  28. If the documentation is not on the local system, it can be
  29. accessed from a remote server, as:
  30. user-manual http://example.com/privoxy/user-manual/
  31. WARNING!!!
  32. If set, this option should be the first option in the config
  33. file, because it is used while the config file is being read.
  34. user-manual http://www.privoxy.org/user-manual/
  1. 1.2. trust-info-url
  2. ===================
  3. Specifies:
  4. A URL to be displayed in the error page that users will see if
  5. access to an untrusted page is denied.
  6. Type of value:
  7. URL
  8. Default value:
  9. Two example URL are provided
  10. Effect if unset:
  11. No links are displayed on the "untrusted" error page.
  12. Notes:
  13. The value of this option only matters if the experimental trust
  14. mechanism has been activated. (See trustfile above.)
  15. If you use the trust mechanism, it is a good idea to write
  16. up some on-line documentation about your trust policy and to
  17. specify the URL(s) here. Use multiple times for multiple URLs.
  18. The URL(s) should be added to the trustfile as well, so users
  19. don't end up locked out from the information on why they were
  20. locked out in the first place!
  1. hareidi

trust-info-url http://www.hareidi.org/en/index.php/Why_we_block trust-info-url http://www.hareidi.org/en/index.php/what_we_allow

  1. 1.3. admin-address
  2. ==================
  3. Specifies:
  4. An email address to reach the proxy administrator.
  5. Type of value:
  6. Email address
  7. Default value:
  8. Unset
  9. Effect if unset:
  10. No email address is displayed on error pages and the CGI user
  11. interface.
  12. Notes:
  13. If both admin-address and proxy-info-url are unset, the whole
  14. "Local Privoxy Support" box on all generated pages will not
  15. be shown.
  1. hareidi

admin-address webmaster@hareidi.org

  1. 1.4. proxy-info-url
  2. ===================
  3. Specifies:
  4. A URL to documentation about the local Privoxy setup,
  5. configuration or policies.
  6. Type of value:
  7. URL
  8. Default value:
  9. Unset
  10. Effect if unset:
  11. No link to local documentation is displayed on error pages and
  12. the CGI user interface.
  13. Notes:
  14. If both admin-address and proxy-info-url are unset, the whole
  15. "Local Privoxy Support" box on all generated pages will not
  16. be shown.
  17. This URL shouldn't be blocked ;-)
  1. hareidi

proxy-info-url http://www.hareidi.org/en/index.php/Proxy Service

  1. 2. CONFIGURATION AND LOG FILE LOCATIONS
  2. =======================================
  3. Privoxy can (and normally does) use a number of other files for
  4. additional configuration, help and logging. This section of the
  5. configuration file tells Privoxy where to find those other files.
  6. The user running Privoxy, must have read permission for all
  7. configuration files, and write permission to any files that would
  8. be modified, such as log files and actions files.
  1. 2.1. confdir
  2. ============
  3. Specifies:
  4. The directory where the other configuration files are located
  5. Type of value:
  6. Path name
  7. Default value:
  8. /etc/privoxy (Unix) or Privoxy installation dir (Windows)
  9. Effect if unset:
  10. Mandatory
  11. Notes:
  12. No trailing "/", please
  13. When development goes modular and multi-user, the blocker,
  14. filter, and per-user config will be stored in subdirectories of
  15. "confdir". For now, the configuration directory structure is
  16. flat, except for confdir/templates, where the HTML templates
  17. for CGI output reside (e.g. Privoxy's 404 error page).

confdir .

  1. 2.2. logdir
  2. ===========
  3. Specifies:
  4. The directory where all logging takes place (i.e. where logfile
  5. and jarfile are located)
  6. Type of value:
  7. Path name
  8. Default value:
  9. /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
  10. Effect if unset:
  11. Mandatory
  12. Notes:
  13. No trailing "/", please

logdir .

  1. 2.3. actionsfile
  2. ================
  3. Specifies:
  4. The actions file(s) to use
  5. Type of value:
  6. File name, relative to confdir, without the .action suffix
  7. Default values:
  8. standard # Internal purposes, no editing recommended
  9. default # Main actions file
  10. user # User customizations
  11. Effect if unset:
  12. No actions are taken at all. Simple neutral proxying.
  13. Notes:
  14. Multiple actionsfile lines are permitted, and are in fact
  15. recommended!
  16. The default values include standard.action, which is used
  17. for internal purposes and should be loaded, default.action,
  18. which is the "main" actions file maintained by the developers,
  19. and user.action, where you can make your personal additions.
  20. Actions files are where all the per site and per URL
  21. configuration is done for ad blocking, cookie management,
  22. privacy considerations, etc. There is no point in using Privoxy
  23. without at least one actions file.

actionsfile standard # Internal purpose, recommended actionsfile default # Main actions file actionsfile user # User customizations

  1. 2.4. filterfile
  2. ===============
  3. Specifies:
  4. The filter file(s) to use
  5. Type of value:
  6. File name, relative to confdir
  7. Default value:
  8. default.filter (Unix) or default.filter.txt (Windows)
  9. Effect if unset:
  10. No textual content filtering takes place, i.e. all +filter{name}
  11. actions in the actions files are turned neutral.
  12. Notes:
  13. Multiple filterfile lines are permitted.
  14. The filter files contain content modification rules that use
  15. regular expressions. These rules permit powerful changes on
  16. the content of Web pages, and optionally the headers as well,
  17. e.g., you could disable your favorite JavaScript annoyances,
  18. re-write the actual displayed text, or just have some fun
  19. playing buzzword bingo with web pages.
  20. The +filter{name} actions rely on the relevant filter (name)
  21. to be defined in a filter file!
  22. A pre-defined filter file called default.filter that contains a
  23. number of useful filters for common problems is included in the
  24. distribution. See the section on the filter action for a list.
  25. It is recommended to place any locally adapted filters into a
  26. separate file, such as user.filter.

filterfile default.filter

  1. filterfile user.filter # User customizations
  1. 2.5. logfile
  2. ============
  3. Specifies:
  4. The log file to use
  5. Type of value:
  6. File name, relative to logdir
  7. Default value:
  8. logfile (Unix) or privoxy.log (Windows)
  9. Effect if unset:
  10. No log file is used, all log messages go to the console (STDERR).
  11. Notes:
  12. The logfile is where all logging and error messages are
  13. written. The level of detail and number of messages are set with
  14. the debug option (see below). The logfile can be useful for
  15. tracking down a problem with Privoxy (e.g., it's not blocking
  16. an ad you think it should block) but in most cases you probably
  17. will never look at it.
  18. Your logfile will grow indefinitely, and you will probably
  19. want to periodically remove it. On Unix systems, you can do
  20. this with a cron job (see "man cron"). For Red Hat, a logrotate
  21. script has been included.
  22. On SuSE Linux systems, you can place a line like
  23. "/var/log/privoxy.* +1024k 644 nobody.nogroup" in /etc/logfiles,
  24. with the effect that cron.daily will automatically archive,
  25. gzip, and empty the log, when it exceeds 1M size.
  26. Any log files must be writable by whatever user Privoxy is
  27. being run as (default on UNIX, user id is "privoxy").

logfile privoxy.log

  1. 2.6. jarfile
  2. ============
  3. Specifies:
  4. The file to store intercepted cookies in
  5. Type of value:
  6. File name, relative to logdir
  7. Default value:
  8. Unset (commented out). When activated: jarfile (Unix) or
  9. privoxy.jar (Windows)
  10. Effect if unset:
  11. Intercepted cookies are not stored in a dedicated log file.
  12. Notes:
  13. The jarfile may grow to ridiculous sizes over time.
  14. If debug 8 (show header parsing) is enabled, cookies are written
  15. to the logfile with the rest of the headers.
  16. jarfile jar.log
  1. 2.7. trustfile
  2. ==============
  3. Specifies:
  4. The trust file to use
  5. Type of value:
  6. File name, relative to confdir
  7. Default value:
  8. Unset (commented out). When activated: trust (Unix) or trust.txt
  9. (Windows)
  10. Effect if unset:
  11. The entire trust mechanism is turned off.
  12. Notes:
  13. The trust mechanism is an experimental feature for building
  14. white-lists and should be used with care. It is NOT recommended
  15. for the casual user.
  16. If you specify a trust file, Privoxy will only allow access to
  17. sites that are specified in the trustfile. Sites can be listed
  18. in one of two ways:
  19. Prepending a ~ character limits access to this site only (and
  20. any sub-paths within this site), e.g. ~www.example.com.
  21. Or, you can designate sites as trusted referrers, by prepending
  22. the name with a + character. The effect is that access to
  23. untrusted sites will be granted -- but only if a link from this
  24. trusted referrer was used. The link target will then be added
  25. to the "trustfile" so that future, direct accesses will be
  26. granted. Sites added via this mechanism do not become trusted
  27. referrers themselves (i.e. they are added with a ~ designation).
  28. If you use the + operator in the trust file, it may grow
  29. considerably over time.
  30. It is recommended that Privoxy be compiled with the
  31. --disable-force, --disable-toggle and --disable-editor options,
  32. if this feature is to be used.
  33. Possible applications include limiting Internet access for
  34. children.
  1. hareidi

trustfile trust.txt

  1. 3. DEBUGGING
  2. ============
  3. These options are mainly useful when tracing a problem. Note that
  4. you might also want to invoke Privoxy with the --no-daemon command
  5. line option when debugging.
  1. 3.1. debug
  2. ==========
  3. Specifies:
  4. Key values that determine what information gets logged to
  5. the logfile.
  6. Type of value:
  7. Integer values
  8. Default value:
  9. 12289 (i.e.: URLs plus informational and warning messages)
  10. Effect if unset:
  11. Nothing gets logged.
  12. Notes:
  13. The available debug levels are:
  14. debug 1 # show each GET/POST/CONNECT request
  15. debug 2 # show each connection status
  16. debug 4 # show I/O status
  17. debug 8 # show header parsing
  18. debug 16 # log all data into the logfile
  19. debug 32 # debug force feature
  20. debug 64 # debug regular expression filter
  21. debug 128 # debug fast redirects
  22. debug 256 # debug GIF de-animation
  23. debug 512 # Common Log Format
  24. debug 1024 # debug kill pop-ups
  25. debug 2048 # CGI user interface
  26. debug 4096 # Startup banner and warnings.
  27. debug 8192 # Non-fatal errors
  28. To select multiple debug levels, you can either add them or
  29. use multiple debug lines.
  30. A debug level of 1 is informative because it will show you each
  31. request as it happens. 1, 4096 and 8192 are highly recommended
  32. so that you will notice when things go wrong. The other levels
  33. are probably only of interest if you are hunting down a specific
  34. problem. They can produce a hell of an output (especially 16).
  35. The reporting of fatal errors (i.e. ones which crash Privoxy)
  36. is always on and cannot be disabled.
  37. If you want to use CLF (Common Log Format), you should set
  38. "debug 512" ONLY and not enable anything else.

debug 32 # debug force feature debug 512 # Common Log Format debug 4096 # Startup banner and warnings debug 8192 # Errors - *we highly recommended enabling this*

  1. 3.2. single-threaded
  2. ====================
  3. Specifies:
  4. Whether to run only one server thread
  5. Type of value:
  6. None
  7. Default value:
  8. Unset
  9. Effect if unset:
  10. Multi-threaded (or, where unavailable: forked) operation,
  11. i.e. the ability to serve multiple requests simultaneously.
  12. Notes:
  13. This option is only there for debug purposes and you should
  14. never need to use it. It will drastically reduce performance.
  15. single-threaded
  1. 4. ACCESS CONTROL AND SECURITY
  2. ==============================
  3. This section of the config file controls the security-relevant
  4. aspects of Privoxy's configuration.
  1. 4.1. listen-address
  2. ===================
  3. Specifies:
  4. The IP address and TCP port on which Privoxy will listen for
  5. client requests.
  6. Type of value:
  7. [IP-Address]:Port
  8. Default value:
  9. 127.0.0.1:8118
  10. Effect if unset:
  11. Bind to 127.0.0.1 (localhost), port 8118. This is suitable and
  12. recommended for home users who run Privoxy on the same machine
  13. as their browser.
  14. Notes:
  15. You will need to configure your browser(s) to this proxy address
  16. and port.
  17. If you already have another service running on port 8118, or
  18. if you want to serve requests from other machines (e.g. on your
  19. local network) as well, you will need to override the default.
  20. If you leave out the IP address, Privoxy will bind to all
  21. interfaces (addresses) on your machine and may become reachable
  22. from the Internet. In that case, consider using access control
  23. lists (ACL's, see below), and/or a firewall.
  24. If you open Privoxy to untrusted users, you will also want
  25. to turn off the enable-edit-actions and enable-remote-toggle
  26. options!
  27. Example:
  28. Suppose you are running Privoxy on a machine which has the
  29. address 192.168.0.1 on your local private network (192.168.0.0)
  30. and has another outside connection with a different address. You
  31. want it to serve requests from inside only:
  32. listen-address 192.168.0.1:8118
  1. hareidi

listen-address  :8080

  1. 4.2. toggle
  2. ===========
  3. Specifies:
  4. Initial state of "toggle" status
  5. Type of value:
  6. 1 or 0
  7. Default value:
  8. 1
  9. Effect if unset:
  10. Act as if toggled on
  11. Notes:
  12. If set to 0, Privoxy will start in "toggled off" mode,
  13. i.e. behave like a normal, content-neutral proxy where all ad
  14. blocking, filtering, etc are disabled. See enable-remote-toggle
  15. below. This is not really useful anymore, since toggling is
  16. much easier via the web interface than via editing the conf file.
  17. The windows version will only display the toggle icon in the
  18. system tray if this option is present.

toggle 1

  1. 4.3. enable-remote-toggle
  2. =========================
  3. Specifies:
  4. Whether or not the web-based toggle feature may be used
  5. Type of value:
  6. 0 or 1
  7. Default value:
  8. 1
  9. Effect if unset:
  10. The web-based toggle feature is disabled.
  11. Notes:
  12. When toggled off, Privoxy acts like a normal, content-neutral
  13. proxy, i.e. it acts as if none of the actions applied to
  14. any URL.
  15. For the time being, access to the toggle feature can not be
  16. controlled separately by "ACLs" or HTTP authentication, so that
  17. everybody who can access Privoxy (see "ACLs" and listen-address
  18. above) can toggle it for all users. So this option is not
  19. recommended for multi-user environments with untrusted users.
  20. Note that you must have compiled Privoxy with support for this
  21. feature, otherwise this option has no effect.
  1. hareidi

enable-remote-toggle 0

  1. 4.4. enable-remote-http-toggle
  2. ==============================
  3. Specifies:
  4. Whether or not Privoxy recognizes special HTTP headers to change
  5. its behaviour.
  6. Type of value:
  7. 0 or 1
  8. Default value:
  9. 1
  10. Effect if unset:
  11. Privoxy ignores special HTTP headers.
  12. Notes:
  13. When toggled on, the client can change Privoxy's behaviour by
  14. setting special HTTP headers. Currently the only supported
  15. special header is "X-Filter: No", to disable filtering for
  16. the ongoing request, even if it is enabled in one of the
  17. action files.
  18. If you are using Privoxy in a multi-user environment or with
  19. untrustworthy clients and want to enforce filtering, you will
  20. have to disable this option, otherwise you can ignore it.

enable-remote-http-toggle 1

  1. 4.5. enable-edit-actions
  2. ========================
  3. Specifies:
  4. Whether or not the web-based actions file editor may be used
  5. Type of value:
  6. 0 or 1
  7. Default value:
  8. 1
  9. Effect if unset:
  10. The web-based actions file editor is disabled.
  11. Notes:
  12. For the time being, access to the editor can not be controlled
  13. separately by "ACLs" or HTTP authentication, so that everybody
  14. who can access Privoxy (see "ACLs" and listen-address above)
  15. can modify its configuration for all users. So this option is
  16. not recommended for multi-user environments with untrusted users.
  17. Note that you must have compiled Privoxy with support for this
  18. feature, otherwise this option has no effect.

enable-edit-actions 1

  1. 4.6. ACLs: permit-access and deny-access
  2. ========================================
  3. Specifies:
  4. Who can access what.
  5. Type of value:
  6. src_addr[/src_masklen] [dst_addr[/dst_masklen]]
  7. Where src_addr and dst_addr are IP addresses in dotted decimal
  8. notation or valid DNS names, and src_masklen and dst_masklen are
  9. subnet masks in CIDR notation, i.e. integer values from 2 to 30
  10. representing the length (in bits) of the network address. The
  11. masks and the whole destination part are optional.
  12. Default value:
  13. Unset
  14. Effect if unset:
  15. Don't restrict access further than implied by listen-address
  16. Notes:
  17. Access controls are included at the request of ISPs and systems
  18. administrators, and are not usually needed by individual
  19. users. For a typical home user, it will normally suffice to
  20. ensure that Privoxy only listens on the localhost (127.0.0.1)
  21. or internal (home) network address by means of the listen-address
  22. option.
  23. Please see the warnings in the FAQ that this proxy is not
  24. intended to be a substitute for a firewall or to encourage
  25. anyone to defer addressing basic security weaknesses.
  26. Multiple ACL lines are OK. If any ACLs are specified, then
  27. the Privoxy talks only to IP addresses that match at least one
  28. permit-access line and don't match any subsequent deny-access
  29. line. In other words, the last match wins, with the default
  30. being deny-access.
  31. If Privoxy is using a forwarder (see forward below) for a
  32. particular destination URL, the dst_addr that is examined is
  33. the address of the forwarder and NOT the address of the ultimate
  34. target. This is necessary because it may be impossible for the
  35. local Privoxy to determine the IP address of the ultimate target
  36. (that's often what gateways are used for).
  37. You should prefer using IP addresses over DNS names, because
  38. the address lookups take time. All DNS names must resolve! You
  39. can not use domain patterns like "*.org" or partial domain
  40. names. If a DNS name resolves to multiple IP addresses, only
  41. the first one is used.
  42. Denying access to particular sites by ACL may have undesired
  43. side effects if the site in question is hosted on a machine
  44. which also hosts other sites.
  45. Examples:
  46. Explicitly define the default behavior if no ACL and
  47. listen-address are set: "localhost" is OK. The absence of a
  48. dst_addr implies that all destination addresses are OK:
  49. permit-access localhost
  50. Allow any host on the same class C subnet as www.privoxy.org
  51. access to nothing but www.example.com:
  52. permit-access www.privoxy.org/24 www.example.com/32
  53. Allow access from any host on the 26-bit subnet 192.168.45.64
  54. to anywhere, with the exception that 192.168.45.73 may not
  55. access www.dirty-stuff.example.com:
  56. permit-access 192.168.45.64/26
  57. deny-access 192.168.45.73 www.dirty-stuff.example.com
  1. hareidi

permit-access 192.168.0.1/24 permit-access 127.0.0.1

  1. 4.7. buffer-limit
  2. =================
  3. Specifies:
  4. Maximum size of the buffer for content filtering.
  5. Type of value:
  6. Size in Kbytes
  7. Default value:
  8. 4096
  9. Effect if unset:
  10. Use a 4MB (4096 KB) limit.
  11. Notes:
  12. For content filtering, i.e. the +filter and +deanimate-gif
  13. actions, it is necessary that Privoxy buffers the entire document
  14. body. This can be potentially dangerous, since a server could
  15. just keep sending data indefinitely and wait for your RAM to
  16. exhaust -- with nasty consequences. Hence this option.
  17. When a document buffer size reaches the buffer-limit, it is
  18. flushed to the client unfiltered and no further attempt to filter
  19. the rest of the document is made. Remember that there may be
  20. multiple threads running, which might require up to buffer-limit
  21. Kbytes each, unless you have enabled "single-threaded" above.

buffer-limit 4096

  1. 5. FORWARDING
  2. =============
  3. This feature allows routing of HTTP requests through a chain
  4. of multiple proxies. It can be used to better protect privacy
  5. and confidentiality when accessing specific domains by routing
  6. requests to those domains through an anonymous public proxy.
  7. Or to use a caching proxy to speed up browsing. Or chaining to
  8. a parent proxy may be necessary because the machine that Privoxy
  9. runs on has no direct Internet access.
  10. Also specified here are SOCKS proxies. Privoxy supports the SOCKS
  11. 4 and SOCKS 4A protocols.
  1. 5.1. forward
  2. ============
  3. Specifies:
  4. To which parent HTTP proxy specific requests should be routed.
  5. Type of value:
  6. target_pattern http_parent[:port]
  7. where target_pattern is a URL pattern that specifies to which
  8. requests (i.e. URLs) this forward rule shall apply. Use /
  9. to denote "all URLs". http_parent[:port] is the DNS name or
  10. IP address of the parent HTTP proxy through which the requests
  11. should be forwarded, optionally followed by its listening port
  12. (default: 8080). Use a single dot (.) to denote "no forwarding".
  13. Default value:
  14. Unset
  15. Effect if unset:
  16. Don't use parent HTTP proxies.
  17. Notes:
  18. If http_parent is ".", then requests are not forwarded to
  19. another HTTP proxy but are made directly to the web servers.
  20. Multiple lines are OK, they are checked in sequence, and the
  21. last match wins.
  22. Examples:
  23. Everything goes to an example anonymizing proxy, except SSL on
  24. port 443 (which it doesn't handle):
  25. forward / anon-proxy.example.org:8080
  26. forward  :443 .
  27. Everything goes to our example ISP's caching proxy, except for
  28. requests to that ISP's sites:
  29. forward / caching-proxy.example-isp.net:8000
  30. forward .example-isp.net .
  1. 5.2. forward-socks4 and forward-socks4a
  2. =======================================
  3. Specifies:
  4. Through which SOCKS proxy (and to which parent HTTP proxy)
  5. specific requests should be routed.
  6. Type of value:
  7. target_pattern socks_proxy[:port] http_parent[:port]
  8. where target_pattern is a URL pattern that specifies to which
  9. requests (i.e. URLs) this forward rule shall apply. Use / to
  10. denote "all URLs". http_parent and socks_proxy are IP addresses
  11. in dotted decimal notation or valid DNS names (http_parent may
  12. be "." to denote "no HTTP forwarding"), and the optional port
  13. parameters are TCP ports, i.e. integer values from 1 to 64535
  14. Default value:
  15. Unset
  16. Effect if unset:
  17. Don't use SOCKS proxies.
  18. Notes:
  19. Multiple lines are OK, they are checked in sequence, and the
  20. last match wins.
  21. The difference between forward-socks4 and forward-socks4a
  22. is that in the SOCKS 4A protocol, the DNS resolution of the
  23. target hostname happens on the SOCKS server, while in SOCKS 4
  24. it happens locally.
  25. If http_parent is ".", then requests are not forwarded to another
  26. HTTP proxy but are made (HTTP-wise) directly to the web servers,
  27. albeit through a SOCKS proxy.
  28. Examples:
  29. From the company example.com, direct connections are made to all
  30. "internal" domains, but everything outbound goes through their
  31. ISP's proxy by way of example.com's corporate SOCKS 4A gateway
  32. to the Internet.
  33. forward-socks4a / socks-gw.example.com:1080 www-cache.example-isp.net:8080
  34. forward .example.com .
  35. A rule that uses a SOCKS 4 gateway for all destinations but no
  36. HTTP parent looks like this:
  37. forward-socks4 / socks-gw.example.com:1080 .
  38. To chain Privoxy and Tor, both running on the same system,
  39. you should use the rule:
  40. forward-socks4a / 127.0.0.1:9050 .
  41. The public Tor network can't be used to reach your local network,
  42. therefore it's a good idea to make some exceptions:
  43. forward 192.168.*.*/ .
  44. forward 10.*.*.*/ .
  45. forward 127.*.*.*/ .
  46. Unencrypted connections to systems in these address ranges will
  47. be as (un)secure as the local network is, but the alternative is
  48. that you can't reach the network at all.
  49. If you also want to be able to reach servers in your local
  50. network by using their names, you will need additional
  51. exceptions that look like this:
  52. forward localhost/ .
  1. 5.3. forwarded-connect-retries
  2. ==============================
  3. Specifies:
  4. How often Privoxy retries if a forwarded connection request
  5. fails.
  6. Type of value:
  7. Number of retries.
  8. Default value:
  9. 0
  10. Effect if unset:
  11. Forwarded connections are treated like direct connections and
  12. no retry attempts are made.
  13. Notes:
  14. forwarded-connect-retries is mainly interesting for socks4a
  15. connections, where Privoxy can't detect why the connections
  16. failed. The connection might have failed because of a DNS timeout
  17. in which case a retry makes sense, but it might also have failed
  18. because the server doesn't exist or isn't reachable. In this
  19. case the retry will just delay the appearance of Privoxy's
  20. error message.
  21. Only use this option, if you are getting many forwarding related
  22. error messages, that go away when you try again manually. Start
  23. with a small value and check Privoxy's logfile from time to time,
  24. to see how many retries are usually needed.
  25. Examples:
  26. forwarded-connect-retries 1

forwarded-connect-retries 0

  1. 6. WINDOWS GUI OPTIONS
  2. ======================
  3. Privoxy has a number of options specific to the Windows GUI
  4. interface:
  1. If "activity-animation" is set to 1, the Privoxy icon will animate
  2. when "Privoxy" is active. To turn off, set to 0.
  3. activity-animation 1
  1. If "log-messages" is set to 1, Privoxy will log messages to the
  2. console window:
  3. log-messages 1
  1. If "log-buffer-size" is set to 1, the size of the log buffer,
  2. i.e. the amount of memory used for the log messages displayed in
  3. the console window, will be limited to "log-max-lines" (see below).
  4. Warning: Setting this to 0 will result in the buffer to grow
  5. infinitely and eat up all your memory!
  6. log-buffer-size 1
  1. log-max-lines is the maximum number of lines held in the log
  2. buffer. See above.
  3. log-max-lines 200
  1. If "log-highlight-messages" is set to 1, Privoxy will highlight
  2. portions of the log messages with a bold-faced font:
  3. log-highlight-messages 1
  1. The font used in the console window:
  2. log-font-name Comic Sans MS
  1. Font size used in the console window:
  2. log-font-size 8
  1. "show-on-task-bar" controls whether or not Privoxy will appear as
  2. a button on the Task bar when minimized:
  3. show-on-task-bar 0
  1. If "close-button-minimizes" is set to 1, the Windows close button
  2. will minimize Privoxy instead of closing the program (close with
  3. the exit option on the File menu).
  4. close-button-minimizes 1
  1. The "hide-console" option is specific to the MS-Win console version
  2. of Privoxy. If this option is used, Privoxy will disconnect from
  3. and hide the command console.
  4. hide-console