Use the IP_FREEBIND socket option, if defined
[privoxy.git] / doc / source / p-config.sgml
1 <!--
2  File        :  doc/source/p-config.sgml
3
4  Purpose     :  Used with other docs and files only.
5
6  Copyright (C) 2001-2019 Privoxy Developers https://www.privoxy.org/
7  See LICENSE.
8
9  ========================================================================
10  NOTE: Please read developer-manual/documentation.html before touching
11  anything in this, or other Privoxy documentation.
12  ========================================================================
13
14
15  This file contains all the config file comments and options. It used to
16  build both the user-manual config sections, and all of config (yes, the main
17  config file) itself.
18
19  Rationale: This is broken up into two files since a file with a prolog
20  (DTD, etc) cannot be sourced as a secondary file. config.sgml is basically
21  a wrapper for this file.
22
23  IMPORTANT:
24
25  OPTIONS: The actual options are included in this file and prefixed with
26  '@@', and processed by the Makefile to strip the '@@'. Default options
27  that should appear commented out should be listed as: '@@#OPTION'.
28  Otherwise, as '@@OPTION'. Example:
29
30   @@listen-address  127.0.0.1:8118
31
32  The Makefile does significant other processing too. The final results
33  should be checked to make sure that the perl processing does not
34  fubar something!!! Makefile processing requires w3m, fmt (shell line
35  formatter), and perl.
36
37
38  This file is included into:
39
40    user-manual.sgml
41    config   (the actual Privoxy config file)
42
43 -->
44
45 <![%user-man;[
46 <!-- This part only goes into user-manual -->
47 <sect1 id="config">
48 <title>The Main Configuration File</title>
49
50 <para>
51  By default, the main configuration file is named <filename>config</filename>,
52  with the exception of Windows, where it is named <filename>config.txt</filename>.
53  Configuration lines consist of an initial keyword followed by a list of
54  values, all separated by whitespace (any number of spaces or tabs). For
55  example:
56 </para>
57
58 <literallayout>
59   <emphasis>confdir /etc/privoxy</emphasis>
60 </literallayout>
61
62 <para>
63  Assigns the value <literal>/etc/privoxy</literal> to the option
64  <literal>confdir</literal> and thus indicates that the configuration
65  directory is named <quote>/etc/privoxy/</quote>.
66 </para>
67
68 <para>
69  All options in the config file except for <literal>confdir</literal> and
70  <literal>logdir</literal> are optional. Watch out in the below description
71  for what happens if you leave them unset.
72 </para>
73
74 <para>
75  The main config file controls all aspects of <application>Privoxy</application>'s
76  operation that are not location dependent (i.e. they apply universally, no matter
77  where you may be surfing). Like the filter and action files, the config file is
78  a plain text file and can be modified with a text editor like emacs, vim or
79  notepad.exe.
80 </para>
81
82 ]]>
83
84
85 <![%config-file;[
86 <!-- This part only goes into the config file -->
87 <sect1 id="config">
88 <title>
89  @@TITLE<!-- between the @@ is stripped by Makefile -->@@
90  Sample Configuration File for Privoxy &p-version;
91 </title>
92 <para>
93 Copyright (C) 2001-2019 Privoxy Developers https://www.privoxy.org/
94 </para>
95
96 <literallayout>
97 ##################################################################
98                                                                  #
99                     Table of Contents                            #
100                                                                  #
101       I. INTRODUCTION                                            #
102      II. FORMAT OF THE CONFIGURATION FILE                        #
103                                                                  #
104       1. LOCAL SET-UP DOCUMENTATION                              #
105       2. CONFIGURATION AND LOG FILE LOCATIONS                    #
106       3. DEBUGGING                                               #
107       4. ACCESS CONTROL AND SECURITY                             #
108       5. FORWARDING                                              #
109       6. MISCELLANEOUS                                           #
110       7. TLS                                                     #
111       8. WINDOWS GUI OPTIONS                                     #
112                                                                  #
113 ##################################################################
114
115
116 I. INTRODUCTION
117  ===============
118 </literallayout>
119
120 <para>
121  This file holds Privoxy's main configuration.  Privoxy detects
122  configuration changes automatically, so you don't have to restart it
123  unless you want to load a different configuration file.
124 </para>
125 <para>
126  The configuration will be reloaded with the first request after the
127  change was done, this request itself will still use the old configuration,
128  though. In other words: it takes two requests before you see the result of
129  your changes. Requests that are dropped due to ACL don't trigger reloads.
130 </para>
131 <para>
132  When starting Privoxy on Unix systems, give the location of this
133  file as last argument.  On Windows systems, Privoxy will look for
134  this file with the name 'config.txt' in the current working directory
135  of the Privoxy process.
136 </para>
137
138 <para>
139  <literallayout><!-- funky spacing -->
140
141 II. FORMAT OF THE CONFIGURATION FILE
142 ====================================</literallayout>
143 </para>
144 <para>
145  Configuration lines consist of an initial keyword followed by a list
146  of values, all separated by whitespace (any number of spaces or
147  tabs).  For example,
148 </para>
149 <para>
150  actionsfile default.action
151 </para>
152 <para>
153  Indicates that the actionsfile is named 'default.action'.
154 </para>
155 <para>
156  The '#' indicates a comment.  Any part of a line following a '#' is
157  ignored, except if the '#' is preceded by a '\'.
158 </para>
159 <para>
160  Thus, by placing a # at the start of an existing configuration line,
161  you can make it a comment and it will be treated as if it weren't there.
162  This is called "commenting out" an option and can be useful. Removing
163  the # again is called "uncommenting".
164 </para>
165 <para>
166  Note that commenting out an option and leaving it at its default
167  are two completely different things! Most options behave very
168  differently when unset. See the "Effect if unset" explanation
169  in each option's description for details.
170 </para>
171 <para>
172  Long lines can be continued on the next line by using a `\' as
173  the last character.
174 </para>
175
176 ]]>
177
178 <!-- ************************************************ -->
179 <!-- The following is common to both outputs (mostly) -->
180 <!-- ************************************************ -->
181
182
183
184 <!--   ~~~~~       New section      ~~~~~     -->
185 <sect2 id="local-set-up">
186 <title>Local Set-up Documentation</title>
187
188   <para>
189     If you intend to operate <application>Privoxy</application> for more users
190     than just yourself, it might be a good idea to let them know how to reach
191     you, what you block and why you do that, your policies, etc.
192    </para>
193
194
195 <!--   ~~~~~       New section      ~~~~~     -->
196 <sect3 renderas="sect4" id="user-manual"><title>user-manual</title>
197 <variablelist>
198  <varlistentry>
199   <term>Specifies:</term>
200   <listitem>
201    <para>
202     Location of the <application>Privoxy</application> User Manual.
203    </para>
204   </listitem>
205  </varlistentry>
206  <varlistentry>
207   <term>Type of value:</term>
208   <listitem>
209    <para>A fully qualified URI</para>
210   </listitem>
211  </varlistentry>
212  <varlistentry>
213   <term>Default value:</term>
214   <listitem>
215    <para><emphasis>Unset</emphasis></para>
216   </listitem>
217  </varlistentry>
218  <varlistentry>
219   <term>Effect if unset:</term>
220   <listitem>
221    <para>
222     <ulink url="https://www.privoxy.org/user-manual/">https://www.privoxy.org/<replaceable class="parameter">version</replaceable>/user-manual/</ulink>
223     will be used, where <replaceable class="parameter">version</replaceable> is the <application>Privoxy</application> version.
224    </para>
225   </listitem>
226  </varlistentry>
227  <varlistentry>
228   <term>Notes:</term>
229   <listitem>
230     <para>
231     The User Manual URI is the single best source of information on
232     <application>Privoxy</application>, and is used for help links from some
233     of the internal CGI pages. The manual itself is normally packaged with the
234     binary distributions, so you probably want to set this to a locally
235     installed copy.
236    </para>
237    <para>
238     Examples:
239    </para>
240   <!--
241   <para>
242    Unix, in local filesystem (may not work with all browsers):
243   </para>
244    <screen>&nbsp;&nbsp;user-manual&nbsp;&nbsp;file:///usr/share/doc/privoxy-&p-version;/user-manual/</screen>
245   <para>
246    Windows, in local filesystem, <emphasis>must</emphasis> use forward slash notation:
247   </para>
248    <screen>&nbsp;&nbsp;user-manual&nbsp;&nbsp;file:/c:/some-dir/privoxy-&p-version;/user-manual/</screen>
249   <para>
250    Windows, UNC notation (with forward slashes):
251   </para>
252    <screen>&nbsp;&nbsp;user-manual&nbsp;&nbsp;file://///some-server/some-path/privoxy-&p-version;/user-manual/</screen>
253  -->
254   <para>
255    The best all purpose solution is simply to put the full local
256    <literal>PATH</literal> to where the <citetitle>User Manual</citetitle> is
257    located:
258   </para>
259    <screen>  user-manual  /usr/share/doc/privoxy/user-manual</screen>
260   <para>
261    The User Manual is then available to anyone with access to
262    <application>Privoxy</application>, by following the built-in URL:
263    <literal>http://config.privoxy.org/user-manual/</literal>
264    (or the shortcut: <literal>http://p.p/user-manual/</literal>).
265   </para>
266   <para>
267    If the documentation is not on the local system, it can be accessed
268    from a remote server, as:
269   </para>
270    <screen>  user-manual  http://example.com/privoxy/user-manual/</screen>
271   <![%user-man;[
272    <!-- this gets hammered in conversion to config. Text repeated below. -->
273   <warning>
274    <para>
275      If set, this option should be <emphasis>the first option in the config
276      file</emphasis>, because it is used while the config file is being read
277      on start-up.
278    </para>
279   </warning>
280   ]]>
281
282   <![%config-file;[
283    <!-- alternate -->
284    <para>
285     WARNING!!!
286    </para>
287    <blockquote>
288     <para>
289      If set, this option should be the first option in the config
290      file, because it is used while the config file is being read.
291     </para>
292    </blockquote>
293   ]]>
294
295  </listitem>
296  </varlistentry>
297 </variablelist>
298
299 <![%config-file;[<literallayout>@@#user-manual https://www.privoxy.org/user-manual/</literallayout>]]>
300 </sect3>
301
302
303 <!--   ~~~~~       New section      ~~~~~     -->
304 <sect3 renderas="sect4" id="trust-info-url"><title>trust-info-url</title>
305
306 <variablelist>
307  <varlistentry>
308   <term>Specifies:</term>
309   <listitem>
310    <para>
311     A URL to be displayed in the error page that users will see if access to an untrusted page is denied.
312    </para>
313   </listitem>
314  </varlistentry>
315  <varlistentry>
316   <term>Type of value:</term>
317   <listitem>
318    <para>URL</para>
319   </listitem>
320  </varlistentry>
321  <varlistentry>
322   <term>Default value:</term>
323   <listitem>
324    <para><emphasis>Unset</emphasis></para>
325   </listitem>
326  </varlistentry>
327  <varlistentry>
328   <term>Effect if unset:</term>
329   <listitem>
330    <para>
331     No links are displayed on the "untrusted" error page.
332    </para>
333   </listitem>
334  </varlistentry>
335  <varlistentry>
336   <term>Notes:</term>
337   <listitem>
338    <para>
339     The value of this option only matters if the experimental trust mechanism has been
340     activated. (See <link linkend="trustfile"><emphasis>trustfile</emphasis></link> below.)
341    </para>
342    <para>
343     If you use the trust mechanism, it is a good idea to write up some on-line
344     documentation about your trust policy and to specify the URL(s) here.
345     Use multiple times for multiple URLs.
346    </para>
347    <para>
348     The URL(s) should be added to the trustfile as well, so users don't end up
349     locked out from the information on why they were locked out in the first place!
350    </para>
351   </listitem>
352  </varlistentry>
353 </variablelist>
354
355 <![%config-file;[<literallayout>@@#trust-info-url  http://www.example.com/why_we_block.html</literallayout>]]>
356 <![%config-file;[<literallayout>@@#trust-info-url  http://www.example.com/what_we_allow.html</literallayout>]]>
357 </sect3>
358
359
360 <!--   ~~~~~       New section      ~~~~~     -->
361 <sect3 renderas="sect4" id="admin-address"><title>admin-address</title>
362
363 <variablelist>
364  <varlistentry>
365   <term>Specifies:</term>
366   <listitem>
367    <para>
368     An email address to reach the <application>Privoxy</application> administrator.
369    </para>
370   </listitem>
371  </varlistentry>
372  <varlistentry>
373   <term>Type of value:</term>
374   <listitem>
375    <para>Email address</para>
376   </listitem>
377  </varlistentry>
378  <varlistentry>
379   <term>Default value:</term>
380   <listitem>
381    <para><emphasis>Unset</emphasis></para>
382   </listitem>
383  </varlistentry>
384  <varlistentry>
385   <term>Effect if unset:</term>
386   <listitem>
387    <para>
388     No email address is displayed on error pages and the CGI user interface.
389    </para>
390   </listitem>
391  </varlistentry>
392  <varlistentry>
393   <term>Notes:</term>
394   <listitem>
395    <para>
396     If both <literal>admin-address</literal> and <literal>proxy-info-url</literal>
397     are unset, the whole "Local Privoxy Support" box on all generated pages will
398     not be shown.
399    </para>
400   </listitem>
401  </varlistentry>
402 </variablelist>
403
404 <![%config-file;[<literallayout>@@#admin-address privoxy-admin@example.com</literallayout>]]>
405 </sect3>
406
407
408 <!--   ~~~~~       New section      ~~~~~     -->
409 <sect3 renderas="sect4" id="proxy-info-url"><title>proxy-info-url</title>
410
411 <variablelist>
412  <varlistentry>
413   <term>Specifies:</term>
414   <listitem>
415    <para>
416     A URL to documentation about the local <application>Privoxy</application> setup,
417     configuration or policies.
418    </para>
419   </listitem>
420  </varlistentry>
421  <varlistentry>
422   <term>Type of value:</term>
423   <listitem>
424    <para>URL</para>
425   </listitem>
426  </varlistentry>
427  <varlistentry>
428   <term>Default value:</term>
429   <listitem>
430    <para><emphasis>Unset</emphasis></para>
431   </listitem>
432  </varlistentry>
433  <varlistentry>
434   <term>Effect if unset:</term>
435   <listitem>
436    <para>
437     No link to local documentation is displayed on error pages and the CGI user interface.
438    </para>
439   </listitem>
440  </varlistentry>
441  <varlistentry>
442   <term>Notes:</term>
443   <listitem>
444    <para>
445     If both <literal>admin-address</literal> and <literal>proxy-info-url</literal>
446     are unset, the whole "Local Privoxy Support" box on all generated pages will
447     not be shown.
448    </para>
449    <para>
450     This URL shouldn't be blocked ;-)
451    </para>
452   </listitem>
453  </varlistentry>
454 </variablelist>
455
456 <![%config-file;[<literallayout>@@#proxy-info-url http://www.example.com/proxy-service.html</literallayout>]]>
457 </sect3>
458
459 </sect2>
460 <!--  ~  End section  ~  -->
461
462
463
464 <!--   ~~~~~       New section      ~~~~~     -->
465
466 <sect2 id="conf-log-loc">
467 <title>Configuration and Log File Locations</title>
468
469 <para>
470  <application>Privoxy</application> can (and normally does) use a number of
471  other files for additional configuration, help and logging.
472  This section of the configuration file tells <application>Privoxy</application>
473  where to find those other files.
474 </para>
475
476 <para>
477  The user running <application>Privoxy</application>, must have read
478  permission for all configuration files, and write permission to any files
479  that would be modified, such as log files and actions files.
480 </para>
481
482
483 <!--   ~~~~~       New section      ~~~~~     -->
484 <sect3 renderas="sect4" id="confdir"><title>confdir</title>
485
486 <variablelist>
487  <varlistentry>
488   <term>Specifies:</term>
489   <listitem>
490    <para>The directory where the other configuration files are located.</para>
491   </listitem>
492  </varlistentry>
493  <varlistentry>
494   <term>Type of value:</term>
495   <listitem>
496    <para>Path name</para>
497   </listitem>
498  </varlistentry>
499  <varlistentry>
500   <term>Default value:</term>
501   <listitem>
502    <para>/etc/privoxy (Unix) <emphasis>or</emphasis> <application>Privoxy</application> installation dir (Windows) </para>
503   </listitem>
504  </varlistentry>
505  <varlistentry>
506   <term>Effect if unset:</term>
507   <listitem>
508    <para><emphasis>Mandatory</emphasis></para>
509   </listitem>
510  </varlistentry>
511  <varlistentry>
512   <term>Notes:</term>
513   <listitem>
514    <para>
515     No trailing <quote><literal>/</literal></quote>, please.
516    </para>
517   </listitem>
518  </varlistentry>
519 </variablelist>
520
521 <![%config-file;[<literallayout>@@confdir .</literallayout>]]>
522 </sect3>
523
524 <!--   ~~~~~       New section      ~~~~~     -->
525 <sect3 renderas="sect4" id="templdir"><title>templdir</title>
526
527 <variablelist>
528  <varlistentry>
529   <term>Specifies:</term>
530   <listitem>
531    <para>An alternative directory where the templates are loaded from.</para>
532   </listitem>
533  </varlistentry>
534  <varlistentry>
535   <term>Type of value:</term>
536   <listitem>
537    <para>Path name</para>
538   </listitem>
539  </varlistentry>
540  <varlistentry>
541   <term>Default value:</term>
542   <listitem>
543    <para>unset</para>
544   </listitem>
545  </varlistentry>
546  <varlistentry>
547   <term>Effect if unset:</term>
548   <listitem>
549    <para>The templates are assumed to be located in confdir/template.</para>
550   </listitem>
551  </varlistentry>
552  <varlistentry>
553   <term>Notes:</term>
554   <listitem>
555    <para>
556     <application>Privoxy's</application> original templates are usually
557     overwritten with each update. Use this option to relocate customized
558     templates that should be kept. As template variables might change
559     between updates, you shouldn't expect templates to work with
560     <application>Privoxy</application> releases other than the one
561     they were part of, though.
562    </para>
563   </listitem>
564  </varlistentry>
565 </variablelist>
566
567 <![%config-file;[<literallayout>@@#templdir .</literallayout>]]>
568 </sect3>
569
570
571 <!--   ~~~~~       New section      ~~~~~     -->
572 <sect3 renderas="sect4" id="temporary-directory"><title>temporary-directory</title>
573
574 <variablelist>
575  <varlistentry>
576   <term>Specifies:</term>
577   <listitem>
578    <para>A directory where Privoxy can create temporary files.</para>
579   </listitem>
580  </varlistentry>
581  <varlistentry>
582   <term>Type of value:</term>
583   <listitem>
584    <para>Path name</para>
585   </listitem>
586  </varlistentry>
587  <varlistentry>
588   <term>Default value:</term>
589   <listitem>
590    <para>unset</para>
591   </listitem>
592  </varlistentry>
593  <varlistentry>
594   <term>Effect if unset:</term>
595   <listitem>
596    <para>No temporary files are created, external filters don't work.</para>
597   </listitem>
598  </varlistentry>
599  <varlistentry>
600   <term>Notes:</term>
601   <listitem>
602    <para>
603     To execute <literal><ulink url="actions-file.html#EXTERNAL-FILTER">external filters</ulink></literal>,
604     <application>Privoxy</application> has to create temporary files.
605     This directive specifies the directory the temporary files should
606     be written to.
607    </para>
608    <para>
609     It should be a directory only <application>Privoxy</application>
610     (and trusted users) can access.
611    </para>
612   </listitem>
613  </varlistentry>
614 </variablelist>
615
616 <![%config-file;[<literallayout>@@#temporary-directory .</literallayout>]]>
617 </sect3>
618
619
620 <!--   ~~~~~       New section      ~~~~~     -->
621 <sect3 renderas="sect4" id="logdir"><title>logdir</title>
622
623 <variablelist>
624  <varlistentry>
625   <term>Specifies:</term>
626   <listitem>
627    <para>
628     The directory where all logging takes place
629     (i.e. where the <filename>logfile</filename> is located).
630    </para>
631   </listitem>
632  </varlistentry>
633  <varlistentry>
634   <term>Type of value:</term>
635   <listitem>
636    <para>Path name</para>
637   </listitem>
638  </varlistentry>
639  <varlistentry>
640   <term>Default value:</term>
641   <listitem>
642    <para>/var/log/privoxy (Unix) <emphasis>or</emphasis> <application>Privoxy</application> installation dir (Windows) </para>
643   </listitem>
644  </varlistentry>
645  <varlistentry>
646   <term>Effect if unset:</term>
647   <listitem>
648    <para><emphasis>Mandatory</emphasis></para>
649   </listitem>
650  </varlistentry>
651  <varlistentry>
652   <term>Notes:</term>
653   <listitem>
654    <para>
655     No trailing <quote><literal>/</literal></quote>, please.
656    </para>
657   </listitem>
658  </varlistentry>
659 </variablelist>
660
661 <![%config-file;[<literallayout>@@logdir .</literallayout>]]>
662 </sect3>
663
664
665 <!--   ~~~~~       New section      ~~~~~     -->
666 <sect3 renderas="sect4" id="actionsfile"><title>
667 actionsfile
668 </title>
669 <anchor id="default.action">
670 <anchor id="standard.action">
671 <anchor id="user.action">
672 <!-- Note: slightly modified this section 04/28/02, hal. See NOTE. -->
673 <variablelist>
674  <varlistentry>
675   <term>Specifies:</term>
676   <listitem>
677    <para>
678     The <link linkend="actions-file">actions file(s)</link> to use
679    </para>
680   </listitem>
681  </varlistentry>
682  <varlistentry>
683   <term>Type of value:</term>
684   <listitem>
685    <para>Complete file name, relative to <literal>confdir</literal></para>
686   </listitem>
687  </varlistentry>
688  <varlistentry>
689   <term>Default values:</term>
690   <listitem>
691    <simplelist>
692     <member>
693      <msgtext><literallayout>  match-all.action # Actions that are applied to all sites and maybe overruled later on.</literallayout></msgtext>
694     </member>
695     <member>
696      <msgtext><literallayout>  default.action   # Main actions file</literallayout></msgtext>
697     </member>
698     <member>
699      <msgtext><literallayout>  user.action      # User customizations</literallayout></msgtext>
700     </member>
701    </simplelist>
702   </listitem>
703  </varlistentry>
704  <varlistentry>
705   <term>Effect if unset:</term>
706   <listitem>
707    <para>
708     No actions are taken at all. More or less neutral proxying.
709    </para>
710   </listitem>
711  </varlistentry>
712  <varlistentry>
713   <term>Notes:</term>
714   <listitem>
715    <para>
716     Multiple <literal>actionsfile</literal> lines are permitted, and are in fact recommended!
717    </para>
718    <para>
719     The default values are <filename>default.action</filename>, which is the
720     <quote>main</quote> actions file maintained by the developers, and
721     <filename>user.action</filename>, where you can make your personal additions.
722    </para>
723    <para>
724     Actions files contain all the per site and per URL configuration for
725     ad blocking, cookie management, privacy considerations, etc.
726    </para>
727   </listitem>
728  </varlistentry>
729 </variablelist>
730
731 <!-- NOTE: alternate markup to make a simpler list doesn't work due to -->
732 <!-- html -> text conversion, blah -->
733 <![%config-file;[<literallayout>@@actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.</literallayout>]]>
734 <![%config-file;[<literallayout>@@actionsfile default.action   # Main actions file</literallayout>]]>
735 <!--
736  XXX: Like user.filter, user.action should probably be commented out
737  by default as not all packages install it into the default directory.
738  fk 2007-11-07
739 -->
740 <![%config-file;[<literallayout>@@actionsfile user.action      # User customizations</literallayout>]]>
741 </sect3>
742
743 <!--   ~~~~~       New section      ~~~~~     -->
744 <sect3 renderas="sect4" id="filterfile"><title>filterfile</title>
745 <anchor id="default.filter">
746 <variablelist>
747  <varlistentry>
748   <term>Specifies:</term>
749   <listitem>
750    <para>
751     The <link linkend="filter-file">filter file(s)</link> to use
752    </para>
753   </listitem>
754  </varlistentry>
755  <varlistentry>
756   <term>Type of value:</term>
757   <listitem>
758    <para>File name, relative to <literal>confdir</literal></para>
759   </listitem>
760  </varlistentry>
761  <varlistentry>
762   <term>Default value:</term>
763   <listitem>
764    <para>default.filter (Unix) <emphasis>or</emphasis> default.filter.txt (Windows)</para>
765   </listitem>
766  </varlistentry>
767  <varlistentry>
768   <term>Effect if unset:</term>
769   <listitem>
770    <para>
771     No textual content filtering takes place, i.e. all
772     <literal>+<link linkend="filter">filter</link>{<replaceable class="parameter">name</replaceable>}</literal>
773     actions in the actions files are turned neutral.
774    </para>
775   </listitem>
776  </varlistentry>
777  <varlistentry>
778   <term>Notes:</term>
779   <listitem>
780    <para>
781     Multiple <literal>filterfile</literal> lines are permitted.
782    </para>
783    <para>
784     The <link linkend="filter-file">filter files</link> contain content modification
785     rules that use <link linkend="regex">regular expressions</link>. These rules permit
786     powerful changes on the content of Web pages, and optionally the headers
787     as well, e.g., you could try to disable your favorite JavaScript annoyances,
788     re-write the actual displayed text, or just have some fun
789     playing buzzword bingo with web pages.
790    </para>
791    <para>
792     The
793     <literal>+<link linkend="filter">filter</link>{<replaceable class="parameter">name</replaceable>}</literal>
794     actions rely on the relevant filter (<replaceable class="parameter">name</replaceable>)
795     to be defined in a filter file!
796    </para>
797    <para>
798     A pre-defined filter file called <filename>default.filter</filename> that contains
799     a number of useful filters for common problems is included in the distribution.
800     See the section on the <literal><link linkend="filter">filter</link></literal>
801     action for a list.
802    </para>
803    <para>
804     It is recommended to place any locally adapted filters into a separate
805     file, such as <filename>user.filter</filename>.
806    </para>
807   </listitem>
808  </varlistentry>
809 </variablelist>
810
811 <![%config-file;[<literallayout>@@filterfile default.filter</literallayout>]]>
812 <![%config-file;[<literallayout>@@filterfile user.filter      # User customizations</literallayout>]]>
813 </sect3>
814
815
816 <!--   ~~~~~       New section      ~~~~~     -->
817 <sect3 renderas="sect4" id="logfile"><title>logfile</title>
818
819 <variablelist>
820  <varlistentry>
821   <term>Specifies:</term>
822   <listitem>
823    <para>
824     The log file to use
825    </para>
826   </listitem>
827  </varlistentry>
828  <varlistentry>
829   <term>Type of value:</term>
830   <listitem>
831    <para>File name, relative to <literal>logdir</literal></para>
832   </listitem>
833  </varlistentry>
834  <varlistentry>
835   <term>Default value:</term>
836   <listitem>
837    <para><emphasis>Unset (commented out)</emphasis>. When activated: logfile (Unix) <emphasis>or</emphasis> privoxy.log (Windows).</para>
838   </listitem>
839  </varlistentry>
840  <varlistentry>
841   <term>Effect if unset:</term>
842   <listitem>
843    <para>
844     No logfile is written.
845    </para>
846   </listitem>
847  </varlistentry>
848  <varlistentry>
849   <term>Notes:</term>
850   <listitem>
851    <para>
852     The logfile is where all logging and error messages are written. The level
853     of detail and number of messages are set with the <literal>debug</literal>
854     option (see below). The logfile can be useful for tracking down a problem with
855     <application>Privoxy</application> (e.g., it's not blocking an ad you
856     think it should block) and it can help you to monitor what your browser
857     is doing.
858    </para>
859    <para>
860     Depending on the debug options below, the logfile may be a privacy risk
861     if third parties can get access to it. As most users will never look
862     at it, <application>Privoxy</application> only logs fatal errors by default.
863    </para>
864    <para>
865     For most troubleshooting purposes, you will have to change that,
866     please refer to the debugging section for details.
867    </para>
868    <para>
869     Any log files must be writable by whatever user <application>Privoxy</application>
870     is being run as (on Unix, default user id is <quote>privoxy</quote>).
871    </para>
872    <para>
873     To prevent the logfile from growing indefinitely, it is recommended to
874     periodically rotate or shorten it. Many operating systems support log
875     rotation out of the box, some require additional software to do it.
876     For details, please refer to the documentation for your operating system.
877    </para>
878   </listitem>
879  </varlistentry>
880 </variablelist>
881
882 <![%config-file;[<literallayout>@@logfile logfile</literallayout>]]>
883 </sect3>
884
885
886 <!--   ~~~~~       New section      ~~~~~     -->
887 <sect3 renderas="sect4" id="trustfile"><title>trustfile</title>
888 <variablelist>
889  <varlistentry>
890   <term>Specifies:</term>
891   <listitem>
892    <para>
893     The name of the trust file to use
894    </para>
895   </listitem>
896  </varlistentry>
897  <varlistentry>
898   <term>Type of value:</term>
899   <listitem>
900    <para>File name, relative to <literal>confdir</literal></para>
901   </listitem>
902  </varlistentry>
903  <varlistentry>
904   <term>Default value:</term>
905   <listitem>
906    <para><emphasis>Unset (commented out)</emphasis>. When activated: trust (Unix) <emphasis>or</emphasis> trust.txt (Windows)</para>
907   </listitem>
908  </varlistentry>
909  <varlistentry>
910   <term>Effect if unset:</term>
911   <listitem>
912    <para>
913     The entire trust mechanism is disabled.
914    </para>
915   </listitem>
916  </varlistentry>
917  <varlistentry>
918   <term>Notes:</term>
919   <listitem>
920    <para>
921     The trust mechanism is an experimental feature for building white-lists and should
922     be used with care. It is <emphasis>NOT</emphasis> recommended for the casual user.
923    </para>
924    <para>
925     If you specify a trust file, <application>Privoxy</application> will only allow
926     access to sites that are specified in the trustfile. Sites can be listed
927     in one of two ways:
928    </para>
929    <para>
930     Prepending a <literal>~</literal> character limits access to this site
931     only (and any sub-paths within this site), e.g.
932     <literal>~www.example.com</literal> allows access to
933     <literal>~www.example.com/features/news.html</literal>, etc.
934    </para>
935    <para>
936     Or, you can designate sites as <emphasis>trusted referrers</emphasis>, by
937     prepending the name with a <literal>+</literal> character. The effect is that
938     access to untrusted sites will be granted -- but only if a link from this
939     trusted referrer was used to get there. The link target will then be added
940     to the <quote>trustfile</quote> so that future, direct accesses will be
941     granted. Sites added via this mechanism do not become trusted referrers
942     themselves (i.e. they are added with a <literal>~</literal> designation).
943     There is a limit of 512 such entries, after which new entries will not be
944     made.
945    </para>
946    <para>
947     If you use the <literal>+</literal> operator in the trust file, it may grow
948     considerably over time.
949    </para>
950    <para>
951     It is recommended that <application>Privoxy</application> be compiled with
952     the <literal>--disable-force</literal>, <literal>--disable-toggle</literal> and
953     <literal> --disable-editor</literal> options, if this feature is to be
954     used.
955    </para>
956    <para>
957     Possible applications include limiting Internet access for children.
958    </para>
959
960   </listitem>
961  </varlistentry>
962 </variablelist>
963
964 <![%config-file;[<literallayout>@@#trustfile trust</literallayout>]]>
965 </sect3>
966 </sect2>
967
968 <!--  ~  End section  ~  -->
969
970 <!--   ~~~~~       New section      ~~~~~     -->
971 <sect2 id="debugging">
972 <title>Debugging</title>
973
974  <para>
975   These options are mainly useful when tracing a problem.
976   Note that you might also want to invoke
977   <application>Privoxy</application> with the <literal>--no-daemon</literal>
978   command line option when debugging.
979  </para>
980
981 <sect3 renderas="sect4" id="debug"><title>debug</title>
982
983 <variablelist>
984  <varlistentry>
985   <term>Specifies:</term>
986   <listitem>
987    <para>
988     Key values that determine what information gets logged.
989    </para>
990   </listitem>
991  </varlistentry>
992  <varlistentry>
993   <term>Type of value:</term>
994   <listitem>
995    <para>Integer values</para>
996   </listitem>
997  </varlistentry>
998  <varlistentry>
999   <term>Default value:</term>
1000   <listitem>
1001    <para>0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)</para>
1002   </listitem>
1003  </varlistentry>
1004  <varlistentry>
1005   <term>Effect if unset:</term>
1006   <listitem>
1007    <para>
1008     Default value is used (see above).
1009    </para>
1010   </listitem>
1011  </varlistentry>
1012  <varlistentry>
1013   <term>Notes:</term>
1014   <listitem>
1015    <para>
1016     The available debug levels are:
1017    </para>
1018     <programlisting>
1019   debug     1 # Log the destination for each request &my-app; let through. See also debug 1024.
1020   debug     2 # show each connection status
1021   debug     4 # show I/O status
1022   debug     8 # show header parsing
1023   debug    16 # log all data written to the network
1024   debug    32 # debug force feature
1025   debug    64 # debug regular expression filters
1026   debug   128 # debug redirects
1027   debug   256 # debug GIF de-animation
1028   debug   512 # Common Log Format
1029   debug  1024 # Log the destination for requests &my-app; didn't let through, and the reason why.
1030   debug  2048 # CGI user interface
1031   debug  4096 # Startup banner and warnings.
1032   debug  8192 # Non-fatal errors
1033   debug 32768 # log all data read from the network
1034   debug 65536 # Log the applying actions
1035 </programlisting>
1036    <para>
1037     To select multiple debug levels, you can either add them or use
1038     multiple <literal>debug</literal> lines.
1039    </para>
1040    <para>
1041     A debug level of 1 is informative because it will show you each request
1042     as it happens. <emphasis>1, 1024, 4096 and 8192 are recommended</emphasis>
1043     so that you will notice when things go wrong. The other levels are
1044     probably only of interest if you are hunting down a specific problem.
1045     They can produce a hell of an output (especially 16).
1046    </para>
1047    <para>
1048     If you are used to the more verbose settings, simply enable the debug lines
1049     below again.
1050    </para>
1051    <para>
1052     If you want to use pure CLF (Common Log Format), you should set <quote>debug
1053     512</quote> <emphasis>ONLY</emphasis> and not enable anything else.
1054    </para>
1055    <para>
1056     <application>Privoxy</application> has a hard-coded limit for the
1057     length of log messages. If it's reached, messages are logged truncated
1058     and marked with <quote>... [too long, truncated]</quote>.
1059    </para>
1060    <para>
1061     Please don't file any support requests without trying to reproduce
1062     the problem with increased debug level first. Once you read the log
1063     messages, you may even be able to solve the problem on your own.
1064    </para>
1065   </listitem>
1066  </varlistentry>
1067 </variablelist>
1068
1069 <![%config-file;[<literallayout>@@#debug     1 # Log the destination for each request &my-app; let through.</literallayout>]]>
1070 <![%config-file;[<literallayout>@@#debug  1024 # Log the destination for requests &my-app; didn't let through, and the reason why.</literallayout>]]>
1071 <![%config-file;[<literallayout>@@#debug  4096 # Startup banner and warnings</literallayout>]]>
1072 <![%config-file;[<literallayout>@@#debug  8192 # Non-fatal errors</literallayout>]]>
1073 </sect3>
1074
1075
1076 <!--   ~~~~~       New section      ~~~~~     -->
1077 <sect3 renderas="sect4" id="single-threaded"><title>single-threaded</title>
1078
1079 <variablelist>
1080  <varlistentry>
1081   <term>Specifies:</term>
1082   <listitem>
1083    <para>
1084     Whether to run only one server thread.
1085    </para>
1086   </listitem>
1087  </varlistentry>
1088  <varlistentry>
1089   <term>Type of value:</term>
1090   <listitem>
1091    <para><emphasis>1 or 0</emphasis></para>
1092   </listitem>
1093  </varlistentry>
1094  <varlistentry>
1095   <term>Default value:</term>
1096   <listitem>
1097    <para><emphasis>0</emphasis></para>
1098   </listitem>
1099  </varlistentry>
1100  <varlistentry>
1101   <term>Effect if unset:</term>
1102   <listitem>
1103    <para>
1104     Multi-threaded (or, where unavailable: forked) operation, i.e. the ability to
1105     serve multiple requests simultaneously.
1106    </para>
1107   </listitem>
1108  </varlistentry>
1109  <varlistentry>
1110   <term>Notes:</term>
1111   <listitem>
1112    <para>
1113     This option is only there for debugging purposes.
1114     <emphasis>It will drastically reduce performance.</emphasis>
1115    </para>
1116   </listitem>
1117  </varlistentry>
1118 </variablelist>
1119
1120 <![%config-file;[<literallayout>@@#single-threaded 1</literallayout>]]>
1121 </sect3>
1122
1123 <!--   ~~~~~       New section      ~~~~~     -->
1124 <sect3 renderas="sect4" id="hostname"><title>hostname</title>
1125
1126 <variablelist>
1127  <varlistentry>
1128   <term>Specifies:</term>
1129   <listitem>
1130    <para>
1131     The hostname shown on the CGI pages.
1132    </para>
1133   </listitem>
1134  </varlistentry>
1135  <varlistentry>
1136   <term>Type of value:</term>
1137   <listitem>
1138    <para>Text</para>
1139   </listitem>
1140  </varlistentry>
1141  <varlistentry>
1142   <term>Default value:</term>
1143   <listitem>
1144    <para><emphasis>Unset</emphasis></para>
1145   </listitem>
1146  </varlistentry>
1147  <varlistentry>
1148   <term>Effect if unset:</term>
1149   <listitem>
1150    <para>
1151     The hostname provided by the operating system is used.
1152    </para>
1153   </listitem>
1154  </varlistentry>
1155  <varlistentry>
1156   <term>Notes:</term>
1157   <listitem>
1158    <para>
1159     On some misconfigured systems resolving the hostname fails or
1160     takes too much time and slows Privoxy down. Setting a fixed hostname
1161     works around the problem.
1162    </para>
1163    <para>
1164     In other circumstances it might be desirable to show a hostname
1165     other than the one returned by the operating system. For example
1166     if the system has several different hostnames and you don't want
1167     to use the first one.
1168    </para>
1169    <para>
1170     Note that Privoxy does not validate the specified hostname value.
1171    </para>
1172   </listitem>
1173  </varlistentry>
1174 </variablelist>
1175
1176 <![%config-file;[<literallayout>@@#hostname hostname.example.org</literallayout>]]>
1177 </sect3>
1178
1179 </sect2>
1180
1181 <!--  ~  End section  ~  -->
1182
1183
1184 <!--   ~~~~~       New section      ~~~~~     -->
1185 <sect2 id="access-control">
1186 <title>Access Control and Security</title>
1187
1188  <para>
1189   This section of the config file controls the security-relevant aspects
1190   of <application>Privoxy</application>'s configuration.
1191  </para>
1192
1193
1194 <!--   ~~~~~       New section      ~~~~~     -->
1195 <sect3 renderas="sect4" id="listen-address"><title>listen-address</title>
1196
1197 <variablelist>
1198  <varlistentry>
1199   <term>Specifies:</term>
1200   <listitem>
1201    <para>
1202     The address and TCP port on which <application>Privoxy</application> will
1203     listen for client requests.
1204    </para>
1205   </listitem>
1206  </varlistentry>
1207  <varlistentry>
1208   <term>Type of value:</term>
1209   <listitem>
1210    <para>[<replaceable class="parameter">IP-Address</replaceable>]:<replaceable class="parameter">Port</replaceable></para>
1211    <para>[<replaceable class="parameter">Hostname</replaceable>]:<replaceable class="parameter">Port</replaceable></para>
1212   </listitem>
1213  </varlistentry>
1214
1215  <varlistentry>
1216   <term>Default value:</term>
1217   <listitem>
1218    <para>127.0.0.1:8118</para>
1219   </listitem>
1220  </varlistentry>
1221  <varlistentry>
1222   <term>Effect if unset:</term>
1223   <listitem>
1224    <para>
1225     Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is suitable and
1226     recommended for home users who run <application>Privoxy</application> on
1227     the same machine as their browser.
1228    </para>
1229   </listitem>
1230  </varlistentry>
1231  <varlistentry>
1232   <term>Notes:</term>
1233   <listitem>
1234    <para>
1235     You will need to configure your browser(s) to this proxy address and port.
1236    </para>
1237    <para>
1238     If you already have another service running on port 8118, or if you want to
1239     serve requests from other machines (e.g. on your local network) as well, you
1240     will need to override the default.
1241    </para>
1242    <para>
1243     You can use this statement multiple times to make
1244     <application>Privoxy</application> listen on more ports or more
1245     <abbrev>IP</abbrev> addresses. Suitable if your operating system does not
1246     support sharing <abbrev>IPv6</abbrev> and <abbrev>IPv4</abbrev> protocols
1247     on the same socket.
1248    </para>
1249    <para>
1250     If a hostname is used instead of an IP address, <application>Privoxy</application>
1251     will try to resolve it to an IP address and if there are multiple, use the first
1252     one returned.
1253    </para>
1254    <para>
1255     If the address for the hostname isn't already known on the system
1256     (for example because it's in /etc/hostname), this may result in DNS
1257     traffic.
1258    </para>
1259    <para>
1260     If the specified address isn't available on the system, or if the
1261     hostname can't be resolved, <application>Privoxy</application>
1262     will fail to start.
1263    </para>
1264    <para>
1265     IPv6 addresses containing colons have to be quoted by brackets.
1266     They can only be used if <application>Privoxy</application> has
1267     been compiled with IPv6 support. If you aren't sure if your version
1268     supports it, have a look at
1269     <literal>http://config.privoxy.org/show-status</literal>.
1270    </para>
1271    <para>
1272     Some operating systems will prefer IPv6 to IPv4 addresses even if the
1273     system has no IPv6 connectivity which is usually not expected by the user.
1274     Some even rely on DNS to resolve localhost which mean the "localhost" address
1275     used may not actually be local.
1276    </para>
1277    <para>
1278     It is therefore recommended to explicitly configure the intended IP address
1279     instead of relying on the operating system, unless there's a strong reason not to.
1280    </para>
1281    <para>
1282     If you leave out the address, <application>Privoxy</application> will bind to all
1283     IPv4 interfaces (addresses) on your machine and may become reachable from the
1284     Internet and/or the local network. Be aware that some GNU/Linux distributions
1285     modify that behaviour without updating the documentation. Check for non-standard
1286     patches if your <application>Privoxy</application> version behaves differently.
1287    </para>
1288    <para>
1289     If you configure <application>Privoxy</application> to be reachable from the
1290     network, consider using <link linkend="acls">access control lists</link>
1291     (ACL's, see below), and/or a firewall.
1292    </para>
1293    <para>
1294     If you open <application>Privoxy</application> to untrusted users, you will
1295     also want to make sure that the following actions are disabled:  <literal><link
1296     linkend="enable-edit-actions">enable-edit-actions</link></literal> and
1297     <literal><link linkend="enable-remote-toggle">enable-remote-toggle</link></literal>
1298    </para>
1299   </listitem>
1300  </varlistentry>
1301  <varlistentry>
1302   <term>Example:</term>
1303   <listitem>
1304    <para>
1305      Suppose you are running <application>Privoxy</application> on
1306      a machine which has the address 192.168.0.1 on your local private network
1307      (192.168.0.0) and has another outside connection with a different address.
1308      You want it to serve requests from inside only:
1309    </para>
1310     <programlisting>
1311   listen-address  192.168.0.1:8118
1312 </programlisting>
1313    <para>
1314     Suppose you are running <application>Privoxy</application> on an
1315     IPv6-capable machine and you want it to listen on the IPv6 address
1316     of the loopback device:
1317    </para>
1318     <programlisting>
1319   listen-address [::1]:8118
1320 </programlisting>
1321   </listitem>
1322  </varlistentry>
1323 </variablelist>
1324
1325 <![%config-file;[<literallayout>@@listen-address  127.0.0.1:8118</literallayout>]]>
1326 </sect3>
1327
1328
1329 <!--   ~~~~~       New section      ~~~~~     -->
1330 <sect3 renderas="sect4" id="toggle"><title>toggle</title>
1331
1332 <variablelist>
1333  <varlistentry>
1334   <term>Specifies:</term>
1335   <listitem>
1336    <para>
1337     Initial state of "toggle" status
1338    </para>
1339   </listitem>
1340  </varlistentry>
1341  <varlistentry>
1342   <term>Type of value:</term>
1343   <listitem>
1344    <para>1 or 0</para>
1345   </listitem>
1346  </varlistentry>
1347  <varlistentry>
1348   <term>Default value:</term>
1349   <listitem>
1350    <para>1</para>
1351   </listitem>
1352  </varlistentry>
1353  <varlistentry>
1354   <term>Effect if unset:</term>
1355   <listitem>
1356    <para>
1357     Act as if toggled on
1358    </para>
1359   </listitem>
1360  </varlistentry>
1361  <varlistentry>
1362   <term>Notes:</term>
1363   <listitem>
1364    <para>
1365     If set to 0, <application>Privoxy</application> will start in
1366     <quote>toggled off</quote> mode, i.e. mostly behave like a normal,
1367     content-neutral proxy with both ad blocking and content filtering
1368     disabled. See <literal>enable-remote-toggle</literal> below.
1369    </para>
1370   </listitem>
1371  </varlistentry>
1372 </variablelist>
1373
1374 <![%config-file;[<literallayout>@@toggle  1</literallayout>]]>
1375 </sect3>
1376
1377
1378 <!--   ~~~~~       New section      ~~~~~     -->
1379 <sect3 renderas="sect4" id="enable-remote-toggle"><title>enable-remote-toggle</title>
1380 <variablelist>
1381  <varlistentry>
1382   <term>Specifies:</term>
1383   <listitem>
1384    <para>
1385     Whether or not the <ulink url="http://config.privoxy.org/toggle">web-based toggle
1386     feature</ulink> may be used
1387    </para>
1388   </listitem>
1389  </varlistentry>
1390  <varlistentry>
1391   <term>Type of value:</term>
1392   <listitem>
1393    <para>0 or 1</para>
1394   </listitem>
1395  </varlistentry>
1396  <varlistentry>
1397   <term>Default value:</term>
1398   <listitem>
1399    <para>0</para>
1400   </listitem>
1401  </varlistentry>
1402  <varlistentry>
1403   <term>Effect if unset:</term>
1404   <listitem>
1405    <para>
1406     The web-based toggle feature is disabled.
1407    </para>
1408   </listitem>
1409  </varlistentry>
1410  <varlistentry>
1411   <term>Notes:</term>
1412   <listitem>
1413    <para>
1414     When toggled off, <application>Privoxy</application> mostly acts like a normal,
1415     content-neutral proxy, i.e. doesn't block ads or filter content.
1416    </para>
1417    <para>
1418     Access to the toggle feature can <emphasis>not</emphasis> be
1419     controlled separately by <quote>ACLs</quote> or HTTP authentication,
1420     so that everybody who can access <application>Privoxy</application> (see
1421     <quote>ACLs</quote> and <literal>listen-address</literal> above) can
1422     toggle it for all users. So this option is <emphasis>not recommended</emphasis>
1423     for multi-user environments with untrusted users.
1424    </para>
1425    <para>
1426     Note that malicious client side code (e.g Java) is also
1427     capable of using this option.
1428    </para>
1429    <para>
1430     As a lot of <application>Privoxy</application> users don't read
1431     documentation, this feature is disabled by default.
1432    </para>
1433    <para>
1434     Note that you must have compiled <application>Privoxy</application> with
1435     support for this feature, otherwise this option has no effect.
1436    </para>
1437   </listitem>
1438  </varlistentry>
1439 </variablelist>
1440
1441 <![%config-file;[<literallayout>@@enable-remote-toggle  0</literallayout>]]>
1442 </sect3>
1443
1444
1445 <!--   ~~~~~       New section      ~~~~~     -->
1446 <sect3 renderas="sect4" id="enable-remote-http-toggle"><title>enable-remote-http-toggle</title>
1447 <variablelist>
1448  <varlistentry>
1449   <term>Specifies:</term>
1450   <listitem>
1451    <para>
1452     Whether or not Privoxy recognizes special HTTP headers to change its behaviour.
1453    </para>
1454   </listitem>
1455  </varlistentry>
1456  <varlistentry>
1457   <term>Type of value:</term>
1458   <listitem>
1459    <para>0 or 1</para>
1460   </listitem>
1461  </varlistentry>
1462  <varlistentry>
1463   <term>Default value:</term>
1464   <listitem>
1465    <para>0</para>
1466   </listitem>
1467  </varlistentry>
1468  <varlistentry>
1469   <term>Effect if unset:</term>
1470   <listitem>
1471    <para>
1472     Privoxy ignores special HTTP headers.
1473    </para>
1474   </listitem>
1475  </varlistentry>
1476  <varlistentry>
1477   <term>Notes:</term>
1478   <listitem>
1479    <para>
1480     When toggled on, the client can change <application>Privoxy's</application>
1481     behaviour by setting special HTTP headers. Currently the only supported
1482     special header is <quote>X-Filter: No</quote>, to disable filtering for
1483     the ongoing request, even if it is enabled in one of the action files.
1484    </para>
1485    <para>
1486     This feature is disabled by default. If you are using
1487     <application>Privoxy</application> in a environment with trusted clients,
1488     you may enable this feature at your discretion. Note that malicious client
1489     side code (e.g Java) is also capable of using this feature.
1490    </para>
1491    <para>
1492     This option will be removed in future releases as it has been obsoleted
1493     by the more general header taggers.
1494    </para>
1495   </listitem>
1496  </varlistentry>
1497 </variablelist>
1498
1499 <![%config-file;[<literallayout>@@enable-remote-http-toggle  0</literallayout>]]>
1500 </sect3>
1501
1502
1503 <!--   ~~~~~       New section      ~~~~~     -->
1504 <sect3 renderas="sect4" id="enable-edit-actions"><title>enable-edit-actions</title>
1505 <variablelist>
1506  <varlistentry>
1507   <term>Specifies:</term>
1508   <listitem>
1509    <para>
1510     Whether or not the <ulink url="http://config.privoxy.org/show-status">web-based actions
1511     file editor</ulink> may be used
1512    </para>
1513   </listitem>
1514  </varlistentry>
1515  <varlistentry>
1516   <term>Type of value:</term>
1517   <listitem>
1518    <para>0 or 1</para>
1519   </listitem>
1520  </varlistentry>
1521  <varlistentry>
1522   <term>Default value:</term>
1523   <listitem>
1524    <para>0</para>
1525   </listitem>
1526  </varlistentry>
1527  <varlistentry>
1528   <term>Effect if unset:</term>
1529   <listitem>
1530    <para>
1531     The web-based actions file editor is disabled.
1532    </para>
1533   </listitem>
1534  </varlistentry>
1535  <varlistentry>
1536   <term>Notes:</term>
1537   <listitem>
1538    <para>
1539     Access to the editor can <emphasis>not</emphasis> be
1540     controlled separately by <quote>ACLs</quote> or HTTP authentication,
1541     so that everybody who can access <application>Privoxy</application> (see
1542     <quote>ACLs</quote> and <literal>listen-address</literal> above) can
1543     modify its configuration for all users.
1544    </para>
1545    <para>
1546     This option is <emphasis>not recommended</emphasis> for environments
1547     with untrusted users and as a lot of <application>Privoxy</application>
1548     users don't read documentation, this feature is disabled by default.
1549    </para>
1550    <para>
1551     Note that malicious client side code (e.g Java) is also
1552     capable of using the actions editor and you shouldn't enable
1553     this options unless you understand the consequences and are
1554     sure your browser is configured correctly.
1555    </para>
1556    <para>
1557     Note that you must have compiled <application>Privoxy</application> with
1558     support for this feature, otherwise this option has no effect.
1559    </para>
1560   </listitem>
1561  </varlistentry>
1562 </variablelist>
1563
1564 <![%config-file;[<literallayout>@@enable-edit-actions 0</literallayout>]]>
1565 </sect3>
1566
1567
1568 <sect3 renderas="sect4" id="enforce-blocks"><title>enforce-blocks</title>
1569 <variablelist>
1570  <varlistentry>
1571   <term>Specifies:</term>
1572   <listitem>
1573    <para>
1574     Whether the user is allowed to ignore blocks and can <quote>go there anyway</quote>.
1575    </para>
1576   </listitem>
1577  </varlistentry>
1578  <varlistentry>
1579   <term>Type of value:</term>
1580   <listitem>
1581    <para>
1582     <replaceable>0 or 1</replaceable>
1583    </para>
1584   </listitem>
1585  </varlistentry>
1586  <varlistentry>
1587   <term>Default value:</term>
1588   <listitem>
1589    <para><emphasis>0</emphasis></para>
1590   </listitem>
1591  </varlistentry>
1592  <varlistentry>
1593   <term>Effect if unset:</term>
1594   <listitem>
1595    <para>
1596     Blocks are not enforced.
1597    </para>
1598   </listitem>
1599  </varlistentry>
1600  <varlistentry>
1601   <term>Notes:</term>
1602   <listitem>
1603    <para>
1604     <application>Privoxy</application> is mainly used to block and filter
1605     requests as a service to the user, for example to block ads and other
1606     junk that clogs the pipes. <application>Privoxy's</application> configuration
1607     isn't perfect and sometimes innocent pages are blocked. In this situation it
1608     makes sense to allow the user to enforce the request and have
1609     <application>Privoxy</application> ignore the block.
1610    </para>
1611    <para>
1612     In the default configuration <application>Privoxy's</application>
1613     <quote>Blocked</quote> page contains a <quote>go there anyway</quote>
1614     link to adds a special string (the force prefix) to the request URL.
1615     If that link is used, <application>Privoxy</application> will
1616     detect the force prefix, remove it again and let the request pass.
1617    </para>
1618    <para>
1619     Of course <application>Privoxy</application> can also be used to enforce
1620     a network policy. In that case the user obviously should not be able to
1621     bypass any blocks, and that's what the <quote>enforce-blocks</quote>
1622     option is for. If it's enabled, <application>Privoxy</application> hides
1623     the <quote>go there anyway</quote> link. If the user adds the force
1624     prefix by hand, it will not be accepted and the circumvention attempt
1625     is logged.
1626    </para>
1627   </listitem>
1628  </varlistentry>
1629  <varlistentry>
1630   <term>Examples:</term>
1631   <listitem>
1632    <para>
1633     enforce-blocks 1
1634    </para>
1635   </listitem>
1636  </varlistentry>
1637 </variablelist>
1638 <![%config-file;[<literallayout>@@enforce-blocks 0</literallayout>]]>
1639 </sect3>
1640
1641
1642 <!--   ~~~~~       New section      ~~~~~     -->
1643 <sect3 renderas="sect4" id="acls"><title>
1644 ACLs: permit-access and deny-access</title>
1645 <anchor id="permit-access">
1646 <anchor id="deny-access">
1647
1648 <variablelist>
1649  <varlistentry>
1650   <term>Specifies:</term>
1651   <listitem>
1652    <para>
1653     Who can access what.
1654    </para>
1655   </listitem>
1656  </varlistentry>
1657  <varlistentry>
1658   <term>Type of value:</term>
1659   <listitem>
1660    <para>
1661     <replaceable class="parameter">src_addr</replaceable>[:<replaceable class="parameter">port</replaceable>][/<replaceable class="parameter">src_masklen</replaceable>]
1662     [<replaceable class="parameter">dst_addr</replaceable>[:<replaceable class="parameter">port</replaceable>][/<replaceable class="parameter">dst_masklen</replaceable>]]
1663    </para>
1664    <para>
1665     Where <replaceable class="parameter">src_addr</replaceable> and
1666    <replaceable class="parameter">dst_addr</replaceable> are IPv4 addresses in dotted decimal notation or valid
1667     DNS names, <replaceable class="parameter">port</replaceable> is a port
1668     number, and <replaceable class="parameter">src_masklen</replaceable> and
1669     <replaceable class="parameter">dst_masklen</replaceable> are subnet masks in CIDR notation, i.e. integer
1670     values from 2 to 30 representing the length (in bits) of the network address. The masks and the whole
1671     destination part are optional.
1672    </para>
1673    <para>
1674     If your system implements
1675     <ulink url="http://tools.ietf.org/html/rfc3493">RFC 3493</ulink>, then
1676     <replaceable class="parameter">src_addr</replaceable> and <replaceable
1677     class="parameter">dst_addr</replaceable> can be IPv6 addresses delimeted by
1678     brackets, <replaceable class="parameter">port</replaceable> can be a number
1679     or a service name, and
1680     <replaceable class="parameter">src_masklen</replaceable> and
1681     <replaceable class="parameter">dst_masklen</replaceable> can be a number
1682     from 0 to 128.
1683    </para>
1684   </listitem>
1685  </varlistentry>
1686  <varlistentry>
1687   <term>Default value:</term>
1688   <listitem>
1689    <para><emphasis>Unset</emphasis></para>
1690    <para>
1691     If no <replaceable class="parameter">port</replaceable> is specified,
1692     any port will match. If no <replaceable class="parameter">src_masklen</replaceable> or
1693     <replaceable class="parameter">src_masklen</replaceable> is given, the complete IP
1694     address has to match (i.e. 32 bits for IPv4 and 128 bits for IPv6).
1695    </para>
1696   </listitem>
1697  </varlistentry>
1698  <varlistentry>
1699   <term>Effect if unset:</term>
1700   <listitem>
1701    <para>
1702     Don't restrict access further than implied by <literal>listen-address</literal>
1703    </para>
1704   </listitem>
1705  </varlistentry>
1706  <varlistentry>
1707   <term>Notes:</term>
1708   <listitem>
1709    <para>
1710     Access controls are included at the request of ISPs and systems
1711     administrators, and <emphasis>are not usually needed by individual users</emphasis>.
1712     For a typical home user, it will normally suffice to ensure that
1713     <application>Privoxy</application> only listens on the localhost
1714     (127.0.0.1) or internal (home) network address by means of the
1715     <link linkend="listen-address"><emphasis>listen-address</emphasis></link>
1716     option.
1717    </para>
1718    <para>
1719     Please see the warnings in the FAQ that <application>Privoxy</application>
1720     is not intended to be a substitute for a firewall or to encourage anyone
1721     to defer addressing basic security weaknesses.
1722    </para>
1723    <para>
1724     Multiple ACL lines are OK.
1725     If any ACLs are specified, <application>Privoxy</application> only talks
1726     to IP addresses that match at least one <literal>permit-access</literal> line
1727     and don't match any subsequent <literal>deny-access</literal> line. In other words, the
1728     last match wins, with the default being <literal>deny-access</literal>.
1729    </para>
1730    <para>
1731     If <application>Privoxy</application> is using a forwarder (see <literal>forward</literal> below)
1732     for a particular destination URL, the <replaceable class="parameter">dst_addr</replaceable>
1733     that is examined is the address of the forwarder and <emphasis>NOT</emphasis> the address
1734     of the ultimate target. This is necessary because it may be impossible for the local
1735     <application>Privoxy</application> to determine the IP address of the
1736     ultimate target (that's often what gateways are used for).
1737    </para>
1738    <para>
1739     You should prefer using IP addresses over DNS names, because the address lookups take
1740     time. All DNS names must resolve! You can <emphasis>not</emphasis> use domain patterns
1741     like <quote>*.org</quote> or partial domain names. If a DNS name resolves to multiple
1742     IP addresses, only the first one is used.
1743    </para>
1744    <para>
1745      Some systems allow IPv4 clients to connect to IPv6 server sockets.
1746      Then the client's IPv4 address will be translated by the system into
1747      IPv6 address space with special prefix ::ffff:0:0/96 (so called IPv4
1748      mapped IPv6 address). <application>Privoxy</application> can handle it
1749      and maps such ACL addresses automatically.
1750    </para>
1751    <para>
1752     Denying access to particular sites by ACL may have undesired side effects
1753     if the site in question is hosted on a machine which also hosts other sites
1754     (most sites are).
1755    </para>
1756   </listitem>
1757  </varlistentry>
1758  <varlistentry>
1759   <term>Examples:</term>
1760   <listitem>
1761    <para>
1762     Explicitly define the default behavior if no ACL and
1763     <literal>listen-address</literal> are set: <quote>localhost</quote>
1764     is OK. The absence of a <replaceable class="parameter">dst_addr</replaceable> implies that
1765     <emphasis>all</emphasis> destination addresses are OK:
1766    </para>
1767     <screen>
1768   permit-access  localhost
1769 </screen>
1770    <para>
1771     Allow any host on the same class C subnet as www.privoxy.org access to
1772     nothing but www.example.com (or other domains hosted on the same system):
1773    </para>
1774     <screen>
1775   permit-access  www.privoxy.org/24 www.example.com/32
1776 </screen>
1777    <para>
1778     Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere,
1779     with the exception that 192.168.45.73 may not access the IP address behind
1780     www.dirty-stuff.example.com:
1781    </para>
1782     <screen>
1783   permit-access  192.168.45.64/26
1784   deny-access    192.168.45.73    www.dirty-stuff.example.com
1785 </screen>
1786    <para>
1787      Allow access from the IPv4 network 192.0.2.0/24 even if listening on
1788      an IPv6 wild card address (not supported on all platforms):
1789    </para>
1790     <programlisting>
1791   permit-access  192.0.2.0/24
1792 </programlisting>
1793    <para>
1794      This is equivalent to the following line even if listening on an
1795      IPv4 address (not supported on all platforms):
1796    </para>
1797     <programlisting>
1798   permit-access  [::ffff:192.0.2.0]/120
1799 </programlisting>
1800   </listitem>
1801  </varlistentry>
1802 </variablelist>
1803 </sect3>
1804
1805
1806 <!--   ~~~~~       New section      ~~~~~     -->
1807 <sect3 renderas="sect4" id="buffer-limit"><title>buffer-limit</title>
1808
1809 <variablelist>
1810  <varlistentry>
1811   <term>Specifies:</term>
1812   <listitem>
1813    <para>
1814     Maximum size of the buffer for content filtering.
1815    </para>
1816   </listitem>
1817  </varlistentry>
1818  <varlistentry>
1819   <term>Type of value:</term>
1820   <listitem>
1821    <para>Size in Kbytes</para>
1822   </listitem>
1823  </varlistentry>
1824  <varlistentry>
1825   <term>Default value:</term>
1826   <listitem>
1827    <para>4096</para>
1828   </listitem>
1829  </varlistentry>
1830  <varlistentry>
1831   <term>Effect if unset:</term>
1832   <listitem>
1833    <para>
1834     Use a 4MB (4096 KB) limit.
1835    </para>
1836   </listitem>
1837  </varlistentry>
1838  <varlistentry>
1839   <term>Notes:</term>
1840   <listitem>
1841    <para>
1842     For content filtering, i.e. the <literal>+filter</literal> and
1843     <literal>+deanimate-gif</literal> actions, it is necessary that
1844     <application>Privoxy</application> buffers the entire document body.
1845     This can be potentially dangerous, since a server could just keep sending
1846     data indefinitely and wait for your RAM to exhaust -- with nasty consequences.
1847     Hence this option.
1848    </para>
1849    <para>
1850     When a document buffer size reaches the <literal>buffer-limit</literal>, it is
1851     flushed to the client unfiltered and no further attempt to
1852     filter the rest of the document is made. Remember that there may be multiple threads
1853     running, which might require up to <literal>buffer-limit</literal> Kbytes
1854     <emphasis>each</emphasis>, unless you have enabled <quote>single-threaded</quote>
1855     above.
1856    </para>
1857   </listitem>
1858  </varlistentry>
1859 </variablelist>
1860
1861 <![%config-file;[<literallayout>@@buffer-limit 4096</literallayout>]]>
1862 </sect3>
1863
1864 <!--   ~~~~~       New section      ~~~~~     -->
1865 <sect3 renderas="sect4" id="enable-proxy-authentication-forwarding"><title>enable-proxy-authentication-forwarding</title>
1866 <variablelist>
1867  <varlistentry>
1868   <term>Specifies:</term>
1869   <listitem>
1870    <para>
1871     Whether or not proxy authentication through &my-app; should work.
1872    </para>
1873   </listitem>
1874  </varlistentry>
1875  <varlistentry>
1876   <term>Type of value:</term>
1877   <listitem>
1878    <para>0 or 1</para>
1879   </listitem>
1880  </varlistentry>
1881  <varlistentry>
1882   <term>Default value:</term>
1883   <listitem>
1884    <para>0</para>
1885   </listitem>
1886  </varlistentry>
1887  <varlistentry>
1888   <term>Effect if unset:</term>
1889   <listitem>
1890    <para>
1891     Proxy authentication headers are removed.
1892    </para>
1893   </listitem>
1894  </varlistentry>
1895  <varlistentry>
1896   <term>Notes:</term>
1897   <listitem>
1898    <para>
1899     Privoxy itself does not support proxy authentication, but can
1900     allow clients to authenticate against Privoxy's parent proxy.
1901    </para>
1902    <para>
1903     By default Privoxy (3.0.21 and later) don't do that and remove
1904     Proxy-Authorization headers in requests and Proxy-Authenticate
1905     headers in responses to make it harder for malicious sites to
1906     trick inexperienced users into providing login information.
1907    </para>
1908    <para>
1909     If this option is enabled the headers are forwarded.
1910    </para>
1911    <para>
1912     Enabling this option is <emphasis>not recommended</emphasis> if there is
1913     no parent proxy that requires authentication or if the local network between
1914     Privoxy and the parent proxy isn't trustworthy. If proxy authentication is
1915     only required for some requests, it is recommended to use a client header filter
1916     to remove the authentication headers for requests where they aren't needed.
1917    </para>
1918   </listitem>
1919  </varlistentry>
1920 </variablelist>
1921
1922 <![%config-file;[<literallayout>@@enable-proxy-authentication-forwarding 0</literallayout>]]>
1923 </sect3>
1924
1925 <!--   ~~~~~       New section      ~~~~~     -->
1926 <sect3 renderas="sect4" id="trusted-cgi-referer"><title>trusted-cgi-referer</title>
1927 <variablelist>
1928  <varlistentry>
1929   <term>Specifies:</term>
1930   <listitem>
1931    <para>
1932     A trusted website or webpage whose links can be followed to reach sensitive CGI pages
1933    </para>
1934   </listitem>
1935  </varlistentry>
1936  <varlistentry>
1937   <term>Type of value:</term>
1938   <listitem>
1939    <para>URL or URL prefix</para>
1940   </listitem>
1941  </varlistentry>
1942  <varlistentry>
1943   <term>Default value:</term>
1944   <listitem>
1945    <para>Unset</para>
1946   </listitem>
1947  </varlistentry>
1948  <varlistentry>
1949   <term>Effect if unset:</term>
1950   <listitem>
1951    <para>
1952     No external pages are considered trusted referers.
1953    </para>
1954   </listitem>
1955  </varlistentry>
1956  <varlistentry>
1957   <term>Notes:</term>
1958   <listitem>
1959    <para>
1960     Before &my-app; accepts configuration changes through CGI pages like
1961     <link linkend="client-specific-tag">client-tags</link> or the
1962     <link linkend="enable-remote-toggle">remote toggle</link>, it checks
1963     the Referer header to see if the request comes from a trusted source.
1964    </para>
1965    <para>
1966     By default only the webinterface domains
1967     <ulink url="http://config.privoxy.org/">config.privoxy.org</ulink>
1968     and
1969     <ulink url="http://p.p/">p.p</ulink>
1970     are considered trustworthy.
1971     Requests originating from other domains are rejected to prevent
1972     third-parties from modifiying Privoxy's state by e.g. embedding
1973     images that result in CGI requests.
1974    </para>
1975    <para>
1976     In some environments it may be desirable to embed links to CGI pages
1977     on external pages, for example on an Intranet homepage the Privoxy admin
1978     controls.
1979    </para>
1980    <para>
1981     The <quote>trusted-cgi-referer</quote> option can be used to add that page,
1982     or the whole domain, as trusted source so the resulting requests aren't
1983     rejected.
1984     Requests are accepted if the specified trusted-cgi-refer is the prefix
1985     of the Referer.
1986    </para>
1987    <para>
1988     If the trusted source is supposed to access the CGI pages via
1989     JavaScript the <link linkend="cors-allowed-origin">cors-allowed-origin</link>
1990     option can be used.
1991    </para>
1992    <warning>
1993     <para>
1994      Declaring pages the admin doesn't control trustworthy may allow
1995      malicious third parties to modify Privoxy's internal state against
1996      the user's wishes and without the user's knowledge.
1997    </para>
1998    </warning>
1999   </listitem>
2000  </varlistentry>
2001 </variablelist>
2002
2003 <![%config-file;[<literallayout>@@#trusted-cgi-referer http://www.example.org/local-privoxy-control-page</literallayout>]]>
2004 </sect3>
2005
2006
2007 <!--   ~~~~~       New section      ~~~~~     -->
2008 <sect3 renderas="sect4" id="cors-allowed-origin"><title>cors-allowed-origin</title>
2009 <variablelist>
2010  <varlistentry>
2011   <term>Specifies:</term>
2012   <listitem>
2013    <para>
2014     A trusted website which can access &my-app;'s CGI pages through JavaScript.
2015    </para>
2016   </listitem>
2017  </varlistentry>
2018  <varlistentry>
2019   <term>Type of value:</term>
2020   <listitem>
2021    <para>URL</para>
2022   </listitem>
2023  </varlistentry>
2024  <varlistentry>
2025   <term>Default value:</term>
2026   <listitem>
2027    <para>Unset</para>
2028   </listitem>
2029  </varlistentry>
2030  <varlistentry>
2031   <term>Effect if unset:</term>
2032   <listitem>
2033    <para>
2034     No external sites get access via cross-origin resource sharing.
2035    </para>
2036   </listitem>
2037  </varlistentry>
2038  <varlistentry>
2039   <term>Notes:</term>
2040   <listitem>
2041    <para>
2042     Modern browsers by default prevent cross-origin requests made
2043     via JavaScript to &my-app;'s CGI interface even if &my-app;
2044     would trust the referer because it's white listed via the
2045     <link linkend="trusted-cgi-referer">trusted-cgi-referer</link>
2046     directive.
2047    </para>
2048    <para>
2049     <ulink url="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing"
2050      >Cross-origin resource sharing (CORS)</ulink> is a mechanism to allow
2051     cross-origin requests.
2052    </para>
2053    <para>
2054     The <quote>cors-allowed-origin</quote> option can be used to specify
2055     a domain that is allowed to make requests to Privoxy CGI interface
2056     via JavaScript. It is used in combination with the
2057     <link linkend="trusted-cgi-referer">trusted-cgi-referer</link>
2058     directive.
2059    </para>
2060    <warning>
2061     <para>
2062      Declaring domains the admin doesn't control trustworthy may allow
2063      malicious third parties to modify Privoxy's internal state against
2064      the user's wishes and without the user's knowledge.
2065    </para>
2066    </warning>
2067   </listitem>
2068  </varlistentry>
2069 </variablelist>
2070
2071 <![%config-file;[<literallayout>@@#cors-allowed-origin http://www.example.org/</literallayout>]]>
2072 </sect3>
2073
2074 </sect2>
2075
2076 <!--  ~  End section  ~  -->
2077
2078
2079 <!--   ~~~~~       New section      ~~~~~     -->
2080
2081 <sect2 id="forwarding">
2082 <title>Forwarding</title>
2083
2084 <para>
2085  This feature allows routing of HTTP requests through a chain of
2086  multiple proxies.
2087 </para>
2088 <para>
2089  Forwarding can be used to chain Privoxy with a caching proxy to speed
2090  up browsing. Using a parent proxy may also be necessary if the machine
2091  that <application>Privoxy</application> runs on has no direct Internet access.
2092 </para>
2093 <para>
2094  Note that parent proxies can severely decrease your privacy level.
2095  For example a parent proxy could add your IP address to the request
2096  headers and if it's a caching proxy it may add the <quote>Etag</quote>
2097  header to revalidation requests again, even though you configured Privoxy
2098  to remove it. It may also ignore Privoxy's header time randomization and use the
2099  original values which could be used by the server as cookie replacement
2100  to track your steps between visits.
2101 </para>
2102
2103 <para>
2104  Also specified here are SOCKS proxies. <application>Privoxy</application>
2105  supports the SOCKS 4 and SOCKS 4A protocols.
2106 </para>
2107
2108 <sect3 renderas="sect4" id="forward"><title>forward</title>
2109 <variablelist>
2110  <varlistentry>
2111   <term>Specifies:</term>
2112   <listitem>
2113    <para>
2114     To which parent HTTP proxy specific requests should be routed.
2115    </para>
2116   </listitem>
2117  </varlistentry>
2118  <varlistentry>
2119   <term>Type of value:</term>
2120   <listitem>
2121    <para>
2122     <replaceable class="parameter">target_pattern</replaceable>
2123     <replaceable class="parameter">http_parent</replaceable>[:<replaceable class="parameter">port</replaceable>]
2124    </para>
2125    <para>
2126     where <replaceable class="parameter">target_pattern</replaceable> is a <link linkend="af-patterns">URL pattern</link>
2127     that specifies to which requests (i.e. URLs) this forward rule shall apply. Use <literal>/</literal> to
2128     denote <quote>all URLs</quote>.
2129     <replaceable class="parameter">http_parent</replaceable>[:<replaceable class="parameter">port</replaceable>]
2130     is the DNS name or IP address of the parent HTTP proxy through which the requests should be forwarded,
2131     optionally followed by its listening port (default: 8000).
2132     Use a single dot (<literal>.</literal>) to denote <quote>no forwarding</quote>.
2133    </para>
2134   </listitem>
2135  </varlistentry>
2136  <varlistentry>
2137   <term>Default value:</term>
2138   <listitem>
2139    <para><emphasis>Unset</emphasis></para>
2140   </listitem>
2141  </varlistentry>
2142  <varlistentry>
2143   <term>Effect if unset:</term>
2144   <listitem>
2145    <para>
2146     Don't use parent HTTP proxies.
2147    </para>
2148   </listitem>
2149  </varlistentry>
2150  <varlistentry>
2151   <term>Notes:</term>
2152   <listitem>
2153    <para>
2154     If <replaceable class="parameter">http_parent</replaceable> is <quote>.</quote>, then requests are not
2155     forwarded to another HTTP proxy but are made directly to the web servers.
2156    </para>
2157    <para>
2158     <replaceable class="parameter">http_parent</replaceable> can be a
2159      numerical IPv6 address (if
2160     <ulink url="http://tools.ietf.org/html/rfc3493">RFC 3493</ulink> is
2161     implemented). To prevent clashes with the port delimiter, the whole IP
2162     address has to be put into brackets. On the other hand a <replaceable
2163     class="parameter">target_pattern</replaceable> containing an IPv6 address
2164     has to be put into angle brackets (normal brackets are reserved for
2165     regular expressions already).
2166    </para>
2167    <para>
2168     Multiple lines are OK, they are checked in sequence, and the last match wins.
2169    </para>
2170   </listitem>
2171  </varlistentry>
2172  <varlistentry>
2173   <term>Examples:</term>
2174   <listitem>
2175    <para>
2176     Everything goes to an example parent proxy, except SSL on port 443 (which it doesn't handle):
2177    </para>
2178     <screen>
2179   forward   /      parent-proxy.example.org:8080
2180   forward   :443   .
2181 </screen>
2182    <para>
2183     Everything goes to our example ISP's caching proxy, except for requests
2184     to that ISP's sites:
2185    </para>
2186     <screen>
2187   forward   /                  caching-proxy.isp.example.net:8000
2188   forward   .isp.example.net   .
2189 </screen>
2190    <para>
2191     Parent proxy specified by an IPv6 address:
2192    </para>
2193     <programlisting>
2194   forward   /                   [2001:DB8::1]:8000
2195 </programlisting>
2196    <para>
2197     Suppose your parent proxy doesn't support IPv6:
2198    </para>
2199     <programlisting>
2200   forward  /                        parent-proxy.example.org:8000
2201   forward  ipv6-server.example.org  .
2202   forward  &lt;[2-3][0-9a-f][0-9a-f][0-9a-f]:*&gt;   .
2203 </programlisting>
2204   </listitem>
2205  </varlistentry>
2206 </variablelist>
2207 </sect3>
2208
2209
2210 <!--   ~~~~~       New section      ~~~~~     -->
2211 <sect3 renderas="sect4" id="socks"><title>
2212 forward-socks4, forward-socks4a, forward-socks5 and forward-socks5t</title>
2213 <anchor id="forward-socks4">
2214 <anchor id="forward-socks4a">
2215
2216 <variablelist>
2217  <varlistentry>
2218   <term>Specifies:</term>
2219   <listitem>
2220    <para>
2221     Through which SOCKS proxy (and optionally to which parent HTTP proxy) specific requests should be routed.
2222    </para>
2223   </listitem>
2224  </varlistentry>
2225  <varlistentry>
2226   <term>Type of value:</term>
2227   <listitem>
2228    <para>
2229     <replaceable class="parameter">target_pattern</replaceable>
2230     [<replaceable class="parameter">user</replaceable>:<replaceable class="parameter">pass</replaceable>@]<replaceable class="parameter">socks_proxy</replaceable>[:<replaceable class="parameter">port</replaceable>]
2231     <replaceable class="parameter">http_parent</replaceable>[:<replaceable class="parameter">port</replaceable>]
2232    </para>
2233    <para>
2234     where <replaceable class="parameter">target_pattern</replaceable> is a
2235     <link linkend="af-patterns">URL pattern</link> that specifies to which
2236     requests (i.e. URLs) this forward rule shall apply. Use <literal>/</literal> to
2237     denote <quote>all URLs</quote>. <replaceable class="parameter">http_parent</replaceable>
2238     and <replaceable class="parameter">socks_proxy</replaceable>
2239     are IP addresses in dotted decimal notation or valid DNS names
2240     (<replaceable class="parameter">http_parent</replaceable>
2241     may be <quote>.</quote> to denote <quote>no HTTP forwarding</quote>), and the optional
2242     <replaceable class="parameter">port</replaceable> parameters are TCP ports,
2243     i.e. integer values from 1 to 65535. <replaceable class="parameter">user</replaceable> and
2244     <replaceable class="parameter">pass</replaceable> can be used for SOCKS5 authentication if required.
2245    </para>
2246   </listitem>
2247  </varlistentry>
2248  <varlistentry>
2249   <term>Default value:</term>
2250   <listitem>
2251    <para><emphasis>Unset</emphasis></para>
2252   </listitem>
2253  </varlistentry>
2254  <varlistentry>
2255   <term>Effect if unset:</term>
2256   <listitem>
2257    <para>
2258     Don't use SOCKS proxies.
2259    </para>
2260   </listitem>
2261  </varlistentry>
2262  <varlistentry>
2263   <term>Notes:</term>
2264   <listitem>
2265    <para>
2266     Multiple lines are OK, they are checked in sequence, and the last match wins.
2267    </para>
2268    <para>
2269     The difference between <literal>forward-socks4</literal> and <literal>forward-socks4a</literal>
2270     is that in the SOCKS 4A protocol, the DNS resolution of the target hostname happens on the SOCKS
2271     server, while in SOCKS 4 it happens locally.
2272    </para>
2273    <para>
2274     With <literal>forward-socks5</literal> the DNS resolution will happen on the remote server as well.
2275    </para>
2276    <para>
2277     <literal>forward-socks5t</literal> works like vanilla <literal>forward-socks5</literal> but
2278     lets &my-app; additionally use Tor-specific SOCKS extensions. Currently the only supported
2279     SOCKS extension is optimistic data which can reduce the latency for the first request made
2280     on a newly created connection.
2281    </para>
2282    <para>
2283     <replaceable class="parameter">socks_proxy</replaceable> and
2284     <replaceable class="parameter">http_parent</replaceable> can be a
2285      numerical IPv6 address (if
2286     <ulink url="http://tools.ietf.org/html/rfc3493">RFC 3493</ulink> is
2287     implemented). To prevent clashes with the port delimiter, the whole IP
2288     address has to be put into brackets. On the other hand a <replaceable
2289     class="parameter">target_pattern</replaceable> containing an IPv6 address
2290     has to be put into angle brackets (normal brackets are reserved for
2291     regular expressions already).
2292    </para>
2293    <para>
2294     If <replaceable class="parameter">http_parent</replaceable> is <quote>.</quote>, then requests are not
2295     forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit through
2296     a SOCKS proxy.
2297    </para>
2298   </listitem>
2299  </varlistentry>
2300  <varlistentry>
2301   <term>Examples:</term>
2302   <listitem>
2303    <para>
2304      From the company example.com, direct connections are made to all
2305      <quote>internal</quote> domains, but everything outbound goes through
2306      their ISP's proxy by way of example.com's corporate SOCKS 4A gateway to
2307      the Internet.
2308    </para>
2309     <screen>
2310   forward-socks4a   /              socks-gw.example.com:1080  www-cache.isp.example.net:8080
2311   forward           .example.com   .
2312 </screen>
2313    <para>
2314     A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent looks like this:
2315    </para>
2316     <screen>
2317   forward-socks4   /               socks-gw.example.com:1080  .
2318 </screen>
2319
2320    <para>
2321     To connect SOCKS5 proxy which requires username/password authentication:
2322    </para>
2323     <screen>
2324   forward-socks5   /               user:pass@socks-gw.example.com:1080  .
2325 </screen>
2326
2327     <para>
2328     To chain Privoxy and Tor, both running on the same system, you would use
2329     something like:
2330    </para>
2331     <screen>
2332   forward-socks5t   /               127.0.0.1:9050 .
2333 </screen>
2334    <para>
2335     Note that if you got Tor through one of the bundles, you may
2336     have to change the port from 9050 to 9150 (or even another one).
2337     For details, please check the documentation on the
2338     <ulink url="https://torproject.org/">Tor website</ulink>.
2339    </para>
2340    <para>
2341     The public <application>Tor</application> network can't be used to
2342     reach your local network, if you need to access local servers you
2343     therefore might want to make some exceptions:
2344    </para>
2345     <screen>
2346   forward         192.168.*.*/     .
2347   forward          10.*.*.*/       .
2348   forward         127.*.*.*/       .
2349 </screen>
2350    <para>
2351     Unencrypted connections to systems in these address ranges will
2352     be as (un)secure as the local network is, but the alternative is that you
2353     can't reach the local network through <application>Privoxy</application>
2354     at all. Of course this may actually be desired and there is no reason
2355     to make these exceptions if you aren't sure you need them.
2356    </para>
2357    <para>
2358     If you also want to be able to reach servers in your local network by
2359     using their names, you will need additional exceptions that look like
2360     this:
2361    </para>
2362     <screen>
2363  forward           localhost/     .
2364 </screen>
2365
2366   </listitem>
2367  </varlistentry>
2368 </variablelist>
2369 </sect3>
2370
2371 <![%user-man;[     <!-- not included in config due to length -->
2372 <!--   ~~~~~       New section      ~~~~~     -->
2373 <sect3 renderas="sect4" id="advanced-forwarding-examples"><title>Advanced Forwarding Examples</title>
2374
2375 <para>
2376  If you have links to multiple ISPs that provide various special content
2377  only to their subscribers, you can configure multiple <application>Privoxies</application>
2378  which have connections to the respective ISPs to act as forwarders to each other, so that
2379  <emphasis>your</emphasis> users can see the internal content of all ISPs.
2380 </para>
2381
2382 <para>
2383  Assume that host-a has a PPP connection to isp-a.example.net. And host-b has a PPP connection to
2384  isp-b.example.org. Both run <application>Privoxy</application>. Their forwarding
2385  configuration can look like this:
2386 </para>
2387
2388 <para>
2389  host-a:
2390 </para>
2391
2392  <screen>
2393   forward    /           .
2394   forward    .isp-b.example.net  host-b:8118
2395 </screen>
2396
2397 <para>
2398  host-b:
2399 </para>
2400
2401  <screen>
2402   forward    /           .
2403   forward    .isp-a.example.org  host-a:8118
2404 </screen>
2405
2406 <para>
2407  Now, your users can set their browser's proxy to use either
2408  host-a or host-b and be able to browse the internal content
2409  of both isp-a and isp-b.
2410 </para>
2411
2412 <para>
2413  If you intend to chain <application>Privoxy</application> and
2414  <application>squid</application> locally, then chaining as
2415  <literal>browser -> squid -> privoxy</literal> is the recommended way.
2416 </para>
2417
2418 <para>
2419  Assuming that <application>Privoxy</application> and <application>squid</application>
2420  run on the same box, your <application>squid</application> configuration could then look like this:
2421 </para>
2422
2423  <screen>
2424   # Define Privoxy as parent proxy (without ICP)
2425   cache_peer 127.0.0.1 parent 8118 7 no-query
2426
2427   # Define ACL for protocol FTP
2428   acl ftp proto FTP
2429
2430   # Do not forward FTP requests to Privoxy
2431   always_direct allow ftp
2432
2433   # Forward all the rest to Privoxy
2434   never_direct allow all</screen>
2435
2436 <para>
2437  You would then need to change your browser's proxy settings to <application>squid</application>'s address and port.
2438  Squid normally uses port 3128. If unsure consult <literal>http_port</literal> in <filename>squid.conf</filename>.
2439 </para>
2440
2441 <para>
2442  You could just as well decide to only forward requests you suspect
2443  of leading to Windows executables through a virus-scanning parent proxy,
2444  say, on <literal>antivir.example.com</literal>, port 8010:
2445 </para>
2446
2447  <screen>
2448   forward   /                          .
2449   forward   /.*\.(exe|com|dll|zip)$    antivir.example.com:8010</screen>
2450
2451 </sect3>
2452 ]]>
2453
2454 <sect3 renderas="sect4" id="forwarded-connect-retries"><title>forwarded-connect-retries</title>
2455 <variablelist>
2456  <varlistentry>
2457   <term>Specifies:</term>
2458   <listitem>
2459    <para>
2460     How often Privoxy retries if a forwarded connection request fails.
2461    </para>
2462   </listitem>
2463  </varlistentry>
2464  <varlistentry>
2465   <term>Type of value:</term>
2466   <listitem>
2467    <para>
2468     <replaceable class="parameter">Number of retries.</replaceable>
2469    </para>
2470   </listitem>
2471  </varlistentry>
2472  <varlistentry>
2473   <term>Default value:</term>
2474   <listitem>
2475    <para><emphasis>0</emphasis></para>
2476   </listitem>
2477  </varlistentry>
2478  <varlistentry>
2479   <term>Effect if unset:</term>
2480   <listitem>
2481    <para>
2482     Connections forwarded through other proxies are treated like direct connections and no retry attempts are made.
2483    </para>
2484   </listitem>
2485  </varlistentry>
2486  <varlistentry>
2487   <term>Notes:</term>
2488   <listitem>
2489    <para>
2490     <replaceable class="parameter">forwarded-connect-retries</replaceable> is mainly interesting
2491     for socks4a connections, where <application>Privoxy</application> can't detect why the connections failed.
2492     The connection might have failed because of a DNS timeout in which case a retry makes sense,
2493     but it might also have failed because the server doesn't exist or isn't reachable. In this
2494     case the retry will just delay the appearance of Privoxy's error message.
2495    </para>
2496    <para>
2497     Note that in the context of this option, <quote>forwarded connections</quote> includes all connections
2498     that Privoxy forwards through other proxies. This option is not limited to the HTTP CONNECT method.
2499    </para>
2500    <para>
2501     Only use this option, if you are getting lots of forwarding-related error messages
2502     that go away when you try again manually. Start with a small value and check Privoxy's
2503     logfile from time to time, to see how many retries are usually needed.
2504    </para>
2505   </listitem>
2506  </varlistentry>
2507  <varlistentry>
2508   <term>Examples:</term>
2509   <listitem>
2510    <para>
2511     forwarded-connect-retries 1
2512    </para>
2513   </listitem>
2514  </varlistentry>
2515 </variablelist>
2516 <![%config-file;[<literallayout>@@forwarded-connect-retries  0</literallayout>]]>
2517 </sect3>
2518
2519 </sect2>
2520
2521 <sect2 id="misc">
2522 <title>Miscellaneous</title>
2523
2524 <sect3 renderas="sect4" id="accept-intercepted-requests"><title>accept-intercepted-requests</title>
2525 <variablelist>
2526  <varlistentry>
2527   <term>Specifies:</term>
2528   <listitem>
2529    <para>
2530     Whether intercepted requests should be treated as valid.
2531    </para>
2532   </listitem>
2533  </varlistentry>
2534  <varlistentry>
2535   <term>Type of value:</term>
2536   <listitem>
2537    <para>
2538     <replaceable>0 or 1</replaceable>
2539    </para>
2540   </listitem>
2541  </varlistentry>
2542  <varlistentry>
2543   <term>Default value:</term>
2544   <listitem>
2545    <para><emphasis>0</emphasis></para>
2546   </listitem>
2547  </varlistentry>
2548  <varlistentry>
2549   <term>Effect if unset:</term>
2550   <listitem>
2551    <para>
2552     Only proxy requests are accepted, intercepted requests are treated as invalid.
2553    </para>
2554   </listitem>
2555  </varlistentry>
2556  <varlistentry>
2557   <term>Notes:</term>
2558   <listitem>
2559    <para>
2560     If you don't trust your clients and want to force them
2561     to use <application>Privoxy</application>, enable this
2562     option and configure your packet filter to redirect outgoing
2563     HTTP connections into <application>Privoxy</application>.
2564    </para>
2565    <para>
2566     Note that intercepting encrypted connections (HTTPS) isn't supported.
2567    </para>
2568    <para>
2569     Make sure that <application>Privoxy's</application> own requests
2570     aren't redirected as well. Additionally take care that
2571     <application>Privoxy</application> can't intentionally connect
2572     to itself, otherwise you could run into redirection loops if
2573     <application>Privoxy's</application> listening port is reachable
2574     by the outside or an attacker has access to the pages you visit.
2575    </para>
2576    <para>
2577     If you are running Privoxy as intercepting proxy without being
2578     able to intercept all client requests you may want to adjust
2579     the CGI templates to make sure they don't reference content from
2580     config.privoxy.org.
2581    </para>
2582   </listitem>
2583  </varlistentry>
2584  <varlistentry>
2585   <term>Examples:</term>
2586   <listitem>
2587    <para>
2588     accept-intercepted-requests 1
2589    </para>
2590   </listitem>
2591  </varlistentry>
2592 </variablelist>
2593 <![%config-file;[<literallayout>@@accept-intercepted-requests 0</literallayout>]]>
2594 </sect3>
2595
2596 <sect3 renderas="sect4" id="allow-cgi-request-crunching"><title>allow-cgi-request-crunching</title>
2597 <variablelist>
2598  <varlistentry>
2599   <term>Specifies:</term>
2600   <listitem>
2601    <para>
2602     Whether requests to <application>Privoxy's</application> CGI pages can be blocked or redirected.
2603    </para>
2604   </listitem>
2605  </varlistentry>
2606  <varlistentry>
2607   <term>Type of value:</term>
2608   <listitem>
2609    <para>
2610     <replaceable>0 or 1</replaceable>
2611    </para>
2612   </listitem>
2613  </varlistentry>
2614  <varlistentry>
2615   <term>Default value:</term>
2616   <listitem>
2617    <para><emphasis>0</emphasis></para>
2618   </listitem>
2619  </varlistentry>
2620  <varlistentry>
2621   <term>Effect if unset:</term>
2622   <listitem>
2623    <para>
2624     <application>Privoxy</application> ignores block and redirect actions for its CGI pages.
2625    </para>
2626   </listitem>
2627  </varlistentry>
2628  <varlistentry>
2629   <term>Notes:</term>
2630   <listitem>
2631    <para>
2632     By default <application>Privoxy</application> ignores block or redirect actions
2633     for its CGI pages. Intercepting these requests can be useful in multi-user
2634     setups to implement fine-grained access control, but it can also render the complete
2635     web interface useless and make debugging problems painful if done without care.
2636    </para>
2637    <para>
2638     Don't enable this option unless you're sure that you really need it.
2639    </para>
2640   </listitem>
2641  </varlistentry>
2642  <varlistentry>
2643   <term>Examples:</term>
2644   <listitem>
2645    <para>
2646     allow-cgi-request-crunching 1
2647    </para>
2648   </listitem>
2649  </varlistentry>
2650 </variablelist>
2651 <![%config-file;[<literallayout>@@allow-cgi-request-crunching 0</literallayout>]]>
2652 </sect3>
2653
2654 <sect3 renderas="sect4" id="split-large-forms"><title>split-large-forms</title>
2655 <variablelist>
2656  <varlistentry>
2657   <term>Specifies:</term>
2658   <listitem>
2659    <para>
2660     Whether the CGI interface should stay compatible with broken HTTP clients.
2661    </para>
2662   </listitem>
2663  </varlistentry>
2664  <varlistentry>
2665   <term>Type of value:</term>
2666   <listitem>
2667    <para>
2668     <replaceable>0 or 1</replaceable>
2669    </para>
2670   </listitem>
2671  </varlistentry>
2672  <varlistentry>
2673   <term>Default value:</term>
2674   <listitem>
2675    <para><emphasis>0</emphasis></para>
2676   </listitem>
2677  </varlistentry>
2678  <varlistentry>
2679   <term>Effect if unset:</term>
2680   <listitem>
2681    <para>
2682     The CGI form generate long GET URLs.
2683    </para>
2684   </listitem>
2685  </varlistentry>
2686  <varlistentry>
2687   <term>Notes:</term>
2688   <listitem>
2689    <para>
2690     <application>Privoxy's</application> CGI forms can lead to
2691     rather long URLs. This isn't a problem as far as the HTTP
2692     standard is concerned, but it can confuse clients with arbitrary
2693     URL length limitations.
2694    </para>
2695    <para>
2696     Enabling split-large-forms causes <application>Privoxy</application>
2697     to divide big forms into smaller ones to keep the URL length down.
2698     It makes editing a lot less convenient and you can no longer
2699     submit all changes at once, but at least it works around this
2700     browser bug.
2701    </para>
2702    <para>
2703     If you don't notice any editing problems, there is no reason
2704     to enable this option, but if one of the submit buttons appears
2705     to be broken, you should give it a try.
2706    </para>
2707   </listitem>
2708  </varlistentry>
2709  <varlistentry>
2710   <term>Examples:</term>
2711   <listitem>
2712    <para>
2713     split-large-forms 1
2714    </para>
2715   </listitem>
2716  </varlistentry>
2717 </variablelist>
2718 <![%config-file;[<literallayout>@@split-large-forms 0</literallayout>]]>
2719 </sect3>
2720
2721 <sect3 renderas="sect4" id="keep-alive-timeout"><title>keep-alive-timeout</title>
2722 <variablelist>
2723  <varlistentry>
2724   <term>Specifies:</term>
2725   <listitem>
2726    <para>
2727     Number of seconds after which an open connection will no longer be reused.
2728    </para>
2729   </listitem>
2730  </varlistentry>
2731  <varlistentry>
2732   <term>Type of value:</term>
2733   <listitem>
2734    <para>
2735     <replaceable>Time in seconds.</replaceable>
2736    </para>
2737   </listitem>
2738  </varlistentry>
2739  <varlistentry>
2740   <term>Default value:</term>
2741   <listitem>
2742    <para>None</para>
2743   </listitem>
2744  </varlistentry>
2745  <varlistentry>
2746   <term>Effect if unset:</term>
2747   <listitem>
2748    <para>
2749     Connections are not kept alive.
2750    </para>
2751   </listitem>
2752  </varlistentry>
2753  <varlistentry>
2754   <term>Notes:</term>
2755   <listitem>
2756    <para>
2757     This option allows clients to keep the connection to &my-app;
2758     alive. If the server supports it, &my-app; will keep
2759     the connection to the server alive as well. Under certain
2760     circumstances this may result in speed-ups.
2761    </para>
2762    <para>
2763     By default, &my-app; will close the connection to the server if
2764     the client connection gets closed, or if the specified timeout
2765     has been reached without a new request coming in. This behaviour
2766     can be changed with the <ulink
2767      url="#CONNECTION-SHARING">connection-sharing</ulink> option.
2768    </para>
2769    <para>
2770     This option has no effect if <application>Privoxy</application>
2771     has been compiled without keep-alive support.
2772    </para>
2773    <para>
2774     Note that a timeout of five seconds as used in the default
2775     configuration file significantly decreases the number of
2776     connections that will be reused. The value is used because
2777     some browsers limit the number of connections they open to
2778     a single host and apply the same limit to proxies. This can
2779     result in a single website <quote>grabbing</quote> all the
2780     connections the browser allows, which means connections to
2781     other websites can't be opened until the connections currently
2782     in use time out.
2783    </para>
2784    <para>
2785     Several users have reported this as a Privoxy bug, so the
2786     default value has been reduced. Consider increasing it to
2787     300 seconds or even more if you think your browser can handle
2788     it. If your browser appears to be hanging, it probably can't.
2789    </para>
2790   </listitem>
2791  </varlistentry>
2792  <varlistentry>
2793   <term>Examples:</term>
2794   <listitem>
2795    <para>
2796     keep-alive-timeout 300
2797    </para>
2798   </listitem>
2799  </varlistentry>
2800 </variablelist>
2801 <![%config-file;[<literallayout>@@keep-alive-timeout 5</literallayout>]]>
2802 </sect3>
2803
2804
2805 <sect3 renderas="sect4" id="tolerate-pipelining"><title>tolerate-pipelining</title>
2806 <variablelist>
2807  <varlistentry>
2808   <term>Specifies:</term>
2809   <listitem>
2810    <para>
2811     Whether or not pipelined requests should be served.
2812    </para>
2813   </listitem>
2814  </varlistentry>
2815  <varlistentry>
2816   <term>Type of value:</term>
2817   <listitem>
2818    <para>
2819     <replaceable>0 or 1.</replaceable>
2820    </para>
2821   </listitem>
2822  </varlistentry>
2823  <varlistentry>
2824   <term>Default value:</term>
2825   <listitem>
2826    <para>None</para>
2827   </listitem>
2828  </varlistentry>
2829  <varlistentry>
2830   <term>Effect if unset:</term>
2831   <listitem>
2832    <para>
2833     If Privoxy receives more than one request at once, it terminates the
2834     client connection after serving the first one.
2835    </para>
2836   </listitem>
2837  </varlistentry>
2838  <varlistentry>
2839   <term>Notes:</term>
2840   <listitem>
2841    <para>
2842     &my-app; currently doesn't pipeline outgoing requests,
2843     thus allowing pipelining on the client connection is not
2844     guaranteed to improve the performance.
2845    </para>
2846    <para>
2847     By default &my-app; tries to discourage clients from pipelining
2848     by discarding aggressively pipelined requests, which forces the
2849     client to resend them through a new connection.
2850    </para>
2851    <para>
2852     This option lets &my-app; tolerate pipelining. Whether or not
2853     that improves performance mainly depends on the client configuration.
2854    </para>
2855    <para>
2856     If you are seeing problems with pages not properly loading,
2857     disabling this option could work around the problem.
2858    </para>
2859   </listitem>
2860  </varlistentry>
2861  <varlistentry>
2862   <term>Examples:</term>
2863   <listitem>
2864    <para>
2865     tolerate-pipelining 1
2866    </para>
2867   </listitem>
2868  </varlistentry>
2869 </variablelist>
2870 <![%config-file;[<literallayout>@@tolerate-pipelining 1</literallayout>]]>
2871 </sect3>
2872
2873
2874 <sect3 renderas="sect4" id="default-server-timeout"><title>default-server-timeout</title>
2875 <variablelist>
2876  <varlistentry>
2877   <term>Specifies:</term>
2878   <listitem>
2879    <para>
2880     Assumed server-side keep-alive timeout if not specified by the server.
2881    </para>
2882   </listitem>
2883  </varlistentry>
2884  <varlistentry>
2885   <term>Type of value:</term>
2886   <listitem>
2887    <para>
2888     <replaceable>Time in seconds.</replaceable>
2889    </para>
2890   </listitem>
2891  </varlistentry>
2892  <varlistentry>
2893   <term>Default value:</term>
2894   <listitem>
2895    <para>None</para>
2896   </listitem>
2897  </varlistentry>
2898  <varlistentry>
2899   <term>Effect if unset:</term>
2900   <listitem>
2901    <para>
2902     Connections for which the server didn't specify the keep-alive
2903     timeout are not reused.
2904    </para>
2905   </listitem>
2906  </varlistentry>
2907  <varlistentry>
2908   <term>Notes:</term>
2909   <listitem>
2910    <para>
2911     Enabling this option significantly increases the number of connections
2912     that are reused, provided the <ulink
2913      url="#KEEP-ALIVE-TIMEOUT">keep-alive-timeout</ulink> option
2914     is also enabled.
2915    </para>
2916    <para>
2917     While it also increases the number of connections problems
2918     when &my-app; tries to reuse a connection that already has
2919     been closed on the server side, or is closed while &my-app;
2920     is trying to reuse it, this should only be a problem if it
2921     happens for the first request sent by the client. If it happens
2922     for requests on reused client connections, &my-app; will simply
2923     close the connection and the client is supposed to retry the
2924     request without bothering the user.
2925    </para>
2926    <para>
2927     Enabling this option is therefore only recommended if the
2928     <ulink
2929      url="#CONNECTION-SHARING">connection-sharing</ulink> option
2930     is disabled.
2931    </para>
2932    <para>
2933     It is an error to specify a value larger than the <ulink
2934      url="#KEEP-ALIVE-TIMEOUT">keep-alive-timeout</ulink> value.
2935    </para>
2936    <para>
2937     This option has no effect if <application>Privoxy</application>
2938     has been compiled without keep-alive support.
2939    </para>
2940   </listitem>
2941  </varlistentry>
2942  <varlistentry>
2943   <term>Examples:</term>
2944   <listitem>
2945    <para>
2946     default-server-timeout 60
2947    </para>
2948   </listitem>
2949  </varlistentry>
2950 </variablelist>
2951 <![%config-file;[<literallayout>@@#default-server-timeout 60</literallayout>]]>
2952 </sect3>
2953
2954
2955 <sect3 renderas="sect4" id="connection-sharing"><title>connection-sharing</title>
2956 <variablelist>
2957  <varlistentry>
2958   <term>Specifies:</term>
2959   <listitem>
2960    <para>
2961     Whether or not outgoing connections that have been kept alive
2962     should be shared between different incoming connections.
2963    </para>
2964   </listitem>
2965  </varlistentry>
2966  <varlistentry>
2967   <term>Type of value:</term>
2968   <listitem>
2969    <para>
2970     <replaceable>0 or 1</replaceable>
2971    </para>
2972   </listitem>
2973  </varlistentry>
2974  <varlistentry>
2975   <term>Default value:</term>
2976   <listitem>
2977    <para>None</para>
2978   </listitem>
2979  </varlistentry>
2980  <varlistentry>
2981   <term>Effect if unset:</term>
2982   <listitem>
2983    <para>
2984     Connections are not shared.
2985    </para>
2986   </listitem>
2987  </varlistentry>
2988  <varlistentry>
2989   <term>Notes:</term>
2990   <listitem>
2991    <para>
2992     This option has no effect if <application>Privoxy</application>
2993     has been compiled without keep-alive support, or if it's disabled.
2994    </para>
2995   </listitem>
2996  </varlistentry>
2997  <varlistentry>
2998   <term>Notes:</term>
2999   <listitem>
3000    <para>
3001     Note that reusing connections doesn't necessary cause speedups.
3002     There are also a few privacy implications you should be aware of.
3003    </para>
3004    <para>
3005     If this option is effective, outgoing connections are shared between
3006     clients (if there are more than one) and closing the browser that initiated
3007     the outgoing connection does no longer affect the connection between &my-app;
3008     and the server unless the client's request hasn't been completed yet.
3009    </para>
3010    <para>
3011     If the outgoing connection  is idle, it will not be closed until either
3012     <application>Privoxy's</application> or the server's timeout is reached.
3013     While it's open, the server knows that the system running &my-app; is still
3014     there.
3015    </para>
3016    <para>
3017     If there are more than one client (maybe even belonging to multiple users),
3018     they will be able to reuse each others connections. This is potentially
3019     dangerous in case of authentication schemes like NTLM where only the
3020     connection is authenticated, instead of requiring authentication for
3021     each request.
3022    </para>
3023    <para>
3024     If there is only a single client, and if said client can keep connections
3025     alive on its own, enabling this option has next to no effect. If the client
3026     doesn't support connection keep-alive, enabling this option may make sense
3027     as it allows &my-app; to keep outgoing connections alive even if the client
3028     itself doesn't support it.
3029    </para>
3030    <para>
3031     You should also be aware that enabling this option increases the likelihood
3032     of getting the "No server or forwarder data" error message, especially if you
3033     are using a slow connection to the Internet.
3034    </para>
3035    <para>
3036     This option should only be used by experienced users who
3037     understand the risks and can weight them against the benefits.
3038    </para>
3039   </listitem>
3040  </varlistentry>
3041  <varlistentry>
3042   <term>Examples:</term>
3043   <listitem>
3044    <para>
3045     connection-sharing 1
3046    </para>
3047   </listitem>
3048  </varlistentry>
3049 </variablelist>
3050 <![%config-file;[<literallayout>@@#connection-sharing 1</literallayout>]]>
3051 </sect3>
3052
3053
3054 <sect3 renderas="sect4" id="socket-timeout"><title>socket-timeout</title>
3055 <variablelist>
3056  <varlistentry>
3057   <term>Specifies:</term>
3058   <listitem>
3059    <para>
3060     Number of seconds after which a socket times out if
3061     no data is received.
3062    </para>
3063   </listitem>
3064  </varlistentry>
3065  <varlistentry>
3066   <term>Type of value:</term>
3067   <listitem>
3068    <para>
3069     <replaceable>Time in seconds.</replaceable>
3070    </para>
3071   </listitem>
3072  </varlistentry>
3073  <varlistentry>
3074   <term>Default value:</term>
3075   <listitem>
3076    <para>None</para>
3077   </listitem>
3078  </varlistentry>
3079  <varlistentry>
3080   <term>Effect if unset:</term>
3081   <listitem>
3082    <para>
3083     A default value of 300 seconds is used.
3084    </para>
3085   </listitem>
3086  </varlistentry>
3087  <varlistentry>
3088   <term>Notes:</term>
3089   <listitem>
3090    <para>
3091     The default is quite high and you probably want to reduce it.
3092     If you aren't using an occasionally slow proxy like Tor, reducing
3093     it to a few seconds should be fine.
3094    </para>
3095   </listitem>
3096  </varlistentry>
3097  <varlistentry>
3098   <term>Examples:</term>
3099   <listitem>
3100    <para>
3101     socket-timeout 300
3102    </para>
3103   </listitem>
3104  </varlistentry>
3105 </variablelist>
3106 <![%config-file;[<literallayout>@@socket-timeout 300</literallayout>]]>
3107 </sect3>
3108
3109
3110 <sect3 renderas="sect4" id="max-client-connections"><title>max-client-connections</title>
3111 <variablelist>
3112  <varlistentry>
3113   <term>Specifies:</term>
3114   <listitem>
3115    <para>
3116     Maximum number of client connections that will be served.
3117    </para>
3118   </listitem>
3119  </varlistentry>
3120  <varlistentry>
3121   <term>Type of value:</term>
3122   <listitem>
3123    <para>
3124     <replaceable>Positive number.</replaceable>
3125    </para>
3126   </listitem>
3127  </varlistentry>
3128  <varlistentry>
3129   <term>Default value:</term>
3130   <listitem>
3131    <para>128</para>
3132   </listitem>
3133  </varlistentry>
3134  <varlistentry>
3135   <term>Effect if unset:</term>
3136   <listitem>
3137    <para>
3138     Connections are served until a resource limit is reached.
3139    </para>
3140   </listitem>
3141  </varlistentry>
3142  <varlistentry>
3143   <term>Notes:</term>
3144   <listitem>
3145    <para>
3146     &my-app; creates one thread (or process) for every incoming client
3147     connection that isn't rejected based on the access control settings.
3148    </para>
3149    <para>
3150     If the system is powerful enough, &my-app; can theoretically deal with
3151     several hundred (or thousand) connections at the same time, but some
3152     operating systems enforce resource limits by shutting down offending
3153     processes and their default limits may be below the ones &my-app; would
3154     require under heavy load.
3155    </para>
3156    <para>
3157     Configuring &my-app; to enforce a connection limit below the thread
3158     or process limit used by the operating system makes sure this doesn't
3159     happen. Simply increasing the operating system's limit would work too,
3160     but if &my-app; isn't the only application running on the system,
3161     you may actually want to limit the resources used by &my-app;.
3162    </para>
3163    <para>
3164     If &my-app; is only used by a single trusted user, limiting the
3165     number of client connections is probably unnecessary. If there
3166     are multiple possibly untrusted users you probably still want to
3167     additionally use a packet filter to limit the maximal number of
3168     incoming connections per client. Otherwise a malicious user could
3169     intentionally create a high number of connections to prevent other
3170     users from using &my-app;.
3171    </para>
3172    <para>
3173     Obviously using this option only makes sense if you choose a limit
3174     below the one enforced by the operating system.
3175    </para>
3176    <para>
3177     One most POSIX-compliant systems &my-app; can't properly deal with
3178     more than FD_SETSIZE file descriptors at the same time and has to reject
3179     connections if the limit is reached. This will likely change in a
3180     future version, but currently this limit can't be increased without
3181     recompiling &my-app; with a different FD_SETSIZE limit.
3182    </para>
3183   </listitem>
3184  </varlistentry>
3185  <varlistentry>
3186   <term>Examples:</term>
3187   <listitem>
3188    <para>
3189     max-client-connections 256
3190    </para>
3191   </listitem>
3192  </varlistentry>
3193 </variablelist>
3194 <![%config-file;[<literallayout>@@#max-client-connections 256</literallayout>]]>
3195 </sect3>
3196
3197
3198 <sect3 renderas="sect4" id="listen-backlog"><title>listen-backlog</title>
3199 <variablelist>
3200  <varlistentry>
3201   <term>Specifies:</term>
3202   <listitem>
3203    <para>
3204     Connection queue length requested from the operating system.
3205    </para>
3206   </listitem>
3207  </varlistentry>
3208  <varlistentry>
3209   <term>Type of value:</term>
3210   <listitem>
3211    <para>
3212     <replaceable>Number.</replaceable>
3213    </para>
3214   </listitem>
3215  </varlistentry>
3216  <varlistentry>
3217   <term>Default value:</term>
3218   <listitem>
3219    <para>128</para>
3220   </listitem>
3221  </varlistentry>
3222  <varlistentry>
3223   <term>Effect if unset:</term>
3224   <listitem>
3225    <para>
3226     A connection queue length of 128 is requested from the operating system.
3227    </para>
3228   </listitem>
3229  </varlistentry>
3230  <varlistentry>
3231   <term>Notes:</term>
3232   <listitem>
3233    <para>
3234     Under high load incoming connection may queue up before Privoxy
3235     gets around to serve them. The queue length is limitted by the
3236     operating system. Once the queue is full, additional connections
3237     are dropped before Privoxy can accept and serve them.
3238    </para>
3239    <para>
3240     Increasing the queue length allows Privoxy to accept more
3241     incomming connections that arrive roughly at the same time.
3242    </para>
3243    <para>
3244     Note that Privoxy can only request a certain queue length,
3245     whether or not the requested length is actually used depends
3246     on the operating system which may use a different length instead.
3247    </para>
3248    <para>
3249     On many operating systems a limit of -1 can be specified to
3250     instruct the operating system to use the maximum queue length
3251     allowed. Check the listen man page to see if your platform allows this.
3252    </para>
3253    <para>
3254     On some platforms you can use "netstat -Lan -p tcp" to see the effective
3255     queue length.
3256    </para>
3257    <para>
3258     Effectively using a value above 128 usually requires changing
3259     the system configuration as well. On FreeBSD-based system the
3260     limit is controlled by the kern.ipc.soacceptqueue sysctl.
3261    </para>
3262   </listitem>
3263  </varlistentry>
3264  <varlistentry>
3265   <term>Examples:</term>
3266   <listitem>
3267    <para>
3268     listen-backlog 4096
3269    </para>
3270   </listitem>
3271  </varlistentry>
3272 </variablelist>
3273 <![%config-file;[<literallayout>@@#listen-backlog -1</literallayout>]]>
3274 </sect3>
3275
3276
3277 <sect3 renderas="sect4" id="enable-accept-filter"><title>enable-accept-filter</title>
3278 <variablelist>
3279  <varlistentry>
3280   <term>Specifies:</term>
3281   <listitem>
3282    <para>
3283     Whether or not Privoxy should use an accept filter
3284    </para>
3285   </listitem>
3286  </varlistentry>
3287  <varlistentry>
3288   <term>Type of value:</term>
3289   <listitem>
3290    <para>
3291     <replaceable>0 or 1</replaceable>
3292    </para>
3293   </listitem>
3294  </varlistentry>
3295  <varlistentry>
3296   <term>Default value:</term>
3297   <listitem>
3298    <para>0</para>
3299   </listitem>
3300  </varlistentry>
3301  <varlistentry>
3302   <term>Effect if unset:</term>
3303   <listitem>
3304    <para>
3305     No accept filter is enabled.
3306    </para>
3307   </listitem>
3308  </varlistentry>
3309  <varlistentry>
3310   <term>Notes:</term>
3311   <listitem>
3312    <para>
3313     Accept filters reduce the number of context switches by not
3314     passing sockets for new connections to Privoxy until a complete
3315     HTTP request is available.
3316    </para>
3317    <para>
3318     As a result, Privoxy can process the whole request right away
3319     without having to wait for additional data first.
3320    </para>
3321    <para>
3322     For this option to work, Privoxy has to be compiled with
3323     FEATURE_ACCEPT_FILTER and the operating system has to support
3324     it (which may require loading a kernel module).
3325    </para>
3326    <para>
3327     Currently accept filters are only supported on FreeBSD-based
3328     systems. Check the
3329     <ulink url="https://www.freebsd.org/cgi/man.cgi?query=accf_http">accf_http(9)
3330      man page</ulink>
3331     to learn how to enable the support in the operating system.
3332    </para>
3333   </listitem>
3334  </varlistentry>
3335  <varlistentry>
3336   <term>Examples:</term>
3337   <listitem>
3338    <para>
3339     enable-accept-filter 1
3340    </para>
3341   </listitem>
3342  </varlistentry>
3343 </variablelist>
3344 <![%config-file;[<literallayout>@@#enable-accept-filter 1</literallayout>]]>
3345 </sect3>
3346
3347
3348 <sect3 renderas="sect4" id="handle-as-empty-doc-returns-ok"><title>handle-as-empty-doc-returns-ok</title>
3349 <variablelist>
3350  <varlistentry>
3351   <term>Specifies:</term>
3352   <listitem>
3353    <para>
3354     The status code Privoxy returns for pages blocked with
3355     <!--  URL will only end up in the user manual so the relative link should work. -->
3356     <literal><ulink url="actions-file.html#HANDLE-AS-EMPTY-DOCUMENT">+handle-as-empty-document</ulink></literal>.
3357    </para>
3358   </listitem>
3359  </varlistentry>
3360  <varlistentry>
3361   <term>Type of value:</term>
3362   <listitem>
3363    <para>
3364     <replaceable>0 or 1</replaceable>
3365    </para>
3366   </listitem>
3367  </varlistentry>
3368  <varlistentry>
3369   <term>Default value:</term>
3370   <listitem>
3371    <para>0</para>
3372   </listitem>
3373  </varlistentry>
3374  <varlistentry>
3375   <term>Effect if unset:</term>
3376   <listitem>
3377    <para>
3378     Privoxy returns a status 403(forbidden) for all blocked pages.
3379    </para>
3380   </listitem>
3381  </varlistentry>
3382  <varlistentry>
3383   <term>Effect if set:</term>
3384   <listitem>
3385    <para>
3386     Privoxy returns a status 200(OK) for pages blocked with +handle-as-empty-document
3387     and a status 403(Forbidden) for all other blocked pages.
3388    </para>
3389   </listitem>
3390  </varlistentry>
3391  <varlistentry>
3392   <term>Notes:</term>
3393   <listitem>
3394    <para>
3395     This directive was added as a work-around for Firefox bug 492459:
3396     <quote>Websites are no longer rendered if SSL requests for JavaScripts are blocked by a proxy.</quote>
3397     (<ulink url="https://bugzilla.mozilla.org/show_bug.cgi?id=492459">
3398                  https://bugzilla.mozilla.org/show_bug.cgi?id=492459</ulink>),
3399     the bug has been fixed for quite some time, but this directive is also useful
3400     to make it harder for websites to detect whether or not resources are being
3401     blocked.
3402    </para>
3403   </listitem>
3404  </varlistentry>
3405 </variablelist>
3406 <![%config-file;[<literallayout>@@#handle-as-empty-doc-returns-ok 1</literallayout>]]>
3407 </sect3>
3408
3409
3410 <sect3 renderas="sect4" id="enable-compression"><title>enable-compression</title>
3411 <variablelist>
3412  <varlistentry>
3413   <term>Specifies:</term>
3414   <listitem>
3415    <para>
3416     Whether or not buffered content is compressed before delivery.
3417    </para>
3418   </listitem>
3419  </varlistentry>
3420  <varlistentry>
3421   <term>Type of value:</term>
3422   <listitem>
3423    <para>
3424     <replaceable>0 or 1</replaceable>
3425    </para>
3426   </listitem>
3427  </varlistentry>
3428  <varlistentry>
3429   <term>Default value:</term>
3430   <listitem>
3431    <para>0</para>
3432   </listitem>
3433  </varlistentry>
3434  <varlistentry>
3435   <term>Effect if unset:</term>
3436   <listitem>
3437    <para>
3438     Privoxy does not compress buffered content.
3439    </para>
3440   </listitem>
3441  </varlistentry>
3442  <varlistentry>
3443   <term>Effect if set:</term>
3444   <listitem>
3445    <para>
3446     Privoxy compresses buffered content before delivering it to the client,
3447     provided the client supports it.
3448    </para>
3449   </listitem>
3450  </varlistentry>
3451  <varlistentry>
3452   <term>Notes:</term>
3453   <listitem>
3454    <para>
3455     This directive is only supported if Privoxy has been compiled with
3456     FEATURE_COMPRESSION, which should not to be confused with FEATURE_ZLIB.
3457    </para>
3458    <para>
3459     Compressing buffered content is mainly useful if Privoxy and the
3460     client are running on different systems. If they are running on the
3461     same system, enabling compression is likely to slow things down.
3462     If you didn't measure otherwise, you should assume that it does
3463     and keep this option disabled.
3464    </para>
3465    <para>
3466     Privoxy will not compress buffered content below a certain length.
3467    </para>
3468   </listitem>
3469  </varlistentry>
3470 </variablelist>
3471 <![%config-file;[<literallayout>@@#enable-compression 1</literallayout>]]>
3472 </sect3>
3473
3474
3475 <sect3 renderas="sect4" id="compression-level"><title>compression-level</title>
3476 <variablelist>
3477  <varlistentry>
3478   <term>Specifies:</term>
3479   <listitem>
3480    <para>
3481     The compression level that is passed to the zlib library when compressing buffered content.
3482    </para>
3483   </listitem>
3484  </varlistentry>
3485  <varlistentry>
3486   <term>Type of value:</term>
3487   <listitem>
3488    <para>
3489     <replaceable>Positive number ranging from 0 to 9.</replaceable>
3490    </para>
3491   </listitem>
3492  </varlistentry>
3493  <varlistentry>
3494   <term>Default value:</term>
3495   <listitem>
3496    <para>1</para>
3497   </listitem>
3498  </varlistentry>
3499  <varlistentry>
3500   <term>Notes:</term>
3501   <listitem>
3502    <para>
3503      Compressing the data more takes usually longer than compressing
3504      it less or not compressing it at all. Which level is best depends
3505      on the connection between Privoxy and the client. If you can't
3506      be bothered to benchmark it for yourself, you should stick with
3507      the default and keep compression disabled.
3508    </para>
3509    <para>
3510      If compression is disabled, the compression level is irrelevant.
3511    </para>
3512   </listitem>
3513  </varlistentry>
3514  <varlistentry>
3515   <term>Examples:</term>
3516   <listitem>
3517     <screen>
3518     # Best speed (compared to the other levels)
3519     compression-level 1
3520
3521     # Best compression
3522     compression-level 9
3523
3524     # No compression. Only useful for testing as the added header
3525     # slightly increases the amount of data that has to be sent.
3526     # If your benchmark shows that using this compression level
3527     # is superior to using no compression at all, the benchmark
3528     # is likely to be flawed.
3529     compression-level 0
3530 </screen>
3531   </listitem>
3532  </varlistentry>
3533 </variablelist>
3534 <![%config-file;[<literallayout>@@#compression-level 1</literallayout>]]>
3535 </sect3>
3536
3537
3538 <sect3 renderas="sect4" id="client-header-order"><title>client-header-order</title>
3539 <variablelist>
3540  <varlistentry>
3541   <term>Specifies:</term>
3542   <listitem>
3543    <para>
3544     The order in which client headers are sorted before forwarding them.
3545    </para>
3546   </listitem>
3547  </varlistentry>
3548  <varlistentry>
3549   <term>Type of value:</term>
3550   <listitem>
3551    <para>
3552     <replaceable>Client header names delimited by spaces or tabs</replaceable>
3553    </para>
3554   </listitem>
3555  </varlistentry>
3556  <varlistentry>
3557   <term>Default value:</term>
3558   <listitem>
3559    <para>None</para>
3560   </listitem>
3561  </varlistentry>
3562  <varlistentry>
3563   <term>Notes:</term>
3564   <listitem>
3565    <para>
3566      By default &my-app; leaves the client headers in the order they
3567      were sent by the client. Headers are modified in-place, new headers
3568      are added at the end of the already existing headers.
3569    </para>
3570    <para>
3571      The header order can be used to fingerprint client requests
3572      independently of other headers like the User-Agent.
3573    </para>
3574    <para>
3575      This directive allows to sort the headers differently to better
3576      mimic a different User-Agent. Client headers will be emitted
3577      in the order given, headers whose name isn't explicitly specified
3578      are added at the end.
3579    </para>
3580    <para>
3581      Note that sorting headers in an uncommon way will make fingerprinting
3582      actually easier. Encrypted headers are not affected by this directive.
3583    </para>
3584   </listitem>
3585  </varlistentry>
3586 </variablelist>
3587 <![%config-file;[<literallayout>@@#client-header-order Host \
3588  User-Agent \
3589  Accept \
3590  Accept-Language \
3591  Accept-Encoding \
3592  Proxy-Connection \
3593  Referer \
3594  Cookie \
3595  DNT \
3596  If-Modified-Since \
3597  Cache-Control \
3598  Content-Length \
3599  Content-Type
3600 </literallayout>]]>
3601 </sect3>
3602
3603
3604 <sect3 renderas="sect4" id="client-specific-tag"><title>client-specific-tag</title>
3605 <variablelist>
3606  <varlistentry>
3607   <term>Specifies:</term>
3608   <listitem>
3609    <para>
3610     The name of a tag that will always be set for clients that
3611     requested it through the webinterface.
3612    </para>
3613   </listitem>
3614  </varlistentry>
3615  <varlistentry>
3616   <term>Type of value:</term>
3617   <listitem>
3618    <para>
3619     <replaceable>Tag name followed by a description that will be shown in the webinterface</replaceable>
3620    </para>
3621   </listitem>
3622  </varlistentry>
3623  <varlistentry>
3624   <term>Default value:</term>
3625   <listitem>
3626    <para>None</para>
3627   </listitem>
3628  </varlistentry>
3629  <varlistentry>
3630   <term>Notes:</term>
3631   <listitem>
3632    <warning>
3633    <para>
3634     This is an experimental feature. The syntax is likely to change
3635     in future versions.
3636    </para>
3637    </warning>
3638    <para>
3639     Client-specific tags allow Privoxy admins to create different
3640     profiles and let the users chose which one they want without
3641     impacting other users.
3642    </para>
3643    <para>
3644     One use case is allowing users to circumvent certain blocks
3645     without having to allow them to circumvent all blocks.
3646     This is not possible with the
3647     <link linkend="enable-remote-toggle">enable-remote-toggle feature</link>
3648     because it would bluntly disable all blocks for all users and also affect
3649     other actions like filters.
3650     It also is set globally which renders it useless in most multi-user setups.
3651    </para>
3652    <para>
3653     After a client-specific tag has been defined with the client-specific-tag
3654     directive, action sections can be activated based on the tag by using a
3655     <ulink url="actions-file.html#CLIENT-TAG-PATTERN">CLIENT-TAG</ulink> pattern.
3656     The CLIENT-TAG pattern is evaluated at the same priority
3657     as URL patterns, as a result the last matching pattern wins.
3658     Tags that are created based on client or server headers are evaluated
3659     later on and can overrule CLIENT-TAG and URL patterns!
3660    </para>
3661    <para>
3662     The tag is set for all requests that come from clients that requested
3663     it to be set.
3664     Note that "clients" are  differentiated by IP address,
3665     if the IP address changes the tag has to be requested again.
3666    </para>
3667    <para>
3668     Clients can request tags to be set by using the CGI interface <ulink
3669      url="http://config.privoxy.org/client-tags">http://config.privoxy.org/client-tags</ulink>.
3670     The specific tag description is only used on the web page and should
3671     be phrased in away that the user understand the effect of the tag.
3672    </para>
3673   </listitem>
3674  </varlistentry>
3675  <varlistentry>
3676   <term>Examples:</term>
3677   <listitem>
3678     <screen>
3679     # Define a couple of tags, the described effect requires action sections
3680     # that are enabled based on CLIENT-TAG patterns.
3681     client-specific-tag circumvent-blocks Overrule blocks but do not affect other actions
3682     client-specific-tag disable-content-filters Disable content-filters but do not affect other actions
3683 </screen>
3684   </listitem>
3685  </varlistentry>
3686 </variablelist>
3687 </sect3>
3688
3689 <!--  ~  End section  ~  -->
3690
3691 <sect3 renderas="sect4" id="client-tag-lifetime"><title>client-tag-lifetime</title>
3692 <variablelist>
3693  <varlistentry>
3694   <term>Specifies:</term>
3695   <listitem>
3696    <para>
3697     How long a temporarily enabled tag remains enabled.
3698    </para>
3699   </listitem>
3700  </varlistentry>
3701  <varlistentry>
3702   <term>Type of value:</term>
3703   <listitem>
3704    <para>
3705     <replaceable>Time in seconds.</replaceable>
3706    </para>
3707   </listitem>
3708  </varlistentry>
3709  <varlistentry>
3710   <term>Default value:</term>
3711   <listitem>
3712    <para>60</para>
3713   </listitem>
3714  </varlistentry>
3715  <varlistentry>
3716   <term>Notes:</term>
3717   <listitem>
3718    <warning>
3719    <para>
3720     This is an experimental feature. The syntax is likely to change
3721     in future versions.
3722    </para>
3723    </warning>
3724    <para>
3725     In case of some tags users may not want to enable them permanently,
3726     but only for a short amount of time, for example to circumvent a block
3727     that is the result of an overly-broad URL pattern.
3728    </para>
3729    <para>
3730     The CGI interface <ulink
3731      url="http://config.privoxy.org/client-tags">http://config.privoxy.org/client-tags</ulink>
3732     therefore provides a "enable this tag temporarily" option.
3733     If it is used, the tag will be set until the client-tag-lifetime
3734     is over.
3735    </para>
3736   </listitem>
3737  </varlistentry>
3738  <varlistentry>
3739   <term>Examples:</term>
3740   <listitem>
3741     <screen>
3742       # Increase the time to life for temporarily enabled tags to 3 minutes
3743       client-tag-lifetime 180
3744 </screen>
3745   </listitem>
3746  </varlistentry>
3747 </variablelist>
3748 </sect3>
3749
3750 <!--  ~  End section  ~  -->
3751
3752 <sect3 renderas="sect4" id="trust-x-forwarded-for"><title>trust-x-forwarded-for</title>
3753 <variablelist>
3754  <varlistentry>
3755   <term>Specifies:</term>
3756   <listitem>
3757    <para>
3758     Whether or not Privoxy should use IP addresses specified with the X-Forwarded-For header
3759    </para>
3760   </listitem>
3761  </varlistentry>
3762  <varlistentry>
3763   <term>Type of value:</term>
3764   <listitem>
3765    <para>
3766     <replaceable>0 or one</replaceable>
3767    </para>
3768   </listitem>
3769  </varlistentry>
3770  <varlistentry>
3771   <term>Default value:</term>
3772   <listitem>
3773    <para>0</para>
3774   </listitem>
3775  </varlistentry>
3776  <varlistentry>
3777   <term>Notes:</term>
3778   <listitem>
3779    <warning>
3780    <para>
3781     This is an experimental feature. The syntax is likely to change
3782     in future versions.
3783    </para>
3784    </warning>
3785    <para>
3786     If clients reach Privoxy through another proxy, for example a load
3787     balancer, Privoxy can't tell the client's IP address from the connection.
3788     If multiple clients use the same proxy, they will share the same
3789     client tag settings which is usually not desired.
3790    </para>
3791    <para>
3792     This option lets Privoxy use the X-Forwarded-For header value as
3793     client IP address. If the proxy sets the header, multiple clients
3794     using the same proxy do not share the same client tag settings.
3795    </para>
3796    <para>
3797     This option should only be enabled if Privoxy can only be reached
3798     through a proxy and if the proxy can be trusted to set the header
3799     correctly. It is recommended that ACL are used to make sure only
3800     trusted systems can reach Privoxy.
3801    </para>
3802    <para>
3803     If access to Privoxy isn't limited to trusted systems, this option
3804     would allow malicious clients to change the client tags for other
3805     clients or increase Privoxy's memory requirements by registering
3806     lots of client tag settings for clients that don't exist.
3807    </para>
3808   </listitem>
3809  </varlistentry>
3810  <varlistentry>
3811   <term>Examples:</term>
3812   <listitem>
3813     <screen>
3814       # Allow systems that can reach Privoxy to provide the client
3815       # IP address with a X-Forwarded-For header.
3816       trust-x-forwarded-for 1
3817 </screen>
3818   </listitem>
3819  </varlistentry>
3820 </variablelist>
3821 </sect3>
3822
3823 <!--  ~  End section  ~  -->
3824
3825 <!--   ~~~~~       New section      ~~~~~     -->
3826
3827 <sect3 renderas="sect4" id="receive-buffer-size"><title>receive-buffer-size</title>
3828 <variablelist>
3829  <varlistentry>
3830   <term>Specifies:</term>
3831   <listitem>
3832    <para>
3833     The size of the buffer Privoxy uses to receive data from the server.
3834    </para>
3835   </listitem>
3836  </varlistentry>
3837  <varlistentry>
3838   <term>Type of value:</term>
3839   <listitem>
3840    <para>
3841     <replaceable>Size in bytes</replaceable>
3842    </para>
3843   </listitem>
3844  </varlistentry>
3845  <varlistentry>
3846   <term>Default value:</term>
3847   <listitem>
3848    <para>5000</para>
3849   </listitem>
3850  </varlistentry>
3851  <varlistentry>
3852   <term>Notes:</term>
3853   <listitem>
3854    <para>
3855     Increasing the receive-buffer-size increases Privoxy's memory usage but
3856     can lower the number of context switches and thereby reduce the
3857     cpu usage and potentially increase the throughput.
3858    </para>
3859    <para>
3860     This is mostly relevant for fast network connections and
3861     large downloads that don't require filtering.
3862    </para>
3863    <para>
3864     Reducing the buffer size reduces the amount of memory Privoxy
3865     needs to handle the request but increases the number of systemcalls
3866     and may reduce the throughput.
3867    </para>
3868    <para>
3869     A dtrace command like:
3870     <quote>sudo dtrace -n 'syscall::read:return /execname == "privoxy"/ { @[execname] = llquantize(arg0, 10, 0, 5, 20); @m = max(arg0)}'</quote>
3871     can be used to properly tune the receive-buffer-size.
3872     On systems without dtrace, strace or truss may be used as
3873     less convenient alternatives.
3874    </para>
3875    <para>
3876     If the buffer is too large it will increase Privoxy's memory
3877     footprint without any benefit. As the memory is (currently)
3878     cleared before using it, a buffer that is too large can
3879     actually reduce the throughput.
3880    </para>
3881   </listitem>
3882  </varlistentry>
3883  <varlistentry>
3884   <term>Examples:</term>
3885   <listitem>
3886     <screen>
3887       # Increase the receive buffer size
3888       receive-buffer-size 32768
3889 </screen>
3890   </listitem>
3891  </varlistentry>
3892 </variablelist>
3893 </sect3>
3894
3895 <!--  ~  End section  ~  -->
3896
3897 </sect2>
3898
3899
3900 <sect2 id="tls">
3901 <title>TLS/SSL</title>
3902
3903 <!--   ~~~~~       New section      ~~~~~     -->
3904
3905 <sect3 renderas="sect4" id="ca-directory"><title>ca-directory</title>
3906 <variablelist>
3907  <varlistentry>
3908   <term>Specifies:</term>
3909   <listitem>
3910    <para>
3911     Directory with the CA key, the CA certificate and the trusted CAs file.
3912    </para>
3913   </listitem>
3914  </varlistentry>
3915  <varlistentry>
3916   <term>Type of value:</term>
3917   <listitem>
3918    <para>
3919     Text
3920    </para>
3921   </listitem>
3922  </varlistentry>
3923  <varlistentry>
3924   <term>Default value:</term>
3925   <listitem>
3926    <para><emphasis>Empty string</emphasis></para>
3927   </listitem>
3928  </varlistentry>
3929  <varlistentry>
3930   <term>Effect if unset:</term>
3931   <listitem>
3932    <para>
3933     Default value is used.
3934    </para>
3935   </listitem>
3936  </varlistentry>
3937  <varlistentry>
3938   <term>Notes:</term>
3939   <listitem>
3940    <para>
3941     This directive specifies the directory where the
3942     CA key, the CA certificate and the trusted CAs file
3943     are located.
3944    </para>
3945   </listitem>
3946  </varlistentry>
3947  <varlistentry>
3948   <term>Examples:</term>
3949   <listitem>
3950    <para>
3951     ca-directory /usr/local/etc/privoxy/CA
3952    </para>
3953   </listitem>
3954  </varlistentry>
3955 </variablelist>
3956 <![%config-file;[<literallayout>@@#ca-directory /usr/local/etc/privoxy/CA</literallayout>]]>
3957 </sect3>
3958
3959 <!--  ~  End section  ~  -->
3960
3961 <!--   ~~~~~       New section      ~~~~~     -->
3962
3963 <sect3 renderas="sect4" id="ca-cert-file"><title>ca-cert-file</title>
3964 <variablelist>
3965  <varlistentry>
3966   <term>Specifies:</term>
3967   <listitem>
3968    <para>
3969     The CA certificate file in ".crt" format.
3970    </para>
3971   </listitem>
3972  </varlistentry>
3973  <varlistentry>
3974   <term>Type of value:</term>
3975   <listitem>
3976    <para>
3977     Text
3978    </para>
3979   </listitem>
3980  </varlistentry>
3981  <varlistentry>
3982   <term>Default value:</term>
3983   <listitem>
3984    <para><emphasis>cacert.crt</emphasis></para>
3985   </listitem>
3986  </varlistentry>
3987  <varlistentry>
3988   <term>Effect if unset:</term>
3989   <listitem>
3990    <para>
3991     Default value is used.
3992    </para>
3993   </listitem>
3994  </varlistentry>
3995  <varlistentry>
3996   <term>Notes:</term>
3997   <listitem>
3998    <para>
3999     This directive specifies the name of the CA certificate file
4000     in ".crt" format.
4001    </para>
4002    <para>
4003     It can be generated with: openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.crt -days 3650
4004    </para>
4005   </listitem>
4006  </varlistentry>
4007  <varlistentry>
4008   <term>Examples:</term>
4009   <listitem>
4010    <para>
4011     ca-cert-file root.crt
4012    </para>
4013   </listitem>
4014  </varlistentry>
4015 </variablelist>
4016 <![%config-file;[<literallayout>@@#ca-cert-file cacert.crt</literallayout>]]>
4017 </sect3>
4018
4019 <!--  ~  End section  ~  -->
4020
4021 <!--   ~~~~~       New section      ~~~~~     -->
4022
4023 <sect3 renderas="sect4" id="ca-key-file"><title>ca-key-file</title>
4024 <variablelist>
4025  <varlistentry>
4026   <term>Specifies:</term>
4027   <listitem>
4028    <para>
4029     The CA key file in ".pem" format.
4030    </para>
4031   </listitem>
4032  </varlistentry>
4033  <varlistentry>
4034   <term>Type of value:</term>
4035   <listitem>
4036    <para>
4037     Text
4038    </para>
4039   </listitem>
4040  </varlistentry>
4041  <varlistentry>
4042   <term>Default value:</term>
4043   <listitem>
4044    <para><emphasis>cacert.pem</emphasis></para>
4045   </listitem>
4046  </varlistentry>
4047  <varlistentry>
4048   <term>Effect if unset:</term>
4049   <listitem>
4050    <para>
4051     Default value is used.
4052    </para>
4053   </listitem>
4054  </varlistentry>
4055  <varlistentry>
4056   <term>Notes:</term>
4057   <listitem>
4058    <para>
4059     This directive specifies the name of the CA key file
4060     in ".pem" format. See the <ulink url="#CA-CERT-FILE">ca-cert-file</ulink>
4061     for a command to generate it.
4062    </para>
4063   </listitem>
4064  </varlistentry>
4065  <varlistentry>
4066   <term>Examples:</term>
4067   <listitem>
4068    <para>
4069     ca-key-file cakey.pem
4070    </para>
4071   </listitem>
4072  </varlistentry>
4073 </variablelist>
4074 <![%config-file;[<literallayout>@@#ca-key-file root.pem</literallayout>]]>
4075 </sect3>
4076
4077 <!--  ~  End section  ~  -->
4078
4079 <!--   ~~~~~       New section      ~~~~~     -->
4080
4081 <sect3 renderas="sect4" id="ca-password"><title>ca-password</title>
4082 <variablelist>
4083  <varlistentry>
4084   <term>Specifies:</term>
4085   <listitem>
4086    <para>
4087     The password for the CA keyfile.
4088    </para>
4089   </listitem>
4090  </varlistentry>
4091  <varlistentry>
4092   <term>Type of value:</term>
4093   <listitem>
4094    <para>
4095     Text
4096    </para>
4097   </listitem>
4098  </varlistentry>
4099  <varlistentry>
4100   <term>Default value:</term>
4101   <listitem>
4102    <para><emphasis>Empty string</emphasis></para>
4103   </listitem>
4104  </varlistentry>
4105  <varlistentry>
4106   <term>Effect if unset:</term>
4107   <listitem>
4108    <para>
4109     Default value is used.
4110    </para>
4111   </listitem>
4112  </varlistentry>
4113  <varlistentry>
4114   <term>Notes:</term>
4115   <listitem>
4116    <para>
4117     This directive specifies the password for the CA keyfile
4118     that is used when Privoxy generates certificates for intercepted
4119     requests.
4120    </para>
4121    <para>
4122      Note that the password is shown on the CGI page so don't
4123      reuse an important one.
4124    </para>
4125   </listitem>
4126  </varlistentry>
4127  <varlistentry>
4128   <term>Examples:</term>
4129   <listitem>
4130    <para>
4131     ca-password blafasel
4132    </para>
4133   </listitem>
4134  </varlistentry>
4135 </variablelist>
4136 <![%config-file;[<literallayout>@@#ca-password swordfish</literallayout>]]>
4137 </sect3>
4138
4139 <!--  ~  End section  ~  -->
4140
4141 <!--   ~~~~~       New section      ~~~~~     -->
4142
4143 <sect3 renderas="sect4" id="certificate-directory"><title>certificate-directory</title>
4144 <variablelist>
4145  <varlistentry>
4146   <term>Specifies:</term>
4147   <listitem>
4148    <para>
4149     Directory to safe generated keys and certificates.
4150    </para>
4151   </listitem>
4152  </varlistentry>
4153  <varlistentry>
4154   <term>Type of value:</term>
4155   <listitem>
4156    <para>
4157     Text
4158    </para>
4159   </listitem>
4160  </varlistentry>
4161  <varlistentry>
4162   <term>Default value:</term>
4163   <listitem>
4164    <para><emphasis>./certs</emphasis></para>
4165   </listitem>
4166  </varlistentry>
4167  <varlistentry>
4168   <term>Effect if unset:</term>
4169   <listitem>
4170    <para>
4171     Default value is used.
4172    </para>
4173   </listitem>
4174  </varlistentry>
4175  <varlistentry>
4176   <term>Notes:</term>
4177   <listitem>
4178    <para>
4179     This directive specifies the directory where generated
4180     TLS/SSL keys and certificates are saved.
4181    </para>
4182   </listitem>
4183  </varlistentry>
4184  <varlistentry>
4185   <term>Examples:</term>
4186   <listitem>
4187    <para>
4188     certificate-directory /usr/local/var/privoxy/certs
4189    </para>
4190   </listitem>
4191  </varlistentry>
4192 </variablelist>
4193 <![%config-file;[<literallayout>@@#certificate-directory /usr/local/var/privoxy/certs</literallayout>]]>
4194 </sect3>
4195
4196 <!--  ~  End section  ~  -->
4197
4198 <!--   ~~~~~       New section      ~~~~~     -->
4199
4200 <sect3 renderas="sect4" id="trusted-cas-file"><title>trusted-cas-file</title>
4201 <variablelist>
4202  <varlistentry>
4203   <term>Specifies:</term>
4204   <listitem>
4205    <para>
4206     The trusted CAs file in ".pem" format.
4207    </para>
4208   </listitem>
4209  </varlistentry>
4210  <varlistentry>
4211   <term>Type of value:</term>
4212   <listitem>
4213    <para>
4214     File name relative to ca-directory
4215    </para>
4216   </listitem>
4217  </varlistentry>
4218  <varlistentry>
4219   <term>Default value:</term>
4220   <listitem>
4221    <para><emphasis>trustedCAs.pem</emphasis></para>
4222   </listitem>
4223  </varlistentry>
4224  <varlistentry>
4225   <term>Effect if unset:</term>
4226   <listitem>
4227    <para>
4228     Default value is used.
4229    </para>
4230   </listitem>
4231  </varlistentry>
4232  <varlistentry>
4233   <term>Notes:</term>
4234   <listitem>
4235    <para>
4236     This directive specifies the trusted CAs file that is used when validating
4237     certificates for intercepted TLS/SSL request.
4238    </para>
4239    <para>
4240     An example file can be downloaded from
4241     <ulink url="https://curl.haxx.se/ca/cacert.pem">https://curl.haxx.se/ca/cacert.pem</ulink>.
4242    </para>
4243   </listitem>
4244  </varlistentry>
4245  <varlistentry>
4246   <term>Examples:</term>
4247   <listitem>
4248    <para>
4249     trusted-cas-file trusted_cas_file.pem
4250    </para>
4251   </listitem>
4252  </varlistentry>
4253 </variablelist>
4254 <![%config-file;[<literallayout>@@#trusted-cas-file trustedCAs.pem</literallayout>]]>
4255 </sect3>
4256
4257 <!--  ~  End section  ~  -->
4258
4259 </sect2>
4260
4261 <!--   ~~~~~       New section      ~~~~~     -->
4262
4263 <sect2 id="windows-gui">
4264 <title>Windows GUI Options</title>
4265 <para>
4266  <application>Privoxy</application> has a number of options specific to the
4267  Windows GUI interface:
4268 </para>
4269
4270 <anchor id="activity-animation">
4271 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4272 <para>
4273  If <quote>activity-animation</quote> is set to 1, the
4274  <application>Privoxy</application> icon will animate when
4275  <quote>Privoxy</quote> is active. To turn off, set to 0.
4276 </para>
4277
4278 <![%config-file;[<literallayout>@@#activity-animation   1</literallayout>]]>
4279 <![%user-man;[
4280    <literallayout>
4281   <emphasis>activity-animation   1</emphasis>
4282 </literallayout>
4283 ]]>
4284
4285 <anchor id="log-messages">
4286 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4287 <para>
4288  If <quote>log-messages</quote> is set to 1,
4289  <application>Privoxy</application> copies log messages to the console
4290  window.
4291  The log detail depends on the <link linkend="debug">debug</link> directive.
4292 </para>
4293
4294 <![%config-file;[<literallayout>@@#log-messages   1</literallayout>]]>
4295 <![%user-man;[
4296    <literallayout>
4297   <emphasis>log-messages       1</emphasis>
4298 </literallayout>
4299 ]]>
4300
4301 <anchor id="log-buffer-size">
4302 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4303 <para>
4304  If <quote>log-buffer-size</quote> is set to 1, the size of the log buffer,
4305  i.e. the amount of memory used for the log messages displayed in the
4306  console window, will be limited to <quote>log-max-lines</quote> (see below).
4307 </para>
4308
4309 <para>
4310  Warning: Setting this to 0 will result in the buffer to grow infinitely and
4311  eat up all your memory!
4312 </para>
4313
4314 <![%config-file;[<literallayout>@@#log-buffer-size 1</literallayout>]]>
4315 <![%user-man;[
4316    <literallayout>
4317   <emphasis>log-buffer-size      1</emphasis>
4318 </literallayout>
4319 ]]>
4320
4321 <anchor id="log-max-lines">
4322 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4323 <para>
4324  <application>log-max-lines</application> is the maximum number of lines held
4325  in the log buffer. See above.
4326 </para>
4327
4328 <![%config-file;[<literallayout>@@#log-max-lines 200</literallayout>]]>
4329 <![%user-man;[
4330    <literallayout>
4331   <emphasis>log-max-lines      200</emphasis>
4332 </literallayout>
4333 ]]>
4334
4335 <anchor id="log-highlight-messages">
4336 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4337 <para>
4338  If <quote>log-highlight-messages</quote> is set to 1,
4339  <application>Privoxy</application> will highlight portions of the log
4340  messages with a bold-faced font:
4341 </para>
4342
4343 <![%config-file;[<literallayout>@@#log-highlight-messages 1</literallayout>]]>
4344 <![%user-man;[
4345    <literallayout>
4346   <emphasis>log-highlight-messages   1</emphasis>
4347 </literallayout>
4348 ]]>
4349
4350 <anchor id="log-font-name">
4351 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4352 <para>
4353  The font used in the console window:
4354 </para>
4355
4356 <![%config-file;[<literallayout>@@#log-font-name Comic Sans MS</literallayout>]]>
4357 <![%user-man;[
4358    <literallayout>
4359   <emphasis>log-font-name        Comic Sans MS</emphasis>
4360 </literallayout>
4361 ]]>
4362
4363 <anchor id="log-font-size">
4364 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4365 <para>
4366  Font size used in the console window:
4367 </para>
4368
4369 <![%config-file;[<literallayout>@@#log-font-size 8</literallayout>]]>
4370 <![%user-man;[
4371    <literallayout>
4372   <emphasis>log-font-size        8</emphasis>
4373 </literallayout>
4374 ]]>
4375
4376 <anchor id="show-on-task-bar">
4377 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4378 <para>
4379  <quote>show-on-task-bar</quote> controls whether or not
4380  <application>Privoxy</application> will appear as a button on the Task bar
4381  when minimized:
4382 </para>
4383
4384 <![%config-file;[<literallayout>@@#show-on-task-bar 0</literallayout>]]>
4385 <![%user-man;[
4386    <literallayout>
4387   <emphasis>show-on-task-bar     0</emphasis>
4388 </literallayout>
4389 ]]>
4390
4391 <anchor id="close-button-minimizes">
4392 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4393 <para>
4394  If <quote>close-button-minimizes</quote> is set to 1, the Windows close
4395  button will minimize <application>Privoxy</application> instead of closing
4396  the program (close with the exit option on the File menu).
4397 </para>
4398
4399 <![%config-file;[<literallayout>@@#close-button-minimizes 1</literallayout>]]>
4400 <![%user-man;[
4401    <literallayout>
4402   <emphasis>close-button-minimizes  1</emphasis>
4403 </literallayout>
4404 ]]>
4405
4406 <anchor id="hide-console">
4407 <![%config-file;[<para>@@</para>]]> <!-- for spacing -->
4408 <para>
4409  The <quote>hide-console</quote> option is specific to the MS-Win console
4410  version of <application>Privoxy</application>. If this option is used,
4411  <application>Privoxy</application> will disconnect from and hide the
4412  command console.
4413 </para>
4414
4415 <![%config-file;[<literallayout>@@#hide-console</literallayout>]]>
4416 <![%user-man;[
4417    <literallayout>
4418   #<emphasis>hide-console</emphasis>
4419 </literallayout>
4420 ]]>
4421
4422 </sect2>
4423 </sect1>
4424
4425 <!-- end config content common to both outputs -->
4426
4427 <![%config-file;[
4428 <!-- These are dummy anchors to keep the processor quiet            -->
4429 <!-- when building config-file only (ie. they are used in u-m only) -->
4430 <sect1 label="">
4431 <title></title>
4432 <anchor id="filter">
4433 <anchor id="filter-file">
4434 <anchor id="regex">
4435 <anchor id="actions-file">
4436 <anchor id="af-patterns">
4437 </sect1>
4438 ]]>
4439
4440 <!-- eof p-config.sgml -->