Rebuild for the 3.0.17 release.
[privoxy.git] / config
1 #        Sample Configuration File for Privoxy v3.0.17
2 #
3 #  $Id: p-config.sgml,v 2.65 2010/10/30 16:09:31 fabiankeil Exp $
4 #
5 #  Copyright (C) 2001-2010 Privoxy Developers http://www.privoxy.org/
6 #
7 ####################################################################
8 #                                                                  #
9 #                      Table of Contents                           #
10 #                                                                  #
11 #        I. INTRODUCTION                                           #
12 #       II. FORMAT OF THE CONFIGURATION FILE                       #
13 #                                                                  #
14 #        1. LOCAL SET-UP DOCUMENTATION                             #
15 #        2. CONFIGURATION AND LOG FILE LOCATIONS                   #
16 #        3. DEBUGGING                                              #
17 #        4. ACCESS CONTROL AND SECURITY                            #
18 #        5. FORWARDING                                             #
19 #        6. WINDOWS GUI OPTIONS                                    #
20 #                                                                  #
21 ####################################################################
22 #
23 #
24 #  I. INTRODUCTION
25 #   ===============
26 #
27 #  This file holds Privoxy's main configuration. Privoxy detects
28 #  configuration changes automatically, so you don't have to restart
29 #  it unless you want to load a different configuration file.
30 #
31 #  The configuration will be reloaded with the first request after
32 #  the change was done, this request itself will still use the old
33 #  configuration, though. In other words: it takes two requests before
34 #  you see the result of your changes.  Requests that are dropped due
35 #  to ACL don't trigger reloads.
36 #
37 #  When starting Privoxy on Unix systems, give the location of this
38 #  file as last argument. On Windows systems, Privoxy will look for
39 #  this file with the name 'config.txt' in the current working directory
40 #  of the Privoxy process.
41 #
42 #
43 #  II. FORMAT OF THE CONFIGURATION FILE
44 #  ====================================
45 #
46 #  Configuration lines consist of an initial keyword followed by a
47 #  list of values, all separated by whitespace (any number of spaces
48 #  or tabs). For example,
49 #
50 #  actionsfile default.action
51 #
52 #  Indicates that the actionsfile is named 'default.action'.
53 #
54 #  The '#' indicates a comment. Any part of a line following a '#'
55 #  is ignored, except if the '#' is preceded by a '\'.
56 #
57 #  Thus, by placing a # at the start of an existing configuration
58 #  line, you can make it a comment and it will be treated as if it
59 #  weren't there. This is called "commenting out" an option and can
60 #  be useful. Removing the # again is called "uncommenting".
61 #
62 #  Note that commenting out an option and leaving it at its default
63 #  are two completely different things! Most options behave very
64 #  differently when unset.  See the "Effect if unset" explanation in
65 #  each option's description for details.
66 #
67 #  Long lines can be continued on the next line by using a `\' as the
68 #  last character.
69 #
70 #
71 #
72 #  1. LOCAL SET-UP DOCUMENTATION
73 #  ==============================
74 #
75 #  If you intend to operate Privoxy for more users than just yourself,
76 #  it might be a good idea to let them know how to reach you, what
77 #  you block and why you do that, your policies, etc.
78 #
79 #
80 #
81 #  1.1. user-manual
82 #  =================
83 #
84 #  Specifies:
85 #
86 #      Location of the Privoxy User Manual.
87 #
88 #  Type of value:
89 #
90 #      A fully qualified URI
91 #
92 #  Default value:
93 #
94 #      Unset
95 #
96 #  Effect if unset:
97 #
98 #      http://www.privoxy.org/version/user-manual/ will be used,
99 #      where version is the Privoxy version.
100 #
101 #  Notes:
102 #
103 #      The User Manual URI is the single best source of information on
104 #      Privoxy, and is used for help links from some of the internal
105 #      CGI pages. The manual itself is normally packaged with the
106 #      binary distributions, so you probably want to set this to a
107 #      locally installed copy.
108 #
109 #      Examples:
110 #
111 #      The best all purpose solution is simply to put the full local
112 #      PATH to where the User Manual is located:
113 #
114 #        user-manual  /usr/share/doc/privoxy/user-manual
115 #
116 #
117 #      The User Manual is then available to anyone with
118 #      access to Privoxy, by following the built-in URL:
119 #      http://config.privoxy.org/user-manual/ (or the shortcut:
120 #      http://p.p/user-manual/).
121 #
122 #      If the documentation is not on the local system, it can be
123 #      accessed from a remote server, as:
124 #
125 #        user-manual  http://example.com/privoxy/user-manual/
126 #
127 #
128 #      WARNING!!!
129 #
130 #          If set, this option should be the first option in the config
131 #          file, because it is used while the config file is being read.
132 #
133 #user-manual http://www.privoxy.org/user-manual/
134 #
135 #
136 #  1.2. trust-info-url
137 #  ====================
138 #
139 #  Specifies:
140 #
141 #      A URL to be displayed in the error page that users will see if
142 #      access to an untrusted page is denied.
143 #
144 #  Type of value:
145 #
146 #      URL
147 #
148 #  Default value:
149 #
150 #      Unset
151 #
152 #  Effect if unset:
153 #
154 #      No links are displayed on the "untrusted" error page.
155 #
156 #  Notes:
157 #
158 #      The value of this option only matters if the experimental trust
159 #      mechanism has been activated. (See trustfile below.)
160 #
161 #      If you use the trust mechanism, it is a good idea to write
162 #      up some on-line documentation about your trust policy and to
163 #      specify the URL(s) here. Use multiple times for multiple URLs.
164 #
165 #      The URL(s) should be added to the trustfile as well, so users
166 #      don't end up locked out from the information on why they were
167 #      locked out in the first place!
168 #
169 #trust-info-url  http://www.example.com/why_we_block.html
170 #trust-info-url  http://www.example.com/what_we_allow.html
171 #
172 #
173 #  1.3. admin-address
174 #  ===================
175 #
176 #  Specifies:
177 #
178 #      An email address to reach the Privoxy administrator.
179 #
180 #  Type of value:
181 #
182 #      Email address
183 #
184 #  Default value:
185 #
186 #      Unset
187 #
188 #  Effect if unset:
189 #
190 #      No email address is displayed on error pages and the CGI user
191 #      interface.
192 #
193 #  Notes:
194 #
195 #      If both admin-address and proxy-info-url are unset, the whole
196 #      "Local Privoxy Support" box on all generated pages will not
197 #      be shown.
198 #
199 #admin-address privoxy-admin@example.com
200 #
201 #
202 #  1.4. proxy-info-url
203 #  ====================
204 #
205 #  Specifies:
206 #
207 #      A URL to documentation about the local Privoxy setup,
208 #      configuration or policies.
209 #
210 #  Type of value:
211 #
212 #      URL
213 #
214 #  Default value:
215 #
216 #      Unset
217 #
218 #  Effect if unset:
219 #
220 #      No link to local documentation is displayed on error pages and
221 #      the CGI user interface.
222 #
223 #  Notes:
224 #
225 #      If both admin-address and proxy-info-url are unset, the whole
226 #      "Local Privoxy Support" box on all generated pages will not
227 #      be shown.
228 #
229 #      This URL shouldn't be blocked ;-)
230 #
231 #proxy-info-url http://www.example.com/proxy-service.html
232 #
233 #
234 #  2. CONFIGURATION AND LOG FILE LOCATIONS
235 #  ========================================
236 #
237 #  Privoxy can (and normally does) use a number of other files for
238 #  additional configuration, help and logging. This section of the
239 #  configuration file tells Privoxy where to find those other files.
240 #
241 #  The user running Privoxy, must have read permission for all
242 #  configuration files, and write permission to any files that would
243 #  be modified, such as log files and actions files.
244 #
245 #
246 #
247 #  2.1. confdir
248 #  =============
249 #
250 #  Specifies:
251 #
252 #      The directory where the other configuration files are located.
253 #
254 #  Type of value:
255 #
256 #      Path name
257 #
258 #  Default value:
259 #
260 #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
261 #
262 #  Effect if unset:
263 #
264 #      Mandatory
265 #
266 #  Notes:
267 #
268 #      No trailing "/", please.
269 #
270 confdir .
271 #
272 #
273 #  2.2. templdir
274 #  ==============
275 #
276 #  Specifies:
277 #
278 #      An alternative directory where the templates are loaded from.
279 #
280 #  Type of value:
281 #
282 #      Path name
283 #
284 #  Default value:
285 #
286 #      unset
287 #
288 #  Effect if unset:
289 #
290 #      The templates are assumed to be located in confdir/template.
291 #
292 #  Notes:
293 #
294 #      Privoxy's original templates are usually overwritten with each
295 #      update. Use this option to relocate customized templates that
296 #      should be kept. As template variables might change between
297 #      updates, you shouldn't expect templates to work with Privoxy
298 #      releases other than the one they were part of, though.
299 #
300 #templdir .
301 #
302 #
303 #  2.3. logdir
304 #  ============
305 #
306 #  Specifies:
307 #
308 #      The directory where all logging takes place (i.e. where the
309 #      logfile is located).
310 #
311 #  Type of value:
312 #
313 #      Path name
314 #
315 #  Default value:
316 #
317 #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
318 #
319 #  Effect if unset:
320 #
321 #      Mandatory
322 #
323 #  Notes:
324 #
325 #      No trailing "/", please.
326 #
327 logdir .
328 #
329 #
330 #  2.4. actionsfile
331 #  =================
332 #
333 #  Specifies:
334 #
335 #      The actions file(s) to use
336 #
337 #  Type of value:
338 #
339 #      Complete file name, relative to confdir
340 #
341 #  Default values:
342 #
343 #        match-all.action # Actions that are applied to all sites and maybe overruled later on.
344 #
345 #        default.action   # Main actions file
346 #
347 #        user.action      # User customizations
348 #
349 #  Effect if unset:
350 #
351 #      No actions are taken at all. More or less neutral proxying.
352 #
353 #  Notes:
354 #
355 #      Multiple actionsfile lines are permitted, and are in fact
356 #      recommended!
357 #
358 #      The default values are default.action, which is the "main"
359 #      actions file maintained by the developers, and user.action,
360 #      where you can make your personal additions.
361 #
362 #      Actions files contain all the per site and per URL configuration
363 #      for ad blocking, cookie management, privacy considerations,
364 #      etc. There is no point in using Privoxy without at least one
365 #      actions file.
366 #
367 #      Note that since Privoxy 3.0.7, the complete filename, including
368 #      the ".action" extension has to be specified. The syntax change
369 #      was necessary to be consistent with the other file options and
370 #      to allow previously forbidden characters.
371 #
372 actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
373 actionsfile default.action   # Main actions file
374 actionsfile user.action      # User customizations
375 #
376 #
377 #  2.5. filterfile
378 #  ================
379 #
380 #  Specifies:
381 #
382 #      The filter file(s) to use
383 #
384 #  Type of value:
385 #
386 #      File name, relative to confdir
387 #
388 #  Default value:
389 #
390 #      default.filter (Unix) or default.filter.txt (Windows)
391 #
392 #  Effect if unset:
393 #
394 #      No textual content filtering takes place, i.e. all +filter{name}
395 #      actions in the actions files are turned neutral.
396 #
397 #  Notes:
398 #
399 #      Multiple filterfile lines are permitted.
400 #
401 #      The filter files contain content modification rules that use
402 #      regular expressions. These rules permit powerful changes on the
403 #      content of Web pages, and optionally the headers as well, e.g.,
404 #      you could try to disable your favorite JavaScript annoyances,
405 #      re-write the actual displayed text, or just have some fun
406 #      playing buzzword bingo with web pages.
407 #
408 #      The +filter{name} actions rely on the relevant filter (name)
409 #      to be defined in a filter file!
410 #
411 #      A pre-defined filter file called default.filter that contains a
412 #      number of useful filters for common problems is included in the
413 #      distribution. See the section on the filter action for a list.
414 #
415 #      It is recommended to place any locally adapted filters into a
416 #      separate file, such as user.filter.
417 #
418 filterfile default.filter
419 filterfile user.filter      # User customizations
420 #
421 #
422 #  2.6. logfile
423 #  =============
424 #
425 #  Specifies:
426 #
427 #      The log file to use
428 #
429 #  Type of value:
430 #
431 #      File name, relative to logdir
432 #
433 #  Default value:
434 #
435 #      Unset (commented out). When activated: logfile (Unix) or
436 #      privoxy.log (Windows).
437 #
438 #  Effect if unset:
439 #
440 #      No logfile is written.
441 #
442 #  Notes:
443 #
444 #      The logfile is where all logging and error messages are
445 #      written. The level of detail and number of messages are set with
446 #      the debug option (see below).  The logfile can be useful for
447 #      tracking down a problem with Privoxy (e.g., it's not blocking
448 #      an ad you think it should block) and it can help you to monitor
449 #      what your browser is doing.
450 #
451 #      Depending on the debug options below, the logfile may be a
452 #      privacy risk if third parties can get access to it. As most
453 #      users will never look at it, Privoxy 3.0.7 and later only log
454 #      fatal errors by default.
455 #
456 #      For most troubleshooting purposes, you will have to change that,
457 #      please refer to the debugging section for details.
458 #
459 #      Your logfile will grow indefinitely, and you will probably
460 #      want to periodically remove it. On Unix systems, you can do
461 #      this with a cron job (see "man cron"). For Red Hat based Linux
462 #      distributions, a logrotate script has been included.
463 #
464 #      Any log files must be writable by whatever user Privoxy is
465 #      being run as (on Unix, default user id is "privoxy").
466 #
467 logfile logfile
468 #
469 #
470 #  2.7. trustfile
471 #  ===============
472 #
473 #  Specifies:
474 #
475 #      The name of the trust file to use
476 #
477 #  Type of value:
478 #
479 #      File name, relative to confdir
480 #
481 #  Default value:
482 #
483 #      Unset (commented out). When activated: trust (Unix) or trust.txt
484 #      (Windows)
485 #
486 #  Effect if unset:
487 #
488 #      The entire trust mechanism is disabled.
489 #
490 #  Notes:
491 #
492 #      The trust mechanism is an experimental feature for building
493 #      white-lists and should be used with care. It is NOT recommended
494 #      for the casual user.
495 #
496 #      If you specify a trust file, Privoxy will only allow access to
497 #      sites that are specified in the trustfile. Sites can be listed
498 #      in one of two ways:
499 #
500 #      Prepending a ~ character limits access to this site only (and
501 #      any sub-paths within this site), e.g. ~www.example.com allows
502 #      access to ~www.example.com/ features/news.html, etc.
503 #
504 #      Or, you can designate sites as trusted referrers, by prepending
505 #      the name with a + character. The effect is that access to
506 #      untrusted sites will be granted -- but only if a link from
507 #      this trusted referrer was used to get there. The link target
508 #      will then be added to the "trustfile" so that future, direct
509 #      accesses will be granted. Sites added via this mechanism do
510 #      not become trusted referrers themselves (i.e. they are added
511 #      with a ~ designation). There is a limit of 512 such entries,
512 #      after which new entries will not be made.
513 #
514 #      If you use the + operator in the trust file, it may grow
515 #      considerably over time.
516 #
517 #      It is recommended that Privoxy be compiled with the
518 #      --disable-force, --disable-toggle and --disable-editor options,
519 #      if this feature is to be used.
520 #
521 #      Possible applications include limiting Internet access for
522 #      children.
523 #
524 #trustfile trust
525 #
526 #
527 #  3. DEBUGGING
528 #  =============
529 #
530 #  These options are mainly useful when tracing a problem. Note that
531 #  you might also want to invoke Privoxy with the --no-daemon command
532 #  line option when debugging.
533 #
534 #
535 #
536 #  3.1. debug
537 #  ===========
538 #
539 #  Specifies:
540 #
541 #      Key values that determine what information gets logged.
542 #
543 #  Type of value:
544 #
545 #      Integer values
546 #
547 #  Default value:
548 #
549 #      0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)
550 #
551 #  Effect if unset:
552 #
553 #      Default value is used (see above).
554 #
555 #  Notes:
556 #
557 #      The available debug levels are:
558 #
559 #        debug         1 # Log the destination for each request Privoxy let through. See also debug 1024.
560 #        debug         2 # show each connection status
561 #        debug         4 # show I/O status
562 #        debug         8 # show header parsing
563 #        debug        16 # log all data written to the network into the logfile
564 #        debug        32 # debug force feature
565 #        debug        64 # debug regular expression filters
566 #        debug       128 # debug redirects
567 #        debug       256 # debug GIF de-animation
568 #        debug       512 # Common Log Format
569 #        debug      1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
570 #        debug      2048 # CGI user interface
571 #        debug      4096 # Startup banner and warnings.
572 #        debug      8192 # Non-fatal errors
573 #        debug     32768 # log all data read from the network
574 #
575 #
576 #      To select multiple debug levels, you can either add them or
577 #      use multiple debug lines.
578 #
579 #      A debug level of 1 is informative because it will show you each
580 #      request as it happens. 1, 1024, 4096 and 8192 are recommended
581 #      so that you will notice when things go wrong. The other levels
582 #      are probably only of interest if you are hunting down a specific
583 #      problem. They can produce a hell of an output (especially 16).
584 #
585 #      Privoxy used to ship with the debug levels recommended above
586 #      enabled by default, but due to privacy concerns 3.0.7 and later
587 #      are configured to only log fatal errors.
588 #
589 #      If you are used to the more verbose settings, simply enable
590 #      the debug lines below again.
591 #
592 #      If you want to use pure CLF (Common Log Format), you should set
593 #      "debug 512" ONLY and not enable anything else.
594 #
595 #      Privoxy has a hard-coded limit for the length of log messages. If
596 #      it's reached, messages are logged truncated and marked with
597 #      "... [too long, truncated]".
598 #
599 #      Please don't file any support requests without trying to
600 #      reproduce the problem with increased debug level first. Once
601 #      you read the log messages, you may even be able to solve the
602 #      problem on your own.
603 #
604 #debug      1 # Log the destination for each request Privoxy let through.
605 #debug   1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
606 #debug   4096 # Startup banner and warnings
607 #debug   8192 # Non-fatal errors
608 #
609 #
610 #  3.2. single-threaded
611 #  =====================
612 #
613 #  Specifies:
614 #
615 #      Whether to run only one server thread.
616 #
617 #  Type of value:
618 #
619 #      None
620 #
621 #  Default value:
622 #
623 #      Unset
624 #
625 #  Effect if unset:
626 #
627 #      Multi-threaded (or, where unavailable: forked) operation,
628 #      i.e. the ability to serve multiple requests simultaneously.
629 #
630 #  Notes:
631 #
632 #      This option is only there for debugging purposes. It will
633 #      drastically reduce performance.
634 #
635 #single-threaded
636 #
637 #
638 #  3.3. hostname
639 #  ==============
640 #
641 #  Specifies:
642 #
643 #      The hostname shown on the CGI pages.
644 #
645 #  Type of value:
646 #
647 #      Text
648 #
649 #  Default value:
650 #
651 #      Unset
652 #
653 #  Effect if unset:
654 #
655 #      The hostname provided by the operating system is used.
656 #
657 #  Notes:
658 #
659 #      On some misconfigured systems resolving the hostname fails or
660 #      takes too much time and slows Privoxy down. Setting a fixed
661 #      hostname works around the problem.
662 #
663 #      In other circumstances it might be desirable to show a hostname
664 #      other than the one returned by the operating system. For example
665 #      if the system has several different hostnames and you don't
666 #      want to use the first one.
667 #
668 #      Note that Privoxy does not validate the specified hostname value.
669 #
670 #hostname hostname.example.org
671 #
672 #
673 #  4. ACCESS CONTROL AND SECURITY
674 #  ===============================
675 #
676 #  This section of the config file controls the security-relevant
677 #  aspects of Privoxy's configuration.
678 #
679 #
680 #
681 #  4.1. listen-address
682 #  ====================
683 #
684 #  Specifies:
685 #
686 #      The IP address and TCP port on which Privoxy will listen for
687 #      client requests.
688 #
689 #  Type of value:
690 #
691 #      [IP-Address]:Port
692 #
693 #  Default value:
694 #
695 #      127.0.0.1:8118
696 #
697 #  Effect if unset:
698 #
699 #      Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is suitable
700 #      and recommended for home users who run Privoxy on the same
701 #      machine as their browser.
702 #
703 #  Notes:
704 #
705 #      You will need to configure your browser(s) to this proxy address
706 #      and port.
707 #
708 #      If you already have another service running on port 8118, or
709 #      if you want to serve requests from other machines (e.g. on your
710 #      local network) as well, you will need to override the default.
711 #
712 #      IPv6 addresses containing colons have to be quoted by brackets.
713 #
714 #      If you leave out the IP address, Privoxy will bind to all IPv4
715 #      interfaces (addresses) on your machine and may become reachable
716 #      from the Internet. In that case, consider using access control
717 #      lists (ACL's, see below), and/or a firewall.
718 #
719 #      If you open Privoxy to untrusted users, you will also
720 #      want to make sure that the following actions are disabled:
721 #      enable-edit-actions and enable-remote-toggle
722 #
723 #  Example:
724 #
725 #      Suppose you are running Privoxy on a machine which has the
726 #      address 192.168.0.1 on your local private network (192.168.0.0)
727 #      and has another outside connection with a different address. You
728 #      want it to serve requests from inside only:
729 #
730 #        listen-address  192.168.0.1:8118
731 #
732 #
733 #      Suppose you are running Privoxy on an IPv6-capable machine and
734 #      you want it to listen on the IPv6 address of the loopback device:
735 #
736 #        listen-address [::1]:8118
737 #
738 #
739 listen-address  127.0.0.1:8118
740 #
741 #
742 #  4.2. toggle
743 #  ============
744 #
745 #  Specifies:
746 #
747 #      Initial state of "toggle" status
748 #
749 #  Type of value:
750 #
751 #      1 or 0
752 #
753 #  Default value:
754 #
755 #      1
756 #
757 #  Effect if unset:
758 #
759 #      Act as if toggled on
760 #
761 #  Notes:
762 #
763 #      If set to 0, Privoxy will start in "toggled off" mode,
764 #      i.e. mostly behave like a normal, content-neutral proxy
765 #      with both ad blocking and content filtering disabled. See
766 #      enable-remote-toggle below.
767 #
768 #      The windows version will only display the toggle icon in the
769 #      system tray if this option is present.
770 #
771 toggle  1
772 #
773 #
774 #  4.3. enable-remote-toggle
775 #  ==========================
776 #
777 #  Specifies:
778 #
779 #      Whether or not the web-based toggle feature may be used
780 #
781 #  Type of value:
782 #
783 #      0 or 1
784 #
785 #  Default value:
786 #
787 #      0
788 #
789 #  Effect if unset:
790 #
791 #      The web-based toggle feature is disabled.
792 #
793 #  Notes:
794 #
795 #      When toggled off, Privoxy mostly acts like a normal,
796 #      content-neutral proxy, i.e. doesn't block ads or filter content.
797 #
798 #      Access to the toggle feature can not be controlled separately by
799 #      "ACLs" or HTTP authentication, so that everybody who can access
800 #      Privoxy (see "ACLs" and listen-address above) can toggle it
801 #      for all users. So this option is not recommended for multi-user
802 #      environments with untrusted users.
803 #
804 #      Note that malicious client side code (e.g Java) is also capable
805 #      of using this option.
806 #
807 #      As a lot of Privoxy users don't read documentation, this feature
808 #      is disabled by default.
809 #
810 #      Note that you must have compiled Privoxy with support for this
811 #      feature, otherwise this option has no effect.
812 #
813 enable-remote-toggle  0
814 #
815 #
816 #  4.4. enable-remote-http-toggle
817 #  ===============================
818 #
819 #  Specifies:
820 #
821 #      Whether or not Privoxy recognizes special HTTP headers to change
822 #      its behaviour.
823 #
824 #  Type of value:
825 #
826 #      0 or 1
827 #
828 #  Default value:
829 #
830 #      0
831 #
832 #  Effect if unset:
833 #
834 #      Privoxy ignores special HTTP headers.
835 #
836 #  Notes:
837 #
838 #      When toggled on, the client can change Privoxy's behaviour by
839 #      setting special HTTP headers. Currently the only supported
840 #      special header is "X-Filter: No", to disable filtering for
841 #      the ongoing request, even if it is enabled in one of the
842 #      action files.
843 #
844 #      This feature is disabled by default. If you are using Privoxy in
845 #      a environment with trusted clients, you may enable this feature
846 #      at your discretion. Note that malicious client side code (e.g
847 #      Java) is also capable of using this feature.
848 #
849 #      This option will be removed in future releases as it has been
850 #      obsoleted by the more general header taggers.
851 #
852 enable-remote-http-toggle  0
853 #
854 #
855 #  4.5. enable-edit-actions
856 #  =========================
857 #
858 #  Specifies:
859 #
860 #      Whether or not the web-based actions file editor may be used
861 #
862 #  Type of value:
863 #
864 #      0 or 1
865 #
866 #  Default value:
867 #
868 #      0
869 #
870 #  Effect if unset:
871 #
872 #      The web-based actions file editor is disabled.
873 #
874 #  Notes:
875 #
876 #      Access to the editor can not be controlled separately by
877 #      "ACLs" or HTTP authentication, so that everybody who can access
878 #      Privoxy (see "ACLs" and listen-address above) can modify its
879 #      configuration for all users.
880 #
881 #      This option is not recommended for environments with untrusted
882 #      users and as a lot of Privoxy users don't read documentation,
883 #      this feature is disabled by default.
884 #
885 #      Note that malicious client side code (e.g Java) is also capable
886 #      of using the actions editor and you shouldn't enable this
887 #      options unless you understand the consequences and are sure
888 #      your browser is configured correctly.
889 #
890 #      Note that you must have compiled Privoxy with support for this
891 #      feature, otherwise this option has no effect.
892 #
893 enable-edit-actions 0
894 #
895 #
896 #  4.6. enforce-blocks
897 #  ====================
898 #
899 #  Specifies:
900 #
901 #      Whether the user is allowed to ignore blocks and can "go there
902 #      anyway".
903 #
904 #  Type of value:
905 #
906 #      0 or 1
907 #
908 #  Default value:
909 #
910 #      0
911 #
912 #  Effect if unset:
913 #
914 #      Blocks are not enforced.
915 #
916 #  Notes:
917 #
918 #      Privoxy is mainly used to block and filter requests as a service
919 #      to the user, for example to block ads and other junk that clogs
920 #      the pipes.  Privoxy's configuration isn't perfect and sometimes
921 #      innocent pages are blocked. In this situation it makes sense to
922 #      allow the user to enforce the request and have Privoxy ignore
923 #      the block.
924 #
925 #      In the default configuration Privoxy's "Blocked" page contains
926 #      a "go there anyway" link to adds a special string (the force
927 #      prefix) to the request URL. If that link is used, Privoxy
928 #      will detect the force prefix, remove it again and let the
929 #      request pass.
930 #
931 #      Of course Privoxy can also be used to enforce a network
932 #      policy. In that case the user obviously should not be able to
933 #      bypass any blocks, and that's what the "enforce-blocks" option
934 #      is for. If it's enabled, Privoxy hides the "go there anyway"
935 #      link. If the user adds the force prefix by hand, it will not
936 #      be accepted and the circumvention attempt is logged.
937 #
938 #  Examples:
939 #
940 #      enforce-blocks 1
941 #
942 enforce-blocks 0
943 #
944 #
945 #  4.7. ACLs: permit-access and deny-access
946 #  =========================================
947 #
948 #  Specifies:
949 #
950 #      Who can access what.
951 #
952 #  Type of value:
953 #
954 #      src_addr[:port][/src_masklen] [dst_addr[:port][/dst_masklen]]
955 #
956 #      Where src_addr and dst_addr are IPv4 addresses in dotted
957 #      decimal notation or valid DNS names, port is a port number, and
958 #      src_masklen and dst_masklen are subnet masks in CIDR notation,
959 #      i.e. integer values from 2 to 30 representing the length
960 #      (in bits) of the network address. The masks and the whole
961 #      destination part are optional.
962 #
963 #      If your system implements RFC 3493, then src_addr and dst_addr
964 #      can be IPv6 addresses delimeted by brackets, port can be a
965 #      number or a service name, and src_masklen and dst_masklen can
966 #      be a number from 0 to 128.
967 #
968 #  Default value:
969 #
970 #      Unset
971 #
972 #      If no port is specified, any port will match. If no src_masklen
973 #      or src_masklen is given, the complete IP address has to match
974 #      (i.e. 32 bits for IPv4 and 128 bits for IPv6).
975 #
976 #  Effect if unset:
977 #
978 #      Don't restrict access further than implied by listen-address
979 #
980 #  Notes:
981 #
982 #      Access controls are included at the request of ISPs and systems
983 #      administrators, and are not usually needed by individual
984 #      users. For a typical home user, it will normally suffice to
985 #      ensure that Privoxy only listens on the localhost (127.0.0.1)
986 #      or internal (home) network address by means of the listen-address
987 #      option.
988 #
989 #      Please see the warnings in the FAQ that Privoxy is not intended
990 #      to be a substitute for a firewall or to encourage anyone to
991 #      defer addressing basic security weaknesses.
992 #
993 #      Multiple ACL lines are OK. If any ACLs are specified, Privoxy
994 #      only talks to IP addresses that match at least one permit-access
995 #      line and don't match any subsequent deny-access line. In other
996 #      words, the last match wins, with the default being deny-access.
997 #
998 #      If Privoxy is using a forwarder (see forward below) for a
999 #      particular destination URL, the dst_addr that is examined is
1000 #      the address of the forwarder and NOT the address of the ultimate
1001 #      target. This is necessary because it may be impossible for the
1002 #      local Privoxy to determine the IP address of the ultimate target
1003 #      (that's often what gateways are used for).
1004 #
1005 #      You should prefer using IP addresses over DNS names, because
1006 #      the address lookups take time. All DNS names must resolve! You
1007 #      can not use domain patterns like "*.org" or partial domain
1008 #      names. If a DNS name resolves to multiple IP addresses, only
1009 #      the first one is used.
1010 #
1011 #      Some systems allows IPv4 client to connect to IPv6 server
1012 #      socket. Then the client's IPv4 address will be translated by
1013 #      system into IPv6 address space with special prefix ::ffff:0:0/96
1014 #      (so called IPv4 mapped IPv6 address).  Privoxy can handle it
1015 #      and maps such ACL addresses automatically.
1016 #
1017 #      Denying access to particular sites by ACL may have undesired
1018 #      side effects if the site in question is hosted on a machine
1019 #      which also hosts other sites (most sites are).
1020 #
1021 #  Examples:
1022 #
1023 #      Explicitly define the default behavior if no ACL and
1024 #      listen-address are set: "localhost" is OK. The absence of a
1025 #      dst_addr implies that all destination addresses are OK:
1026 #
1027 #        permit-access  localhost
1028 #
1029 #
1030 #      Allow any host on the same class C subnet as www.privoxy.org
1031 #      access to nothing but www.example.com (or other domains hosted
1032 #      on the same system):
1033 #
1034 #        permit-access  www.privoxy.org/24 www.example.com/32
1035 #
1036 #
1037 #      Allow access from any host on the 26-bit subnet 192.168.45.64 to
1038 #      anywhere, with the exception that 192.168.45.73 may not access
1039 #      the IP address behind www.dirty-stuff.example.com:
1040 #
1041 #        permit-access  192.168.45.64/26 
1042 #        deny-access   192.168.45.73  www.dirty-stuff.example.com
1043 #
1044 #      Allow access from the IPv4 network 192.0.2.0/24 even if listening
1045 #      on an IPv6 wild card address (not supported on all platforms):
1046 #
1047 #        permit-access  192.0.2.0/24
1048 #
1049 #
1050 #      This is equivalent to the following line even if listening on
1051 #      an IPv4 address (not supported on all platforms):
1052 #
1053 #        permit-access  [::ffff:192.0.2.0]/120
1054 #
1055 #
1056 #  4.8. buffer-limit
1057 #  ==================
1058 #
1059 #  Specifies:
1060 #
1061 #      Maximum size of the buffer for content filtering.
1062 #
1063 #  Type of value:
1064 #
1065 #      Size in Kbytes
1066 #
1067 #  Default value:
1068 #
1069 #      4096
1070 #
1071 #  Effect if unset:
1072 #
1073 #      Use a 4MB (4096 KB) limit.
1074 #
1075 #  Notes:
1076 #
1077 #      For content filtering, i.e. the +filter and +deanimate-gif
1078 #      actions, it is necessary that Privoxy buffers the entire document
1079 #      body. This can be potentially dangerous, since a server could
1080 #      just keep sending data indefinitely and wait for your RAM to
1081 #      exhaust -- with nasty consequences.  Hence this option.
1082 #
1083 #      When a document buffer size reaches the buffer-limit, it is
1084 #      flushed to the client unfiltered and no further attempt to filter
1085 #      the rest of the document is made. Remember that there may be
1086 #      multiple threads running, which might require up to buffer-limit
1087 #      Kbytes each, unless you have enabled "single-threaded" above.
1088 #
1089 buffer-limit 4096
1090 #
1091 #
1092 #  5. FORWARDING
1093 #  ==============
1094 #
1095 #  This feature allows routing of HTTP requests through a chain of
1096 #  multiple proxies.
1097 #
1098 #  Forwarding can be used to chain Privoxy with a caching proxy to
1099 #  speed up browsing. Using a parent proxy may also be necessary if
1100 #  the machine that Privoxy runs on has no direct Internet access.
1101 #
1102 #  Note that parent proxies can severely decrease your privacy
1103 #  level. For example a parent proxy could add your IP address to the
1104 #  request headers and if it's a caching proxy it may add the "Etag"
1105 #  header to revalidation requests again, even though you configured
1106 #  Privoxy to remove it. It may also ignore Privoxy's header time
1107 #  randomization and use the original values which could be used by
1108 #  the server as cookie replacement to track your steps between visits.
1109 #
1110 #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
1111 #  4 and SOCKS 4A protocols.
1112 #
1113 #
1114 #
1115 #  5.1. forward
1116 #  =============
1117 #
1118 #  Specifies:
1119 #
1120 #      To which parent HTTP proxy specific requests should be routed.
1121 #
1122 #  Type of value:
1123 #
1124 #      target_pattern http_parent[:port]
1125 #
1126 #      where target_pattern is a URL pattern that specifies to which
1127 #      requests (i.e. URLs) this forward rule shall apply. Use /
1128 #      to denote "all URLs".  http_parent[:port] is the DNS name or
1129 #      IP address of the parent HTTP proxy through which the requests
1130 #      should be forwarded, optionally followed by its listening port
1131 #      (default: 8000). Use a single dot (.) to denote "no forwarding".
1132 #
1133 #  Default value:
1134 #
1135 #      Unset
1136 #
1137 #  Effect if unset:
1138 #
1139 #      Don't use parent HTTP proxies.
1140 #
1141 #  Notes:
1142 #
1143 #      If http_parent is ".", then requests are not forwarded to
1144 #      another HTTP proxy but are made directly to the web servers.
1145 #
1146 #      http_parent can be a numerical IPv6 address (if RFC 3493 is
1147 #      implemented).  To prevent clashes with the port delimiter,
1148 #      the whole IP address has to be put into brackets. On the other
1149 #      hand a target_pattern containing an IPv6 address has to be put
1150 #      into angle brackets (normal brackets are reserved for regular
1151 #      expressions already).
1152 #
1153 #      Multiple lines are OK, they are checked in sequence, and the
1154 #      last match wins.
1155 #
1156 #  Examples:
1157 #
1158 #      Everything goes to an example parent proxy, except SSL on port
1159 #      443 (which it doesn't handle):
1160 #
1161 #        forward   /      parent-proxy.example.org:8080 
1162 #        forward   :443   .
1163 #
1164 #
1165 #      Everything goes to our example ISP's caching proxy, except for
1166 #      requests to that ISP's sites:
1167 #
1168 #        forward   /                  caching-proxy.isp.example.net:8000
1169 #        forward   .isp.example.net   .
1170 #
1171 #
1172 #      Parent proxy specified by an IPv6 address:
1173 #
1174 #        foward   /                   [2001:DB8::1]:8000
1175 #
1176 #
1177 #      Suppose your parent proxy doesn't support IPv6:
1178 #
1179 #        forward  /                        parent-proxy.example.org:8000
1180 #        forward  ipv6-server.example.org  .
1181 #        forward  <[2-3][0-9a-f][0-9a-f][0-9a-f]:*>   .
1182 #
1183 #
1184 #  5.2. forward-socks4, forward-socks4a and forward-socks5
1185 #  ========================================================
1186 #
1187 #  Specifies:
1188 #
1189 #      Through which SOCKS proxy (and optionally to which parent HTTP
1190 #      proxy) specific requests should be routed.
1191 #
1192 #  Type of value:
1193 #
1194 #      target_pattern socks_proxy[:port] http_parent[:port]
1195 #
1196 #      where target_pattern is a URL pattern that specifies to which
1197 #      requests (i.e. URLs) this forward rule shall apply. Use / to
1198 #      denote "all URLs".  http_parent and socks_proxy are IP addresses
1199 #      in dotted decimal notation or valid DNS names (http_parent may
1200 #      be "." to denote "no HTTP forwarding"), and the optional port
1201 #      parameters are TCP ports, i.e. integer values from 1 to 65535
1202 #
1203 #  Default value:
1204 #
1205 #      Unset
1206 #
1207 #  Effect if unset:
1208 #
1209 #      Don't use SOCKS proxies.
1210 #
1211 #  Notes:
1212 #
1213 #      Multiple lines are OK, they are checked in sequence, and the
1214 #      last match wins.
1215 #
1216 #      The difference between forward-socks4 and forward-socks4a
1217 #      is that in the SOCKS 4A protocol, the DNS resolution of the
1218 #      target hostname happens on the SOCKS server, while in SOCKS 4
1219 #      it happens locally.
1220 #
1221 #      With forward-socks5 the DNS resolution will happen on the remote
1222 #      server as well.
1223 #
1224 #      socks_proxy and http_parent can be a numerical IPv6 address
1225 #      (if RFC 3493 is implemented). To prevent clashes with the port
1226 #      delimiter, the whole IP address has to be put into brackets. On
1227 #      the other hand a target_pattern containing an IPv6 address has
1228 #      to be put into angle brackets (normal brackets are reserved
1229 #      for regular expressions already).
1230 #
1231 #      If http_parent is ".", then requests are not forwarded to another
1232 #      HTTP proxy but are made (HTTP-wise) directly to the web servers,
1233 #      albeit through a SOCKS proxy.
1234 #
1235 #  Examples:
1236 #
1237 #      From the company example.com, direct connections are made to all
1238 #      "internal" domains, but everything outbound goes through their
1239 #      ISP's proxy by way of example.com's corporate SOCKS 4A gateway
1240 #      to the Internet.
1241 #
1242 #        forward-socks4a   /       socks-gw.example.com:1080    www-cache.isp.example.net:8080 
1243 #        forward           .example.com        .
1244 #
1245 #
1246 #      A rule that uses a SOCKS 4 gateway for all destinations but no
1247 #      HTTP parent looks like this:
1248 #
1249 #        forward-socks4   /               socks-gw.example.com:1080  .
1250 #
1251 #
1252 #      To chain Privoxy and Tor, both running on the same system,
1253 #      you would use something like:
1254 #
1255 #        forward-socks5   /               127.0.0.1:9050 .
1256 #
1257 #
1258 #      The public Tor network can't be used to reach your local network,
1259 #      if you need to access local servers you therefore might want
1260 #      to make some exceptions:
1261 #
1262 #        forward         192.168.*.*/     .  
1263 #        forward         10.*.*.*/        .  
1264 #        forward         127.*.*.*/       .
1265 #
1266 #
1267 #      Unencrypted connections to systems in these address ranges will
1268 #      be as (un) secure as the local network is, but the alternative
1269 #      is that you can't reach the local network through Privoxy at
1270 #      all. Of course this may actually be desired and there is no
1271 #      reason to make these exceptions if you aren't sure you need them.
1272 #
1273 #      If you also want to be able to reach servers in your local
1274 #      network by using their names, you will need additional exceptions
1275 #      that look like this:
1276 #
1277 #       forward           localhost/     .
1278 #
1279 #
1280 #
1281 #
1282 #  5.3. forwarded-connect-retries
1283 #  ===============================
1284 #
1285 #  Specifies:
1286 #
1287 #      How often Privoxy retries if a forwarded connection request
1288 #      fails.
1289 #
1290 #  Type of value:
1291 #
1292 #      Number of retries.
1293 #
1294 #  Default value:
1295 #
1296 #      0
1297 #
1298 #  Effect if unset:
1299 #
1300 #      Connections forwarded through other proxies are treated like
1301 #      direct connections and no retry attempts are made.
1302 #
1303 #  Notes:
1304 #
1305 #      forwarded-connect-retries is mainly interesting for socks4a
1306 #      connections, where Privoxy can't detect why the connections
1307 #      failed. The connection might have failed because of a DNS timeout
1308 #      in which case a retry makes sense, but it might also have failed
1309 #      because the server doesn't exist or isn't reachable. In this
1310 #      case the retry will just delay the appearance of Privoxy's
1311 #      error message.
1312 #
1313 #      Note that in the context of this option, "forwarded connections"
1314 #      includes all connections that Privoxy forwards through other
1315 #      proxies. This option is not limited to the HTTP CONNECT method.
1316 #
1317 #      Only use this option, if you are getting lots of
1318 #      forwarding-related error messages that go away when you try again
1319 #      manually. Start with a small value and check Privoxy's logfile
1320 #      from time to time, to see how many retries are usually needed.
1321 #
1322 #      Due to a bug, this option currently also causes Privoxy to
1323 #      retry in case of certain problems with direct connections.
1324 #
1325 #  Examples:
1326 #
1327 #      forwarded-connect-retries 1
1328 #
1329 forwarded-connect-retries  0
1330 #
1331 #
1332 #  6. MISCELLANEOUS
1333 #  =================
1334 #
1335 #  6.1. accept-intercepted-requests
1336 #  =================================
1337 #
1338 #  Specifies:
1339 #
1340 #      Whether intercepted requests should be treated as valid.
1341 #
1342 #  Type of value:
1343 #
1344 #      0 or 1
1345 #
1346 #  Default value:
1347 #
1348 #      0
1349 #
1350 #  Effect if unset:
1351 #
1352 #      Only proxy requests are accepted, intercepted requests are
1353 #      treated as invalid.
1354 #
1355 #  Notes:
1356 #
1357 #      If you don't trust your clients and want to force them to use
1358 #      Privoxy, enable this option and configure your packet filter
1359 #      to redirect outgoing HTTP connections into Privoxy.
1360 #
1361 #      Make sure that Privoxy's own requests aren't redirected as well.
1362 #      Additionally take care that Privoxy can't intentionally connect
1363 #      to itself, otherwise you could run into redirection loops if
1364 #      Privoxy's listening port is reachable by the outside or an
1365 #      attacker has access to the pages you visit.
1366 #
1367 #  Examples:
1368 #
1369 #      accept-intercepted-requests 1
1370 #
1371 accept-intercepted-requests 0
1372 #
1373 #
1374 #  6.2. allow-cgi-request-crunching
1375 #  =================================
1376 #
1377 #  Specifies:
1378 #
1379 #      Whether requests to Privoxy's CGI pages can be blocked or
1380 #      redirected.
1381 #
1382 #  Type of value:
1383 #
1384 #      0 or 1
1385 #
1386 #  Default value:
1387 #
1388 #      0
1389 #
1390 #  Effect if unset:
1391 #
1392 #      Privoxy ignores block and redirect actions for its CGI pages.
1393 #
1394 #  Notes:
1395 #
1396 #      By default Privoxy ignores block or redirect actions for
1397 #      its CGI pages.  Intercepting these requests can be useful in
1398 #      multi-user setups to implement fine-grained access control,
1399 #      but it can also render the complete web interface useless and
1400 #      make debugging problems painful if done without care.
1401 #
1402 #      Don't enable this option unless you're sure that you really
1403 #      need it.
1404 #
1405 #  Examples:
1406 #
1407 #      allow-cgi-request-crunching 1
1408 #
1409 allow-cgi-request-crunching 0
1410 #
1411 #
1412 #  6.3. split-large-forms
1413 #  =======================
1414 #
1415 #  Specifies:
1416 #
1417 #      Whether the CGI interface should stay compatible with broken
1418 #      HTTP clients.
1419 #
1420 #  Type of value:
1421 #
1422 #      0 or 1
1423 #
1424 #  Default value:
1425 #
1426 #      0
1427 #
1428 #  Effect if unset:
1429 #
1430 #      The CGI form generate long GET URLs.
1431 #
1432 #  Notes:
1433 #
1434 #      Privoxy's CGI forms can lead to rather long URLs. This isn't
1435 #      a problem as far as the HTTP standard is concerned, but it can
1436 #      confuse clients with arbitrary URL length limitations.
1437 #
1438 #      Enabling split-large-forms causes Privoxy to divide big forms
1439 #      into smaller ones to keep the URL length down. It makes editing
1440 #      a lot less convenient and you can no longer submit all changes
1441 #      at once, but at least it works around this browser bug.
1442 #
1443 #      If you don't notice any editing problems, there is no reason
1444 #      to enable this option, but if one of the submit buttons appears
1445 #      to be broken, you should give it a try.
1446 #
1447 #  Examples:
1448 #
1449 #      split-large-forms 1
1450 #
1451 split-large-forms 0
1452 #
1453 #
1454 #  6.4. keep-alive-timeout
1455 #  ========================
1456 #
1457 #  Specifies:
1458 #
1459 #      Number of seconds after which an open connection will no longer
1460 #      be reused.
1461 #
1462 #  Type of value:
1463 #
1464 #      Time in seconds.
1465 #
1466 #  Default value:
1467 #
1468 #      None
1469 #
1470 #  Effect if unset:
1471 #
1472 #      Connections are not kept alive.
1473 #
1474 #  Notes:
1475 #
1476 #      This option allows clients to keep the connection to Privoxy
1477 #      alive. If the server supports it, Privoxy will keep the
1478 #      connection to the server alive as well. Under certain
1479 #      circumstances this may result in speed-ups.
1480 #
1481 #      By default, Privoxy will close the connection to the server if
1482 #      the client connection gets closed, or if the specified timeout
1483 #      has been reached without a new request coming in. This behaviour
1484 #      can be changed with the connection-sharing option.
1485 #
1486 #      This option has no effect if Privoxy has been compiled without
1487 #      keep-alive support.
1488 #
1489 #      Note that a timeout of five seconds as used in the default
1490 #      configuration file significantly decreases the number of
1491 #      connections that will be reused.  The value is used because some
1492 #      browsers limit the number of connections they open to a single
1493 #      host and apply the same limit to proxies. This can result in a
1494 #      single website "grabbing" all the connections the browser allows,
1495 #      which means connections to other websites can't be opened until
1496 #      the connections currently in use time out.
1497 #
1498 #      Several users have reported this as a Privoxy bug, so the default
1499 #      value has been reduced. Consider increasing it to 300 seconds
1500 #      or even more if you think your browser can handle it. If your
1501 #      browser appears to be hanging it can't.
1502 #
1503 #  Examples:
1504 #
1505 #      keep-alive-timeout 300
1506 #
1507 keep-alive-timeout 5
1508 #
1509 #
1510 #  6.5. default-server-timeout
1511 #  ============================
1512 #
1513 #  Specifies:
1514 #
1515 #      Assumed server-side keep-alive timeout if not specified by
1516 #      the server.
1517 #
1518 #  Type of value:
1519 #
1520 #      Time in seconds.
1521 #
1522 #  Default value:
1523 #
1524 #      None
1525 #
1526 #  Effect if unset:
1527 #
1528 #      Connections for which the server didn't specify the keep-alive
1529 #      timeout are not reused.
1530 #
1531 #  Notes:
1532 #
1533 #      Enabling this option significantly increases the number of
1534 #      connections that are reused, provided the keep-alive-timeout
1535 #      option is also enabled.
1536 #
1537 #      While it also increases the number of connections problems when
1538 #      Privoxy tries to reuse a connection that already has been closed
1539 #      on the server side, or is closed while Privoxy is trying to
1540 #      reuse it, this should only be a problem if it happens for the
1541 #      first request sent by the client. If it happens for requests
1542 #      on reused client connections, Privoxy will simply close the
1543 #      connection and the client is supposed to retry the request
1544 #      without bothering the user.
1545 #
1546 #      Enabling this option is therefore only recommended if the
1547 #      connection-sharing option is disabled.
1548 #
1549 #      It is an error to specify a value larger than the
1550 #      keep-alive-timeout value.
1551 #
1552 #      This option has no effect if Privoxy has been compiled without
1553 #      keep-alive support.
1554 #
1555 #  Examples:
1556 #
1557 #      default-server-timeout 60
1558 #
1559 #default-server-timeout 60
1560 #
1561 #  6.6. connection-sharing
1562 #  ========================
1563 #
1564 #  Specifies:
1565 #
1566 #      Whether or not outgoing connections that have been kept alive
1567 #      should be shared between different incoming connections.
1568 #
1569 #  Type of value:
1570 #
1571 #      0 or 1
1572 #
1573 #  Default value:
1574 #
1575 #      None
1576 #
1577 #  Effect if unset:
1578 #
1579 #      Connections are not shared.
1580 #
1581 #  Notes:
1582 #
1583 #      This option has no effect if Privoxy has been compiled without
1584 #      keep-alive support, or if it's disabled.
1585 #
1586 #  Notes:
1587 #
1588 #      Note that reusing connections doesn't necessary cause
1589 #      speedups. There are also a few privacy implications you should
1590 #      be aware of.
1591 #
1592 #      If this option is effective, outgoing connections are shared
1593 #      between clients (if there are more than one) and closing the
1594 #      browser that initiated the outgoing connection does no longer
1595 #      affect the connection between Privoxy and the server unless
1596 #      the client's request hasn't been completed yet.
1597 #
1598 #      If the outgoing connection is idle, it will not be closed until
1599 #      either Privoxy's or the server's timeout is reached. While
1600 #      it's open, the server knows that the system running Privoxy is
1601 #      still there.
1602 #
1603 #      If there are more than one client (maybe even belonging to
1604 #      multiple users), they will be able to reuse each others
1605 #      connections. This is potentially dangerous in case of
1606 #      authentication schemes like NTLM where only the connection
1607 #      is authenticated, instead of requiring authentication for
1608 #      each request.
1609 #
1610 #      If there is only a single client, and if said client can keep
1611 #      connections alive on its own, enabling this option has next to
1612 #      no effect. If the client doesn't support connection keep-alive,
1613 #      enabling this option may make sense as it allows Privoxy to keep
1614 #      outgoing connections alive even if the client itself doesn't
1615 #      support it.
1616 #
1617 #      You should also be aware that enabling this option increases
1618 #      the likelihood of getting the "No server or forwarder data"
1619 #      error message, especially if you are using a slow connection
1620 #      to the Internet.
1621 #
1622 #      This option should only be used by experienced users who
1623 #      understand the risks and can weight them against the benefits.
1624 #
1625 #  Examples:
1626 #
1627 #      connection-sharing 1
1628 #
1629 #connection-sharing 1
1630 #
1631 #
1632 #  6.7. socket-timeout
1633 #  ====================
1634 #
1635 #  Specifies:
1636 #
1637 #      Number of seconds after which a socket times out if no data
1638 #      is received.
1639 #
1640 #  Type of value:
1641 #
1642 #      Time in seconds.
1643 #
1644 #  Default value:
1645 #
1646 #      None
1647 #
1648 #  Effect if unset:
1649 #
1650 #      A default value of 300 seconds is used.
1651 #
1652 #  Notes:
1653 #
1654 #      For SOCKS requests the timeout currently doesn't start until
1655 #      the SOCKS server accepted the request. This will be fixed in
1656 #      the next release.
1657 #
1658 #  Examples:
1659 #
1660 #      socket-timeout 300
1661 #
1662 socket-timeout 300
1663 #
1664 #
1665 #  6.8. max-client-connections
1666 #  ============================
1667 #
1668 #  Specifies:
1669 #
1670 #      Maximum number of client connections that will be served.
1671 #
1672 #  Type of value:
1673 #
1674 #      Positive number.
1675 #
1676 #  Default value:
1677 #
1678 #      None
1679 #
1680 #  Effect if unset:
1681 #
1682 #      Connections are served until a resource limit is reached.
1683 #
1684 #  Notes:
1685 #
1686 #      Privoxy creates one thread (or process) for every incoming
1687 #      client connection that isn't rejected based on the access
1688 #      control settings.
1689 #
1690 #      If the system is powerful enough, Privoxy can theoretically deal
1691 #      with several hundred (or thousand) connections at the same time,
1692 #      but some operating systems enforce resource limits by shutting
1693 #      down offending processes and their default limits may be below
1694 #      the ones Privoxy would require under heavy load.
1695 #
1696 #      Configuring Privoxy to enforce a connection limit below the
1697 #      thread or process limit used by the operating system makes
1698 #      sure this doesn't happen.  Simply increasing the operating
1699 #      system's limit would work too, but if Privoxy isn't the only
1700 #      application running on the system, you may actually want to
1701 #      limit the resources used by Privoxy.
1702 #
1703 #      If Privoxy is only used by a single trusted user, limiting the
1704 #      number of client connections is probably unnecessary. If there
1705 #      are multiple possibly untrusted users you probably still want
1706 #      to additionally use a packet filter to limit the maximal number
1707 #      of incoming connections per client. Otherwise a malicious user
1708 #      could intentionally create a high number of connections to
1709 #      prevent other users from using Privoxy.
1710 #
1711 #      Obviously using this option only makes sense if you choose a
1712 #      limit below the one enforced by the operating system.
1713 #
1714 #  Examples:
1715 #
1716 #      max-client-connections 256
1717 #
1718 #max-client-connections 256
1719 #
1720 #
1721 #  6.9. handle-as-empty-doc-returns-ok
1722 #  ====================================
1723 #
1724 #  Note:
1725 #
1726 #      This is a work-around for Firefox bug 492459: " Websites are no
1727 #      longer rendered if SSL requests for JavaScripts are blocked by
1728 #      a proxy. " (https:/ /bugzilla.mozilla.org/show_bug.cgi?id=492459)
1729 #
1730 #  Specifies:
1731 #
1732 #      The status code Privoxy returns for pages blocked with
1733 #      +handle-as-empty-document.
1734 #
1735 #  Type of value:
1736 #
1737 #      0 or 1
1738 #
1739 #  Default value:
1740 #
1741 #      0
1742 #
1743 #  Effect if unset:
1744 #
1745 #      Privoxy returns a status 403(forbidden) for all blocked pages.
1746 #
1747 #  Effect if set:
1748 #
1749 #      Privoxy returns a status 200(OK) for pages blocked with
1750 #      +handle-as-empty-document and a status 403(Forbidden) for all
1751 #      other blocked pages.
1752 #
1753 handle-as-empty-doc-returns-ok 1
1754 #
1755 #
1756 #  7. WINDOWS GUI OPTIONS
1757 #  =======================
1758 #
1759 #  Privoxy has a number of options specific to the Windows GUI
1760 #  interface:
1761 #
1762 #
1763 #  If "activity-animation" is set to 1, the Privoxy icon will animate
1764 #  when "Privoxy" is active. To turn off, set to 0.
1765 #
1766 #activity-animation   1
1767 #
1768 #  If "log-messages" is set to 1, Privoxy will log messages to the
1769 #  console window:
1770 #
1771 #log-messages   1
1772 #
1773 #  If "log-buffer-size" is set to 1, the size of the log buffer,
1774 #  i.e. the amount of memory used for the log messages displayed in
1775 #  the console window, will be limited to "log-max-lines" (see below).
1776 #
1777 #  Warning: Setting this to 0 will result in the buffer to grow
1778 #  infinitely and eat up all your memory!
1779 #
1780 #log-buffer-size 1
1781 #
1782 #  log-max-lines is the maximum number of lines held in the log
1783 #  buffer. See above.
1784 #
1785 #log-max-lines 200
1786 #
1787 #  If "log-highlight-messages" is set to 1, Privoxy will highlight
1788 #  portions of the log messages with a bold-faced font:
1789 #
1790 #log-highlight-messages 1
1791 #
1792 #  The font used in the console window:
1793 #
1794 #log-font-name Comic Sans MS
1795 #
1796 #  Font size used in the console window:
1797 #
1798 #log-font-size 8
1799 #
1800 #  "show-on-task-bar" controls whether or not Privoxy will appear as
1801 #  a button on the Task bar when minimized:
1802 #
1803 #show-on-task-bar 0
1804 #
1805 #  If "close-button-minimizes" is set to 1, the Windows close button
1806 #  will minimize Privoxy instead of closing the program (close with
1807 #  the exit option on the File menu).
1808 #
1809 #close-button-minimizes 1
1810 #
1811 #  The "hide-console" option is specific to the MS-Win console version
1812 #  of Privoxy.  If this option is used, Privoxy will disconnect from
1813 #  and hide the command console.
1814 #
1815 #hide-console
1816 #
1817 #