Rebuild docs
[privoxy.git] / doc / webserver / user-manual / config.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5   <title>The Main Configuration File</title>
6   <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
7   <link rel="HOME" title="Privoxy 3.0.29 User Manual" href="index.html">
8   <link rel="PREVIOUS" title="Privoxy Configuration" href="configuration.html">
9   <link rel="NEXT" title="Actions Files" href="actions-file.html">
10   <link rel="STYLESHEET" type="text/css" href="../p_doc.css">
11   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12   <link rel="STYLESHEET" type="text/css" href="p_doc.css">
13 </head>
14 <body class="SECT1" bgcolor="#EEEEEE" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
15   <div class="NAVHEADER">
16     <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
17       <tr>
18         <th colspan="3" align="center">Privoxy 3.0.29 User Manual</th>
19       </tr>
20       <tr>
21         <td width="10%" align="left" valign="bottom"><a href="configuration.html" accesskey="P">Prev</a></td>
22         <td width="80%" align="center" valign="bottom"></td>
23         <td width="10%" align="right" valign="bottom"><a href="actions-file.html" accesskey="N">Next</a></td>
24       </tr>
25     </table>
26     <hr align="left" width="100%">
27   </div>
28   <div class="SECT1">
29     <h1 class="SECT1"><a name="CONFIG" id="CONFIG">7. The Main Configuration File</a></h1>
30     <p>By default, the main configuration file is named <tt class="FILENAME">config</tt>, with the exception of
31     Windows, where it is named <tt class="FILENAME">config.txt</tt>. Configuration lines consist of an initial keyword
32     followed by a list of values, all separated by whitespace (any number of spaces or tabs). For example:</p>
33     <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">confdir /etc/privoxy</i></span></p>
34     <p>Assigns the value <tt class="LITERAL">/etc/privoxy</tt> to the option <tt class="LITERAL">confdir</tt> and thus
35     indicates that the configuration directory is named <span class="QUOTE">"/etc/privoxy/"</span>.</p>
36     <p>All options in the config file except for <tt class="LITERAL">confdir</tt> and <tt class="LITERAL">logdir</tt>
37     are optional. Watch out in the below description for what happens if you leave them unset.</p>
38     <p>The main config file controls all aspects of <span class="APPLICATION">Privoxy</span>'s operation that are not
39     location dependent (i.e. they apply universally, no matter where you may be surfing). Like the filter and action
40     files, the config file is a plain text file and can be modified with a text editor like emacs, vim or
41     notepad.exe.</p>
42     <div class="SECT2">
43       <h2 class="SECT2"><a name="LOCAL-SET-UP" id="LOCAL-SET-UP">7.1. Local Set-up Documentation</a></h2>
44       <p>If you intend to operate <span class="APPLICATION">Privoxy</span> for more users than just yourself, it might
45       be a good idea to let them know how to reach you, what you block and why you do that, your policies, etc.</p>
46       <div class="SECT3">
47         <h4 class="SECT3"><a name="USER-MANUAL" id="USER-MANUAL">7.1.1. user-manual</a></h4>
48         <div class="VARIABLELIST">
49           <dl>
50             <dt>Specifies:</dt>
51             <dd>
52               <p>Location of the <span class="APPLICATION">Privoxy</span> User Manual.</p>
53             </dd>
54             <dt>Type of value:</dt>
55             <dd>
56               <p>A fully qualified URI</p>
57             </dd>
58             <dt>Default value:</dt>
59             <dd>
60               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
61             </dd>
62             <dt>Effect if unset:</dt>
63             <dd>
64               <p><a href="https://www.privoxy.org/user-manual/" target="_top">https://www.privoxy.org/<tt class=
65               "REPLACEABLE"><i>version</i></tt>/user-manual/</a> will be used, where <tt class=
66               "REPLACEABLE"><i>version</i></tt> is the <span class="APPLICATION">Privoxy</span> version.</p>
67             </dd>
68             <dt>Notes:</dt>
69             <dd>
70               <p>The User Manual URI is the single best source of information on <span class=
71               "APPLICATION">Privoxy</span>, and is used for help links from some of the internal CGI pages. The manual
72               itself is normally packaged with the binary distributions, so you probably want to set this to a locally
73               installed copy.</p>
74               <p>Examples:</p>
75               <p>The best all purpose solution is simply to put the full local <tt class="LITERAL">PATH</tt> to where
76               the <i class="CITETITLE">User Manual</i> is located:</p>
77               <table border="0" bgcolor="#E0E0E0" width="90%">
78                 <tr>
79                   <td>
80                     <pre class="SCREEN">  user-manual  /usr/share/doc/privoxy/user-manual</pre>
81                   </td>
82                 </tr>
83               </table>
84               <p>The User Manual is then available to anyone with access to <span class="APPLICATION">Privoxy</span>,
85               by following the built-in URL: <tt class="LITERAL">http://config.privoxy.org/user-manual/</tt> (or the
86               shortcut: <tt class="LITERAL">http://p.p/user-manual/</tt>).</p>
87               <p>If the documentation is not on the local system, it can be accessed from a remote server, as:</p>
88               <table border="0" bgcolor="#E0E0E0" width="90%">
89                 <tr>
90                   <td>
91                     <pre class="SCREEN">  user-manual  http://example.com/privoxy/user-manual/</pre>
92                   </td>
93                 </tr>
94               </table>
95               <div class="WARNING">
96                 <table class="WARNING" border="1" width="90%">
97                   <tr>
98                     <td align="center"><b>Warning</b></td>
99                   </tr>
100                   <tr>
101                     <td align="left">
102                       <p>If set, this option should be <span class="emphasis"><i class="EMPHASIS">the first option in
103                       the config file</i></span>, because it is used while the config file is being read on
104                       start-up.</p>
105                     </td>
106                   </tr>
107                 </table>
108               </div>
109             </dd>
110           </dl>
111         </div>
112       </div>
113       <div class="SECT3">
114         <h4 class="SECT3"><a name="TRUST-INFO-URL" id="TRUST-INFO-URL">7.1.2. trust-info-url</a></h4>
115         <div class="VARIABLELIST">
116           <dl>
117             <dt>Specifies:</dt>
118             <dd>
119               <p>A URL to be displayed in the error page that users will see if access to an untrusted page is
120               denied.</p>
121             </dd>
122             <dt>Type of value:</dt>
123             <dd>
124               <p>URL</p>
125             </dd>
126             <dt>Default value:</dt>
127             <dd>
128               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
129             </dd>
130             <dt>Effect if unset:</dt>
131             <dd>
132               <p>No links are displayed on the "untrusted" error page.</p>
133             </dd>
134             <dt>Notes:</dt>
135             <dd>
136               <p>The value of this option only matters if the experimental trust mechanism has been activated. (See
137               <a href="config.html#TRUSTFILE"><span class="emphasis"><i class="EMPHASIS">trustfile</i></span></a>
138               below.)</p>
139               <p>If you use the trust mechanism, it is a good idea to write up some on-line documentation about your
140               trust policy and to specify the URL(s) here. Use multiple times for multiple URLs.</p>
141               <p>The URL(s) should be added to the trustfile as well, so users don't end up locked out from the
142               information on why they were locked out in the first place!</p>
143             </dd>
144           </dl>
145         </div>
146       </div>
147       <div class="SECT3">
148         <h4 class="SECT3"><a name="ADMIN-ADDRESS" id="ADMIN-ADDRESS">7.1.3. admin-address</a></h4>
149         <div class="VARIABLELIST">
150           <dl>
151             <dt>Specifies:</dt>
152             <dd>
153               <p>An email address to reach the <span class="APPLICATION">Privoxy</span> administrator.</p>
154             </dd>
155             <dt>Type of value:</dt>
156             <dd>
157               <p>Email address</p>
158             </dd>
159             <dt>Default value:</dt>
160             <dd>
161               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
162             </dd>
163             <dt>Effect if unset:</dt>
164             <dd>
165               <p>No email address is displayed on error pages and the CGI user interface.</p>
166             </dd>
167             <dt>Notes:</dt>
168             <dd>
169               <p>If both <tt class="LITERAL">admin-address</tt> and <tt class="LITERAL">proxy-info-url</tt> are unset,
170               the whole "Local Privoxy Support" box on all generated pages will not be shown.</p>
171             </dd>
172           </dl>
173         </div>
174       </div>
175       <div class="SECT3">
176         <h4 class="SECT3"><a name="PROXY-INFO-URL" id="PROXY-INFO-URL">7.1.4. proxy-info-url</a></h4>
177         <div class="VARIABLELIST">
178           <dl>
179             <dt>Specifies:</dt>
180             <dd>
181               <p>A URL to documentation about the local <span class="APPLICATION">Privoxy</span> setup, configuration
182               or policies.</p>
183             </dd>
184             <dt>Type of value:</dt>
185             <dd>
186               <p>URL</p>
187             </dd>
188             <dt>Default value:</dt>
189             <dd>
190               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
191             </dd>
192             <dt>Effect if unset:</dt>
193             <dd>
194               <p>No link to local documentation is displayed on error pages and the CGI user interface.</p>
195             </dd>
196             <dt>Notes:</dt>
197             <dd>
198               <p>If both <tt class="LITERAL">admin-address</tt> and <tt class="LITERAL">proxy-info-url</tt> are unset,
199               the whole "Local Privoxy Support" box on all generated pages will not be shown.</p>
200               <p>This URL shouldn't be blocked ;-)</p>
201             </dd>
202           </dl>
203         </div>
204       </div>
205     </div>
206     <div class="SECT2">
207       <h2 class="SECT2"><a name="CONF-LOG-LOC" id="CONF-LOG-LOC">7.2. Configuration and Log File Locations</a></h2>
208       <p><span class="APPLICATION">Privoxy</span> can (and normally does) use a number of other files for additional
209       configuration, help and logging. This section of the configuration file tells <span class=
210       "APPLICATION">Privoxy</span> where to find those other files.</p>
211       <p>The user running <span class="APPLICATION">Privoxy</span>, must have read permission for all configuration
212       files, and write permission to any files that would be modified, such as log files and actions files.</p>
213       <div class="SECT3">
214         <h4 class="SECT3"><a name="CONFDIR" id="CONFDIR">7.2.1. confdir</a></h4>
215         <div class="VARIABLELIST">
216           <dl>
217             <dt>Specifies:</dt>
218             <dd>
219               <p>The directory where the other configuration files are located.</p>
220             </dd>
221             <dt>Type of value:</dt>
222             <dd>
223               <p>Path name</p>
224             </dd>
225             <dt>Default value:</dt>
226             <dd>
227               <p>/etc/privoxy (Unix) <span class="emphasis"><i class="EMPHASIS">or</i></span> <span class=
228               "APPLICATION">Privoxy</span> installation dir (Windows)</p>
229             </dd>
230             <dt>Effect if unset:</dt>
231             <dd>
232               <p><span class="emphasis"><i class="EMPHASIS">Mandatory</i></span></p>
233             </dd>
234             <dt>Notes:</dt>
235             <dd>
236               <p>No trailing <span class="QUOTE">"<tt class="LITERAL">/</tt>"</span>, please.</p>
237             </dd>
238           </dl>
239         </div>
240       </div>
241       <div class="SECT3">
242         <h4 class="SECT3"><a name="TEMPLDIR" id="TEMPLDIR">7.2.2. templdir</a></h4>
243         <div class="VARIABLELIST">
244           <dl>
245             <dt>Specifies:</dt>
246             <dd>
247               <p>An alternative directory where the templates are loaded from.</p>
248             </dd>
249             <dt>Type of value:</dt>
250             <dd>
251               <p>Path name</p>
252             </dd>
253             <dt>Default value:</dt>
254             <dd>
255               <p>unset</p>
256             </dd>
257             <dt>Effect if unset:</dt>
258             <dd>
259               <p>The templates are assumed to be located in confdir/template.</p>
260             </dd>
261             <dt>Notes:</dt>
262             <dd>
263               <p><span class="APPLICATION">Privoxy's</span> original templates are usually overwritten with each
264               update. Use this option to relocate customized templates that should be kept. As template variables might
265               change between updates, you shouldn't expect templates to work with <span class=
266               "APPLICATION">Privoxy</span> releases other than the one they were part of, though.</p>
267             </dd>
268           </dl>
269         </div>
270       </div>
271       <div class="SECT3">
272         <h4 class="SECT3"><a name="TEMPORARY-DIRECTORY" id="TEMPORARY-DIRECTORY">7.2.3. temporary-directory</a></h4>
273         <div class="VARIABLELIST">
274           <dl>
275             <dt>Specifies:</dt>
276             <dd>
277               <p>A directory where Privoxy can create temporary files.</p>
278             </dd>
279             <dt>Type of value:</dt>
280             <dd>
281               <p>Path name</p>
282             </dd>
283             <dt>Default value:</dt>
284             <dd>
285               <p>unset</p>
286             </dd>
287             <dt>Effect if unset:</dt>
288             <dd>
289               <p>No temporary files are created, external filters don't work.</p>
290             </dd>
291             <dt>Notes:</dt>
292             <dd>
293               <p>To execute <tt class="LITERAL"><a href="actions-file.html#EXTERNAL-FILTER" target="_top">external
294               filters</a></tt>, <span class="APPLICATION">Privoxy</span> has to create temporary files. This directive
295               specifies the directory the temporary files should be written to.</p>
296               <p>It should be a directory only <span class="APPLICATION">Privoxy</span> (and trusted users) can
297               access.</p>
298             </dd>
299           </dl>
300         </div>
301       </div>
302       <div class="SECT3">
303         <h4 class="SECT3"><a name="LOGDIR" id="LOGDIR">7.2.4. logdir</a></h4>
304         <div class="VARIABLELIST">
305           <dl>
306             <dt>Specifies:</dt>
307             <dd>
308               <p>The directory where all logging takes place (i.e. where the <tt class="FILENAME">logfile</tt> is
309               located).</p>
310             </dd>
311             <dt>Type of value:</dt>
312             <dd>
313               <p>Path name</p>
314             </dd>
315             <dt>Default value:</dt>
316             <dd>
317               <p>/var/log/privoxy (Unix) <span class="emphasis"><i class="EMPHASIS">or</i></span> <span class=
318               "APPLICATION">Privoxy</span> installation dir (Windows)</p>
319             </dd>
320             <dt>Effect if unset:</dt>
321             <dd>
322               <p><span class="emphasis"><i class="EMPHASIS">Mandatory</i></span></p>
323             </dd>
324             <dt>Notes:</dt>
325             <dd>
326               <p>No trailing <span class="QUOTE">"<tt class="LITERAL">/</tt>"</span>, please.</p>
327             </dd>
328           </dl>
329         </div>
330       </div>
331       <div class="SECT3">
332         <h4 class="SECT3"><a name="ACTIONSFILE" id="ACTIONSFILE">7.2.5. actionsfile</a></h4><a name="DEFAULT.ACTION"
333         id="DEFAULT.ACTION"></a><a name="STANDARD.ACTION" id="STANDARD.ACTION"></a><a name="USER.ACTION" id=
334         "USER.ACTION"></a>
335         <div class="VARIABLELIST">
336           <dl>
337             <dt>Specifies:</dt>
338             <dd>
339               <p>The <a href="actions-file.html">actions file(s)</a> to use</p>
340             </dd>
341             <dt>Type of value:</dt>
342             <dd>
343               <p>Complete file name, relative to <tt class="LITERAL">confdir</tt></p>
344             </dd>
345             <dt>Default values:</dt>
346             <dd>
347               <table border="0">
348                 <tbody>
349                   <tr>
350                     <td>
351                       <p class="LITERALLAYOUT">
352                       &nbsp;&nbsp;match-all.action&nbsp;#&nbsp;Actions&nbsp;that&nbsp;are&nbsp;applied&nbsp;to&nbsp;all&nbsp;sites&nbsp;and&nbsp;maybe&nbsp;overruled&nbsp;later&nbsp;on.</p>
353                     </td>
354                   </tr>
355                   <tr>
356                     <td>
357                       <p class="LITERALLAYOUT">
358                       &nbsp;&nbsp;default.action&nbsp;&nbsp;&nbsp;#&nbsp;Main&nbsp;actions&nbsp;file</p>
359                     </td>
360                   </tr>
361                   <tr>
362                     <td>
363                       <p class="LITERALLAYOUT">
364                       &nbsp;&nbsp;user.action&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;User&nbsp;customizations</p>
365                     </td>
366                   </tr>
367                 </tbody>
368               </table>
369             </dd>
370             <dt>Effect if unset:</dt>
371             <dd>
372               <p>No actions are taken at all. More or less neutral proxying.</p>
373             </dd>
374             <dt>Notes:</dt>
375             <dd>
376               <p>Multiple <tt class="LITERAL">actionsfile</tt> lines are permitted, and are in fact recommended!</p>
377               <p>The default values are <tt class="FILENAME">default.action</tt>, which is the <span class=
378               "QUOTE">"main"</span> actions file maintained by the developers, and <tt class=
379               "FILENAME">user.action</tt>, where you can make your personal additions.</p>
380               <p>Actions files contain all the per site and per URL configuration for ad blocking, cookie management,
381               privacy considerations, etc.</p>
382             </dd>
383           </dl>
384         </div>
385       </div>
386       <div class="SECT3">
387         <h4 class="SECT3"><a name="FILTERFILE" id="FILTERFILE">7.2.6. filterfile</a></h4><a name="DEFAULT.FILTER" id=
388         "DEFAULT.FILTER"></a>
389         <div class="VARIABLELIST">
390           <dl>
391             <dt>Specifies:</dt>
392             <dd>
393               <p>The <a href="filter-file.html">filter file(s)</a> to use</p>
394             </dd>
395             <dt>Type of value:</dt>
396             <dd>
397               <p>File name, relative to <tt class="LITERAL">confdir</tt></p>
398             </dd>
399             <dt>Default value:</dt>
400             <dd>
401               <p>default.filter (Unix) <span class="emphasis"><i class="EMPHASIS">or</i></span> default.filter.txt
402               (Windows)</p>
403             </dd>
404             <dt>Effect if unset:</dt>
405             <dd>
406               <p>No textual content filtering takes place, i.e. all <tt class="LITERAL">+<a href=
407               "actions-file.html#FILTER">filter</a>{<tt class="REPLACEABLE"><i>name</i></tt>}</tt> actions in the
408               actions files are turned neutral.</p>
409             </dd>
410             <dt>Notes:</dt>
411             <dd>
412               <p>Multiple <tt class="LITERAL">filterfile</tt> lines are permitted.</p>
413               <p>The <a href="filter-file.html">filter files</a> contain content modification rules that use <a href=
414               "appendix.html#REGEX">regular expressions</a>. These rules permit powerful changes on the content of Web
415               pages, and optionally the headers as well, e.g., you could try to disable your favorite JavaScript
416               annoyances, re-write the actual displayed text, or just have some fun playing buzzword bingo with web
417               pages.</p>
418               <p>The <tt class="LITERAL">+<a href="actions-file.html#FILTER">filter</a>{<tt class=
419               "REPLACEABLE"><i>name</i></tt>}</tt> actions rely on the relevant filter (<tt class=
420               "REPLACEABLE"><i>name</i></tt>) to be defined in a filter file!</p>
421               <p>A pre-defined filter file called <tt class="FILENAME">default.filter</tt> that contains a number of
422               useful filters for common problems is included in the distribution. See the section on the <tt class=
423               "LITERAL"><a href="actions-file.html#FILTER">filter</a></tt> action for a list.</p>
424               <p>It is recommended to place any locally adapted filters into a separate file, such as <tt class=
425               "FILENAME">user.filter</tt>.</p>
426             </dd>
427           </dl>
428         </div>
429       </div>
430       <div class="SECT3">
431         <h4 class="SECT3"><a name="LOGFILE" id="LOGFILE">7.2.7. logfile</a></h4>
432         <div class="VARIABLELIST">
433           <dl>
434             <dt>Specifies:</dt>
435             <dd>
436               <p>The log file to use</p>
437             </dd>
438             <dt>Type of value:</dt>
439             <dd>
440               <p>File name, relative to <tt class="LITERAL">logdir</tt></p>
441             </dd>
442             <dt>Default value:</dt>
443             <dd>
444               <p><span class="emphasis"><i class="EMPHASIS">Unset (commented out)</i></span>. When activated: logfile
445               (Unix) <span class="emphasis"><i class="EMPHASIS">or</i></span> privoxy.log (Windows).</p>
446             </dd>
447             <dt>Effect if unset:</dt>
448             <dd>
449               <p>No logfile is written.</p>
450             </dd>
451             <dt>Notes:</dt>
452             <dd>
453               <p>The logfile is where all logging and error messages are written. The level of detail and number of
454               messages are set with the <tt class="LITERAL">debug</tt> option (see below). The logfile can be useful
455               for tracking down a problem with <span class="APPLICATION">Privoxy</span> (e.g., it's not blocking an ad
456               you think it should block) and it can help you to monitor what your browser is doing.</p>
457               <p>Depending on the debug options below, the logfile may be a privacy risk if third parties can get
458               access to it. As most users will never look at it, <span class="APPLICATION">Privoxy</span> only logs
459               fatal errors by default.</p>
460               <p>For most troubleshooting purposes, you will have to change that, please refer to the debugging section
461               for details.</p>
462               <p>Any log files must be writable by whatever user <span class="APPLICATION">Privoxy</span> is being run
463               as (on Unix, default user id is <span class="QUOTE">"privoxy"</span>).</p>
464               <p>To prevent the logfile from growing indefinitely, it is recommended to periodically rotate or shorten
465               it. Many operating systems support log rotation out of the box, some require additional software to do
466               it. For details, please refer to the documentation for your operating system.</p>
467             </dd>
468           </dl>
469         </div>
470       </div>
471       <div class="SECT3">
472         <h4 class="SECT3"><a name="TRUSTFILE" id="TRUSTFILE">7.2.8. trustfile</a></h4>
473         <div class="VARIABLELIST">
474           <dl>
475             <dt>Specifies:</dt>
476             <dd>
477               <p>The name of the trust file to use</p>
478             </dd>
479             <dt>Type of value:</dt>
480             <dd>
481               <p>File name, relative to <tt class="LITERAL">confdir</tt></p>
482             </dd>
483             <dt>Default value:</dt>
484             <dd>
485               <p><span class="emphasis"><i class="EMPHASIS">Unset (commented out)</i></span>. When activated: trust
486               (Unix) <span class="emphasis"><i class="EMPHASIS">or</i></span> trust.txt (Windows)</p>
487             </dd>
488             <dt>Effect if unset:</dt>
489             <dd>
490               <p>The entire trust mechanism is disabled.</p>
491             </dd>
492             <dt>Notes:</dt>
493             <dd>
494               <p>The trust mechanism is an experimental feature for building white-lists and should be used with care.
495               It is <span class="emphasis"><i class="EMPHASIS">NOT</i></span> recommended for the casual user.</p>
496               <p>If you specify a trust file, <span class="APPLICATION">Privoxy</span> will only allow access to sites
497               that are specified in the trustfile. Sites can be listed in one of two ways:</p>
498               <p>Prepending a <tt class="LITERAL">~</tt> character limits access to this site only (and any sub-paths
499               within this site), e.g. <tt class="LITERAL">~www.example.com</tt> allows access to <tt class=
500               "LITERAL">~www.example.com/features/news.html</tt>, etc.</p>
501               <p>Or, you can designate sites as <span class="emphasis"><i class="EMPHASIS">trusted
502               referrers</i></span>, by prepending the name with a <tt class="LITERAL">+</tt> character. The effect is
503               that access to untrusted sites will be granted -- but only if a link from this trusted referrer was used
504               to get there. The link target will then be added to the <span class="QUOTE">"trustfile"</span> so that
505               future, direct accesses will be granted. Sites added via this mechanism do not become trusted referrers
506               themselves (i.e. they are added with a <tt class="LITERAL">~</tt> designation). There is a limit of 512
507               such entries, after which new entries will not be made.</p>
508               <p>If you use the <tt class="LITERAL">+</tt> operator in the trust file, it may grow considerably over
509               time.</p>
510               <p>It is recommended that <span class="APPLICATION">Privoxy</span> be compiled with the <tt class=
511               "LITERAL">--disable-force</tt>, <tt class="LITERAL">--disable-toggle</tt> and <tt class=
512               "LITERAL">--disable-editor</tt> options, if this feature is to be used.</p>
513               <p>Possible applications include limiting Internet access for children.</p>
514             </dd>
515           </dl>
516         </div>
517       </div>
518     </div>
519     <div class="SECT2">
520       <h2 class="SECT2"><a name="DEBUGGING" id="DEBUGGING">7.3. Debugging</a></h2>
521       <p>These options are mainly useful when tracing a problem. Note that you might also want to invoke <span class=
522       "APPLICATION">Privoxy</span> with the <tt class="LITERAL">--no-daemon</tt> command line option when
523       debugging.</p>
524       <div class="SECT3">
525         <h4 class="SECT3"><a name="DEBUG" id="DEBUG">7.3.1. debug</a></h4>
526         <div class="VARIABLELIST">
527           <dl>
528             <dt>Specifies:</dt>
529             <dd>
530               <p>Key values that determine what information gets logged.</p>
531             </dd>
532             <dt>Type of value:</dt>
533             <dd>
534               <p>Integer values</p>
535             </dd>
536             <dt>Default value:</dt>
537             <dd>
538               <p>0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)</p>
539             </dd>
540             <dt>Effect if unset:</dt>
541             <dd>
542               <p>Default value is used (see above).</p>
543             </dd>
544             <dt>Notes:</dt>
545             <dd>
546               <p>The available debug levels are:</p>
547               <table border="0" bgcolor="#E0E0E0" width="90%">
548                 <tr>
549                   <td>
550                     <pre class="PROGRAMLISTING">  debug     1 # Log the destination for each request <span class=
551                     "APPLICATION">Privoxy</span> let through. See also debug 1024.
552   debug     2 # show each connection status
553   debug     4 # show I/O status
554   debug     8 # show header parsing
555   debug    16 # log all data written to the network
556   debug    32 # debug force feature
557   debug    64 # debug regular expression filters
558   debug   128 # debug redirects
559   debug   256 # debug GIF de-animation
560   debug   512 # Common Log Format
561   debug  1024 # Log the destination for requests <span class=
562 "APPLICATION">Privoxy</span> didn't let through, and the reason why.
563   debug  2048 # CGI user interface
564   debug  4096 # Startup banner and warnings.
565   debug  8192 # Non-fatal errors
566   debug 32768 # log all data read from the network
567   debug 65536 # Log the applying actions</pre>
568                   </td>
569                 </tr>
570               </table>
571               <p>To select multiple debug levels, you can either add them or use multiple <tt class=
572               "LITERAL">debug</tt> lines.</p>
573               <p>A debug level of 1 is informative because it will show you each request as it happens. <span class=
574               "emphasis"><i class="EMPHASIS">1, 1024, 4096 and 8192 are recommended</i></span> so that you will notice
575               when things go wrong. The other levels are probably only of interest if you are hunting down a specific
576               problem. They can produce a hell of an output (especially 16).</p>
577               <p>If you are used to the more verbose settings, simply enable the debug lines below again.</p>
578               <p>If you want to use pure CLF (Common Log Format), you should set <span class="QUOTE">"debug 512"</span>
579               <span class="emphasis"><i class="EMPHASIS">ONLY</i></span> and not enable anything else.</p>
580               <p><span class="APPLICATION">Privoxy</span> has a hard-coded limit for the length of log messages. If
581               it's reached, messages are logged truncated and marked with <span class="QUOTE">"... [too long,
582               truncated]"</span>.</p>
583               <p>Please don't file any support requests without trying to reproduce the problem with increased debug
584               level first. Once you read the log messages, you may even be able to solve the problem on your own.</p>
585             </dd>
586           </dl>
587         </div>
588       </div>
589       <div class="SECT3">
590         <h4 class="SECT3"><a name="SINGLE-THREADED" id="SINGLE-THREADED">7.3.2. single-threaded</a></h4>
591         <div class="VARIABLELIST">
592           <dl>
593             <dt>Specifies:</dt>
594             <dd>
595               <p>Whether to run only one server thread.</p>
596             </dd>
597             <dt>Type of value:</dt>
598             <dd>
599               <p><span class="emphasis"><i class="EMPHASIS">1 or 0</i></span></p>
600             </dd>
601             <dt>Default value:</dt>
602             <dd>
603               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
604             </dd>
605             <dt>Effect if unset:</dt>
606             <dd>
607               <p>Multi-threaded (or, where unavailable: forked) operation, i.e. the ability to serve multiple requests
608               simultaneously.</p>
609             </dd>
610             <dt>Notes:</dt>
611             <dd>
612               <p>This option is only there for debugging purposes. <span class="emphasis"><i class="EMPHASIS">It will
613               drastically reduce performance.</i></span></p>
614             </dd>
615           </dl>
616         </div>
617       </div>
618       <div class="SECT3">
619         <h4 class="SECT3"><a name="HOSTNAME" id="HOSTNAME">7.3.3. hostname</a></h4>
620         <div class="VARIABLELIST">
621           <dl>
622             <dt>Specifies:</dt>
623             <dd>
624               <p>The hostname shown on the CGI pages.</p>
625             </dd>
626             <dt>Type of value:</dt>
627             <dd>
628               <p>Text</p>
629             </dd>
630             <dt>Default value:</dt>
631             <dd>
632               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
633             </dd>
634             <dt>Effect if unset:</dt>
635             <dd>
636               <p>The hostname provided by the operating system is used.</p>
637             </dd>
638             <dt>Notes:</dt>
639             <dd>
640               <p>On some misconfigured systems resolving the hostname fails or takes too much time and slows Privoxy
641               down. Setting a fixed hostname works around the problem.</p>
642               <p>In other circumstances it might be desirable to show a hostname other than the one returned by the
643               operating system. For example if the system has several different hostnames and you don't want to use the
644               first one.</p>
645               <p>Note that Privoxy does not validate the specified hostname value.</p>
646             </dd>
647           </dl>
648         </div>
649       </div>
650     </div>
651     <div class="SECT2">
652       <h2 class="SECT2"><a name="ACCESS-CONTROL" id="ACCESS-CONTROL">7.4. Access Control and Security</a></h2>
653       <p>This section of the config file controls the security-relevant aspects of <span class=
654       "APPLICATION">Privoxy</span>'s configuration.</p>
655       <div class="SECT3">
656         <h4 class="SECT3"><a name="LISTEN-ADDRESS" id="LISTEN-ADDRESS">7.4.1. listen-address</a></h4>
657         <div class="VARIABLELIST">
658           <dl>
659             <dt>Specifies:</dt>
660             <dd>
661               <p>The address and TCP port on which <span class="APPLICATION">Privoxy</span> will listen for client
662               requests.</p>
663             </dd>
664             <dt>Type of value:</dt>
665             <dd>
666               <p>[<tt class="REPLACEABLE"><i>IP-Address</i></tt>]:<tt class="REPLACEABLE"><i>Port</i></tt></p>
667               <p>[<tt class="REPLACEABLE"><i>Hostname</i></tt>]:<tt class="REPLACEABLE"><i>Port</i></tt></p>
668             </dd>
669             <dt>Default value:</dt>
670             <dd>
671               <p>127.0.0.1:8118</p>
672             </dd>
673             <dt>Effect if unset:</dt>
674             <dd>
675               <p>Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is suitable and recommended for home users who run
676               <span class="APPLICATION">Privoxy</span> on the same machine as their browser.</p>
677             </dd>
678             <dt>Notes:</dt>
679             <dd>
680               <p>You will need to configure your browser(s) to this proxy address and port.</p>
681               <p>If you already have another service running on port 8118, or if you want to serve requests from other
682               machines (e.g. on your local network) as well, you will need to override the default.</p>
683               <p>You can use this statement multiple times to make <span class="APPLICATION">Privoxy</span> listen on
684               more ports or more <abbr class="ABBREV">IP</abbr> addresses. Suitable if your operating system does not
685               support sharing <abbr class="ABBREV">IPv6</abbr> and <abbr class="ABBREV">IPv4</abbr> protocols on the
686               same socket.</p>
687               <p>If a hostname is used instead of an IP address, <span class="APPLICATION">Privoxy</span> will try to
688               resolve it to an IP address and if there are multiple, use the first one returned.</p>
689               <p>If the address for the hostname isn't already known on the system (for example because it's in
690               /etc/hostname), this may result in DNS traffic.</p>
691               <p>If the specified address isn't available on the system, or if the hostname can't be resolved,
692               <span class="APPLICATION">Privoxy</span> will fail to start.</p>
693               <p>IPv6 addresses containing colons have to be quoted by brackets. They can only be used if <span class=
694               "APPLICATION">Privoxy</span> has been compiled with IPv6 support. If you aren't sure if your version
695               supports it, have a look at <tt class="LITERAL">http://config.privoxy.org/show-status</tt>.</p>
696               <p>Some operating systems will prefer IPv6 to IPv4 addresses even if the system has no IPv6 connectivity
697               which is usually not expected by the user. Some even rely on DNS to resolve localhost which mean the
698               "localhost" address used may not actually be local.</p>
699               <p>It is therefore recommended to explicitly configure the intended IP address instead of relying on the
700               operating system, unless there's a strong reason not to.</p>
701               <p>If you leave out the address, <span class="APPLICATION">Privoxy</span> will bind to all IPv4
702               interfaces (addresses) on your machine and may become reachable from the Internet and/or the local
703               network. Be aware that some GNU/Linux distributions modify that behaviour without updating the
704               documentation. Check for non-standard patches if your <span class="APPLICATION">Privoxy</span> version
705               behaves differently.</p>
706               <p>If you configure <span class="APPLICATION">Privoxy</span> to be reachable from the network, consider
707               using <a href="config.html#ACLS">access control lists</a> (ACL's, see below), and/or a firewall.</p>
708               <p>If you open <span class="APPLICATION">Privoxy</span> to untrusted users, you will also want to make
709               sure that the following actions are disabled: <tt class="LITERAL"><a href=
710               "config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions</a></tt> and <tt class="LITERAL"><a href=
711               "config.html#ENABLE-REMOTE-TOGGLE">enable-remote-toggle</a></tt></p>
712             </dd>
713             <dt>Example:</dt>
714             <dd>
715               <p>Suppose you are running <span class="APPLICATION">Privoxy</span> on a machine which has the address
716               192.168.0.1 on your local private network (192.168.0.0) and has another outside connection with a
717               different address. You want it to serve requests from inside only:</p>
718               <table border="0" bgcolor="#E0E0E0" width="90%">
719                 <tr>
720                   <td>
721                     <pre class="PROGRAMLISTING">  listen-address  192.168.0.1:8118</pre>
722                   </td>
723                 </tr>
724               </table>
725               <p>Suppose you are running <span class="APPLICATION">Privoxy</span> on an IPv6-capable machine and you
726               want it to listen on the IPv6 address of the loopback device:</p>
727               <table border="0" bgcolor="#E0E0E0" width="90%">
728                 <tr>
729                   <td>
730                     <pre class="PROGRAMLISTING">  listen-address [::1]:8118</pre>
731                   </td>
732                 </tr>
733               </table>
734             </dd>
735           </dl>
736         </div>
737       </div>
738       <div class="SECT3">
739         <h4 class="SECT3"><a name="TOGGLE" id="TOGGLE">7.4.2. toggle</a></h4>
740         <div class="VARIABLELIST">
741           <dl>
742             <dt>Specifies:</dt>
743             <dd>
744               <p>Initial state of "toggle" status</p>
745             </dd>
746             <dt>Type of value:</dt>
747             <dd>
748               <p>1 or 0</p>
749             </dd>
750             <dt>Default value:</dt>
751             <dd>
752               <p>1</p>
753             </dd>
754             <dt>Effect if unset:</dt>
755             <dd>
756               <p>Act as if toggled on</p>
757             </dd>
758             <dt>Notes:</dt>
759             <dd>
760               <p>If set to 0, <span class="APPLICATION">Privoxy</span> will start in <span class="QUOTE">"toggled
761               off"</span> mode, i.e. mostly behave like a normal, content-neutral proxy with both ad blocking and
762               content filtering disabled. See <tt class="LITERAL">enable-remote-toggle</tt> below.</p>
763             </dd>
764           </dl>
765         </div>
766       </div>
767       <div class="SECT3">
768         <h4 class="SECT3"><a name="ENABLE-REMOTE-TOGGLE" id="ENABLE-REMOTE-TOGGLE">7.4.3. enable-remote-toggle</a></h4>
769         <div class="VARIABLELIST">
770           <dl>
771             <dt>Specifies:</dt>
772             <dd>
773               <p>Whether or not the <a href="http://config.privoxy.org/toggle" target="_top">web-based toggle
774               feature</a> may be used</p>
775             </dd>
776             <dt>Type of value:</dt>
777             <dd>
778               <p>0 or 1</p>
779             </dd>
780             <dt>Default value:</dt>
781             <dd>
782               <p>0</p>
783             </dd>
784             <dt>Effect if unset:</dt>
785             <dd>
786               <p>The web-based toggle feature is disabled.</p>
787             </dd>
788             <dt>Notes:</dt>
789             <dd>
790               <p>When toggled off, <span class="APPLICATION">Privoxy</span> mostly acts like a normal, content-neutral
791               proxy, i.e. doesn't block ads or filter content.</p>
792               <p>Access to the toggle feature can <span class="emphasis"><i class="EMPHASIS">not</i></span> be
793               controlled separately by <span class="QUOTE">"ACLs"</span> or HTTP authentication, so that everybody who
794               can access <span class="APPLICATION">Privoxy</span> (see <span class="QUOTE">"ACLs"</span> and <tt class=
795               "LITERAL">listen-address</tt> above) can toggle it for all users. So this option is <span class=
796               "emphasis"><i class="EMPHASIS">not recommended</i></span> for multi-user environments with untrusted
797               users.</p>
798               <p>Note that malicious client side code (e.g Java) is also capable of using this option.</p>
799               <p>As a lot of <span class="APPLICATION">Privoxy</span> users don't read documentation, this feature is
800               disabled by default.</p>
801               <p>Note that you must have compiled <span class="APPLICATION">Privoxy</span> with support for this
802               feature, otherwise this option has no effect.</p>
803             </dd>
804           </dl>
805         </div>
806       </div>
807       <div class="SECT3">
808         <h4 class="SECT3"><a name="ENABLE-REMOTE-HTTP-TOGGLE" id="ENABLE-REMOTE-HTTP-TOGGLE">7.4.4.
809         enable-remote-http-toggle</a></h4>
810         <div class="VARIABLELIST">
811           <dl>
812             <dt>Specifies:</dt>
813             <dd>
814               <p>Whether or not Privoxy recognizes special HTTP headers to change its behaviour.</p>
815             </dd>
816             <dt>Type of value:</dt>
817             <dd>
818               <p>0 or 1</p>
819             </dd>
820             <dt>Default value:</dt>
821             <dd>
822               <p>0</p>
823             </dd>
824             <dt>Effect if unset:</dt>
825             <dd>
826               <p>Privoxy ignores special HTTP headers.</p>
827             </dd>
828             <dt>Notes:</dt>
829             <dd>
830               <p>When toggled on, the client can change <span class="APPLICATION">Privoxy's</span> behaviour by setting
831               special HTTP headers. Currently the only supported special header is <span class="QUOTE">"X-Filter:
832               No"</span>, to disable filtering for the ongoing request, even if it is enabled in one of the action
833               files.</p>
834               <p>This feature is disabled by default. If you are using <span class="APPLICATION">Privoxy</span> in a
835               environment with trusted clients, you may enable this feature at your discretion. Note that malicious
836               client side code (e.g Java) is also capable of using this feature.</p>
837               <p>This option will be removed in future releases as it has been obsoleted by the more general header
838               taggers.</p>
839             </dd>
840           </dl>
841         </div>
842       </div>
843       <div class="SECT3">
844         <h4 class="SECT3"><a name="ENABLE-EDIT-ACTIONS" id="ENABLE-EDIT-ACTIONS">7.4.5. enable-edit-actions</a></h4>
845         <div class="VARIABLELIST">
846           <dl>
847             <dt>Specifies:</dt>
848             <dd>
849               <p>Whether or not the <a href="http://config.privoxy.org/show-status" target="_top">web-based actions
850               file editor</a> may be used</p>
851             </dd>
852             <dt>Type of value:</dt>
853             <dd>
854               <p>0 or 1</p>
855             </dd>
856             <dt>Default value:</dt>
857             <dd>
858               <p>0</p>
859             </dd>
860             <dt>Effect if unset:</dt>
861             <dd>
862               <p>The web-based actions file editor is disabled.</p>
863             </dd>
864             <dt>Notes:</dt>
865             <dd>
866               <p>Access to the editor can <span class="emphasis"><i class="EMPHASIS">not</i></span> be controlled
867               separately by <span class="QUOTE">"ACLs"</span> or HTTP authentication, so that everybody who can access
868               <span class="APPLICATION">Privoxy</span> (see <span class="QUOTE">"ACLs"</span> and <tt class=
869               "LITERAL">listen-address</tt> above) can modify its configuration for all users.</p>
870               <p>This option is <span class="emphasis"><i class="EMPHASIS">not recommended</i></span> for environments
871               with untrusted users and as a lot of <span class="APPLICATION">Privoxy</span> users don't read
872               documentation, this feature is disabled by default.</p>
873               <p>Note that malicious client side code (e.g Java) is also capable of using the actions editor and you
874               shouldn't enable this options unless you understand the consequences and are sure your browser is
875               configured correctly.</p>
876               <p>Note that you must have compiled <span class="APPLICATION">Privoxy</span> with support for this
877               feature, otherwise this option has no effect.</p>
878             </dd>
879           </dl>
880         </div>
881       </div>
882       <div class="SECT3">
883         <h4 class="SECT3"><a name="ENFORCE-BLOCKS" id="ENFORCE-BLOCKS">7.4.6. enforce-blocks</a></h4>
884         <div class="VARIABLELIST">
885           <dl>
886             <dt>Specifies:</dt>
887             <dd>
888               <p>Whether the user is allowed to ignore blocks and can <span class="QUOTE">"go there anyway"</span>.</p>
889             </dd>
890             <dt>Type of value:</dt>
891             <dd>
892               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
893             </dd>
894             <dt>Default value:</dt>
895             <dd>
896               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
897             </dd>
898             <dt>Effect if unset:</dt>
899             <dd>
900               <p>Blocks are not enforced.</p>
901             </dd>
902             <dt>Notes:</dt>
903             <dd>
904               <p><span class="APPLICATION">Privoxy</span> is mainly used to block and filter requests as a service to
905               the user, for example to block ads and other junk that clogs the pipes. <span class=
906               "APPLICATION">Privoxy's</span> configuration isn't perfect and sometimes innocent pages are blocked. In
907               this situation it makes sense to allow the user to enforce the request and have <span class=
908               "APPLICATION">Privoxy</span> ignore the block.</p>
909               <p>In the default configuration <span class="APPLICATION">Privoxy's</span> <span class=
910               "QUOTE">"Blocked"</span> page contains a <span class="QUOTE">"go there anyway"</span> link to adds a
911               special string (the force prefix) to the request URL. If that link is used, <span class=
912               "APPLICATION">Privoxy</span> will detect the force prefix, remove it again and let the request pass.</p>
913               <p>Of course <span class="APPLICATION">Privoxy</span> can also be used to enforce a network policy. In
914               that case the user obviously should not be able to bypass any blocks, and that's what the <span class=
915               "QUOTE">"enforce-blocks"</span> option is for. If it's enabled, <span class="APPLICATION">Privoxy</span>
916               hides the <span class="QUOTE">"go there anyway"</span> link. If the user adds the force prefix by hand,
917               it will not be accepted and the circumvention attempt is logged.</p>
918             </dd>
919             <dt>Examples:</dt>
920             <dd>
921               <p>enforce-blocks 1</p>
922             </dd>
923           </dl>
924         </div>
925       </div>
926       <div class="SECT3">
927         <h4 class="SECT3"><a name="ACLS" id="ACLS">7.4.7. ACLs: permit-access and deny-access</a></h4><a name=
928         "PERMIT-ACCESS" id="PERMIT-ACCESS"></a><a name="DENY-ACCESS" id="DENY-ACCESS"></a>
929         <div class="VARIABLELIST">
930           <dl>
931             <dt>Specifies:</dt>
932             <dd>
933               <p>Who can access what.</p>
934             </dd>
935             <dt>Type of value:</dt>
936             <dd>
937               <p><tt class="REPLACEABLE"><i>src_addr</i></tt>[:<tt class="REPLACEABLE"><i>port</i></tt>][/<tt class=
938               "REPLACEABLE"><i>src_masklen</i></tt>] [<tt class="REPLACEABLE"><i>dst_addr</i></tt>[:<tt class=
939               "REPLACEABLE"><i>port</i></tt>][/<tt class="REPLACEABLE"><i>dst_masklen</i></tt>]]</p>
940               <p>Where <tt class="REPLACEABLE"><i>src_addr</i></tt> and <tt class="REPLACEABLE"><i>dst_addr</i></tt>
941               are IPv4 addresses in dotted decimal notation or valid DNS names, <tt class=
942               "REPLACEABLE"><i>port</i></tt> is a port number, and <tt class="REPLACEABLE"><i>src_masklen</i></tt> and
943               <tt class="REPLACEABLE"><i>dst_masklen</i></tt> are subnet masks in CIDR notation, i.e. integer values
944               from 2 to 30 representing the length (in bits) of the network address. The masks and the whole
945               destination part are optional.</p>
946               <p>If your system implements <a href="http://tools.ietf.org/html/rfc3493" target="_top">RFC 3493</a>,
947               then <tt class="REPLACEABLE"><i>src_addr</i></tt> and <tt class="REPLACEABLE"><i>dst_addr</i></tt> can be
948               IPv6 addresses delimeted by brackets, <tt class="REPLACEABLE"><i>port</i></tt> can be a number or a
949               service name, and <tt class="REPLACEABLE"><i>src_masklen</i></tt> and <tt class=
950               "REPLACEABLE"><i>dst_masklen</i></tt> can be a number from 0 to 128.</p>
951             </dd>
952             <dt>Default value:</dt>
953             <dd>
954               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
955               <p>If no <tt class="REPLACEABLE"><i>port</i></tt> is specified, any port will match. If no <tt class=
956               "REPLACEABLE"><i>src_masklen</i></tt> or <tt class="REPLACEABLE"><i>src_masklen</i></tt> is given, the
957               complete IP address has to match (i.e. 32 bits for IPv4 and 128 bits for IPv6).</p>
958             </dd>
959             <dt>Effect if unset:</dt>
960             <dd>
961               <p>Don't restrict access further than implied by <tt class="LITERAL">listen-address</tt></p>
962             </dd>
963             <dt>Notes:</dt>
964             <dd>
965               <p>Access controls are included at the request of ISPs and systems administrators, and <span class=
966               "emphasis"><i class="EMPHASIS">are not usually needed by individual users</i></span>. For a typical home
967               user, it will normally suffice to ensure that <span class="APPLICATION">Privoxy</span> only listens on
968               the localhost (127.0.0.1) or internal (home) network address by means of the <a href=
969               "config.html#LISTEN-ADDRESS"><span class="emphasis"><i class="EMPHASIS">listen-address</i></span></a>
970               option.</p>
971               <p>Please see the warnings in the FAQ that <span class="APPLICATION">Privoxy</span> is not intended to be
972               a substitute for a firewall or to encourage anyone to defer addressing basic security weaknesses.</p>
973               <p>Multiple ACL lines are OK. If any ACLs are specified, <span class="APPLICATION">Privoxy</span> only
974               talks to IP addresses that match at least one <tt class="LITERAL">permit-access</tt> line and don't match
975               any subsequent <tt class="LITERAL">deny-access</tt> line. In other words, the last match wins, with the
976               default being <tt class="LITERAL">deny-access</tt>.</p>
977               <p>If <span class="APPLICATION">Privoxy</span> is using a forwarder (see <tt class="LITERAL">forward</tt>
978               below) for a particular destination URL, the <tt class="REPLACEABLE"><i>dst_addr</i></tt> that is
979               examined is the address of the forwarder and <span class="emphasis"><i class="EMPHASIS">NOT</i></span>
980               the address of the ultimate target. This is necessary because it may be impossible for the local
981               <span class="APPLICATION">Privoxy</span> to determine the IP address of the ultimate target (that's often
982               what gateways are used for).</p>
983               <p>You should prefer using IP addresses over DNS names, because the address lookups take time. All DNS
984               names must resolve! You can <span class="emphasis"><i class="EMPHASIS">not</i></span> use domain patterns
985               like <span class="QUOTE">"*.org"</span> or partial domain names. If a DNS name resolves to multiple IP
986               addresses, only the first one is used.</p>
987               <p>Some systems allow IPv4 clients to connect to IPv6 server sockets. Then the client's IPv4 address will
988               be translated by the system into IPv6 address space with special prefix ::ffff:0:0/96 (so called IPv4
989               mapped IPv6 address). <span class="APPLICATION">Privoxy</span> can handle it and maps such ACL addresses
990               automatically.</p>
991               <p>Denying access to particular sites by ACL may have undesired side effects if the site in question is
992               hosted on a machine which also hosts other sites (most sites are).</p>
993             </dd>
994             <dt>Examples:</dt>
995             <dd>
996               <p>Explicitly define the default behavior if no ACL and <tt class="LITERAL">listen-address</tt> are set:
997               <span class="QUOTE">"localhost"</span> is OK. The absence of a <tt class=
998               "REPLACEABLE"><i>dst_addr</i></tt> implies that <span class="emphasis"><i class="EMPHASIS">all</i></span>
999               destination addresses are OK:</p>
1000               <table border="0" bgcolor="#E0E0E0" width="90%">
1001                 <tr>
1002                   <td>
1003                     <pre class="SCREEN">  permit-access  localhost</pre>
1004                   </td>
1005                 </tr>
1006               </table>
1007               <p>Allow any host on the same class C subnet as www.privoxy.org access to nothing but www.example.com (or
1008               other domains hosted on the same system):</p>
1009               <table border="0" bgcolor="#E0E0E0" width="90%">
1010                 <tr>
1011                   <td>
1012                     <pre class="SCREEN">  permit-access  www.privoxy.org/24 www.example.com/32</pre>
1013                   </td>
1014                 </tr>
1015               </table>
1016               <p>Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere, with the exception that
1017               192.168.45.73 may not access the IP address behind www.dirty-stuff.example.com:</p>
1018               <table border="0" bgcolor="#E0E0E0" width="90%">
1019                 <tr>
1020                   <td>
1021                     <pre class="SCREEN">  permit-access  192.168.45.64/26
1022   deny-access    192.168.45.73    www.dirty-stuff.example.com</pre>
1023                   </td>
1024                 </tr>
1025               </table>
1026               <p>Allow access from the IPv4 network 192.0.2.0/24 even if listening on an IPv6 wild card address (not
1027               supported on all platforms):</p>
1028               <table border="0" bgcolor="#E0E0E0" width="90%">
1029                 <tr>
1030                   <td>
1031                     <pre class="PROGRAMLISTING">  permit-access  192.0.2.0/24</pre>
1032                   </td>
1033                 </tr>
1034               </table>
1035               <p>This is equivalent to the following line even if listening on an IPv4 address (not supported on all
1036               platforms):</p>
1037               <table border="0" bgcolor="#E0E0E0" width="90%">
1038                 <tr>
1039                   <td>
1040                     <pre class="PROGRAMLISTING">  permit-access  [::ffff:192.0.2.0]/120</pre>
1041                   </td>
1042                 </tr>
1043               </table>
1044             </dd>
1045           </dl>
1046         </div>
1047       </div>
1048       <div class="SECT3">
1049         <h4 class="SECT3"><a name="BUFFER-LIMIT" id="BUFFER-LIMIT">7.4.8. buffer-limit</a></h4>
1050         <div class="VARIABLELIST">
1051           <dl>
1052             <dt>Specifies:</dt>
1053             <dd>
1054               <p>Maximum size of the buffer for content filtering.</p>
1055             </dd>
1056             <dt>Type of value:</dt>
1057             <dd>
1058               <p>Size in Kbytes</p>
1059             </dd>
1060             <dt>Default value:</dt>
1061             <dd>
1062               <p>4096</p>
1063             </dd>
1064             <dt>Effect if unset:</dt>
1065             <dd>
1066               <p>Use a 4MB (4096 KB) limit.</p>
1067             </dd>
1068             <dt>Notes:</dt>
1069             <dd>
1070               <p>For content filtering, i.e. the <tt class="LITERAL">+filter</tt> and <tt class=
1071               "LITERAL">+deanimate-gif</tt> actions, it is necessary that <span class="APPLICATION">Privoxy</span>
1072               buffers the entire document body. This can be potentially dangerous, since a server could just keep
1073               sending data indefinitely and wait for your RAM to exhaust -- with nasty consequences. Hence this
1074               option.</p>
1075               <p>When a document buffer size reaches the <tt class="LITERAL">buffer-limit</tt>, it is flushed to the
1076               client unfiltered and no further attempt to filter the rest of the document is made. Remember that there
1077               may be multiple threads running, which might require up to <tt class="LITERAL">buffer-limit</tt> Kbytes
1078               <span class="emphasis"><i class="EMPHASIS">each</i></span>, unless you have enabled <span class=
1079               "QUOTE">"single-threaded"</span> above.</p>
1080             </dd>
1081           </dl>
1082         </div>
1083       </div>
1084       <div class="SECT3">
1085         <h4 class="SECT3"><a name="ENABLE-PROXY-AUTHENTICATION-FORWARDING" id=
1086         "ENABLE-PROXY-AUTHENTICATION-FORWARDING">7.4.9. enable-proxy-authentication-forwarding</a></h4>
1087         <div class="VARIABLELIST">
1088           <dl>
1089             <dt>Specifies:</dt>
1090             <dd>
1091               <p>Whether or not proxy authentication through <span class="APPLICATION">Privoxy</span> should work.</p>
1092             </dd>
1093             <dt>Type of value:</dt>
1094             <dd>
1095               <p>0 or 1</p>
1096             </dd>
1097             <dt>Default value:</dt>
1098             <dd>
1099               <p>0</p>
1100             </dd>
1101             <dt>Effect if unset:</dt>
1102             <dd>
1103               <p>Proxy authentication headers are removed.</p>
1104             </dd>
1105             <dt>Notes:</dt>
1106             <dd>
1107               <p>Privoxy itself does not support proxy authentication, but can allow clients to authenticate against
1108               Privoxy's parent proxy.</p>
1109               <p>By default Privoxy (3.0.21 and later) don't do that and remove Proxy-Authorization headers in requests
1110               and Proxy-Authenticate headers in responses to make it harder for malicious sites to trick inexperienced
1111               users into providing login information.</p>
1112               <p>If this option is enabled the headers are forwarded.</p>
1113               <p>Enabling this option is <span class="emphasis"><i class="EMPHASIS">not recommended</i></span> if there
1114               is no parent proxy that requires authentication or if the local network between Privoxy and the parent
1115               proxy isn't trustworthy. If proxy authentication is only required for some requests, it is recommended to
1116               use a client header filter to remove the authentication headers for requests where they aren't
1117               needed.</p>
1118             </dd>
1119           </dl>
1120         </div>
1121       </div>
1122       <div class="SECT3">
1123         <h4 class="SECT3"><a name="TRUSTED-CGI-REFERER" id="TRUSTED-CGI-REFERER">7.4.10. trusted-cgi-referer</a></h4>
1124         <div class="VARIABLELIST">
1125           <dl>
1126             <dt>Specifies:</dt>
1127             <dd>
1128               <p>A trusted website or webpage whose links can be followed to reach sensitive CGI pages</p>
1129             </dd>
1130             <dt>Type of value:</dt>
1131             <dd>
1132               <p>URL or URL prefix</p>
1133             </dd>
1134             <dt>Default value:</dt>
1135             <dd>
1136               <p>Unset</p>
1137             </dd>
1138             <dt>Effect if unset:</dt>
1139             <dd>
1140               <p>No external pages are considered trusted referers.</p>
1141             </dd>
1142             <dt>Notes:</dt>
1143             <dd>
1144               <p>Before <span class="APPLICATION">Privoxy</span> accepts configuration changes through CGI pages like
1145               <a href="config.html#CLIENT-SPECIFIC-TAG">client-tags</a> or the <a href=
1146               "config.html#ENABLE-REMOTE-TOGGLE">remote toggle</a>, it checks the Referer header to see if the request
1147               comes from a trusted source.</p>
1148               <p>By default only the webinterface domains <a href="http://config.privoxy.org/" target=
1149               "_top">config.privoxy.org</a> and <a href="http://p.p/" target="_top">p.p</a> are considered trustworthy.
1150               Requests originating from other domains are rejected to prevent third-parties from modifiying Privoxy's
1151               state by e.g. embedding images that result in CGI requests.</p>
1152               <p>In some environments it may be desirable to embed links to CGI pages on external pages, for example on
1153               an Intranet homepage the Privoxy admin controls.</p>
1154               <p>The <span class="QUOTE">"trusted-cgi-referer"</span> option can be used to add that page, or the whole
1155               domain, as trusted source so the resulting requests aren't rejected. Requests are accepted if the
1156               specified trusted-cgi-refer is the prefix of the Referer.</p>
1157               <p>If the trusted source is supposed to access the CGI pages via JavaScript the <a href=
1158               "config.html#CORS-ALLOWED-ORIGIN">cors-allowed-origin</a> option can be used.</p>
1159               <div class="WARNING">
1160                 <table class="WARNING" border="1" width="90%">
1161                   <tr>
1162                     <td align="center"><b>Warning</b></td>
1163                   </tr>
1164                   <tr>
1165                     <td align="left">
1166                       <p>Declaring pages the admin doesn't control trustworthy may allow malicious third parties to
1167                       modify Privoxy's internal state against the user's wishes and without the user's knowledge.</p>
1168                     </td>
1169                   </tr>
1170                 </table>
1171               </div>
1172             </dd>
1173           </dl>
1174         </div>
1175       </div>
1176       <div class="SECT3">
1177         <h4 class="SECT3"><a name="CORS-ALLOWED-ORIGIN" id="CORS-ALLOWED-ORIGIN">7.4.11. cors-allowed-origin</a></h4>
1178         <div class="VARIABLELIST">
1179           <dl>
1180             <dt>Specifies:</dt>
1181             <dd>
1182               <p>A trusted website which can access <span class="APPLICATION">Privoxy</span>'s CGI pages through
1183               JavaScript.</p>
1184             </dd>
1185             <dt>Type of value:</dt>
1186             <dd>
1187               <p>URL</p>
1188             </dd>
1189             <dt>Default value:</dt>
1190             <dd>
1191               <p>Unset</p>
1192             </dd>
1193             <dt>Effect if unset:</dt>
1194             <dd>
1195               <p>No external sites get access via cross-origin resource sharing.</p>
1196             </dd>
1197             <dt>Notes:</dt>
1198             <dd>
1199               <p>Modern browsers by default prevent cross-origin requests made via JavaScript to <span class=
1200               "APPLICATION">Privoxy</span>'s CGI interface even if <span class="APPLICATION">Privoxy</span> would trust
1201               the referer because it's white listed via the <a href=
1202               "config.html#TRUSTED-CGI-REFERER">trusted-cgi-referer</a> directive.</p>
1203               <p><a href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing" target="_top">Cross-origin
1204               resource sharing (CORS)</a> is a mechanism to allow cross-origin requests.</p>
1205               <p>The <span class="QUOTE">"cors-allowed-origin"</span> option can be used to specify a domain that is
1206               allowed to make requests to Privoxy CGI interface via JavaScript. It is used in combination with the
1207               <a href="config.html#TRUSTED-CGI-REFERER">trusted-cgi-referer</a> directive.</p>
1208               <div class="WARNING">
1209                 <table class="WARNING" border="1" width="90%">
1210                   <tr>
1211                     <td align="center"><b>Warning</b></td>
1212                   </tr>
1213                   <tr>
1214                     <td align="left">
1215                       <p>Declaring domains the admin doesn't control trustworthy may allow malicious third parties to
1216                       modify Privoxy's internal state against the user's wishes and without the user's knowledge.</p>
1217                     </td>
1218                   </tr>
1219                 </table>
1220               </div>
1221             </dd>
1222           </dl>
1223         </div>
1224       </div>
1225     </div>
1226     <div class="SECT2">
1227       <h2 class="SECT2"><a name="FORWARDING" id="FORWARDING">7.5. Forwarding</a></h2>
1228       <p>This feature allows routing of HTTP requests through a chain of multiple proxies.</p>
1229       <p>Forwarding can be used to chain Privoxy with a caching proxy to speed up browsing. Using a parent proxy may
1230       also be necessary if the machine that <span class="APPLICATION">Privoxy</span> runs on has no direct Internet
1231       access.</p>
1232       <p>Note that parent proxies can severely decrease your privacy level. For example a parent proxy could add your
1233       IP address to the request headers and if it's a caching proxy it may add the <span class="QUOTE">"Etag"</span>
1234       header to revalidation requests again, even though you configured Privoxy to remove it. It may also ignore
1235       Privoxy's header time randomization and use the original values which could be used by the server as cookie
1236       replacement to track your steps between visits.</p>
1237       <p>Also specified here are SOCKS proxies. <span class="APPLICATION">Privoxy</span> supports the SOCKS 4 and SOCKS
1238       4A protocols.</p>
1239       <div class="SECT3">
1240         <h4 class="SECT3"><a name="FORWARD" id="FORWARD">7.5.1. forward</a></h4>
1241         <div class="VARIABLELIST">
1242           <dl>
1243             <dt>Specifies:</dt>
1244             <dd>
1245               <p>To which parent HTTP proxy specific requests should be routed.</p>
1246             </dd>
1247             <dt>Type of value:</dt>
1248             <dd>
1249               <p><tt class="REPLACEABLE"><i>target_pattern</i></tt> <tt class=
1250               "REPLACEABLE"><i>http_parent</i></tt>[:<tt class="REPLACEABLE"><i>port</i></tt>]</p>
1251               <p>where <tt class="REPLACEABLE"><i>target_pattern</i></tt> is a <a href=
1252               "actions-file.html#AF-PATTERNS">URL pattern</a> that specifies to which requests (i.e. URLs) this forward
1253               rule shall apply. Use <tt class="LITERAL">/</tt> to denote <span class="QUOTE">"all URLs"</span>.
1254               <tt class="REPLACEABLE"><i>http_parent</i></tt>[:<tt class="REPLACEABLE"><i>port</i></tt>] is the DNS
1255               name or IP address of the parent HTTP proxy through which the requests should be forwarded, optionally
1256               followed by its listening port (default: 8000). Use a single dot (<tt class="LITERAL">.</tt>) to denote
1257               <span class="QUOTE">"no forwarding"</span>.</p>
1258             </dd>
1259             <dt>Default value:</dt>
1260             <dd>
1261               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
1262             </dd>
1263             <dt>Effect if unset:</dt>
1264             <dd>
1265               <p>Don't use parent HTTP proxies.</p>
1266             </dd>
1267             <dt>Notes:</dt>
1268             <dd>
1269               <p>If <tt class="REPLACEABLE"><i>http_parent</i></tt> is <span class="QUOTE">"."</span>, then requests
1270               are not forwarded to another HTTP proxy but are made directly to the web servers.</p>
1271               <p><tt class="REPLACEABLE"><i>http_parent</i></tt> can be a numerical IPv6 address (if <a href=
1272               "http://tools.ietf.org/html/rfc3493" target="_top">RFC 3493</a> is implemented). To prevent clashes with
1273               the port delimiter, the whole IP address has to be put into brackets. On the other hand a <tt class=
1274               "REPLACEABLE"><i>target_pattern</i></tt> containing an IPv6 address has to be put into angle brackets
1275               (normal brackets are reserved for regular expressions already).</p>
1276               <p>Multiple lines are OK, they are checked in sequence, and the last match wins.</p>
1277             </dd>
1278             <dt>Examples:</dt>
1279             <dd>
1280               <p>Everything goes to an example parent proxy, except SSL on port 443 (which it doesn't handle):</p>
1281               <table border="0" bgcolor="#E0E0E0" width="90%">
1282                 <tr>
1283                   <td>
1284                     <pre class="SCREEN">  forward   /      parent-proxy.example.org:8080
1285   forward   :443   .</pre>
1286                   </td>
1287                 </tr>
1288               </table>
1289               <p>Everything goes to our example ISP's caching proxy, except for requests to that ISP's sites:</p>
1290               <table border="0" bgcolor="#E0E0E0" width="90%">
1291                 <tr>
1292                   <td>
1293                     <pre class="SCREEN">  forward   /                  caching-proxy.isp.example.net:8000
1294   forward   .isp.example.net   .</pre>
1295                   </td>
1296                 </tr>
1297               </table>
1298               <p>Parent proxy specified by an IPv6 address:</p>
1299               <table border="0" bgcolor="#E0E0E0" width="90%">
1300                 <tr>
1301                   <td>
1302                     <pre class="PROGRAMLISTING">  forward   /                   [2001:DB8::1]:8000</pre>
1303                   </td>
1304                 </tr>
1305               </table>
1306               <p>Suppose your parent proxy doesn't support IPv6:</p>
1307               <table border="0" bgcolor="#E0E0E0" width="90%">
1308                 <tr>
1309                   <td>
1310                     <pre class="PROGRAMLISTING">  forward  /                        parent-proxy.example.org:8000
1311   forward  ipv6-server.example.org  .
1312   forward  &lt;[2-3][0-9a-f][0-9a-f][0-9a-f]:*&gt;   .</pre>
1313                   </td>
1314                 </tr>
1315               </table>
1316             </dd>
1317           </dl>
1318         </div>
1319       </div>
1320       <div class="SECT3">
1321         <h4 class="SECT3"><a name="SOCKS" id="SOCKS">7.5.2. forward-socks4, forward-socks4a, forward-socks5 and
1322         forward-socks5t</a></h4><a name="FORWARD-SOCKS4" id="FORWARD-SOCKS4"></a><a name="FORWARD-SOCKS4A" id=
1323         "FORWARD-SOCKS4A"></a>
1324         <div class="VARIABLELIST">
1325           <dl>
1326             <dt>Specifies:</dt>
1327             <dd>
1328               <p>Through which SOCKS proxy (and optionally to which parent HTTP proxy) specific requests should be
1329               routed.</p>
1330             </dd>
1331             <dt>Type of value:</dt>
1332             <dd>
1333               <p><tt class="REPLACEABLE"><i>target_pattern</i></tt> [<tt class=
1334               "REPLACEABLE"><i>user</i></tt>:<tt class="REPLACEABLE"><i>pass</i></tt>@]<tt class=
1335               "REPLACEABLE"><i>socks_proxy</i></tt>[:<tt class="REPLACEABLE"><i>port</i></tt>] <tt class=
1336               "REPLACEABLE"><i>http_parent</i></tt>[:<tt class="REPLACEABLE"><i>port</i></tt>]</p>
1337               <p>where <tt class="REPLACEABLE"><i>target_pattern</i></tt> is a <a href=
1338               "actions-file.html#AF-PATTERNS">URL pattern</a> that specifies to which requests (i.e. URLs) this forward
1339               rule shall apply. Use <tt class="LITERAL">/</tt> to denote <span class="QUOTE">"all URLs"</span>.
1340               <tt class="REPLACEABLE"><i>http_parent</i></tt> and <tt class="REPLACEABLE"><i>socks_proxy</i></tt> are
1341               IP addresses in dotted decimal notation or valid DNS names (<tt class=
1342               "REPLACEABLE"><i>http_parent</i></tt> may be <span class="QUOTE">"."</span> to denote <span class=
1343               "QUOTE">"no HTTP forwarding"</span>), and the optional <tt class="REPLACEABLE"><i>port</i></tt>
1344               parameters are TCP ports, i.e. integer values from 1 to 65535. <tt class="REPLACEABLE"><i>user</i></tt>
1345               and <tt class="REPLACEABLE"><i>pass</i></tt> can be used for SOCKS5 authentication if required.</p>
1346             </dd>
1347             <dt>Default value:</dt>
1348             <dd>
1349               <p><span class="emphasis"><i class="EMPHASIS">Unset</i></span></p>
1350             </dd>
1351             <dt>Effect if unset:</dt>
1352             <dd>
1353               <p>Don't use SOCKS proxies.</p>
1354             </dd>
1355             <dt>Notes:</dt>
1356             <dd>
1357               <p>Multiple lines are OK, they are checked in sequence, and the last match wins.</p>
1358               <p>The difference between <tt class="LITERAL">forward-socks4</tt> and <tt class=
1359               "LITERAL">forward-socks4a</tt> is that in the SOCKS 4A protocol, the DNS resolution of the target
1360               hostname happens on the SOCKS server, while in SOCKS 4 it happens locally.</p>
1361               <p>With <tt class="LITERAL">forward-socks5</tt> the DNS resolution will happen on the remote server as
1362               well.</p>
1363               <p><tt class="LITERAL">forward-socks5t</tt> works like vanilla <tt class="LITERAL">forward-socks5</tt>
1364               but lets <span class="APPLICATION">Privoxy</span> additionally use Tor-specific SOCKS extensions.
1365               Currently the only supported SOCKS extension is optimistic data which can reduce the latency for the
1366               first request made on a newly created connection.</p>
1367               <p><tt class="REPLACEABLE"><i>socks_proxy</i></tt> and <tt class="REPLACEABLE"><i>http_parent</i></tt>
1368               can be a numerical IPv6 address (if <a href="http://tools.ietf.org/html/rfc3493" target="_top">RFC
1369               3493</a> is implemented). To prevent clashes with the port delimiter, the whole IP address has to be put
1370               into brackets. On the other hand a <tt class="REPLACEABLE"><i>target_pattern</i></tt> containing an IPv6
1371               address has to be put into angle brackets (normal brackets are reserved for regular expressions
1372               already).</p>
1373               <p>If <tt class="REPLACEABLE"><i>http_parent</i></tt> is <span class="QUOTE">"."</span>, then requests
1374               are not forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit
1375               through a SOCKS proxy.</p>
1376             </dd>
1377             <dt>Examples:</dt>
1378             <dd>
1379               <p>From the company example.com, direct connections are made to all <span class="QUOTE">"internal"</span>
1380               domains, but everything outbound goes through their ISP's proxy by way of example.com's corporate SOCKS
1381               4A gateway to the Internet.</p>
1382               <table border="0" bgcolor="#E0E0E0" width="90%">
1383                 <tr>
1384                   <td>
1385                     <pre class="SCREEN">
1386                     forward-socks4a   /              socks-gw.example.com:1080  www-cache.isp.example.net:8080
1387   forward           .example.com   .</pre>
1388                   </td>
1389                 </tr>
1390               </table>
1391               <p>A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent looks like this:</p>
1392               <table border="0" bgcolor="#E0E0E0" width="90%">
1393                 <tr>
1394                   <td>
1395                     <pre class="SCREEN">  forward-socks4   /               socks-gw.example.com:1080  .</pre>
1396                   </td>
1397                 </tr>
1398               </table>
1399               <p>To connect SOCKS5 proxy which requires username/password authentication:</p>
1400               <table border="0" bgcolor="#E0E0E0" width="90%">
1401                 <tr>
1402                   <td>
1403                     <pre class="SCREEN">  forward-socks5   /               user:pass@socks-gw.example.com:1080  .</pre>
1404                   </td>
1405                 </tr>
1406               </table>
1407               <p>To chain Privoxy and Tor, both running on the same system, you would use something like:</p>
1408               <table border="0" bgcolor="#E0E0E0" width="90%">
1409                 <tr>
1410                   <td>
1411                     <pre class="SCREEN">  forward-socks5t   /               127.0.0.1:9050 .</pre>
1412                   </td>
1413                 </tr>
1414               </table>
1415               <p>Note that if you got Tor through one of the bundles, you may have to change the port from 9050 to 9150
1416               (or even another one). For details, please check the documentation on the <a href=
1417               "https://torproject.org/" target="_top">Tor website</a>.</p>
1418               <p>The public <span class="APPLICATION">Tor</span> network can't be used to reach your local network, if
1419               you need to access local servers you therefore might want to make some exceptions:</p>
1420               <table border="0" bgcolor="#E0E0E0" width="90%">
1421                 <tr>
1422                   <td>
1423                     <pre class="SCREEN">  forward         192.168.*.*/     .
1424   forward          10.*.*.*/       .
1425   forward         127.*.*.*/       .</pre>
1426                   </td>
1427                 </tr>
1428               </table>
1429               <p>Unencrypted connections to systems in these address ranges will be as (un)secure as the local network
1430               is, but the alternative is that you can't reach the local network through <span class=
1431               "APPLICATION">Privoxy</span> at all. Of course this may actually be desired and there is no reason to
1432               make these exceptions if you aren't sure you need them.</p>
1433               <p>If you also want to be able to reach servers in your local network by using their names, you will need
1434               additional exceptions that look like this:</p>
1435               <table border="0" bgcolor="#E0E0E0" width="90%">
1436                 <tr>
1437                   <td>
1438                     <pre class="SCREEN"> forward           localhost/     .</pre>
1439                   </td>
1440                 </tr>
1441               </table>
1442             </dd>
1443           </dl>
1444         </div>
1445       </div>
1446       <div class="SECT3">
1447         <h4 class="SECT3"><a name="ADVANCED-FORWARDING-EXAMPLES" id="ADVANCED-FORWARDING-EXAMPLES">7.5.3. Advanced
1448         Forwarding Examples</a></h4>
1449         <p>If you have links to multiple ISPs that provide various special content only to their subscribers, you can
1450         configure multiple <span class="APPLICATION">Privoxies</span> which have connections to the respective ISPs to
1451         act as forwarders to each other, so that <span class="emphasis"><i class="EMPHASIS">your</i></span> users can
1452         see the internal content of all ISPs.</p>
1453         <p>Assume that host-a has a PPP connection to isp-a.example.net. And host-b has a PPP connection to
1454         isp-b.example.org. Both run <span class="APPLICATION">Privoxy</span>. Their forwarding configuration can look
1455         like this:</p>
1456         <p>host-a:</p>
1457         <table border="0" bgcolor="#E0E0E0" width="100%">
1458           <tr>
1459             <td>
1460               <pre class="SCREEN">  forward    /           .
1461   forward    .isp-b.example.net  host-b:8118</pre>
1462             </td>
1463           </tr>
1464         </table>
1465         <p>host-b:</p>
1466         <table border="0" bgcolor="#E0E0E0" width="100%">
1467           <tr>
1468             <td>
1469               <pre class="SCREEN">  forward    /           .
1470   forward    .isp-a.example.org  host-a:8118</pre>
1471             </td>
1472           </tr>
1473         </table>
1474         <p>Now, your users can set their browser's proxy to use either host-a or host-b and be able to browse the
1475         internal content of both isp-a and isp-b.</p>
1476         <p>If you intend to chain <span class="APPLICATION">Privoxy</span> and <span class="APPLICATION">squid</span>
1477         locally, then chaining as <tt class="LITERAL">browser -&#62; squid -&#62; privoxy</tt> is the recommended
1478         way.</p>
1479         <p>Assuming that <span class="APPLICATION">Privoxy</span> and <span class="APPLICATION">squid</span> run on the
1480         same box, your <span class="APPLICATION">squid</span> configuration could then look like this:</p>
1481         <table border="0" bgcolor="#E0E0E0" width="100%">
1482           <tr>
1483             <td>
1484               <pre class="SCREEN">  # Define Privoxy as parent proxy (without ICP)
1485   cache_peer 127.0.0.1 parent 8118 7 no-query
1486
1487   # Define ACL for protocol FTP
1488   acl ftp proto FTP
1489
1490   # Do not forward FTP requests to Privoxy
1491   always_direct allow ftp
1492
1493   # Forward all the rest to Privoxy
1494   never_direct allow all</pre>
1495             </td>
1496           </tr>
1497         </table>
1498         <p>You would then need to change your browser's proxy settings to <span class="APPLICATION">squid</span>'s
1499         address and port. Squid normally uses port 3128. If unsure consult <tt class="LITERAL">http_port</tt> in
1500         <tt class="FILENAME">squid.conf</tt>.</p>
1501         <p>You could just as well decide to only forward requests you suspect of leading to Windows executables through
1502         a virus-scanning parent proxy, say, on <tt class="LITERAL">antivir.example.com</tt>, port 8010:</p>
1503         <table border="0" bgcolor="#E0E0E0" width="100%">
1504           <tr>
1505             <td>
1506               <pre class="SCREEN">  forward   /                          .
1507   forward   /.*\.(exe|com|dll|zip)$    antivir.example.com:8010</pre>
1508             </td>
1509           </tr>
1510         </table>
1511       </div>
1512       <div class="SECT3">
1513         <h4 class="SECT3"><a name="FORWARDED-CONNECT-RETRIES" id="FORWARDED-CONNECT-RETRIES">7.5.4.
1514         forwarded-connect-retries</a></h4>
1515         <div class="VARIABLELIST">
1516           <dl>
1517             <dt>Specifies:</dt>
1518             <dd>
1519               <p>How often Privoxy retries if a forwarded connection request fails.</p>
1520             </dd>
1521             <dt>Type of value:</dt>
1522             <dd>
1523               <p><tt class="REPLACEABLE"><i>Number of retries.</i></tt></p>
1524             </dd>
1525             <dt>Default value:</dt>
1526             <dd>
1527               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
1528             </dd>
1529             <dt>Effect if unset:</dt>
1530             <dd>
1531               <p>Connections forwarded through other proxies are treated like direct connections and no retry attempts
1532               are made.</p>
1533             </dd>
1534             <dt>Notes:</dt>
1535             <dd>
1536               <p><tt class="REPLACEABLE"><i>forwarded-connect-retries</i></tt> is mainly interesting for socks4a
1537               connections, where <span class="APPLICATION">Privoxy</span> can't detect why the connections failed. The
1538               connection might have failed because of a DNS timeout in which case a retry makes sense, but it might
1539               also have failed because the server doesn't exist or isn't reachable. In this case the retry will just
1540               delay the appearance of Privoxy's error message.</p>
1541               <p>Note that in the context of this option, <span class="QUOTE">"forwarded connections"</span> includes
1542               all connections that Privoxy forwards through other proxies. This option is not limited to the HTTP
1543               CONNECT method.</p>
1544               <p>Only use this option, if you are getting lots of forwarding-related error messages that go away when
1545               you try again manually. Start with a small value and check Privoxy's logfile from time to time, to see
1546               how many retries are usually needed.</p>
1547             </dd>
1548             <dt>Examples:</dt>
1549             <dd>
1550               <p>forwarded-connect-retries 1</p>
1551             </dd>
1552           </dl>
1553         </div>
1554       </div>
1555     </div>
1556     <div class="SECT2">
1557       <h2 class="SECT2"><a name="MISC" id="MISC">7.6. Miscellaneous</a></h2>
1558       <div class="SECT3">
1559         <h4 class="SECT3"><a name="ACCEPT-INTERCEPTED-REQUESTS" id="ACCEPT-INTERCEPTED-REQUESTS">7.6.1.
1560         accept-intercepted-requests</a></h4>
1561         <div class="VARIABLELIST">
1562           <dl>
1563             <dt>Specifies:</dt>
1564             <dd>
1565               <p>Whether intercepted requests should be treated as valid.</p>
1566             </dd>
1567             <dt>Type of value:</dt>
1568             <dd>
1569               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
1570             </dd>
1571             <dt>Default value:</dt>
1572             <dd>
1573               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
1574             </dd>
1575             <dt>Effect if unset:</dt>
1576             <dd>
1577               <p>Only proxy requests are accepted, intercepted requests are treated as invalid.</p>
1578             </dd>
1579             <dt>Notes:</dt>
1580             <dd>
1581               <p>If you don't trust your clients and want to force them to use <span class=
1582               "APPLICATION">Privoxy</span>, enable this option and configure your packet filter to redirect outgoing
1583               HTTP connections into <span class="APPLICATION">Privoxy</span>.</p>
1584               <p>Note that intercepting encrypted connections (HTTPS) isn't supported.</p>
1585               <p>Make sure that <span class="APPLICATION">Privoxy's</span> own requests aren't redirected as well.
1586               Additionally take care that <span class="APPLICATION">Privoxy</span> can't intentionally connect to
1587               itself, otherwise you could run into redirection loops if <span class="APPLICATION">Privoxy's</span>
1588               listening port is reachable by the outside or an attacker has access to the pages you visit.</p>
1589               <p>If you are running Privoxy as intercepting proxy without being able to intercept all client requests
1590               you may want to adjust the CGI templates to make sure they don't reference content from
1591               config.privoxy.org.</p>
1592             </dd>
1593             <dt>Examples:</dt>
1594             <dd>
1595               <p>accept-intercepted-requests 1</p>
1596             </dd>
1597           </dl>
1598         </div>
1599       </div>
1600       <div class="SECT3">
1601         <h4 class="SECT3"><a name="ALLOW-CGI-REQUEST-CRUNCHING" id="ALLOW-CGI-REQUEST-CRUNCHING">7.6.2.
1602         allow-cgi-request-crunching</a></h4>
1603         <div class="VARIABLELIST">
1604           <dl>
1605             <dt>Specifies:</dt>
1606             <dd>
1607               <p>Whether requests to <span class="APPLICATION">Privoxy's</span> CGI pages can be blocked or
1608               redirected.</p>
1609             </dd>
1610             <dt>Type of value:</dt>
1611             <dd>
1612               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
1613             </dd>
1614             <dt>Default value:</dt>
1615             <dd>
1616               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
1617             </dd>
1618             <dt>Effect if unset:</dt>
1619             <dd>
1620               <p><span class="APPLICATION">Privoxy</span> ignores block and redirect actions for its CGI pages.</p>
1621             </dd>
1622             <dt>Notes:</dt>
1623             <dd>
1624               <p>By default <span class="APPLICATION">Privoxy</span> ignores block or redirect actions for its CGI
1625               pages. Intercepting these requests can be useful in multi-user setups to implement fine-grained access
1626               control, but it can also render the complete web interface useless and make debugging problems painful if
1627               done without care.</p>
1628               <p>Don't enable this option unless you're sure that you really need it.</p>
1629             </dd>
1630             <dt>Examples:</dt>
1631             <dd>
1632               <p>allow-cgi-request-crunching 1</p>
1633             </dd>
1634           </dl>
1635         </div>
1636       </div>
1637       <div class="SECT3">
1638         <h4 class="SECT3"><a name="SPLIT-LARGE-FORMS" id="SPLIT-LARGE-FORMS">7.6.3. split-large-forms</a></h4>
1639         <div class="VARIABLELIST">
1640           <dl>
1641             <dt>Specifies:</dt>
1642             <dd>
1643               <p>Whether the CGI interface should stay compatible with broken HTTP clients.</p>
1644             </dd>
1645             <dt>Type of value:</dt>
1646             <dd>
1647               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
1648             </dd>
1649             <dt>Default value:</dt>
1650             <dd>
1651               <p><span class="emphasis"><i class="EMPHASIS">0</i></span></p>
1652             </dd>
1653             <dt>Effect if unset:</dt>
1654             <dd>
1655               <p>The CGI form generate long GET URLs.</p>
1656             </dd>
1657             <dt>Notes:</dt>
1658             <dd>
1659               <p><span class="APPLICATION">Privoxy's</span> CGI forms can lead to rather long URLs. This isn't a
1660               problem as far as the HTTP standard is concerned, but it can confuse clients with arbitrary URL length
1661               limitations.</p>
1662               <p>Enabling split-large-forms causes <span class="APPLICATION">Privoxy</span> to divide big forms into
1663               smaller ones to keep the URL length down. It makes editing a lot less convenient and you can no longer
1664               submit all changes at once, but at least it works around this browser bug.</p>
1665               <p>If you don't notice any editing problems, there is no reason to enable this option, but if one of the
1666               submit buttons appears to be broken, you should give it a try.</p>
1667             </dd>
1668             <dt>Examples:</dt>
1669             <dd>
1670               <p>split-large-forms 1</p>
1671             </dd>
1672           </dl>
1673         </div>
1674       </div>
1675       <div class="SECT3">
1676         <h4 class="SECT3"><a name="KEEP-ALIVE-TIMEOUT" id="KEEP-ALIVE-TIMEOUT">7.6.4. keep-alive-timeout</a></h4>
1677         <div class="VARIABLELIST">
1678           <dl>
1679             <dt>Specifies:</dt>
1680             <dd>
1681               <p>Number of seconds after which an open connection will no longer be reused.</p>
1682             </dd>
1683             <dt>Type of value:</dt>
1684             <dd>
1685               <p><tt class="REPLACEABLE"><i>Time in seconds.</i></tt></p>
1686             </dd>
1687             <dt>Default value:</dt>
1688             <dd>
1689               <p>None</p>
1690             </dd>
1691             <dt>Effect if unset:</dt>
1692             <dd>
1693               <p>Connections are not kept alive.</p>
1694             </dd>
1695             <dt>Notes:</dt>
1696             <dd>
1697               <p>This option allows clients to keep the connection to <span class="APPLICATION">Privoxy</span> alive.
1698               If the server supports it, <span class="APPLICATION">Privoxy</span> will keep the connection to the
1699               server alive as well. Under certain circumstances this may result in speed-ups.</p>
1700               <p>By default, <span class="APPLICATION">Privoxy</span> will close the connection to the server if the
1701               client connection gets closed, or if the specified timeout has been reached without a new request coming
1702               in. This behaviour can be changed with the <a href="#CONNECTION-SHARING" target=
1703               "_top">connection-sharing</a> option.</p>
1704               <p>This option has no effect if <span class="APPLICATION">Privoxy</span> has been compiled without
1705               keep-alive support.</p>
1706               <p>Note that a timeout of five seconds as used in the default configuration file significantly decreases
1707               the number of connections that will be reused. The value is used because some browsers limit the number
1708               of connections they open to a single host and apply the same limit to proxies. This can result in a
1709               single website <span class="QUOTE">"grabbing"</span> all the connections the browser allows, which means
1710               connections to other websites can't be opened until the connections currently in use time out.</p>
1711               <p>Several users have reported this as a Privoxy bug, so the default value has been reduced. Consider
1712               increasing it to 300 seconds or even more if you think your browser can handle it. If your browser
1713               appears to be hanging, it probably can't.</p>
1714             </dd>
1715             <dt>Examples:</dt>
1716             <dd>
1717               <p>keep-alive-timeout 300</p>
1718             </dd>
1719           </dl>
1720         </div>
1721       </div>
1722       <div class="SECT3">
1723         <h4 class="SECT3"><a name="TOLERATE-PIPELINING" id="TOLERATE-PIPELINING">7.6.5. tolerate-pipelining</a></h4>
1724         <div class="VARIABLELIST">
1725           <dl>
1726             <dt>Specifies:</dt>
1727             <dd>
1728               <p>Whether or not pipelined requests should be served.</p>
1729             </dd>
1730             <dt>Type of value:</dt>
1731             <dd>
1732               <p><tt class="REPLACEABLE"><i>0 or 1.</i></tt></p>
1733             </dd>
1734             <dt>Default value:</dt>
1735             <dd>
1736               <p>None</p>
1737             </dd>
1738             <dt>Effect if unset:</dt>
1739             <dd>
1740               <p>If Privoxy receives more than one request at once, it terminates the client connection after serving
1741               the first one.</p>
1742             </dd>
1743             <dt>Notes:</dt>
1744             <dd>
1745               <p><span class="APPLICATION">Privoxy</span> currently doesn't pipeline outgoing requests, thus allowing
1746               pipelining on the client connection is not guaranteed to improve the performance.</p>
1747               <p>By default <span class="APPLICATION">Privoxy</span> tries to discourage clients from pipelining by
1748               discarding aggressively pipelined requests, which forces the client to resend them through a new
1749               connection.</p>
1750               <p>This option lets <span class="APPLICATION">Privoxy</span> tolerate pipelining. Whether or not that
1751               improves performance mainly depends on the client configuration.</p>
1752               <p>If you are seeing problems with pages not properly loading, disabling this option could work around
1753               the problem.</p>
1754             </dd>
1755             <dt>Examples:</dt>
1756             <dd>
1757               <p>tolerate-pipelining 1</p>
1758             </dd>
1759           </dl>
1760         </div>
1761       </div>
1762       <div class="SECT3">
1763         <h4 class="SECT3"><a name="DEFAULT-SERVER-TIMEOUT" id="DEFAULT-SERVER-TIMEOUT">7.6.6.
1764         default-server-timeout</a></h4>
1765         <div class="VARIABLELIST">
1766           <dl>
1767             <dt>Specifies:</dt>
1768             <dd>
1769               <p>Assumed server-side keep-alive timeout if not specified by the server.</p>
1770             </dd>
1771             <dt>Type of value:</dt>
1772             <dd>
1773               <p><tt class="REPLACEABLE"><i>Time in seconds.</i></tt></p>
1774             </dd>
1775             <dt>Default value:</dt>
1776             <dd>
1777               <p>None</p>
1778             </dd>
1779             <dt>Effect if unset:</dt>
1780             <dd>
1781               <p>Connections for which the server didn't specify the keep-alive timeout are not reused.</p>
1782             </dd>
1783             <dt>Notes:</dt>
1784             <dd>
1785               <p>Enabling this option significantly increases the number of connections that are reused, provided the
1786               <a href="#KEEP-ALIVE-TIMEOUT" target="_top">keep-alive-timeout</a> option is also enabled.</p>
1787               <p>While it also increases the number of connections problems when <span class=
1788               "APPLICATION">Privoxy</span> tries to reuse a connection that already has been closed on the server side,
1789               or is closed while <span class="APPLICATION">Privoxy</span> is trying to reuse it, this should only be a
1790               problem if it happens for the first request sent by the client. If it happens for requests on reused
1791               client connections, <span class="APPLICATION">Privoxy</span> will simply close the connection and the
1792               client is supposed to retry the request without bothering the user.</p>
1793               <p>Enabling this option is therefore only recommended if the <a href="#CONNECTION-SHARING" target=
1794               "_top">connection-sharing</a> option is disabled.</p>
1795               <p>It is an error to specify a value larger than the <a href="#KEEP-ALIVE-TIMEOUT" target=
1796               "_top">keep-alive-timeout</a> value.</p>
1797               <p>This option has no effect if <span class="APPLICATION">Privoxy</span> has been compiled without
1798               keep-alive support.</p>
1799             </dd>
1800             <dt>Examples:</dt>
1801             <dd>
1802               <p>default-server-timeout 60</p>
1803             </dd>
1804           </dl>
1805         </div>
1806       </div>
1807       <div class="SECT3">
1808         <h4 class="SECT3"><a name="CONNECTION-SHARING" id="CONNECTION-SHARING">7.6.7. connection-sharing</a></h4>
1809         <div class="VARIABLELIST">
1810           <dl>
1811             <dt>Specifies:</dt>
1812             <dd>
1813               <p>Whether or not outgoing connections that have been kept alive should be shared between different
1814               incoming connections.</p>
1815             </dd>
1816             <dt>Type of value:</dt>
1817             <dd>
1818               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
1819             </dd>
1820             <dt>Default value:</dt>
1821             <dd>
1822               <p>None</p>
1823             </dd>
1824             <dt>Effect if unset:</dt>
1825             <dd>
1826               <p>Connections are not shared.</p>
1827             </dd>
1828             <dt>Notes:</dt>
1829             <dd>
1830               <p>This option has no effect if <span class="APPLICATION">Privoxy</span> has been compiled without
1831               keep-alive support, or if it's disabled.</p>
1832             </dd>
1833             <dt>Notes:</dt>
1834             <dd>
1835               <p>Note that reusing connections doesn't necessary cause speedups. There are also a few privacy
1836               implications you should be aware of.</p>
1837               <p>If this option is effective, outgoing connections are shared between clients (if there are more than
1838               one) and closing the browser that initiated the outgoing connection does no longer affect the connection
1839               between <span class="APPLICATION">Privoxy</span> and the server unless the client's request hasn't been
1840               completed yet.</p>
1841               <p>If the outgoing connection is idle, it will not be closed until either <span class=
1842               "APPLICATION">Privoxy's</span> or the server's timeout is reached. While it's open, the server knows that
1843               the system running <span class="APPLICATION">Privoxy</span> is still there.</p>
1844               <p>If there are more than one client (maybe even belonging to multiple users), they will be able to reuse
1845               each others connections. This is potentially dangerous in case of authentication schemes like NTLM where
1846               only the connection is authenticated, instead of requiring authentication for each request.</p>
1847               <p>If there is only a single client, and if said client can keep connections alive on its own, enabling
1848               this option has next to no effect. If the client doesn't support connection keep-alive, enabling this
1849               option may make sense as it allows <span class="APPLICATION">Privoxy</span> to keep outgoing connections
1850               alive even if the client itself doesn't support it.</p>
1851               <p>You should also be aware that enabling this option increases the likelihood of getting the "No server
1852               or forwarder data" error message, especially if you are using a slow connection to the Internet.</p>
1853               <p>This option should only be used by experienced users who understand the risks and can weight them
1854               against the benefits.</p>
1855             </dd>
1856             <dt>Examples:</dt>
1857             <dd>
1858               <p>connection-sharing 1</p>
1859             </dd>
1860           </dl>
1861         </div>
1862       </div>
1863       <div class="SECT3">
1864         <h4 class="SECT3"><a name="SOCKET-TIMEOUT" id="SOCKET-TIMEOUT">7.6.8. socket-timeout</a></h4>
1865         <div class="VARIABLELIST">
1866           <dl>
1867             <dt>Specifies:</dt>
1868             <dd>
1869               <p>Number of seconds after which a socket times out if no data is received.</p>
1870             </dd>
1871             <dt>Type of value:</dt>
1872             <dd>
1873               <p><tt class="REPLACEABLE"><i>Time in seconds.</i></tt></p>
1874             </dd>
1875             <dt>Default value:</dt>
1876             <dd>
1877               <p>None</p>
1878             </dd>
1879             <dt>Effect if unset:</dt>
1880             <dd>
1881               <p>A default value of 300 seconds is used.</p>
1882             </dd>
1883             <dt>Notes:</dt>
1884             <dd>
1885               <p>The default is quite high and you probably want to reduce it. If you aren't using an occasionally slow
1886               proxy like Tor, reducing it to a few seconds should be fine.</p>
1887             </dd>
1888             <dt>Examples:</dt>
1889             <dd>
1890               <p>socket-timeout 300</p>
1891             </dd>
1892           </dl>
1893         </div>
1894       </div>
1895       <div class="SECT3">
1896         <h4 class="SECT3"><a name="MAX-CLIENT-CONNECTIONS" id="MAX-CLIENT-CONNECTIONS">7.6.9.
1897         max-client-connections</a></h4>
1898         <div class="VARIABLELIST">
1899           <dl>
1900             <dt>Specifies:</dt>
1901             <dd>
1902               <p>Maximum number of client connections that will be served.</p>
1903             </dd>
1904             <dt>Type of value:</dt>
1905             <dd>
1906               <p><tt class="REPLACEABLE"><i>Positive number.</i></tt></p>
1907             </dd>
1908             <dt>Default value:</dt>
1909             <dd>
1910               <p>128</p>
1911             </dd>
1912             <dt>Effect if unset:</dt>
1913             <dd>
1914               <p>Connections are served until a resource limit is reached.</p>
1915             </dd>
1916             <dt>Notes:</dt>
1917             <dd>
1918               <p><span class="APPLICATION">Privoxy</span> creates one thread (or process) for every incoming client
1919               connection that isn't rejected based on the access control settings.</p>
1920               <p>If the system is powerful enough, <span class="APPLICATION">Privoxy</span> can theoretically deal with
1921               several hundred (or thousand) connections at the same time, but some operating systems enforce resource
1922               limits by shutting down offending processes and their default limits may be below the ones <span class=
1923               "APPLICATION">Privoxy</span> would require under heavy load.</p>
1924               <p>Configuring <span class="APPLICATION">Privoxy</span> to enforce a connection limit below the thread or
1925               process limit used by the operating system makes sure this doesn't happen. Simply increasing the
1926               operating system's limit would work too, but if <span class="APPLICATION">Privoxy</span> isn't the only
1927               application running on the system, you may actually want to limit the resources used by <span class=
1928               "APPLICATION">Privoxy</span>.</p>
1929               <p>If <span class="APPLICATION">Privoxy</span> is only used by a single trusted user, limiting the number
1930               of client connections is probably unnecessary. If there are multiple possibly untrusted users you
1931               probably still want to additionally use a packet filter to limit the maximal number of incoming
1932               connections per client. Otherwise a malicious user could intentionally create a high number of
1933               connections to prevent other users from using <span class="APPLICATION">Privoxy</span>.</p>
1934               <p>Obviously using this option only makes sense if you choose a limit below the one enforced by the
1935               operating system.</p>
1936               <p>One most POSIX-compliant systems <span class="APPLICATION">Privoxy</span> can't properly deal with
1937               more than FD_SETSIZE file descriptors at the same time and has to reject connections if the limit is
1938               reached. This will likely change in a future version, but currently this limit can't be increased without
1939               recompiling <span class="APPLICATION">Privoxy</span> with a different FD_SETSIZE limit.</p>
1940             </dd>
1941             <dt>Examples:</dt>
1942             <dd>
1943               <p>max-client-connections 256</p>
1944             </dd>
1945           </dl>
1946         </div>
1947       </div>
1948       <div class="SECT3">
1949         <h4 class="SECT3"><a name="LISTEN-BACKLOG" id="LISTEN-BACKLOG">7.6.10. listen-backlog</a></h4>
1950         <div class="VARIABLELIST">
1951           <dl>
1952             <dt>Specifies:</dt>
1953             <dd>
1954               <p>Connection queue length requested from the operating system.</p>
1955             </dd>
1956             <dt>Type of value:</dt>
1957             <dd>
1958               <p><tt class="REPLACEABLE"><i>Number.</i></tt></p>
1959             </dd>
1960             <dt>Default value:</dt>
1961             <dd>
1962               <p>128</p>
1963             </dd>
1964             <dt>Effect if unset:</dt>
1965             <dd>
1966               <p>A connection queue length of 128 is requested from the operating system.</p>
1967             </dd>
1968             <dt>Notes:</dt>
1969             <dd>
1970               <p>Under high load incoming connection may queue up before Privoxy gets around to serve them. The queue
1971               length is limitted by the operating system. Once the queue is full, additional connections are dropped
1972               before Privoxy can accept and serve them.</p>
1973               <p>Increasing the queue length allows Privoxy to accept more incomming connections that arrive roughly at
1974               the same time.</p>
1975               <p>Note that Privoxy can only request a certain queue length, whether or not the requested length is
1976               actually used depends on the operating system which may use a different length instead.</p>
1977               <p>On many operating systems a limit of -1 can be specified to instruct the operating system to use the
1978               maximum queue length allowed. Check the listen man page to see if your platform allows this.</p>
1979               <p>On some platforms you can use "netstat -Lan -p tcp" to see the effective queue length.</p>
1980               <p>Effectively using a value above 128 usually requires changing the system configuration as well. On
1981               FreeBSD-based system the limit is controlled by the kern.ipc.soacceptqueue sysctl.</p>
1982             </dd>
1983             <dt>Examples:</dt>
1984             <dd>
1985               <p>listen-backlog 4096</p>
1986             </dd>
1987           </dl>
1988         </div>
1989       </div>
1990       <div class="SECT3">
1991         <h4 class="SECT3"><a name="ENABLE-ACCEPT-FILTER" id="ENABLE-ACCEPT-FILTER">7.6.11.
1992         enable-accept-filter</a></h4>
1993         <div class="VARIABLELIST">
1994           <dl>
1995             <dt>Specifies:</dt>
1996             <dd>
1997               <p>Whether or not Privoxy should use an accept filter</p>
1998             </dd>
1999             <dt>Type of value:</dt>
2000             <dd>
2001               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
2002             </dd>
2003             <dt>Default value:</dt>
2004             <dd>
2005               <p>0</p>
2006             </dd>
2007             <dt>Effect if unset:</dt>
2008             <dd>
2009               <p>No accept filter is enabled.</p>
2010             </dd>
2011             <dt>Notes:</dt>
2012             <dd>
2013               <p>Accept filters reduce the number of context switches by not passing sockets for new connections to
2014               Privoxy until a complete HTTP request is available.</p>
2015               <p>As a result, Privoxy can process the whole request right away without having to wait for additional
2016               data first.</p>
2017               <p>For this option to work, Privoxy has to be compiled with FEATURE_ACCEPT_FILTER and the operating
2018               system has to support it (which may require loading a kernel module).</p>
2019               <p>Currently accept filters are only supported on FreeBSD-based systems. Check the <a href=
2020               "https://www.freebsd.org/cgi/man.cgi?query=accf_http" target="_top">accf_http(9) man page</a> to learn
2021               how to enable the support in the operating system.</p>
2022             </dd>
2023             <dt>Examples:</dt>
2024             <dd>
2025               <p>enable-accept-filter 1</p>
2026             </dd>
2027           </dl>
2028         </div>
2029       </div>
2030       <div class="SECT3">
2031         <h4 class="SECT3"><a name="HANDLE-AS-EMPTY-DOC-RETURNS-OK" id="HANDLE-AS-EMPTY-DOC-RETURNS-OK">7.6.12.
2032         handle-as-empty-doc-returns-ok</a></h4>
2033         <div class="VARIABLELIST">
2034           <dl>
2035             <dt>Specifies:</dt>
2036             <dd>
2037               <p>The status code Privoxy returns for pages blocked with <tt class="LITERAL"><a href=
2038               "actions-file.html#HANDLE-AS-EMPTY-DOCUMENT" target="_top">+handle-as-empty-document</a></tt>.</p>
2039             </dd>
2040             <dt>Type of value:</dt>
2041             <dd>
2042               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
2043             </dd>
2044             <dt>Default value:</dt>
2045             <dd>
2046               <p>0</p>
2047             </dd>
2048             <dt>Effect if unset:</dt>
2049             <dd>
2050               <p>Privoxy returns a status 403(forbidden) for all blocked pages.</p>
2051             </dd>
2052             <dt>Effect if set:</dt>
2053             <dd>
2054               <p>Privoxy returns a status 200(OK) for pages blocked with +handle-as-empty-document and a status
2055               403(Forbidden) for all other blocked pages.</p>
2056             </dd>
2057             <dt>Notes:</dt>
2058             <dd>
2059               <p>This directive was added as a work-around for Firefox bug 492459: <span class="QUOTE">"Websites are no
2060               longer rendered if SSL requests for JavaScripts are blocked by a proxy."</span> ( <a href=
2061               "https://bugzilla.mozilla.org/show_bug.cgi?id=492459" target=
2062               "_top">https://bugzilla.mozilla.org/show_bug.cgi?id=492459</a>), the bug has been fixed for quite some
2063               time, but this directive is also useful to make it harder for websites to detect whether or not resources
2064               are being blocked.</p>
2065             </dd>
2066           </dl>
2067         </div>
2068       </div>
2069       <div class="SECT3">
2070         <h4 class="SECT3"><a name="ENABLE-COMPRESSION" id="ENABLE-COMPRESSION">7.6.13. enable-compression</a></h4>
2071         <div class="VARIABLELIST">
2072           <dl>
2073             <dt>Specifies:</dt>
2074             <dd>
2075               <p>Whether or not buffered content is compressed before delivery.</p>
2076             </dd>
2077             <dt>Type of value:</dt>
2078             <dd>
2079               <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p>
2080             </dd>
2081             <dt>Default value:</dt>
2082             <dd>
2083               <p>0</p>
2084             </dd>
2085             <dt>Effect if unset:</dt>
2086             <dd>
2087               <p>Privoxy does not compress buffered content.</p>
2088             </dd>
2089             <dt>Effect if set:</dt>
2090             <dd>
2091               <p>Privoxy compresses buffered content before delivering it to the client, provided the client supports
2092               it.</p>
2093             </dd>
2094             <dt>Notes:</dt>
2095             <dd>
2096               <p>This directive is only supported if Privoxy has been compiled with FEATURE_COMPRESSION, which should
2097               not to be confused with FEATURE_ZLIB.</p>
2098               <p>Compressing buffered content is mainly useful if Privoxy and the client are running on different
2099               systems. If they are running on the same system, enabling compression is likely to slow things down. If
2100               you didn't measure otherwise, you should assume that it does and keep this option disabled.</p>
2101               <p>Privoxy will not compress buffered content below a certain length.</p>
2102             </dd>
2103           </dl>
2104         </div>
2105       </div>
2106       <div class="SECT3">
2107         <h4 class="SECT3"><a name="COMPRESSION-LEVEL" id="COMPRESSION-LEVEL">7.6.14. compression-level</a></h4>
2108         <div class="VARIABLELIST">
2109           <dl>
2110             <dt>Specifies:</dt>
2111             <dd>
2112               <p>The compression level that is passed to the zlib library when compressing buffered content.</p>
2113             </dd>
2114             <dt>Type of value:</dt>
2115             <dd>
2116               <p><tt class="REPLACEABLE"><i>Positive number ranging from 0 to 9.</i></tt></p>
2117             </dd>
2118             <dt>Default value:</dt>
2119             <dd>
2120               <p>1</p>
2121             </dd>
2122             <dt>Notes:</dt>
2123             <dd>
2124               <p>Compressing the data more takes usually longer than compressing it less or not compressing it at all.
2125               Which level is best depends on the connection between Privoxy and the client. If you can't be bothered to
2126               benchmark it for yourself, you should stick with the default and keep compression disabled.</p>
2127               <p>If compression is disabled, the compression level is irrelevant.</p>
2128             </dd>
2129             <dt>Examples:</dt>
2130             <dd>
2131               <table border="0" bgcolor="#E0E0E0" width="90%">
2132                 <tr>
2133                   <td>
2134                     <pre class="SCREEN">    # Best speed (compared to the other levels)
2135     compression-level 1
2136
2137     # Best compression
2138     compression-level 9
2139
2140     # No compression. Only useful for testing as the added header
2141     # slightly increases the amount of data that has to be sent.
2142     # If your benchmark shows that using this compression level
2143     # is superior to using no compression at all, the benchmark
2144     # is likely to be flawed.
2145     compression-level 0</pre>
2146                   </td>
2147                 </tr>
2148               </table>
2149             </dd>
2150           </dl>
2151         </div>
2152       </div>
2153       <div class="SECT3">
2154         <h4 class="SECT3"><a name="CLIENT-HEADER-ORDER" id="CLIENT-HEADER-ORDER">7.6.15. client-header-order</a></h4>
2155         <div class="VARIABLELIST">
2156           <dl>
2157             <dt>Specifies:</dt>
2158             <dd>
2159               <p>The order in which client headers are sorted before forwarding them.</p>
2160             </dd>
2161             <dt>Type of value:</dt>
2162             <dd>
2163               <p><tt class="REPLACEABLE"><i>Client header names delimited by spaces or tabs</i></tt></p>
2164             </dd>
2165             <dt>Default value:</dt>
2166             <dd>
2167               <p>None</p>
2168             </dd>
2169             <dt>Notes:</dt>
2170             <dd>
2171               <p>By default <span class="APPLICATION">Privoxy</span> leaves the client headers in the order they were
2172               sent by the client. Headers are modified in-place, new headers are added at the end of the already
2173               existing headers.</p>
2174               <p>The header order can be used to fingerprint client requests independently of other headers like the
2175               User-Agent.</p>
2176               <p>This directive allows to sort the headers differently to better mimic a different User-Agent. Client
2177               headers will be emitted in the order given, headers whose name isn't explicitly specified are added at
2178               the end.</p>
2179               <p>Note that sorting headers in an uncommon way will make fingerprinting actually easier. Encrypted
2180               headers are not affected by this directive.</p>
2181             </dd>
2182           </dl>
2183         </div>
2184       </div>
2185       <div class="SECT3">
2186         <h4 class="SECT3"><a name="CLIENT-SPECIFIC-TAG" id="CLIENT-SPECIFIC-TAG">7.6.16. client-specific-tag</a></h4>
2187         <div class="VARIABLELIST">
2188           <dl>
2189             <dt>Specifies:</dt>
2190             <dd>
2191               <p>The name of a tag that will always be set for clients that requested it through the webinterface.</p>
2192             </dd>
2193             <dt>Type of value:</dt>
2194             <dd>
2195               <p><tt class="REPLACEABLE"><i>Tag name followed by a description that will be shown in the
2196               webinterface</i></tt></p>
2197             </dd>
2198             <dt>Default value:</dt>
2199             <dd>
2200               <p>None</p>
2201             </dd>
2202             <dt>Notes:</dt>
2203             <dd>
2204               <div class="WARNING">
2205                 <table class="WARNING" border="1" width="90%">
2206                   <tr>
2207                     <td align="center"><b>Warning</b></td>
2208                   </tr>
2209                   <tr>
2210                     <td align="left">
2211                       <p>This is an experimental feature. The syntax is likely to change in future versions.</p>
2212                     </td>
2213                   </tr>
2214                 </table>
2215               </div>
2216               <p>Client-specific tags allow Privoxy admins to create different profiles and let the users chose which
2217               one they want without impacting other users.</p>
2218               <p>One use case is allowing users to circumvent certain blocks without having to allow them to circumvent
2219               all blocks. This is not possible with the <a href="config.html#ENABLE-REMOTE-TOGGLE">enable-remote-toggle
2220               feature</a> because it would bluntly disable all blocks for all users and also affect other actions like
2221               filters. It also is set globally which renders it useless in most multi-user setups.</p>
2222               <p>After a client-specific tag has been defined with the client-specific-tag directive, action sections
2223               can be activated based on the tag by using a <a href="actions-file.html#CLIENT-TAG-PATTERN" target=
2224               "_top">CLIENT-TAG</a> pattern. The CLIENT-TAG pattern is evaluated at the same priority as URL patterns,
2225               as a result the last matching pattern wins. Tags that are created based on client or server headers are
2226               evaluated later on and can overrule CLIENT-TAG and URL patterns!</p>
2227               <p>The tag is set for all requests that come from clients that requested it to be set. Note that
2228               "clients" are differentiated by IP address, if the IP address changes the tag has to be requested
2229               again.</p>
2230               <p>Clients can request tags to be set by using the CGI interface <a href=
2231               "http://config.privoxy.org/client-tags" target="_top">http://config.privoxy.org/client-tags</a>. The
2232               specific tag description is only used on the web page and should be phrased in away that the user
2233               understand the effect of the tag.</p>
2234             </dd>
2235             <dt>Examples:</dt>
2236             <dd>
2237               <table border="0" bgcolor="#E0E0E0" width="90%">
2238                 <tr>
2239                   <td>
2240                     <pre class="SCREEN">    # Define a couple of tags, the described effect requires action sections
2241     # that are enabled based on CLIENT-TAG patterns.
2242     client-specific-tag circumvent-blocks Overrule blocks but do not affect other actions
2243     disable-content-filters Disable content-filters but do not affect other actions</pre>
2244                   </td>
2245                 </tr>
2246               </table>
2247             </dd>
2248           </dl>
2249         </div>
2250       </div>
2251       <div class="SECT3">
2252         <h4 class="SECT3"><a name="CLIENT-TAG-LIFETIME" id="CLIENT-TAG-LIFETIME">7.6.17. client-tag-lifetime</a></h4>
2253         <div class="VARIABLELIST">
2254           <dl>
2255             <dt>Specifies:</dt>
2256             <dd>
2257               <p>How long a temporarily enabled tag remains enabled.</p>
2258             </dd>
2259             <dt>Type of value:</dt>
2260             <dd>
2261               <p><tt class="REPLACEABLE"><i>Time in seconds.</i></tt></p>
2262             </dd>
2263             <dt>Default value:</dt>
2264             <dd>
2265               <p>60</p>
2266             </dd>
2267             <dt>Notes:</dt>
2268             <dd>
2269               <div class="WARNING">
2270                 <table class="WARNING" border="1" width="90%">
2271                   <tr>
2272                     <td align="center"><b>Warning</b></td>
2273                   </tr>
2274                   <tr>
2275                     <td align="left">
2276                       <p>This is an experimental feature. The syntax is likely to change in future versions.</p>
2277                     </td>
2278                   </tr>
2279                 </table>
2280               </div>
2281               <p>In case of some tags users may not want to enable them permanently, but only for a short amount of
2282               time, for example to circumvent a block that is the result of an overly-broad URL pattern.</p>
2283               <p>The CGI interface <a href="http://config.privoxy.org/client-tags" target=
2284               "_top">http://config.privoxy.org/client-tags</a> therefore provides a "enable this tag temporarily"
2285               option. If it is used, the tag will be set until the client-tag-lifetime is over.</p>
2286             </dd>
2287             <dt>Examples:</dt>
2288             <dd>
2289               <table border="0" bgcolor="#E0E0E0" width="90%">
2290                 <tr>
2291                   <td>
2292                     <pre class="SCREEN">      # Increase the time to life for temporarily enabled tags to 3 minutes
2293       client-tag-lifetime 180</pre>
2294                   </td>
2295                 </tr>
2296               </table>
2297             </dd>
2298           </dl>
2299         </div>
2300       </div>
2301       <div class="SECT3">
2302         <h4 class="SECT3"><a name="TRUST-X-FORWARDED-FOR" id="TRUST-X-FORWARDED-FOR">7.6.18.
2303         trust-x-forwarded-for</a></h4>
2304         <div class="VARIABLELIST">
2305           <dl>
2306             <dt>Specifies:</dt>
2307             <dd>
2308               <p>Whether or not Privoxy should use IP addresses specified with the X-Forwarded-For header</p>
2309             </dd>
2310             <dt>Type of value:</dt>
2311             <dd>
2312               <p><tt class="REPLACEABLE"><i>0 or one</i></tt></p>
2313             </dd>
2314             <dt>Default value:</dt>
2315             <dd>
2316               <p>0</p>
2317             </dd>
2318             <dt>Notes:</dt>
2319             <dd>
2320               <div class="WARNING">
2321                 <table class="WARNING" border="1" width="90%">
2322                   <tr>
2323                     <td align="center"><b>Warning</b></td>
2324                   </tr>
2325                   <tr>
2326                     <td align="left">
2327                       <p>This is an experimental feature. The syntax is likely to change in future versions.</p>
2328                     </td>
2329                   </tr>
2330                 </table>
2331               </div>
2332               <p>If clients reach Privoxy through another proxy, for example a load balancer, Privoxy can't tell the
2333               client's IP address from the connection. If multiple clients use the same proxy, they will share the same
2334               client tag settings which is usually not desired.</p>
2335               <p>This option lets Privoxy use the X-Forwarded-For header value as client IP address. If the proxy sets
2336               the header, multiple clients using the same proxy do not share the same client tag settings.</p>
2337               <p>This option should only be enabled if Privoxy can only be reached through a proxy and if the proxy can
2338               be trusted to set the header correctly. It is recommended that ACL are used to make sure only trusted
2339               systems can reach Privoxy.</p>
2340               <p>If access to Privoxy isn't limited to trusted systems, this option would allow malicious clients to
2341               change the client tags for other clients or increase Privoxy's memory requirements by registering lots of
2342               client tag settings for clients that don't exist.</p>
2343             </dd>
2344             <dt>Examples:</dt>
2345             <dd>
2346               <table border="0" bgcolor="#E0E0E0" width="90%">
2347                 <tr>
2348                   <td>
2349                     <pre class="SCREEN">      # Allow systems that can reach Privoxy to provide the client
2350       # IP address with a X-Forwarded-For header.
2351       trust-x-forwarded-for 1</pre>
2352                   </td>
2353                 </tr>
2354               </table>
2355             </dd>
2356           </dl>
2357         </div>
2358       </div>
2359       <div class="SECT3">
2360         <h4 class="SECT3"><a name="RECEIVE-BUFFER-SIZE" id="RECEIVE-BUFFER-SIZE">7.6.19. receive-buffer-size</a></h4>
2361         <div class="VARIABLELIST">
2362           <dl>
2363             <dt>Specifies:</dt>
2364             <dd>
2365               <p>The size of the buffer Privoxy uses to receive data from the server.</p>
2366             </dd>
2367             <dt>Type of value:</dt>
2368             <dd>
2369               <p><tt class="REPLACEABLE"><i>Size in bytes</i></tt></p>
2370             </dd>
2371             <dt>Default value:</dt>
2372             <dd>
2373               <p>5000</p>
2374             </dd>
2375             <dt>Notes:</dt>
2376             <dd>
2377               <p>Increasing the receive-buffer-size increases Privoxy's memory usage but can lower the number of
2378               context switches and thereby reduce the cpu usage and potentially increase the throughput.</p>
2379               <p>This is mostly relevant for fast network connections and large downloads that don't require
2380               filtering.</p>
2381               <p>Reducing the buffer size reduces the amount of memory Privoxy needs to handle the request but
2382               increases the number of systemcalls and may reduce the throughput.</p>
2383               <p>A dtrace command like: <span class="QUOTE">"sudo dtrace -n 'syscall::read:return /execname ==
2384               "privoxy"/ { @[execname] = llquantize(arg0, 10, 0, 5, 20); @m = max(arg0)}'"</span> can be used to
2385               properly tune the receive-buffer-size. On systems without dtrace, strace or truss may be used as less
2386               convenient alternatives.</p>
2387               <p>If the buffer is too large it will increase Privoxy's memory footprint without any benefit. As the
2388               memory is (currently) cleared before using it, a buffer that is too large can actually reduce the
2389               throughput.</p>
2390             </dd>
2391             <dt>Examples:</dt>
2392             <dd>
2393               <table border="0" bgcolor="#E0E0E0" width="90%">
2394                 <tr>
2395                   <td>
2396                     <pre class="SCREEN">      # Increase the receive buffer size
2397       receive-buffer-size 32768</pre>
2398                   </td>
2399                 </tr>
2400               </table>
2401             </dd>
2402           </dl>
2403         </div>
2404       </div>
2405     </div>
2406     <div class="SECT2">
2407       <h2 class="SECT2"><a name="TLS" id="TLS">7.7. TLS/SSL</a></h2>
2408       <div class="SECT3">
2409         <h4 class="SECT3"><a name="CA-DIRECTORY" id="CA-DIRECTORY">7.7.1. ca-directory</a></h4>
2410         <div class="VARIABLELIST">
2411           <dl>
2412             <dt>Specifies:</dt>
2413             <dd>
2414               <p>Directory with the CA key, the CA certificate and the trusted CAs file.</p>
2415             </dd>
2416             <dt>Type of value:</dt>
2417             <dd>
2418               <p>Text</p>
2419             </dd>
2420             <dt>Default value:</dt>
2421             <dd>
2422               <p><span class="emphasis"><i class="EMPHASIS">Empty string</i></span></p>
2423             </dd>
2424             <dt>Effect if unset:</dt>
2425             <dd>
2426               <p>Default value is used.</p>
2427             </dd>
2428             <dt>Notes:</dt>
2429             <dd>
2430               <p>This directive specifies the directory where the CA key, the CA certificate and the trusted CAs file
2431               are located.</p>
2432             </dd>
2433             <dt>Examples:</dt>
2434             <dd>
2435               <p>ca-directory /usr/local/etc/privoxy/CA</p>
2436             </dd>
2437           </dl>
2438         </div>
2439       </div>
2440       <div class="SECT3">
2441         <h4 class="SECT3"><a name="CA-CERT-FILE" id="CA-CERT-FILE">7.7.2. ca-cert-file</a></h4>
2442         <div class="VARIABLELIST">
2443           <dl>
2444             <dt>Specifies:</dt>
2445             <dd>
2446               <p>The CA certificate file in ".crt" format.</p>
2447             </dd>
2448             <dt>Type of value:</dt>
2449             <dd>
2450               <p>Text</p>
2451             </dd>
2452             <dt>Default value:</dt>
2453             <dd>
2454               <p><span class="emphasis"><i class="EMPHASIS">cacert.crt</i></span></p>
2455             </dd>
2456             <dt>Effect if unset:</dt>
2457             <dd>
2458               <p>Default value is used.</p>
2459             </dd>
2460             <dt>Notes:</dt>
2461             <dd>
2462               <p>This directive specifies the name of the CA certificate file in ".crt" format.</p>
2463               <p>It can be generated with: openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.crt
2464               -days 3650</p>
2465             </dd>
2466             <dt>Examples:</dt>
2467             <dd>
2468               <p>ca-cert-file root.crt</p>
2469             </dd>
2470           </dl>
2471         </div>
2472       </div>
2473       <div class="SECT3">
2474         <h4 class="SECT3"><a name="CA-KEY-FILE" id="CA-KEY-FILE">7.7.3. ca-key-file</a></h4>
2475         <div class="VARIABLELIST">
2476           <dl>
2477             <dt>Specifies:</dt>
2478             <dd>
2479               <p>The CA key file in ".pem" format.</p>
2480             </dd>
2481             <dt>Type of value:</dt>
2482             <dd>
2483               <p>Text</p>
2484             </dd>
2485             <dt>Default value:</dt>
2486             <dd>
2487               <p><span class="emphasis"><i class="EMPHASIS">cacert.pem</i></span></p>
2488             </dd>
2489             <dt>Effect if unset:</dt>
2490             <dd>
2491               <p>Default value is used.</p>
2492             </dd>
2493             <dt>Notes:</dt>
2494             <dd>
2495               <p>This directive specifies the name of the CA key file in ".pem" format. See the <a href="#CA-CERT-FILE"
2496               target="_top">ca-cert-file</a> for a command to generate it.</p>
2497             </dd>
2498             <dt>Examples:</dt>
2499             <dd>
2500               <p>ca-key-file cakey.pem</p>
2501             </dd>
2502           </dl>
2503         </div>
2504       </div>
2505       <div class="SECT3">
2506         <h4 class="SECT3"><a name="CA-PASSWORD" id="CA-PASSWORD">7.7.4. ca-password</a></h4>
2507         <div class="VARIABLELIST">
2508           <dl>
2509             <dt>Specifies:</dt>
2510             <dd>
2511               <p>The password for the CA keyfile.</p>
2512             </dd>
2513             <dt>Type of value:</dt>
2514             <dd>
2515               <p>Text</p>
2516             </dd>
2517             <dt>Default value:</dt>
2518             <dd>
2519               <p><span class="emphasis"><i class="EMPHASIS">Empty string</i></span></p>
2520             </dd>
2521             <dt>Effect if unset:</dt>
2522             <dd>
2523               <p>Default value is used.</p>
2524             </dd>
2525             <dt>Notes:</dt>
2526             <dd>
2527               <p>This directive specifies the password for the CA keyfile that is used when Privoxy generates
2528               certificates for intercepted requests.</p>
2529               <p>Note that the password is shown on the CGI page so don't reuse an important one.</p>
2530             </dd>
2531             <dt>Examples:</dt>
2532             <dd>
2533               <p>ca-password blafasel</p>
2534             </dd>
2535           </dl>
2536         </div>
2537       </div>
2538       <div class="SECT3">
2539         <h4 class="SECT3"><a name="CERTIFICATE-DIRECTORY" id="CERTIFICATE-DIRECTORY">7.7.5.
2540         certificate-directory</a></h4>
2541         <div class="VARIABLELIST">
2542           <dl>
2543             <dt>Specifies:</dt>
2544             <dd>
2545               <p>Directory to safe generated keys and certificates.</p>
2546             </dd>
2547             <dt>Type of value:</dt>
2548             <dd>
2549               <p>Text</p>
2550             </dd>
2551             <dt>Default value:</dt>
2552             <dd>
2553               <p><span class="emphasis"><i class="EMPHASIS">./certs</i></span></p>
2554             </dd>
2555             <dt>Effect if unset:</dt>
2556             <dd>
2557               <p>Default value is used.</p>
2558             </dd>
2559             <dt>Notes:</dt>
2560             <dd>
2561               <p>This directive specifies the directory where generated TLS/SSL keys and certificates are saved.</p>
2562             </dd>
2563             <dt>Examples:</dt>
2564             <dd>
2565               <p>certificate-directory /usr/local/var/privoxy/certs</p>
2566             </dd>
2567           </dl>
2568         </div>
2569       </div>
2570       <div class="SECT3">
2571         <h4 class="SECT3"><a name="TRUSTED-CAS-FILE" id="TRUSTED-CAS-FILE">7.7.6. trusted-cas-file</a></h4>
2572         <div class="VARIABLELIST">
2573           <dl>
2574             <dt>Specifies:</dt>
2575             <dd>
2576               <p>The trusted CAs file in ".pem" format.</p>
2577             </dd>
2578             <dt>Type of value:</dt>
2579             <dd>
2580               <p>File name relative to ca-directory</p>
2581             </dd>
2582             <dt>Default value:</dt>
2583             <dd>
2584               <p><span class="emphasis"><i class="EMPHASIS">trustedCAs.pem</i></span></p>
2585             </dd>
2586             <dt>Effect if unset:</dt>
2587             <dd>
2588               <p>Default value is used.</p>
2589             </dd>
2590             <dt>Notes:</dt>
2591             <dd>
2592               <p>This directive specifies the trusted CAs file that is used when validating certificates for
2593               intercepted TLS/SSL request.</p>
2594               <p>An example file can be downloaded from <a href="https://curl.haxx.se/ca/cacert.pem" target=
2595               "_top">https://curl.haxx.se/ca/cacert.pem</a>.</p>
2596             </dd>
2597             <dt>Examples:</dt>
2598             <dd>
2599               <p>trusted-cas-file trusted_cas_file.pem</p>
2600             </dd>
2601           </dl>
2602         </div>
2603       </div>
2604     </div>
2605     <div class="SECT2">
2606       <h2 class="SECT2"><a name="WINDOWS-GUI" id="WINDOWS-GUI">7.8. Windows GUI Options</a></h2>
2607       <p><span class="APPLICATION">Privoxy</span> has a number of options specific to the Windows GUI
2608       interface:</p><a name="ACTIVITY-ANIMATION" id="ACTIVITY-ANIMATION"></a>
2609       <p>If <span class="QUOTE">"activity-animation"</span> is set to 1, the <span class="APPLICATION">Privoxy</span>
2610       icon will animate when <span class="QUOTE">"Privoxy"</span> is active. To turn off, set to 0.</p>
2611       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">activity-animation
2612       1</i></span></p><a name="LOG-MESSAGES" id="LOG-MESSAGES"></a>
2613       <p>If <span class="QUOTE">"log-messages"</span> is set to 1, <span class="APPLICATION">Privoxy</span> copies log
2614       messages to the console window. The log detail depends on the <a href="config.html#DEBUG">debug</a>
2615       directive.</p>
2616       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-messages
2617       1</i></span></p><a name="LOG-BUFFER-SIZE" id="LOG-BUFFER-SIZE"></a>
2618       <p>If <span class="QUOTE">"log-buffer-size"</span> is set to 1, the size of the log buffer, i.e. the amount of
2619       memory used for the log messages displayed in the console window, will be limited to <span class=
2620       "QUOTE">"log-max-lines"</span> (see below).</p>
2621       <p>Warning: Setting this to 0 will result in the buffer to grow infinitely and eat up all your memory!</p>
2622       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-buffer-size
2623       1</i></span></p><a name="LOG-MAX-LINES" id="LOG-MAX-LINES"></a>
2624       <p><span class="APPLICATION">log-max-lines</span> is the maximum number of lines held in the log buffer. See
2625       above.</p>
2626       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-max-lines
2627       200</i></span></p><a name="LOG-HIGHLIGHT-MESSAGES" id="LOG-HIGHLIGHT-MESSAGES"></a>
2628       <p>If <span class="QUOTE">"log-highlight-messages"</span> is set to 1, <span class="APPLICATION">Privoxy</span>
2629       will highlight portions of the log messages with a bold-faced font:</p>
2630       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-highlight-messages
2631       1</i></span></p><a name="LOG-FONT-NAME" id="LOG-FONT-NAME"></a>
2632       <p>The font used in the console window:</p>
2633       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-font-name Comic Sans
2634       MS</i></span></p><a name="LOG-FONT-SIZE" id="LOG-FONT-SIZE"></a>
2635       <p>Font size used in the console window:</p>
2636       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">log-font-size
2637       8</i></span></p><a name="SHOW-ON-TASK-BAR" id="SHOW-ON-TASK-BAR"></a>
2638       <p><span class="QUOTE">"show-on-task-bar"</span> controls whether or not <span class="APPLICATION">Privoxy</span>
2639       will appear as a button on the Task bar when minimized:</p>
2640       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">show-on-task-bar
2641       0</i></span></p><a name="CLOSE-BUTTON-MINIMIZES" id="CLOSE-BUTTON-MINIMIZES"></a>
2642       <p>If <span class="QUOTE">"close-button-minimizes"</span> is set to 1, the Windows close button will minimize
2643       <span class="APPLICATION">Privoxy</span> instead of closing the program (close with the exit option on the File
2644       menu).</p>
2645       <p class="LITERALLAYOUT">&nbsp;&nbsp;<span class="emphasis"><i class="EMPHASIS">close-button-minimizes
2646       1</i></span></p><a name="HIDE-CONSOLE" id="HIDE-CONSOLE"></a>
2647       <p>The <span class="QUOTE">"hide-console"</span> option is specific to the MS-Win console version of <span class=
2648       "APPLICATION">Privoxy</span>. If this option is used, <span class="APPLICATION">Privoxy</span> will disconnect
2649       from and hide the command console.</p>
2650       <p class="LITERALLAYOUT">&nbsp;&nbsp;#<span class="emphasis"><i class="EMPHASIS">hide-console</i></span></p>
2651     </div>
2652   </div>
2653   <div class="NAVFOOTER">
2654     <hr align="left" width="100%">
2655     <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
2656       <tr>
2657         <td width="33%" align="left" valign="top"><a href="configuration.html" accesskey="P">Prev</a></td>
2658         <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
2659         <td width="33%" align="right" valign="top"><a href="actions-file.html" accesskey="N">Next</a></td>
2660       </tr>
2661       <tr>
2662         <td width="33%" align="left" valign="top">Privoxy Configuration</td>
2663         <td width="34%" align="center" valign="top">&nbsp;</td>
2664         <td width="33%" align="right" valign="top">Actions Files</td>
2665       </tr>
2666     </table>
2667   </div>
2668 </body>
2669 </html>