ffc8623b79fb4cbb54405e1046087fe1898f51ca
[privoxy.git] / doc / source / user-manual.sgml
1 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
2 <!entity % dummy "IGNORE"> 
3 <!entity supported SYSTEM "supported.sgml">
4 <!entity newfeatures SYSTEM "newfeatures.sgml">
5 <!entity p-intro SYSTEM "privoxy.sgml">
6 <!entity seealso SYSTEM "seealso.sgml">
7 <!entity buildsource SYSTEM "buildsource.sgml">
8 <!entity contacting SYSTEM "contacting.sgml">
9 <!entity history SYSTEM "history.sgml">
10 <!entity copyright SYSTEM "copyright.sgml">
11 <!entity license SYSTEM "license.sgml">
12 <!entity p-version "2.9.15">
13 <!entity p-status "beta">
14 <!entity % p-not-stable "INCLUDE">
15 <!entity % p-stable "IGNORE">
16 <!entity % p-text "IGNORE">        <!-- define we are not a text only doc -->
17 <!entity % p-doc "INCLUDE">        <!-- and we are a formal doc           -->
18 <!entity % p-readme "IGNORE">
19 <!entity % p-config "IGNORE">
20 <!entity % p-supp-userman "IGNORE"> <!-- Omit some from supported.sgml    -->
21 <!entity  my-copy "&copy;">         <!-- kludge for docbook2man           -->
22 ]>
23 <!--
24  File        :  $Source: /cvsroot/ijbswa/current/doc/source/user-manual.sgml,v $
25
26  Purpose     :  user manual
27                 This file belongs into
28                 ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
29                 
30  $Id: user-manual.sgml,v 1.105 2002/05/05 20:26:02 hal9 Exp $
31
32  Copyright (C) 2001, 2002 Privoxy Developers <developers@privoxy.org>
33  See LICENSE.
34
35  ========================================================================
36  NOTE: Please read developer-manual/documentation.html before touching 
37  anything in this, or other Privoxy documentation.
38  ========================================================================
39
40 -->
41
42 <article id="index">
43 <artheader>
44
45 <title>Privoxy User Manual</title>
46
47 <pubdate>
48  <subscript>
49 <!-- Completely the wrong markup, but very little is allowed  -->
50 <!-- in this part of an article. FIXME -->
51  <link linkend="copyright">Copyright</link> &my-copy; 2001, 2002 by 
52  <ulink url="http://www.privoxy.org">Privoxy Developers</ulink>
53  </subscript>
54 </pubdate>
55
56 <pubdate>$Id: user-manual.sgml,v 1.105 2002/05/05 20:26:02 hal9 Exp $</pubdate>
57
58 <!--
59
60 Note: the following should generate a separate page, and a live link to it,
61 all nicely done. But it doesn't for some mysterious reason. Please leave
62 commented unless it can be fixed proper. For the time being, the
63 copyright/license declarations will be in their own sgml.
64
65 Hal.
66
67 <copyright>
68   <year>2001</year>
69   <year>2002</year>
70   <holder>Privoxy Developers</holder>
71 </copyright>
72
73 <legalnotice id="legalnotice"> 
74  <para>
75   text goes here ........
76  </para>
77 </legalnotice>
78
79 -->
80
81
82 <abstract>
83
84 <![%dummy;[
85  <para>
86  <comment>
87   This is here to keep vim syntax file from breaking :/
88   If I knew enough to fix it, I would.
89   PLEASE DO NOT REMOVE! HB: hal@foobox.net
90  </comment>
91  </para>
92 ]]>
93
94  <para>
95   The user manual gives users information on how to install, configure and use
96   <ulink
97   url="http://www.privoxy.org/"><application>Privoxy</application></ulink>.
98  </para>
99
100 <!-- Include privoxy.sgml boilerplate: -->
101  &p-intro;
102 <!-- end privoxy.sgml -->
103
104  <para>
105   You can find the latest version of the user manual at  <ulink
106   url="http://www.privoxy.org/user-manual/">http://www.privoxy.org/user-manual/</ulink>.
107   Please see the <ulink url="contact.html">Contact section</ulink> on how to
108   contact the developers.
109  </para>
110
111 <!--   <para> -->
112 <!--    Feel free to send a note to the developers at <email>ijbswa-developers@lists.sourceforge.net</email>. -->
113 <!--   </para> -->
114 </abstract>
115
116 </artheader>
117
118 <!--   ~~~~~       New section      ~~~~~     -->
119 <sect1 label="1" id="introduction"><title>Introduction</title>
120 <para>
121  This documentation is included with the current &p-status; version of
122  <application>Privoxy</application>, v.&p-version;<![%p-not-stable;[, 
123  and is mostly complete at this point. The most up to date reference for the
124  time being is still the comments in the source files and in the individual
125  configuration files. Development of version 3.0 is currently nearing
126  completion, and includes many significant changes and enhancements over
127  earlier versions. The target release date for
128  stable v3.0 is <quote>soon</quote> ;-)]]>.
129 </para>
130
131 <!-- include only in non-stable versions -->
132 <![%p-not-stable;[
133 <para>
134  Since this is a &p-status; version, not all new features are well tested. This
135  documentation may be slightly out of sync as a result (especially with 
136  CVS sources). And there <emphasis>may be</emphasis> bugs, though hopefully
137  not many! 
138 </para>
139 ]]>
140
141 <!--   ~~~~~       New section      ~~~~~     -->
142 <sect2 id="features"><title>Features</title>
143 <para>
144  In addition to <application>Internet Junkbuster's</application> traditional
145  features of ad and banner blocking and cookie management,
146  <application>Privoxy</application> provides new features<![%p-not-stable;[,
147  some of them currently under development]]>:
148 </para>
149 <!-- Include newfeatures.sgml boilerplate here: -->
150  &newfeatures;
151 <!-- end boilerplate -->
152 </sect2>
153
154 </sect1>
155
156 <!--  ~  End section  ~  -->
157
158
159 <!--   ~~~~~       New section      ~~~~~     -->
160 <sect1 id="installation"><title>Installation</title>
161
162 <para>
163  <application>Privoxy</application> is available both in convenient pre-compiled
164  packages for a wide range of operating systems, and as raw source code.
165  For most users, we recommend using the packages, which can be downloaded from our
166  <ulink url="http://sourceforge.net/projects/ijbswa/">Privoxy Project
167  Page</ulink>.
168 </para>
169
170 <para>
171  Note: If you have a previous <application>Junkbuster</application> or
172  <application>Privoxy</application> installation on your system, you
173  will need to remove it.  Some platforms do this for you as part 
174  of their installation procedure. (See below for your platform).
175  In any case <emphasis>be sure to backup your old configuration
176  if it is valuable to you.</emphasis> See the
177  <link linkend="upgradersnote">note to upgraders</link> section
178  below.
179 </para>
180
181 <!--   ~~~~~       New section      ~~~~~     --> 
182 <sect2 id="installation-packages"><title>Binary Packages</title>
183 <para>
184 How to install the binary packages depends on your operating system:
185 </para>
186
187 <!--   ~~~~~       New section      ~~~~~     -->
188 <sect3 id="installation-pack-rpm"><title>Red Hat and SuSE RPMs</title>
189
190 <para>
191  RPMs can be installed with <literal>rpm -Uvh privoxy-&p-version;-1.rpm</literal>,
192  and will use <filename>/etc/privoxy</filename> for the location 
193  of configuration files.
194 </para>
195
196 <para>
197  Note that on Red Hat, <application>Privoxy</application> will
198  <emphasis>not</emphasis> be automatically started on system boot. You will
199  need to enable that using <command>chkconfig</command>,
200  <command>ntsysv</command>, or similar methods. Note that SuSE will 
201 automatically start Privoxy in the boot process.
202 </para>
203
204 <para>
205  If you have problems with failed dependencies, try rebuilding the SRC RPM: 
206  <literal>rpm --rebuild privoxy-&p-version;-1.src.rpm;</literal>. This 
207  will use your locally installed libraries and RPM version. 
208 </para>
209
210 <para>
211  Also note that if you have a <application>Junkbuster</application> RPM installed
212  on your system, you need to remove it first, because the packages conflict.
213  Otherwise, RPM will try to remove <application>Junkbuster</application>
214  automatically, before installing <application>Privoxy</application>.
215 </para>
216 </sect3>
217
218 <!--   ~~~~~       New section      ~~~~~     -->
219 <sect3 id="installation-deb"><title>Debian</title>
220 <para>
221  FIXME.
222 </para>
223 </sect3>
224
225 <!--   ~~~~~       New section      ~~~~~     -->
226 <sect3 id="installation-pack-win"><title>Windows</title>
227
228 <para>
229  Just double-click the installer, which will guide you through
230  the installation process. You will find the configuration files
231  in the same directory as you installed Privoxy in. We do not
232  use the registry of Windows. 
233 </para>
234 </sect3>
235
236 <!--   ~~~~~       New section      ~~~~~     -->
237 <sect3 id="installation-pack-bintgz"><title>Solaris, NetBSD, FreeBSD, HP-UX</title>
238
239 <para>
240  Create a new directory, <literal>cd</literal> to it, then unzip and
241  untar the archive. For the most part, you'll have to figure out where
242  things go. FIXME.
243 </para>
244 </sect3>
245
246 <!--   ~~~~~       New section      ~~~~~     -->
247 <sect3 id="installation-os2"><title>OS/2</title>
248
249 <para>
250  First, make sure that no previous installations of
251  <application>Junkbuster</application> and / or 
252  <application>Privoxy</application> are left on your
253  system. You can do this by 
254 </para>
255
256 <para>
257  Then, just double-click the WarpIN self-installing archive, which will
258  guide you through the installation process. A shadow of the
259  <application>Privoxy</application> executable will be placed in your
260  startup folder so it will start automatically whenever OS/2 starts.
261 </para>
262
263 <para>
264  The directory you choose to install <application>Privoxy</application>
265  into will contain all of the configuration files.
266 </para>
267 </sect3>
268
269 <!--   ~~~~~       New section      ~~~~~     -->
270 <sect3 id="installation-mac"><title>Max OSX</title>
271 <para>
272  Unzip the downloaded package (you can either double-click on the file
273  in the finder, or on the desktop if you downloaded it there).  Then,
274  double-click on the package installer icon and follow the installation
275  process.
276  <application>Privoxy</application> will be installed in the subdirectory
277  <literal>/Applications/Privoxy.app</literal>.
278  <application>Privoxy</application> will set itself up to start 
279  automatically on system bring-up via
280  <literal>/System/Library/StartupItems/Privoxy</literal>.
281 </para>
282 </sect3>
283
284 <!--   ~~~~~       New section      ~~~~~     -->
285 <sect3 id="installation-amiga"><title>AmigaOS</title>
286 <para>
287  Copy and then unpack the <filename>lha</filename> archive to a suitable location. 
288  All necessary files will be installed into <application>Privoxy</application>
289  directory, including all configuration and log files. To uninstall, just 
290  remove this directory.
291 </para>
292 <para>
293  Start <application>Privoxy</application> (with RUN &lt;&gt;NIL:) in your
294  <filename>startnet</filename> script (AmiTCP), in
295  <filename>s:user-startup</filename> (RoadShow), as startup program in your
296  startup script (Genesis), or as startup action (Miami and MiamiDx). 
297  <application>Privoxy</application> will automatically quit when you quit your
298  TCP/IP stack (just ignore the harmless warning your TCP/IP stack may display that
299  <application>Privoxy</application> is still running).
300 </para>
301 </sect3>
302 </sect2>
303
304 <!--   ~~~~~       New section      ~~~~~     -->
305 <sect2 id="installation-source"><title>Building from Source</title>
306
307 <para>
308  The most convenient way to obtain the <application>Privoxy</application> sources
309  is to download the source tarball from our <ulink url="http://sf.net/projects/ijbswa/">project
310  page</ulink>.
311 </para>
312
313 <para>
314  If you like to live on the bleeding edge and are not afraid of using
315  possibly unstable development versions, you can check out the up-to-the-minute
316  version directly from <ulink url="http://sourceforge.net/cvs/?group_id=11118">the
317  CVS repository</ulink> or simply download <ulink
318  url="http://cvs.sourceforge.net/cvstarballs/ijbswa-cvsroot.tar.gz">the nightly CVS
319  tarball.</ulink>
320 </para>
321
322 <!-- include buildsource.sgml boilerplate: -->
323 &buildsource;
324 <!-- end boilerplate -->
325
326 </sect2>
327
328 </sect1>
329
330 <!--  ~  End section  ~  -->
331
332 <!--   ~~~~~       New section      ~~~~~     -->
333 <sect1 id="upgradersnote">
334 <title>Note to Upgraders</title>
335 <para>
336  There are very significant changes from earlier 
337  <application>Junkbuster</application> versions to the current
338  <application>Privoxy</application>. The number, names, syntax, and
339  purposes of configuration files have substantially  changed.
340  <application>Junkbuster 2.0.x</application> configuration
341  files will not migrate, <application>Junkbuster 2.9.x</application>
342  and <application>Privoxy</application> configurations will need to be
343  ported. The functionalities of the old <filename>blockfile</filename>,
344  <filename>cookiefile</filename> and <filename>imagelist</filename> 
345  are now combined into the <ulink url="actions-file.html"><quote>actions
346  files</quote></ulink>.  
347  <filename>default.action</filename>, is the main actions file. Local
348  exceptions should best be put into <filename>user.action</filename>.
349 </para>
350 <para>
351  A <ulink url="filter-file.html"><quote>filter file</quote></ulink> (typically
352  <filename>default.filter</filename>) is new as of <application>Privoxy
353  2.9.x</application>, and provides some of the new sophistication (explained
354  below). <filename>config</filename> is much the same as before.
355 </para>
356 <para>
357  If upgrading from a 2.0.x version, you will have to use the new config 
358  files, and possibly adapt any personal rules from your older files.
359  When porting personal rules over from the old <filename>blockfile</filename>
360  to the new actions files, please note that even the pattern syntax has
361  changed. If upgrading from 2.9.x development versions, it is still
362  recommended to use the new configuration files.
363 </para>
364 <para>
365  A quick list of things to be aware of before upgrading: 
366 </para>
367
368 <para>
369  <itemizedlist>
370
371  <listitem>
372   <para>
373    The default listening port is now 8118 due to a conflict with another 
374    service (NAS).
375   </para>
376  </listitem>  
377  <listitem>
378   <para>  
379     Some installers may remove earlier versions completely. Save any 
380     important configuration files!
381   </para>
382  </listitem>
383  <listitem>
384   <para>
385    <application>Privoxy</application> is controllable with a web browser 
386    at the special URL: <ulink
387    url="http://config.privoxy.org/">http://config.privoxy.org/</ulink>
388    (Shortcut: <ulink url="http://p.p/">http://p.p/</ulink>). Many
389    aspects of configuration can be done here, including temporarily disabling
390    <application>Privoxy</application>.
391   </para>
392  </listitem> 
393  <listitem>
394   <para>
395    The primary configuration file for cookie management, ad and banner 
396    blocking, and many other aspects of <application>Privoxy</application>
397    configuration is in the <ulink url="actions-file.html">actions
398    files</ulink>. It is strongly recommended to become familiar with the new
399    actions concept below, before modifying these files. Locally defined rules 
400    should go into <filename>user.action</filename>.
401   </para>
402  </listitem> 
403   <listitem>
404   <para>
405 <!-- I think it is best to keep this somewhat vague, in case  -->
406 <!-- the situation changes under our feet. -->   
407    Some installers may not automatically start
408    <application>Privoxy</application> after installation.
409   </para>
410  </listitem> 
411
412  </itemizedlist>
413 </para>
414 </sect1>
415
416 <!--   ~~~~~       New section      ~~~~~     -->
417 <sect1 id="quickstart"><title>Quickstart to Using <application>Privoxy</application></title>
418 <para>
419  <itemizedlist>
420
421  <listitem>
422   <para>
423    If upgrading, please back up any configuration files. See 
424    the <link linkend="upgradersnote">Note to Upgraders</link> Section.
425   </para>
426 </listitem> 
427  <listitem>
428   <para>
429   Install <application>Privoxy</application>. See the <link
430   linkend="installation">Installation Section</link> for platform specific
431   information. 
432  </para>
433  </listitem>  
434
435  <listitem>
436   <para>
437   Start <application>Privoxy</application>, if the installation program has
438   not done this already. See the section <link linkend="startup">Starting
439   <application>Privoxy</application></link>.
440   </para>
441  </listitem>  
442
443  <listitem>
444   <para>
445   Set your browser to use <application>Privoxy</application> as HTTP and HTTPS
446   proxy by setting the proxy configuration for address of
447   <literal>localhost</literal> and port <literal>8118</literal>.
448   (<application>Junkbuster</application> and earlier versions of
449   <application>Privoxy</application> used port 8000.) See the section <link
450   linkend="startup">Starting <application>Privoxy</application></link>.
451   </para>
452  </listitem>  
453
454  <listitem>
455   <para>
456     Flush your browser's caches, to remove any cached ad images.
457   </para>
458 </listitem> 
459
460  <listitem>
461   <para>
462   Enjoy surfing with enhanced comfort and privacy.  You may want to customize the
463   <link linkend="actions-file"><filename>user.action</filename></link> file to
464   personalize your new browsing experience. See the <link
465   linkend="configuration">Configuration section</link> for more configuration
466   options, and how to further customize your installation.
467   </para>
468  </listitem> 
469  
470  <listitem>
471   <para>
472    If you experience problems with sites that <quote>misbehave</quote>, see
473    the <link linkend="actionsanat">Anatomy of an Action</link> section in the
474    Appendix.
475   </para>
476  </listitem> 
477  
478  <listitem>
479   <para>
480    Please see the section <link linkend="contact">Contacting the
481    Developers</link> on how to report bugs or problems with websites or to get
482    help. 
483   </para>
484  </listitem> 
485
486  </itemizedlist>
487 </para>
488
489 </sect1>
490
491 <!--   ~~~~~       New section      ~~~~~     -->
492 <sect1 id="startup">
493 <title>Starting <application>Privoxy</application></title>
494 <para>
495  Before launching <application>Privoxy</application> for the first time, you
496  will want to configure your browser(s) to use
497  <application>Privoxy</application> as a HTTP and HTTPS proxy. The default is
498  localhost for the proxy address, and port 8118 (earlier versions used port
499  8000). This is the one configuration step that must be done!
500 </para>
501  
502 <para> 
503  With <application>Netscape</application> (and
504  <application>Mozilla</application>), this can be set under <literal>Edit
505  -&gt; Preferences -&gt; Advanced -&gt; Proxies -&gt; HTTP Proxy</literal>.
506  For <application>Internet Explorer</application>: <literal>Tools -&gt;
507  Internet Properties -&gt; Connections -&gt; LAN Setting</literal>. Then,
508  check <quote>Use Proxy</quote> and fill in the appropriate info (Address:
509  localhost, Port: 8118). Include if HTTPS proxy support too.
510 </para>
511
512 <para>
513  After doing this, flush your browser's disk and memory caches to force a
514  re-reading of all pages and to get rid of any ads that may be cached. You 
515  are now ready to start enjoying the benefits of using
516  <application>Privoxy</application>!
517 </para>
518
519 <para>
520  <application>Privoxy</application> is typically started by specifying the
521  main configuration file to be used on the command line. If no configuration
522  file is specified on the command line, <application>Privoxy</application>
523  will look for a file named <filename>config</filename> in the current
524  directory. Except on Win32 where it will try <filename>config.txt</filename>.
525 </para>
526
527 <sect2 id="start-redhatdebian">
528 <title>RedHat and Debian</title>
529 <para>
530 We use a script. Note that RedHat does not start Privoxy upon booting per
531 default. It will use the file <filename>/etc/privoxy/config</filename> as its
532 main configuration file. FIXME: Debian??
533 </para>
534 <para>
535  <screen>
536  # /etc/rc.d/init.d/privoxy start
537 </screen>
538 </para>
539 </sect2>
540
541 <sect2 id="start-suse">
542 <title>SuSE</title>
543 <para>
544 We use a script. It will use the file <filename>/etc/privoxy/config</filename>
545 as its main configuration file. Note that SuSE starts Privoxy upon booting
546 your PC.
547 </para>
548 <para>
549  <screen>
550  # rcprivoxy start
551 </screen>
552 </para>
553 </sect2>
554
555 <sect2 id="start-windows">
556 <title>Windows</title>
557 <para>
558 Click on the Privoxy Icon to start Privoxy. If no configuration file is
559  specified on the command line, <application>Privoxy</application> will look
560  for a file named <filename>config.txt</filename>. Note that Windows will
561  automatically start Privoxy upon booting you PC.
562 </para>
563 </sect2>
564
565 <sect2 id="start-unices">
566 <title>Solaris, NetBSD, FreeBSD, HP-UX and others</title>
567 <para>
568 Example Unix startup command:
569 </para>
570 <para>
571  <screen>
572  # /usr/sbin/privoxy /etc/privoxy/config
573 </screen>
574 </para>
575 </sect2>
576
577 <sect2 id="start-os2">
578 <title>OS/2</title>
579 <para>
580 FIXME.
581 </para>
582 </sect2>
583
584 <sect2 id="start-macosx">
585 <title>MAX OSX</title>
586 <para>
587 FIXME.
588 </para>
589 </sect2>
590
591
592 <sect2 id="start-amigaos">
593 <title>AmigaOS</title>
594 <para>
595 FIXME.
596 </para>
597 </sect2>
598
599 <!--
600
601 <para>
602  See the section <link linkend="cmdoptions">Command line options</link> for
603  furher info.
604 </para>
605
606 must find a better place for this paragraph
607
608 <para>
609  The included default configuration files should give a reasonable starting
610  point. Most of the per site configuration is done in the
611  <ulink url="actions-file.html"><quote>actions</quote></ulink> files. These are
612  where various cookie actions are defined, ad and banner blocking, and other
613  aspects of <application>Privoxy</application> configuration. There are several
614  such files included, with varying levels of aggressiveness. 
615 </para>
616
617 <para>
618  You will probably want to keep an eye out for sites for which you may prefer
619  persistent cookies, and add these to your actions configuration as needed. By
620  default, most of these will be accepted only during the current browser
621  session (aka <quote>session cookies</quote>), unless you add them to the
622  configuration. If you want the browser to handle this instead, you will need
623  to edit <filename>user.action</filename> (or through the web based interface)
624  and disable this feature. If you use more than one browser, it would make
625  more sense to let <application>Privoxy</application> handle this. In which
626  case, the browser(s) should be set to accept all cookies.
627 </para>
628
629 <para>
630  Another feature where you will probably want to define exceptions for trusted
631  sites is the popup-killing (through the <ulink
632  url="actions-file.html#KILL-POPUPS"><quote>+kill-popups</quote></ulink> and
633  <ulink
634  url="actions-file.html#FILTER-POPUPS"><quote>+filter{popups}</quote></ulink>
635  actions), because your favorite shopping, banking, or leisure site may need
636  popups (explained below). 
637 </para>
638
639 <para>
640  <application>Privoxy</application> is HTTP/1.1 compliant,  but not all of
641  the optional 1.1 features are as yet supported. In the unlikely event that
642  you experience inexplicable problems with browsers that use HTTP/1.1 per default
643  (like <application>Mozilla</application> or recent versions of I.E.), you might
644  try to force HTTP/1.0 compatibility. For Mozilla, look under <literal>Edit -&gt;
645  Preferences -&gt; Debug -&gt; Networking</literal>.
646  Alternatively, set the <quote>+downgrade-http-version</quote> config option in
647  <filename>default.action</filename> which will downgrade your browser's HTTP
648  requests from HTTP/1.1 to HTTP/1.0 before processing them.
649 </para>
650
651 <para>
652  After running <application>Privoxy</application> for a while, you can 
653  start to fine tune the configuration to suit your personal, or site, 
654  preferences and requirements. There are many, many aspects that can 
655  be customized. <quote>Actions</quote> 
656  can be adjusted by pointing your browser to 
657  <ulink url="http://config.privoxy.org/">http://config.privoxy.org/</ulink>
658  (shortcut: <ulink url="http://p.p/">http://p.p/</ulink>), 
659  and then follow the link to <quote>View &#38; Change the Current Configuration</quote>. 
660  (This is an internal page and does not require Internet access.)
661 </para>
662
663 <para>
664  In fact, various aspects of <application>Privoxy</application>
665  configuration can be viewed from this page, including 
666  current configuration parameters, source code version numbers, 
667  the browser's request headers, and <quote>actions</quote> that apply 
668  to a given URL. In addition to the actions file 
669  editor mentioned above, <application>Privoxy</application> can also 
670  be turned <quote>on</quote> and <quote>off</quote> (toggled) from this page.
671 </para>
672
673 <para>
674  If you encounter problems, try loading the page without
675  <application>Privoxy</application>. If that helps, enter the URL where
676  you have the problems into <ulink url="http://p.p/show-url-info">the browser
677  based rule tracing utility</ulink>. See which rules apply and why, and
678  then try turning them off for that site one after the other, until the problem
679  is gone. When you have found the culprit, you might want to turn the rest on
680  again.
681 </para>
682
683 <para>
684  If the above paragraph sounds gibberish to you, you might want to <ulink
685  url="actions-file.html#ACTIONSFILE">read more about the actions concept</ulink>
686  or even dive deep into the <ulink url="appendix.html#ACTIONSANAT">Appendix
687  on actions</ulink>.
688 </para>
689
690 <para>
691  If you can't get rid of the problem at all, think you've found a bug in
692  Privoxy, want to propose a new feature or smarter rules, please see the 
693  section <ulink url="contact.html"><quote>Contacting the
694  Developers</quote></ulink> below. 
695 </para>
696
697 -->
698
699 <!--   ~~~~~       New section      ~~~~~     -->
700 <sect2 id="cmdoptions">
701 <title>Command Line Options</title>
702 <para>
703  <application>Privoxy</application> may be invoked with the following
704  command-line options:
705 </para>
706
707 <para>
708  <itemizedlist>
709
710  <listitem>
711   <para>
712     <emphasis>--version</emphasis>
713   </para>
714   <para>
715      Print version info and exit. Unix only.
716   </para>
717  </listitem> 
718  <listitem>
719   <para>
720     <emphasis>--help</emphasis>
721   </para>
722   <para>
723    Print short usage info and exit. Unix only.
724   </para>
725  </listitem> 
726  <listitem>
727   <para>
728    <emphasis>--no-daemon</emphasis>
729   </para>
730   <para>
731    Don't become a daemon, i.e. don't fork and become process group
732    leader, and don't detach from controlling tty. Unix only.
733   </para>
734  </listitem> 
735  <listitem>
736   <para>
737    <emphasis>--pidfile FILE</emphasis>
738   
739   </para>
740   <para>
741    On startup, write the process ID to <emphasis>FILE</emphasis>. Delete the
742    <emphasis>FILE</emphasis> on exit. Failure to create or delete the
743    <emphasis>FILE</emphasis> is non-fatal. If no <emphasis>FILE</emphasis>
744    option is given, no PID file will be used. Unix only.
745   </para>
746  </listitem> 
747  <listitem>
748   <para>
749    <emphasis>--user USER[.GROUP]</emphasis>
750   
751   </para>
752   <para>
753    After (optionally) writing the PID file, assume the user  ID  of
754    <emphasis>USER</emphasis>, and if included the GID of GROUP.  Exit if the
755    privileges are not sufficient to do so. Unix only.
756   </para>
757  </listitem> 
758  <listitem>
759   <para>
760     <emphasis>configfile</emphasis>
761   </para>
762   <para>
763     If no <emphasis>configfile</emphasis> is included on the command line, 
764     <application>Privoxy</application> will look for a file named 
765     <quote>config</quote> in the current directory (except on Win32 
766     where it will look for <quote>config.txt</quote> instead). Specify 
767     full path to avoid confusion. If no config file is found, 
768     <application>Privoxy</application> will fail to start.
769   </para>
770  </listitem> 
771
772  </itemizedlist>
773 </para>
774
775 </sect2>
776
777 </sect1>
778
779 <!--  ~  End section  ~  -->
780
781
782 <!--   ~~~~~       New section      ~~~~~     -->
783 <sect1 id="configuration"><title><application>Privoxy</application> Configuration</title>
784  <para>
785   All <application>Privoxy</application> configuration is stored  
786   in text files. These files can be edited with a text editor.
787   Many important aspects of <application>Privoxy</application> can 
788   also be controlled easily with a web browser.
789  </para>
790
791
792 <!--   ~~~~~       New section      ~~~~~     -->
793
794 <sect2>
795 <title>Controlling <application>Privoxy</application> with Your Web Browser</title>
796 <para>
797  <application>Privoxy</application>'s user interface can be reached through the special 
798  URL <ulink url="http://config.privoxy.org/">http://config.privoxy.org/</ulink>
799  (shortcut: <ulink url="http://p.p/">http://p.p/</ulink>), 
800  which is a built-in page and works without Internet access.
801  You will see the following section:
802
803 </para>
804
805 <!-- Needs to be put in a table and colorized  -->
806 <screen>
807  <msgtext>
808  <bridgehead renderas="sect2">Privoxy Menu</bridgehead>
809
810  <simplelist>
811  <member>
812   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/show-status">View & change the current configuration</ulink>
813  </member>
814  <member>
815   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/show-version">View the source code version numbers</ulink>
816  </member>
817  <member>
818   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/show-request">View the request headers.</ulink>
819  </member>
820  <member>
821   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/show-url-info">Look up which actions apply to a URL and why</ulink>
822  </member>
823  <member>
824   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/toggle">Toggle Privoxy on or off</ulink>
825  </member>
826  </simplelist>
827  </msgtext>
828 </screen>
829
830
831 <para>
832  This should be self-explanatory. Note the first item leads to an editor for the
833  <link linkend="actions-file">actions files</link>, which is where the ad, banner,
834  cookie, and URL blocking magic is configured as well as other advanced features of
835  <application>Privoxy</application>. This is an easy way to adjust various
836  aspects of <application>Privoxy</application> configuration. The actions
837  file, and other configuration files, are explained in detail below. 
838 </para>
839
840 <para>
841  <quote>Toggle Privoxy On or Off</quote> is handy for sites that might 
842  have problems with your current actions and filters. You can in fact use
843  it as a test to see whether it is <application>Privoxy</application> 
844  causing the problem or not. <application>Privoxy</application> continues 
845  to run as a proxy in this case, but all manipulation is disabled, i.e.
846  <application>Privoxy</application> acts like a normal forwarding proxy. There
847  is even a toggle <link linkend="bookmarklets">Bookmarklet</link> offered, so
848  that you can toggle <application>Privoxy</application> with one click from
849  your browser.
850 </para>
851
852 </sect2>
853
854 <!--  ~  End section  ~  -->
855
856
857
858
859 <!--   ~~~~~       New section      ~~~~~     -->
860
861 <sect2 id="confoverview">
862 <title>Configuration Files Overview</title>
863 <para>
864  For Unix, *BSD and Linux, all configuration files are located in
865  <filename>/etc/privoxy/</filename> by default. For MS Windows, OS/2, and
866  AmigaOS these are all in the same directory as the 
867  <application>Privoxy</application> executable. <![%p-not-stable;[ The name
868  and number of configuration files has changed from previous versions, and is
869  subject to change as development progresses.]]>
870 </para>
871
872 <para>
873  The installed defaults provide a reasonable starting point, though 
874  some settings may be aggressive by some standards. For the time being, the
875  principle configuration files are:
876 </para>
877
878 <para>
879  <itemizedlist>
880
881   <listitem>
882    <para>
883      The <link linkend="config">main configuration file</link> is named <filename>config</filename>
884      on Linux, Unix, BSD, OS/2, and AmigaOS and <filename>config.txt</filename>
885      on Windows. This is a required file.
886    </para>
887   </listitem> 
888
889   <listitem>
890    <para>
891     <filename>default.action</filename> (the main <link linkend="actions-file">actions file</link>)
892     is used to define which <quote>actions</quote> relating to banner-blocking, images, pop-ups,
893     content modification, cookie handling etc should be applied by default. It also defines many
894     exceptions (both positive and negative) from this default set of actions that enable 
895     <application>Privoxy</application> to selectively eliminate the junk, and only the junk, on
896     as many websites as possible.
897    </para>
898    <para>
899     Multiple actions files may be defined in <filename>config</filename>. These 
900     are processed in the order they are defined. Local customizations and locally 
901     preferred exceptions to the default policies  as defined in
902     <filename>default.action</filename> (which you will most propably want
903     to define sooner or later) are probably best applied in
904     <filename>user.action</filename>, where you can preserve them across
905     upgrades. <filename>standard.action</filename> is for
906     <application>Privoxy's</application> internal use.
907    </para>
908    <para>    
909     There is also a web based editor that can be accessed from
910     <ulink
911     url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>
912     (Shortcut: <ulink
913     url="http://p.p/show-status">http://p.p/show-status</ulink>) for the
914     various actions files. 
915    </para>
916   </listitem> 
917
918   <listitem>
919    <para>
920     <filename>default.filter</filename> (the <link linkend="filter-file">filter
921     file</link>) can be used to re-write the raw page content, including
922     viewable text as well as embedded HTML and JavaScript, and whatever else
923     lurks on any given web page. The filtering jobs are only pre-defined here;
924     whether to apply them or not is up to the actions files.
925    </para>
926   </listitem> 
927
928  </itemizedlist>
929 </para>
930
931 <para>
932  All files use the <quote><literal>#</literal></quote> character to denote a
933  comment (the rest of the line will be ignored) and understand line continuation
934  through placing a backslash ("<literal>\</literal>") as the very last character
935  in a line. If the <literal>#</literal> is preceded by a backslash, it looses
936  its special function. Placing a <literal>#</literal> in front of an otherwise
937  valid configuration line to prevent it from being interpreted is called "commenting
938  out" that line.
939 </para>
940
941 <para>
942  The actions files and <filename>default.filter</filename> 
943  can use Perl style <link linkend="regex">regular expressions</link> for
944  maximum flexibility. 
945 </para>
946
947 <para>
948  After making any changes, there is no need to restart
949  <application>Privoxy</application> in order for the changes to take
950  effect. <application>Privoxy</application> detects such changes 
951  automatically. Note, however, that it may take one or two additional
952  requests for the change to take effect. When changing the listening address
953  of <application>Privoxy</application>, these <quote>wake up</quote> requests
954  must obviously be sent to the <emphasis>old</emphasis> listening address.
955 </para>
956
957 <![%p-not-stable;[
958 <para>
959  While under development, the configuration content is subject to change. 
960  The below documentation may not be accurate by the time you read this. 
961  Also, what constitutes a <quote>default</quote> setting, may change, so 
962  please check all your configuration files on important issues.
963 </para>
964 ]]>
965
966 </sect2>
967 </sect1>
968 <!--  ~  End section  ~  -->
969
970
971 <!--   ~~~~~~~~       New section Header    ~~~~~~~~~     -->
972
973 <sect1 id="config">
974 <title>The Main Configuration File</title>
975
976 <para>
977  Again, the main configuration file is named <filename>config</filename> on
978  Linux/Unix/BSD and OS/2, and <filename>config.txt</filename> on Windows.
979  Configuration lines consist of an initial keyword followed by a list of
980  values, all separated by whitespace (any number of spaces or tabs). For
981  example:
982 </para>
983
984 <para>
985  <literal>
986   <msgtext> 
987    <literallayout>
988   <emphasis>confdir /etc/privoxy</emphasis></literallayout>
989   </msgtext>
990  </literal> 
991 </para>
992
993 <para>
994  Assigns the value <literal>/etc/privoxy</literal> to the option
995  <literal>confdir</literal> and thus indicates that the configuration
996  directory is named <quote>/etc/privoxy/</quote>.
997 </para>
998
999 <para>
1000  All options in the config file except for <literal>confdir</literal> and
1001  <literal>logdir</literal> are optional. Watch out in the below description
1002  for what happens if you leave them unset.
1003 </para>
1004
1005 <para>
1006  The main config file controls all aspects of <application>Privoxy</application>'s
1007  operation that are not location dependent (i.e. they apply universally, no matter
1008  where you may be surfing).
1009 </para>
1010
1011
1012 <!--   ~~~~~       New section      ~~~~~     -->
1013
1014 <sect2 id="conf-log-loc">
1015 <title>Configuration and Log File Locations</title>
1016
1017 <para>
1018  <application>Privoxy</application> can (and normally does) use a number of
1019  other files for additional configuration, help and logging.
1020  This section of the configuration file tells <application>Privoxy</application>
1021  where to find those other files. 
1022 </para>
1023
1024 <para>
1025  The user running Privoxy, must have read permission for all 
1026  configuration files, and write permission to any files that would 
1027  be modified, such as log files.
1028 </para>
1029
1030 <sect3 renderas="sect4" id="confdir"><title>confdir</title>
1031
1032 <variablelist>
1033  <varlistentry>
1034   <term>Specifies:</term>
1035   <listitem>
1036    <para>The directory where the other configuration files are located</para>
1037   </listitem>
1038  </varlistentry>
1039  <varlistentry>
1040   <term>Type of value:</term>
1041   <listitem>
1042    <para>Path name</para>
1043   </listitem>
1044  </varlistentry>
1045  <varlistentry>
1046   <term>Default value:</term>
1047   <listitem>
1048    <para>/etc/privoxy (Unix) <emphasis>or</emphasis> <application>Privoxy</application> installation dir (Windows) </para>
1049   </listitem>
1050  </varlistentry>
1051  <varlistentry>
1052   <term>Effect if unset:</term>
1053   <listitem>
1054    <para><emphasis>Mandatory</emphasis></para>
1055   </listitem>
1056  </varlistentry>
1057  <varlistentry>
1058   <term>Notes:</term>
1059   <listitem>
1060    <para>
1061     No trailing <quote><literal>/</literal></quote>, please
1062    </para>
1063    <para>
1064     When development goes modular and multi-user, the blocker, filter, and
1065     per-user config will be stored in subdirectories of <quote>confdir</quote>.
1066     For now, the configuration directory structure is flat, except for 
1067     <filename>confdir/templates</filename>, where the HTML templates for CGI 
1068     output reside (e.g. <application>Privoxy's</application> 404 error page). 
1069    </para>
1070   </listitem>
1071  </varlistentry>
1072 </variablelist>
1073 </sect3>
1074
1075
1076 <sect3 renderas="sect4" id="logdir"><title>logdir</title>
1077
1078 <variablelist>
1079  <varlistentry>
1080   <term>Specifies:</term>
1081   <listitem>
1082    <para>
1083     The directory where all logging takes place (i.e. where <filename>logfile</filename> and 
1084     <filename>jarfile</filename> are located) 
1085    </para>
1086   </listitem>
1087  </varlistentry>
1088  <varlistentry>
1089   <term>Type of value:</term>
1090   <listitem>
1091    <para>Path name</para>
1092   </listitem>
1093  </varlistentry>
1094  <varlistentry>
1095   <term>Default value:</term>
1096   <listitem>
1097    <para>/var/log/privoxy (Unix) <emphasis>or</emphasis> <application>Privoxy</application> installation dir (Windows) </para>
1098   </listitem>
1099  </varlistentry>
1100  <varlistentry>
1101   <term>Effect if unset:</term>
1102   <listitem>
1103    <para><emphasis>Mandatory</emphasis></para>
1104   </listitem>
1105  </varlistentry>
1106  <varlistentry>
1107   <term>Notes:</term>
1108   <listitem>
1109    <para>
1110     No trailing <quote><literal>/</literal></quote>, please
1111    </para>
1112   </listitem>
1113  </varlistentry>
1114 </variablelist>
1115 </sect3>
1116
1117 <sect3 renderas="sect4" id="actionsfile"><title>
1118 actionsfile
1119 </title>
1120 <anchor id="default.action">
1121 <anchor id="standard.action">
1122 <anchor id="user.action">
1123 <!-- Note: slightly modified this section 04/28/02, hal. See NOTE. -->
1124 <variablelist>
1125  <varlistentry>
1126   <term>Specifies:</term>
1127   <listitem>
1128    <para>
1129     The <link linkend="actions-file">actions file(s)</link> to use
1130    </para>
1131   </listitem>
1132  </varlistentry>
1133  <varlistentry>
1134   <term>Type of value:</term>
1135   <listitem>
1136    <para>File name, relative to <literal>confdir</literal>, without the <literal>.action</literal> suffix</para>
1137   </listitem>
1138  </varlistentry>
1139  <varlistentry>
1140   <term>Default value:</term>
1141   <listitem>
1142    <simplelist>
1143     <member>
1144      <msgtext><literallayout>  standard     # Internal purposes, no editing recommended</literallayout></msgtext>
1145     </member>
1146     <member>
1147      <msgtext><literallayout>  default      # Main actions file</literallayout></msgtext>
1148     </member>
1149     <member>
1150      <msgtext><literallayout>  user         # User customizations</literallayout></msgtext>
1151     </member>
1152    </simplelist>
1153   </listitem>
1154  </varlistentry>
1155  <varlistentry>
1156   <term>Effect if unset:</term>
1157   <listitem>
1158    <para>
1159     No actions are taken at all. Simple neutral proxying. 
1160    </para>
1161   </listitem>
1162  </varlistentry>
1163  <varlistentry>
1164   <term>Notes:</term>
1165   <listitem>
1166    <para>
1167     Multiple <literal>actionsfile</literal> lines are permitted, and are in fact recommended!
1168    </para>
1169    <para> 
1170     The default values include standard.action, which is used for internal
1171     purposes and should be loaded, default.action, which is the
1172     <quote>main</quote> actions file maintained by the developers, and
1173     <filename>user.action</filename>, where you can make your personal additions.
1174    </para>
1175    <para> 
1176     Actions files are where all the per site and per URL configuration is done for 
1177     ad blocking, cookie management, privacy considerations, etc.
1178     There is no point in using <application>Privoxy</application> without at 
1179     least one actions file.
1180    </para>
1181   </listitem>
1182  </varlistentry>
1183 </variablelist>
1184 </sect3>
1185
1186 <sect3 renderas="sect4" id="filterfile"><title>filterfile</title>
1187 <anchor id="default.filter">
1188 <variablelist>
1189  <varlistentry>
1190   <term>Specifies:</term>
1191   <listitem>
1192    <para>
1193     The <link linkend="filter">filter</link> file to use
1194    </para>
1195   </listitem>
1196  </varlistentry>
1197  <varlistentry>
1198   <term>Type of value:</term>
1199   <listitem>
1200    <para>File name, relative to <literal>confdir</literal></para>
1201   </listitem>
1202  </varlistentry>
1203  <varlistentry>
1204   <term>Default value:</term>
1205   <listitem>
1206    <para>default.filter (Unix) <emphasis>or</emphasis> default.filter.txt (Windows)</para>
1207   </listitem>
1208  </varlistentry>
1209  <varlistentry>
1210   <term>Effect if unset:</term>
1211   <listitem>
1212    <para>
1213     No textual content filtering takes place, i.e. all
1214     <literal>+filter{<replaceable class="parameter">name</replaceable>}</literal>
1215     actions in the actions files are turned neutral.
1216    </para>
1217   </listitem>
1218  </varlistentry>
1219  <varlistentry>
1220   <term>Notes:</term>
1221   <listitem>
1222    <para>
1223     The <quote>default.filter</quote> file contains content modification rules 
1224     that use <quote>regular expressions</quote>. These rules permit powerful
1225     changes on the content of Web pages, e.g., you could disable your favorite
1226     JavaScript annoyances, re-write the actual displayed text, or just have some
1227     fun replacing <quote>Microsoft</quote> with <quote>MicroSuck</quote> wherever
1228     it appears on a Web page.
1229    </para>
1230   </listitem>
1231  </varlistentry>
1232 </variablelist>
1233 </sect3>
1234
1235 <sect3 renderas="sect4" id="logfile"><title>logfile</title>
1236
1237 <variablelist>
1238  <varlistentry>
1239   <term>Specifies:</term>
1240   <listitem>
1241    <para>
1242     The log file to use
1243    </para>
1244   </listitem>
1245  </varlistentry>
1246  <varlistentry>
1247   <term>Type of value:</term>
1248   <listitem>
1249    <para>File name, relative to <literal>logdir</literal></para>
1250   </listitem>
1251  </varlistentry>
1252  <varlistentry>
1253   <term>Default value:</term>
1254   <listitem>
1255    <para>logfile (Unix) <emphasis>or</emphasis> privoxy.log (Windows)</para>
1256   </listitem>
1257  </varlistentry>
1258  <varlistentry>
1259   <term>Effect if unset:</term>
1260   <listitem>
1261    <para>
1262     No log file is used, all log messages go to the console (<literal>stderr</literal>).
1263    </para>
1264   </listitem>
1265  </varlistentry>
1266  <varlistentry>
1267   <term>Notes:</term>
1268   <listitem>
1269    <para>
1270     The windows version will additionally log to the console.
1271    </para>
1272    <para>
1273     The logfile is where all logging and error messages are written. The level
1274     of detail and number of messages are set with the <literal>debug</literal>
1275     option (see below). The logfile can be useful for tracking down a problem with
1276     <application>Privoxy</application> (e.g., it's not blocking an ad you
1277     think it should block) but in most cases you probably will never look at it.
1278    </para>
1279    <para>
1280     Your logfile will grow indefinitely, and you will probably want to
1281     periodically remove it.  On Unix systems, you can do this with a cron job
1282     (see <quote>man cron</quote>). For Red Hat, a <command>logrotate</command> 
1283     script has been included.
1284    </para> 
1285    <para>
1286     On SuSE Linux systems, you can place a line like <quote>/var/log/privoxy.*
1287     +1024k 644 nobody.nogroup</quote> in <filename>/etc/logfiles</filename>, with
1288     the effect that cron.daily will automatically archive, gzip, and empty the
1289     log, when it exceeds 1M size.
1290    </para>
1291    <para>
1292     Any log files must be writable by whatever user <application>Privoxy</application>
1293     is being run as (default on UNIX, user id is <quote>privoxy</quote>).
1294    </para>
1295   </listitem>
1296  </varlistentry>
1297 </variablelist>
1298 </sect3>
1299
1300 <sect3 renderas="sect4" id="jarfile"><title>jarfile</title>
1301
1302 <variablelist>
1303  <varlistentry>
1304   <term>Specifies:</term>
1305   <listitem>
1306    <para>
1307     The file to store intercepted cookies in
1308    </para>
1309   </listitem>
1310  </varlistentry>
1311  <varlistentry>
1312   <term>Type of value:</term>
1313   <listitem>
1314    <para>File name, relative to <literal>logdir</literal></para>
1315   </listitem>
1316  </varlistentry>
1317  <varlistentry>
1318   <term>Default value:</term>
1319   <listitem>
1320    <para>jarfile (Unix) <emphasis>or</emphasis> privoxy.jar (Windows)</para>
1321   </listitem>
1322  </varlistentry>
1323  <varlistentry>
1324   <term>Effect if unset:</term>
1325   <listitem>
1326    <para>
1327     Intercepted cookies are not stored at all.
1328    </para>
1329   </listitem>
1330  </varlistentry>
1331  <varlistentry>
1332   <term>Notes:</term>
1333   <listitem>
1334    <para>
1335     The jarfile may grow to ridiculous sizes over time.
1336    </para>
1337   </listitem>
1338  </varlistentry>
1339 </variablelist>
1340 </sect3>
1341
1342 <sect3 renderas="sect4" id="trustfile"><title>trustfile</title>
1343 <variablelist>
1344  <varlistentry>
1345   <term>Specifies:</term>
1346   <listitem>
1347    <para>
1348     The trust file to use
1349    </para>
1350   </listitem>
1351  </varlistentry>
1352  <varlistentry>
1353   <term>Type of value:</term>
1354   <listitem>
1355    <para>File name, relative to <literal>confdir</literal></para>
1356   </listitem>
1357  </varlistentry>
1358  <varlistentry>
1359   <term>Default value:</term>
1360   <listitem>
1361    <para><emphasis>Unset (commented out)</emphasis>. When activated: trust (Unix) <emphasis>or</emphasis> trust.txt (Windows)</para>
1362   </listitem>
1363  </varlistentry>
1364  <varlistentry>
1365   <term>Effect if unset:</term>
1366   <listitem>
1367    <para>
1368     The whole trust mechanism is turned off.
1369    </para>
1370   </listitem>
1371  </varlistentry>
1372  <varlistentry>
1373   <term>Notes:</term>
1374   <listitem>
1375    <para>
1376     The trust mechanism is an experimental feature for building white-lists and should
1377     be used with care. It is <emphasis>NOT</emphasis> recommended for the casual user.
1378    </para>
1379    <para>
1380     If you specify a trust file, <application>Privoxy</application> will only allow
1381     access to sites that are named in the trustfile. 
1382     You can also mark sites as trusted referrers (with <literal>+</literal>), with
1383     the effect that access to untrusted sites will be granted, if a link from a
1384     trusted referrer was used.
1385     The link target will then be added to the <quote>trustfile</quote>.
1386     Possible applications include limiting Internet access for children.
1387    </para>
1388    <para>
1389     If you use <literal>+</literal> operator in the trust file, it may grow considerably over time.
1390    </para>
1391   </listitem>
1392  </varlistentry>
1393 </variablelist>
1394 </sect3>
1395 </sect2>
1396
1397 <!--  ~  End section  ~  -->
1398
1399
1400
1401 <!--   ~~~~~       New section      ~~~~~     -->
1402
1403 <sect2 id="local-set-up">
1404 <title>Local Set-up Documentation</title>
1405
1406   <para>
1407     If you intend to operate <application>Privoxy</application> for more users
1408     that just yourself, it might be a good idea to let them know how to reach
1409     you, what you block and why you do that, your policies etc.
1410    </para>
1411
1412 <sect3 renderas="sect4" id="user-manual"><title>user-manual</title>
1413 <variablelist>
1414  <varlistentry>
1415   <term>Specifies:</term>
1416   <listitem>
1417    <para>
1418     Location of the <application>Privoxy</application> User Manual.
1419    </para>
1420   </listitem>
1421  </varlistentry>
1422  <varlistentry>
1423   <term>Type of value:</term>
1424   <listitem>
1425    <para>A fully qualified URI</para>
1426   </listitem>
1427  </varlistentry>
1428  <varlistentry>
1429   <term>Default value:</term>
1430   <listitem>
1431    <para><emphasis>Unset</emphasis></para>
1432   </listitem>
1433  </varlistentry>
1434  <varlistentry>
1435   <term>Effect if unset:</term>
1436   <listitem>
1437    <para>
1438     <ulink url="http://www.privoxy.org/user-manual/">http://www.privoxy.org/<replaceable class="parameter">version</replaceable>/user-manual/</ulink>
1439     will be used, where <replaceable class="parameter">version</replaceable> is the <application>Privoxy</application> version.
1440    </para>
1441   </listitem>
1442  </varlistentry>
1443  <varlistentry>
1444   <term>Notes:</term>
1445   <listitem>
1446     <para>
1447     The User Manual URI is used for help links from some of the internal CGI pages. 
1448     The manual itself is normally packaged with the binary distributions, so you propably want
1449     to set this to a locally installed copy. For multi-user setups, you could provide a copy on
1450     a local webserver for all your users and use the corresponding URL here.
1451    </para>
1452    <para>
1453     Examples:
1454    </para>
1455   <para>
1456    Unix, in local filesystem:
1457   </para>
1458   <para>
1459    <screen>user-manual&nbsp;&nbsp;file:///usr/share/doc/privoxy-&p-version;/user-manual/</screen>
1460   </para>
1461   <para>
1462    Any platform, on local webserver (called <quote>local-webserver</quote>):
1463   </para>
1464   <para>
1465    <screen>user-manual&nbsp;&nbsp;http://local-webserver/privoxy-user-manual/</screen>
1466   </para>
1467   <warning>
1468    <para>
1469      If set, this option should be <emphasis>the first option in the config file</emphasis>, because
1470      it is used while the config file is being read.
1471    </para>
1472   </warning>     
1473  </listitem>
1474  </varlistentry>
1475 </variablelist>
1476 </sect3>
1477
1478 <sect3 renderas="sect4" id="trust-info-url"><title>trust-info-url</title>
1479
1480 <variablelist>
1481  <varlistentry>
1482   <term>Specifies:</term>
1483   <listitem>
1484    <para>
1485     A URL to be displayed in the error page that users will see if access to an untrusted page is denied.    
1486    </para>
1487   </listitem>
1488  </varlistentry>
1489  <varlistentry>
1490   <term>Type of value:</term>
1491   <listitem>
1492    <para>URL</para>
1493   </listitem>
1494  </varlistentry>
1495  <varlistentry>
1496   <term>Default value:</term>
1497   <listitem>
1498    <para>Two example URL are provided</para>
1499   </listitem>
1500  </varlistentry>
1501  <varlistentry>
1502   <term>Effect if unset:</term>
1503   <listitem>
1504    <para>
1505     No links are displayed on the "untrusted" error page.
1506    </para>
1507   </listitem>
1508  </varlistentry>
1509  <varlistentry>
1510   <term>Notes:</term>
1511   <listitem>
1512    <para>
1513     The value of this option only matters if the experimental trust mechanism has been
1514     activated. (See <literal>trustfile</literal> above.)
1515    </para>
1516    <para>
1517     If you use the trust mechanism, it is a good idea to write up some on-line
1518     documentation about your trust policy and to specify the URL(s) here.
1519     Use multiple times for multiple URLs.
1520    </para>
1521    <para>
1522     The URL(s) should be added to the trustfile as well, so users don't end up
1523     locked out from the information on why they were locked out in the first place!
1524    </para>
1525   </listitem>
1526  </varlistentry>
1527 </variablelist>
1528 </sect3>
1529
1530 <sect3 renderas="sect4" id="admin-address"><title>admin-address</title>
1531
1532 <variablelist>
1533  <varlistentry>
1534   <term>Specifies:</term>
1535   <listitem>
1536    <para>
1537     An email address to reach the proxy administrator.
1538    </para>
1539   </listitem>
1540  </varlistentry>
1541  <varlistentry>
1542   <term>Type of value:</term>
1543   <listitem>
1544    <para>Email address</para>
1545   </listitem>
1546  </varlistentry>
1547  <varlistentry>
1548   <term>Default value:</term>
1549   <listitem>
1550    <para><emphasis>Unset</emphasis></para>
1551   </listitem>
1552  </varlistentry>
1553  <varlistentry>
1554   <term>Effect if unset:</term>
1555   <listitem>
1556    <para>
1557     No email address is displayed on error pages and the CGI user interface.
1558    </para>
1559   </listitem>
1560  </varlistentry>
1561  <varlistentry>
1562   <term>Notes:</term>
1563   <listitem>
1564     <para>
1565     If both <literal>admin-address</literal> and <literal>proxy-info-url</literal>
1566     are unset, the whole "Local Privoxy Support" box on all generated pages will
1567     not be shown.
1568    </para>  
1569   </listitem>
1570  </varlistentry>
1571 </variablelist>
1572 </sect3>
1573
1574 <sect3 renderas="sect4" id="proxy-info-url"><title>proxy-info-url</title>
1575
1576 <variablelist>
1577  <varlistentry>
1578   <term>Specifies:</term>
1579   <listitem>
1580    <para>
1581     A URL to documentation about the local <application>Privoxy</application> setup,
1582     configuration or policies.
1583    </para>
1584   </listitem>
1585  </varlistentry>
1586  <varlistentry>
1587   <term>Type of value:</term>
1588   <listitem>
1589    <para>URL</para>
1590   </listitem>
1591  </varlistentry>
1592  <varlistentry>
1593   <term>Default value:</term>
1594   <listitem>
1595    <para><emphasis>Unset</emphasis></para>
1596   </listitem>
1597  </varlistentry>
1598  <varlistentry>
1599   <term>Effect if unset:</term>
1600   <listitem>
1601    <para>
1602     No link to local documentation is displayed on error pages and the CGI user interface.
1603    </para>
1604   </listitem>
1605  </varlistentry>
1606  <varlistentry>
1607   <term>Notes:</term>
1608   <listitem>
1609    <para>
1610     If both <literal>admin-address</literal> and <literal>proxy-info-url</literal>
1611     are unset, the whole "Local Privoxy Support" box on all generated pages will
1612     not be shown.
1613    </para>  
1614    <para>
1615     This URL shouldn't be blocked ;-)
1616    </para> 
1617   </listitem>
1618  </varlistentry>
1619 </variablelist>
1620 </sect3>
1621
1622 </sect2>
1623 <!--  ~  End section  ~  -->
1624
1625 <!--   ~~~~~       New section      ~~~~~     -->
1626
1627 <sect2 id="debugging">
1628 <title>Debugging</title>
1629
1630  <para>
1631   These options are mainly useful when tracing a problem.
1632   Note that you might also want to invoke
1633   <application>Privoxy</application> with the <literal>--no-daemon</literal>
1634   command line option when debugging.
1635  </para>
1636
1637 <sect3 renderas="sect4" id="debug"><title>debug</title>
1638
1639 <variablelist>
1640  <varlistentry>
1641   <term>Specifies:</term>
1642   <listitem>
1643    <para>
1644     Key values that determine what information gets logged.
1645    </para>
1646   </listitem>
1647  </varlistentry>
1648  <varlistentry>
1649   <term>Type of value:</term>
1650   <listitem>
1651    <para>Integer values</para>
1652   </listitem>
1653  </varlistentry>
1654  <varlistentry>
1655   <term>Default value:</term>
1656   <listitem>
1657    <para>12289 (i.e.: URLs plus informational and warning messages)</para>
1658   </listitem>
1659  </varlistentry>
1660  <varlistentry>
1661   <term>Effect if unset:</term>
1662   <listitem>
1663    <para>
1664     Nothing gets logged.
1665    </para>
1666   </listitem>
1667  </varlistentry>
1668  <varlistentry>
1669   <term>Notes:</term>
1670   <listitem>
1671    <para>
1672     The available debug levels are:
1673    </para>
1674    <para>
1675     <programlisting>
1676   debug         1 # show each GET/POST/CONNECT request
1677   debug         2 # show each connection status
1678   debug         4 # show I/O status
1679   debug         8 # show header parsing
1680   debug        16 # log all data into the logfile
1681   debug        32 # debug force feature
1682   debug        64 # debug regular expression filter 
1683   debug       128 # debug fast redirects
1684   debug       256 # debug GIF de-animation
1685   debug       512 # Common Log Format
1686   debug      1024 # debug kill pop-ups
1687   debug      4096 # Startup banner and warnings.
1688   debug      8192 # Non-fatal errors
1689 </programlisting>
1690    </para>
1691    <para>
1692     To select multiple debug levels, you can either add them or use
1693     multiple <literal>debug</literal> lines.
1694    </para>
1695    <para>
1696     A debug level of 1 is informative because it will show you each request
1697     as it happens. <emphasis>1, 4096 and 8192 are highly recommended</emphasis>
1698     so that you will notice when things go wrong. The other levels are probably
1699     only of interest if you are hunting down a specific problem. They can produce
1700     a hell of an output (especially 16).
1701     <!-- LOL -->
1702    </para>
1703    <para>
1704     The reporting of <emphasis>fatal</emphasis> errors (i.e. ones which crash 
1705     <application>Privoxy</application>) is always on and cannot be disabled.
1706    </para>
1707    <para>
1708     If you want to use CLF (Common Log Format), you should set <quote>debug
1709     512</quote> <emphasis>ONLY</emphasis> and not enable anything else.
1710    </para>
1711   </listitem>
1712  </varlistentry>
1713 </variablelist>
1714 </sect3>
1715
1716 <sect3 renderas="sect4" id="single-threaded"><title>single-threaded</title>
1717
1718 <variablelist>
1719  <varlistentry>
1720   <term>Specifies:</term>
1721   <listitem>
1722    <para>
1723     Whether to run only one server thread
1724    </para>
1725   </listitem>
1726  </varlistentry>
1727  <varlistentry>
1728   <term>Type of value:</term>
1729   <listitem>
1730    <para><emphasis>None</emphasis></para>
1731   </listitem>
1732  </varlistentry>
1733  <varlistentry>
1734   <term>Default value:</term>
1735   <listitem>
1736    <para><emphasis>Unset</emphasis></para>
1737   </listitem>
1738  </varlistentry>
1739  <varlistentry>
1740   <term>Effect if unset:</term>
1741   <listitem>
1742    <para>
1743     Multi-threaded (or, where unavailable: forked) operation, i.e. the ability to
1744     serve multiple requests simultaneously.
1745    </para>
1746   </listitem>
1747  </varlistentry>
1748  <varlistentry>
1749   <term>Notes:</term>
1750   <listitem>
1751    <para>
1752     This option is only there for debug purposes and you should never
1753     need to use it. <emphasis>It will drastically reduce performance.</emphasis>
1754    </para>
1755   </listitem>
1756  </varlistentry>
1757 </variablelist>
1758 </sect3>
1759
1760 </sect2>
1761
1762 <!--   ~~~~~       New section      ~~~~~     -->
1763
1764 <sect2 id="access-control">
1765 <title>Access Control and Security</title>
1766
1767  <para>
1768   This section of the config file controls the security-relevant aspects
1769   of <application>Privoxy</application>'s configuration.
1770  </para>
1771
1772 <sect3 renderas="sect4" id="listen-address"><title>listen-address</title>
1773
1774 <variablelist>
1775  <varlistentry>
1776   <term>Specifies:</term>
1777   <listitem>
1778    <para>
1779     The IP address and TCP port on which <application>Privoxy</application> will
1780     listen for client requests.
1781    </para>
1782   </listitem>
1783  </varlistentry>
1784  <varlistentry>
1785   <term>Type of value:</term>
1786   <listitem>
1787    <para>[<replaceable class="parameter">IP-Address</replaceable>]:<replaceable class="parameter">Port</replaceable></para>
1788   </listitem>
1789  </varlistentry>
1790
1791  <varlistentry>
1792   <term>Default value:</term>
1793   <listitem>
1794    <para>localhost:8118</para>
1795   </listitem>
1796  </varlistentry>
1797  <varlistentry>
1798   <term>Effect if unset:</term>
1799   <listitem>
1800    <para>
1801     Bind to localhost (127.0.0.1), port 8118. This is suitable and recommended for
1802     home users who run <application>Privoxy</application> on the same machine as
1803     their browser.
1804    </para>
1805   </listitem>
1806  </varlistentry>
1807  <varlistentry>
1808   <term>Notes:</term>
1809   <listitem>
1810    <para>
1811     You will need to configure your browser(s) to this proxy address and port.
1812    </para>
1813    <para>
1814     If you already have another service running on port 8118, or if you want to
1815     serve requests from other machines (e.g. on your local network) as well, you
1816     will need to override the default.
1817    </para>
1818    <para>
1819     If you leave out the IP address, <application>Privoxy</application> will
1820     bind to all interfaces (addresses) on your machine and may become reachable
1821     from the Internet. In that case, consider using access control lists (ACL's)
1822     (see <quote>ACLs</quote> below), or a firewall.
1823    </para>
1824   </listitem>
1825  </varlistentry>
1826  <varlistentry>
1827   <term>Example:</term>
1828   <listitem>
1829    <para>
1830      Suppose you are running <application>Privoxy</application> on
1831      a machine which has the address 192.168.0.1 on your local private network
1832      (192.168.0.0) and has another outside connection with a different address.
1833      You want it to serve requests from inside only:
1834    </para>
1835    <para>
1836     <programlisting>
1837   listen-address  192.168.0.1:8118
1838 </programlisting>
1839    </para>
1840   </listitem>
1841  </varlistentry>
1842 </variablelist>
1843 </sect3>
1844
1845 <sect3 renderas="sect4" id="toggle"><title>toggle</title>
1846
1847 <variablelist>
1848  <varlistentry>
1849   <term>Specifies:</term>
1850   <listitem>
1851    <para>
1852     Initial state of "toggle" status
1853    </para>
1854   </listitem>
1855  </varlistentry>
1856  <varlistentry>
1857   <term>Type of value:</term>
1858   <listitem>
1859    <para>1 or 0</para>
1860   </listitem>
1861  </varlistentry>
1862  <varlistentry>
1863   <term>Default value:</term>
1864   <listitem>
1865    <para>1</para>
1866   </listitem>
1867  </varlistentry>
1868  <varlistentry>
1869   <term>Effect if unset:</term>
1870   <listitem>
1871    <para>
1872     Act as if toggled on
1873    </para>
1874   </listitem>
1875  </varlistentry>
1876  <varlistentry>
1877   <term>Notes:</term>
1878   <listitem>
1879    <para>
1880     If set to 0, <application>Privoxy</application> will start in
1881     <quote>toggled off</quote> mode, i.e. behave like a normal, content-neutral
1882     proxy. See <literal>enable-remote-toggle</literal>
1883     below. This is not really useful anymore, since toggling is much easier
1884     via <ulink url="http://config.privoxy.org/toggle">the web
1885     interface</ulink> than via editing the <filename>conf</filename> file.
1886    </para>
1887    <para>
1888     The windows version will only display the toggle icon in the system tray
1889     if this option is present.
1890    </para>
1891   </listitem>
1892  </varlistentry>
1893 </variablelist>
1894 </sect3>
1895
1896
1897 <sect3 renderas="sect4" id="enable-remote-toggle"><title>enable-remote-toggle</title>
1898 <variablelist>
1899  <varlistentry>
1900   <term>Specifies:</term>
1901   <listitem>
1902    <para>
1903     Whether or not the <ulink url="http://config.privoxy.org/toggle">web-based toggle
1904     feature</ulink> may be used
1905    </para>
1906   </listitem>
1907  </varlistentry>
1908  <varlistentry>
1909   <term>Type of value:</term>
1910   <listitem>
1911    <para>0 or 1</para>
1912   </listitem>
1913  </varlistentry>
1914  <varlistentry>
1915   <term>Default value:</term>
1916   <listitem>
1917    <para>1</para>
1918   </listitem>
1919  </varlistentry>
1920  <varlistentry>
1921   <term>Effect if unset:</term>
1922   <listitem>
1923    <para>
1924     The web-based toggle feature is disabled.
1925    </para>
1926   </listitem>
1927  </varlistentry>
1928  <varlistentry>
1929   <term>Notes:</term>
1930   <listitem>
1931    <para>
1932     When toggled off, <application>Privoxy</application> acts like a normal,
1933     content-neutral proxy, i.e. it acts as if none of the actions applied to
1934     any URL.
1935    </para>
1936    <para>
1937     For the time being, access to the toggle feature can <emphasis>not</emphasis> be
1938     controlled separately by <quote>ACLs</quote> or HTTP authentication,
1939     so that everybody who can access <application>Privoxy</application> (see
1940     <quote>ACLs</quote> and <literal>listen-address</literal> above) can
1941     toggle it for all users. So this option is <emphasis>not recommended</emphasis>
1942     for multi-user environments with untrusted users.
1943    </para>
1944    <para>
1945     Note that you must have compiled <application>Privoxy</application> with
1946     support for this feature, otherwise this option has no effect. 
1947    </para>
1948   </listitem>
1949  </varlistentry>
1950 </variablelist>
1951 </sect3>
1952
1953
1954 <sect3 renderas="sect4" id="enable-edit-actions"><title>enable-edit-actions</title>
1955 <variablelist>
1956  <varlistentry>
1957   <term>Specifies:</term>
1958   <listitem>
1959    <para>
1960     Whether or not the <ulink url="http://config.privoxy.org/show-status">web-based actions
1961     file editor</ulink> may be used
1962    </para>
1963   </listitem>
1964  </varlistentry>
1965  <varlistentry>
1966   <term>Type of value:</term>
1967   <listitem>
1968    <para>0 or 1</para>
1969   </listitem>
1970  </varlistentry>
1971  <varlistentry>
1972   <term>Default value:</term>
1973   <listitem>
1974    <para>1</para>
1975   </listitem>
1976  </varlistentry>
1977  <varlistentry>
1978   <term>Effect if unset:</term>
1979   <listitem>
1980    <para>
1981     The web-based actions file editor is disabled.
1982    </para>
1983   </listitem>
1984  </varlistentry>
1985  <varlistentry>
1986   <term>Notes:</term>
1987   <listitem>
1988    <para>
1989     For the time being, access to the editor can <emphasis>not</emphasis> be
1990     controlled separately by <quote>ACLs</quote> or HTTP authentication,
1991     so that everybody who can access <application>Privoxy</application> (see
1992     <quote>ACLs</quote> and <literal>listen-address</literal> above) can
1993     modify its configuration for all users. So this option is <emphasis>not
1994     recommended</emphasis> for multi-user environments with untrusted users.
1995    </para>
1996    <para>
1997     Note that you must have compiled <application>Privoxy</application> with
1998     support for this feature, otherwise this option has no effect. 
1999    </para>
2000   </listitem>
2001  </varlistentry>
2002 </variablelist>
2003 </sect3>
2004
2005 <sect3 renderas="sect4" id="acls"><title>
2006 ACLs: permit-access and deny-access</title>
2007 <anchor id="permit-acces">
2008 <anchor id="deny-acces">
2009
2010 <variablelist>
2011  <varlistentry>
2012   <term>Specifies:</term>
2013   <listitem>
2014    <para>
2015     Who can access what.
2016    </para>
2017   </listitem>
2018  </varlistentry>
2019  <varlistentry>
2020   <term>Type of value:</term>
2021   <listitem>
2022    <para>
2023     <replaceable class="parameter">src_addr</replaceable>[/<replaceable class="parameter">src_masklen</replaceable>]
2024     [<replaceable class="parameter">dst_addr</replaceable>[/<replaceable class="parameter">dst_masklen</replaceable>]]
2025    </para>
2026    <para>
2027     Where <replaceable class="parameter">src_addr</replaceable> and 
2028    <replaceable class="parameter">dst_addr</replaceable> are IP addresses in dotted decimal notation or valid
2029     DNS names, and <replaceable class="parameter">src_masklen</replaceable> and
2030     <replaceable class="parameter">dst_masklen</replaceable> are subnet masks in CIDR notation, i.e. integer
2031     values from 2 to 30 representing the length (in bits) of the network address. The masks and the whole
2032     destination part are optional.
2033    </para>
2034   </listitem>
2035  </varlistentry>
2036  <varlistentry>
2037   <term>Default value:</term>
2038   <listitem>
2039    <para><emphasis>Unset</emphasis></para>
2040   </listitem>
2041  </varlistentry>
2042  <varlistentry>
2043   <term>Effect if unset:</term>
2044   <listitem>
2045    <para>
2046     Don't restrict access further than implied by <literal>listen-address</literal>
2047    </para>
2048   </listitem>
2049  </varlistentry>
2050  <varlistentry>
2051   <term>Notes:</term>
2052   <listitem>
2053    <para>
2054     Access controls are included at the request of ISPs and systems
2055     administrators, and <emphasis>are not usually needed by individual users</emphasis>.
2056     For a typical home user, it will normally suffice to ensure that 
2057     <application>Privoxy</application> only listens on the localhost or internal (home)
2058     network address by means of the <literal>listen-address</literal> option.
2059    </para>
2060    <para>
2061     Please see the warnings in the FAQ that this proxy is not intended to be a substitute
2062     for a firewall or to encourage anyone to defer addressing basic security
2063     weaknesses.
2064    </para>
2065    <para>
2066     Multiple ACL lines are OK.
2067     If any ACLs are specified, then the <application>Privoxy</application>
2068     talks only to IP addresses that match at least one <literal>permit-access</literal> line
2069     and don't match any subsequent <literal>deny-access</literal> line. In other words, the
2070     last match wins, with the default being <literal>deny-access</literal>.
2071    </para>
2072    <para>
2073     If <application>Privoxy</application> is using a forwarder (see <literal>forward</literal> below)
2074     for a particular destination URL, the <replaceable class="parameter">dst_addr</replaceable>
2075     that is examined is the address of the forwarder and <emphasis>NOT</emphasis> the address
2076     of the ultimate target. This is necessary because it may be impossible for the local
2077     <application>Privoxy</application> to determine the IP address of the
2078     ultimate target (that's often what gateways are used for).
2079    </para>
2080    <para>
2081     You should prefer using IP addresses over DNS names, because the address lookups take
2082     time. All DNS names must resolve! You can <emphasis>not</emphasis> use domain patterns
2083     like <quote>*.org</quote> or partial domain names. If a DNS name resolves to multiple
2084     IP addresses, only the first one is used.
2085    </para>
2086    <para>
2087     Denying access to particular sites by ACL may have undesired side effects
2088     if the site in question is hosted on a machine which also hosts other sites.
2089    </para>
2090   </listitem>
2091  </varlistentry>
2092  <varlistentry>
2093   <term>Examples:</term>
2094   <listitem>
2095    <para>
2096     Explicitly define the default behavior if no ACL and
2097     <literal>listen-address</literal> are set: <quote>localhost</quote>
2098     is OK. The absence of a <replaceable class="parameter">dst_addr</replaceable> implies that
2099     <emphasis>all</emphasis> destination addresses are OK:
2100    </para>
2101    <para>
2102     <screen>
2103   permit-access  localhost
2104 </screen>
2105    </para>
2106    <para>
2107     Allow any host on the same class C subnet as www.privoxy.org access to
2108     nothing but www.example.com:
2109    </para>
2110    <para>
2111     <screen>
2112   permit-access  www.privoxy.org/24 www.example.com/32
2113 </screen>
2114    </para>
2115    <para>
2116     Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere,
2117     with the exception that 192.168.45.73 may not access www.dirty-stuff.example.com:
2118    </para>
2119    <para>
2120     <screen>
2121   permit-access  192.168.45.64/26
2122   deny-access    192.168.45.73    www.dirty-stuff.example.com
2123 </screen>
2124    </para>
2125   </listitem>
2126  </varlistentry>
2127 </variablelist>
2128 </sect3>
2129
2130 <sect3 renderas="sect4" id="buffer-limit"><title>buffer-limit</title>
2131
2132 <variablelist>
2133  <varlistentry>
2134   <term>Specifies:</term>
2135   <listitem>
2136    <para>
2137     Maximum size of the buffer for content filtering.
2138    </para>
2139   </listitem>
2140  </varlistentry>
2141  <varlistentry>
2142   <term>Type of value:</term>
2143   <listitem>
2144    <para>Size in Kbytes</para>
2145   </listitem>
2146  </varlistentry>
2147  <varlistentry>
2148   <term>Default value:</term>
2149   <listitem>
2150    <para>4096</para>
2151   </listitem>
2152  </varlistentry>
2153  <varlistentry>
2154   <term>Effect if unset:</term>
2155   <listitem>
2156    <para>
2157     Use a 4MB (4096 KB) limit.
2158    </para>
2159   </listitem>
2160  </varlistentry>
2161  <varlistentry>
2162   <term>Notes:</term>
2163   <listitem>
2164    <para>
2165     For content filtering, i.e. the <literal>+filter</literal> and
2166     <literal>+deanimate-gif</literal> actions, it is necessary that 
2167     <application>Privoxy</application> buffers the entire document body.
2168     This can be potentially dangerous, since a server could just keep sending
2169     data indefinitely and wait for your RAM to exhaust -- with nasty consequences.
2170     Hence this option.
2171    </para>
2172    <para>
2173     When a document buffer size reaches the <literal>buffer-limit</literal>, it is
2174     flushed to the client unfiltered and no further attempt to
2175     filter the rest of the document is made. Remember that there may be multiple threads
2176     running, which might require up to <literal>buffer-limit</literal> Kbytes
2177     <emphasis>each</emphasis>, unless you have enabled <quote>single-threaded</quote>
2178     above.
2179    </para>
2180   </listitem>
2181  </varlistentry>
2182 </variablelist>
2183 </sect3>
2184
2185 </sect2>
2186
2187 <!--  ~  End section  ~  -->
2188
2189
2190 <!--   ~~~~~       New section      ~~~~~     -->
2191
2192 <sect2 id="forwarding">
2193 <title>Forwarding</title>
2194
2195 <para>
2196  This feature allows routing of HTTP requests through a chain of
2197  multiple proxies.
2198  It can be used to better protect privacy and confidentiality when
2199  accessing specific domains by routing requests to those domains
2200  through an anonymous public proxy (see e.g. <ulink
2201  url="http://www.multiproxy.org/anon_list.htm">http://www.multiproxy.org/anon_list.htm</ulink>)
2202  Or to use a caching proxy to speed up browsing. Or chaining to a parent
2203  proxy may be necessary because the machine that <application>Privoxy</application>
2204  runs on has no direct Internet access.
2205 </para>
2206
2207 <para>
2208  Also specified here are SOCKS proxies. <application>Privoxy</application>
2209  supports the SOCKS 4 and SOCKS 4A protocols.
2210 </para>
2211
2212 <sect3 renderas="sect4" id="forward"><title>forward</title>
2213 <variablelist>
2214  <varlistentry>
2215   <term>Specifies:</term>
2216   <listitem>
2217    <para>
2218     To which parent HTTP proxy specific requests should be routed.
2219    </para>
2220   </listitem>
2221  </varlistentry>
2222  <varlistentry>
2223   <term>Type of value:</term>
2224   <listitem>
2225    <para>
2226     <replaceable class="parameter">target_domain</replaceable>[:<replaceable class="parameter">port</replaceable>]
2227     <replaceable class="parameter">http_parent</replaceable>[/<replaceable class="parameter">port</replaceable>]
2228    </para>
2229    <para>
2230     Where <replaceable class="parameter">target_domain</replaceable> is a domain name pattern (see the
2231     chapter on domain matching in the <filename>default.action</filename> file),
2232     <replaceable class="parameter">http_parent</replaceable> is the address of the parent HTTP proxy
2233     as an IP addresses in dotted decimal notation or as a valid DNS name (or <quote>.</quote> to denote
2234     <quote>no forwarding</quote>, and the optional 
2235     <replaceable class="parameter">port</replaceable> parameters are TCP ports, i.e. integer
2236     values from 1 to 64535
2237    </para>
2238   </listitem>
2239  </varlistentry>
2240  <varlistentry>
2241   <term>Default value:</term>
2242   <listitem>
2243    <para><emphasis>Unset</emphasis></para>
2244   </listitem>
2245  </varlistentry>
2246  <varlistentry>
2247   <term>Effect if unset:</term>
2248   <listitem>
2249    <para>
2250     Don't use parent HTTP proxies.
2251    </para>
2252   </listitem>
2253  </varlistentry>
2254  <varlistentry>
2255   <term>Notes:</term>
2256   <listitem>
2257    <para>
2258     If <replaceable class="parameter">http_parent</replaceable> is <quote>.</quote>, then requests are not
2259     forwarded to another HTTP proxy but are made directly to the web servers.
2260    </para>
2261    <para>
2262     Multiple lines are OK, they are checked in sequence, and the last match wins.
2263    </para>
2264   </listitem>
2265  </varlistentry>
2266  <varlistentry>
2267   <term>Examples:</term>
2268   <listitem>
2269    <para>
2270     Everything goes to an example anonymizing proxy, except SSL on port 443 (which it doesn't handle):
2271    </para>
2272    <para>
2273     <screen>
2274   forward   .*     anon-proxy.example.org:8080
2275   forward   :443   .
2276 </screen>
2277    </para>
2278    <para>
2279     Everything goes to our example ISP's caching proxy, except for requests
2280     to that ISP's sites:
2281    </para>
2282    <para>
2283     <screen>
2284   forward   .*.                caching-proxy.example-isp.net:8000
2285   forward   .example-isp.net   .
2286 </screen>
2287    </para>
2288   </listitem>
2289  </varlistentry>
2290 </variablelist>
2291 </sect3>
2292
2293 <sect3 renderas="sect4" id="socks"><title>
2294 forward-socks4 and forward-socks4a</title>
2295 <anchor id="forward-socks4">
2296 <anchor id="forward-socks4a">
2297
2298 <variablelist>
2299  <varlistentry>
2300   <term>Specifies:</term>
2301   <listitem>
2302    <para>
2303     Through which SOCKS proxy (and to which parent HTTP proxy) specific requests should be routed.
2304    </para>
2305   </listitem>
2306  </varlistentry>
2307  <varlistentry>
2308   <term>Type of value:</term>
2309   <listitem>
2310    <para>
2311     <replaceable class="parameter">target_domain</replaceable>[:<replaceable class="parameter">port</replaceable>]
2312     <replaceable class="parameter">socks_proxy</replaceable>[/<replaceable class="parameter">port</replaceable>]
2313     <replaceable class="parameter">http_parent</replaceable>[/<replaceable class="parameter">port</replaceable>]
2314    </para>
2315    <para>
2316     Where <replaceable class="parameter">target_domain</replaceable> is a domain name pattern (see the
2317     chapter on domain matching in the <filename>default.action</filename> file),
2318     <replaceable class="parameter">http_parent</replaceable> and <replaceable class="parameter">socks_proxy</replaceable>
2319     are IP addresses in dotted decimal notation or valid DNS names (<replaceable class="parameter">http_parent</replaceable>
2320     may be <quote>.</quote> to denote <quote>no HTTP forwarding</quote>), and the optional 
2321     <replaceable class="parameter">port</replaceable> parameters are TCP ports, i.e. integer values from 1 to 64535
2322    </para>
2323   </listitem>
2324  </varlistentry>
2325  <varlistentry>
2326   <term>Default value:</term>
2327   <listitem>
2328    <para><emphasis>Unset</emphasis></para>
2329   </listitem>
2330  </varlistentry>
2331  <varlistentry>
2332   <term>Effect if unset:</term>
2333   <listitem>
2334    <para>
2335     Don't use SOCKS proxies.
2336    </para>
2337   </listitem>
2338  </varlistentry>
2339  <varlistentry>
2340   <term>Notes:</term>
2341   <listitem>
2342    <para>
2343     Multiple lines are OK, they are checked in sequence, and the last match wins.
2344    </para>
2345    <para>
2346     The difference between <literal>forward-socks4</literal> and <literal>forward-socks4a</literal>
2347     is that in the SOCKS 4A protocol, the DNS resolution of the target hostname happens on the SOCKS
2348     server, while in SOCKS 4 it happens locally.
2349    </para>
2350    <para>
2351     If <replaceable class="parameter">http_parent</replaceable> is <quote>.</quote>, then requests are not
2352     forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit through
2353     a SOCKS proxy.
2354    </para>
2355   </listitem>
2356  </varlistentry>
2357  <varlistentry>
2358   <term>Examples:</term>
2359   <listitem>
2360    <para>
2361      From the company example.com, direct connections are made to all
2362      <quote>internal</quote> domains, but everything outbound goes through
2363      their ISP's proxy by way of example.com's corporate SOCKS 4A gateway to
2364      the Internet.
2365    </para>
2366    <para>
2367     <screen>
2368   forward-socks4a   .*.            socks-gw.example.com:1080  www-cache.example-isp.net:8080
2369   forward           .example.com   .
2370 </screen>
2371    </para>
2372    <para>
2373     A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent looks like this:
2374    </para>
2375    <para>
2376     <screen>
2377   forward-socks4   .*.            socks-gw.example.com:1080  .
2378 </screen>
2379    </para>
2380   </listitem>
2381  </varlistentry>
2382 </variablelist>
2383 </sect3>
2384
2385 <sect3 renderas="sect4" id="advanced-forwarding-examples"><title>Advanced Forwarding Examples</title>
2386
2387 <para>
2388  If you have links to multiple ISPs that provide various special content 
2389  only to their subscribers, you can configure multiple <application>Privoxies</application>
2390  which have connections to the respective ISPs to act as forwarders to each other, so that
2391  <emphasis>your</emphasis> users can see the internal content of all ISPs.
2392 </para>
2393
2394 <para>
2395  Assume that host-a has a PPP connection to isp-a.net. And host-b has a PPP connection to
2396  isp-b.net. Both run <application>Privoxy</application>. Their forwarding
2397  configuration can look like this:
2398 </para>
2399
2400 <para>
2401  host-a:
2402 </para>
2403
2404 <para>
2405  <screen>
2406   forward    .*.         .
2407   forward    .isp-b.net  host-b:8118
2408 </screen>
2409 </para>
2410
2411 <para>
2412  host-b:
2413 </para>
2414
2415 <para>
2416  <screen>
2417   forward    .*.         .
2418   forward    .isp-a.net  host-a:8118
2419 </screen>
2420 </para>
2421
2422 <para>
2423  Now, your users can set their browser's proxy to use either
2424  host-a or host-b and be able to browse the internal content
2425  of both isp-a and isp-b.
2426 </para>
2427
2428 <para>
2429  If you intend to chain <application>Privoxy</application> and 
2430  <application>squid</application> locally, then chain as 
2431  <literal>browser -> squid -> privoxy</literal> is the recommended way. 
2432 </para>
2433
2434 <para>
2435  Assuming that <application>Privoxy</application> and <application>squid</application>
2436  run on the same box, your squid configuration could then look like this:
2437 </para>
2438
2439 <para>
2440  <screen>
2441   # Define Privoxy as parent proxy (without ICP) 
2442   cache_peer 127.0.0.1 parent 8118 7 no-query 
2443
2444   # Define ACL for protocol FTP 
2445   acl ftp proto FTP 
2446
2447   # Do not forward FTP requests to Privoxy
2448   always_direct allow ftp 
2449
2450   # Forward all the rest to Privoxy
2451   never_direct allow all</screen>
2452 </para>
2453
2454 <para>
2455  You would then need to change your browser's proxy settings to <application>squid</application>'s address and port.
2456  Squid normally uses port 3128. If unsure consult <literal>http_port</literal> in <filename>squid.conf</filename>.
2457 </para>
2458
2459 </sect3>
2460
2461 </sect2>
2462
2463 <!--  ~  End section  ~  -->
2464
2465
2466 <!--   ~~~~~       New section      ~~~~~     -->
2467
2468 <sect2 id="windows-gui">
2469 <title>Windows GUI Options</title>
2470 <para>
2471  <application>Privoxy</application> has a number of options specific to the
2472  Windows GUI interface:
2473 </para>
2474
2475 <anchor id="activity-animation">
2476 <para>
2477  If <quote>activity-animation</quote> is set to 1, the
2478  <application>Privoxy</application> icon will animate when
2479  <quote>Privoxy</quote> is active. To turn off, set to 0.
2480 </para>
2481
2482 <para>
2483  <literal>
2484   <msgtext> 
2485    <literallayout>
2486   <emphasis>activity-animation   1</emphasis>
2487    </literallayout>
2488   </msgtext> 
2489  </literal>
2490 </para>
2491
2492 <anchor id="log-messages">
2493 <para>
2494  If <quote>log-messages</quote> is set to 1,
2495  <application>Privoxy</application> will log messages to the console
2496  window:
2497 </para>
2498
2499 <para>
2500  <literal>
2501   <msgtext> 
2502    <literallayout>
2503   <emphasis>log-messages       1</emphasis>
2504    </literallayout>
2505   </msgtext> 
2506  </literal>
2507 </para>
2508
2509 <anchor id="log-buffer-size">
2510 <para> 
2511  If <quote>log-buffer-size</quote> is set to 1, the size of the log buffer,
2512  i.e. the amount of memory used for the log messages displayed in the
2513  console window, will be limited to <quote>log-max-lines</quote> (see below).
2514 </para>
2515
2516 <para>
2517  Warning: Setting this to 0 will result in the buffer to grow infinitely and
2518  eat up all your memory!
2519 </para>
2520
2521 <para>
2522  <literal>
2523   <msgtext> 
2524    <literallayout>
2525   <emphasis>log-buffer-size      1</emphasis>
2526    </literallayout>
2527   </msgtext> 
2528  </literal>
2529 </para>
2530
2531 <anchor id="log-max-lines">
2532 <para>
2533  <application>log-max-lines</application> is the maximum number of lines held
2534  in the log buffer. See above.
2535 </para>
2536
2537 <para>
2538  <literal>
2539   <msgtext> 
2540    <literallayout>
2541   <emphasis>log-max-lines      200</emphasis>
2542    </literallayout>
2543   </msgtext> 
2544  </literal>
2545 </para>
2546
2547 <anchor id="log-highlight-messages">
2548 <para>
2549  If <quote>log-highlight-messages</quote> is set to 1,
2550  <application>Privoxy</application> will highlight portions of the log
2551  messages with a bold-faced font:
2552 </para>
2553
2554 <para>
2555  <literal>
2556   <msgtext> 
2557    <literallayout>
2558   <emphasis>log-highlight-messages   1</emphasis>
2559    </literallayout>
2560   </msgtext> 
2561  </literal>
2562 </para>
2563
2564 <anchor id="log-font-name">
2565 <para>
2566  The font used in the console window:
2567 </para>
2568
2569 <para>
2570  <literal>
2571   <msgtext> 
2572    <literallayout>
2573   <emphasis>log-font-name        Comic Sans MS</emphasis>
2574    </literallayout>
2575   </msgtext> 
2576  </literal>
2577 </para>
2578
2579 <anchor id="log-font-size">
2580 <para>
2581  Font size used in the console window:
2582 </para>
2583
2584 <para>
2585  <literal>
2586   <msgtext> 
2587    <literallayout>
2588   <emphasis>log-font-size        8</emphasis>
2589    </literallayout>
2590   </msgtext> 
2591  </literal>
2592 </para>
2593
2594 <anchor id="show-on-task-bar">
2595 <para>  
2596  <quote>show-on-task-bar</quote> controls whether or not
2597  <application>Privoxy</application> will appear as a button on the Task bar
2598  when minimized:
2599 </para>
2600
2601 <para>
2602  <literal>
2603   <msgtext> 
2604    <literallayout>
2605   <emphasis>show-on-task-bar     0</emphasis>
2606    </literallayout>
2607   </msgtext> 
2608  </literal>
2609 </para>
2610
2611 <anchor id="close-button-minimizes">
2612 <para>
2613  If <quote>close-button-minimizes</quote> is set to 1, the Windows close
2614  button will minimize <application>Privoxy</application> instead of closing
2615  the program (close with the exit option on the File menu).
2616 </para>
2617
2618 <para>
2619  <literal>
2620   <msgtext> 
2621    <literallayout>
2622   <emphasis>close-button-minimizes  1</emphasis>
2623    </literallayout>
2624   </msgtext> 
2625  </literal>
2626 </para>
2627
2628 <anchor id="hide-console">
2629 <para>
2630  The <quote>hide-console</quote> option is specific to the MS-Win console
2631  version of <application>Privoxy</application>. If this option is used,
2632  <application>Privoxy</application> will disconnect from and hide  the
2633  command console.
2634 </para>
2635
2636 <para>
2637  <literal>
2638   <msgtext> 
2639    <literallayout>
2640   #<emphasis>hide-console</emphasis>
2641    </literallayout>
2642   </msgtext> 
2643  </literal>
2644 </para>
2645
2646 </sect2>
2647 </sect1>
2648
2649 <!--  ~  End section  ~  -->
2650
2651
2652
2653 <!--   ~~~~~~~~       New section Header    ~~~~~~~~~     -->
2654
2655 <sect1 id="actions-file"><title>Actions Files</title>
2656
2657 <para>
2658  The actions files are used to define what actions
2659  <application>Privoxy</application> takes for which URLs, and thus determine
2660  how ad images, cookies and various other aspects of HTTP content and
2661  transactions are handled, and on which sites (or even parts thereof). There 
2662  are three such files included with <application>Privoxy</application> (as of 
2663  version 2.9.15), with differing purposes:
2664  </para>
2665  
2666  <para>
2667   <itemizedlist>
2668    <listitem>
2669     <para>
2670       <filename>standard.action</filename> - is used by the web based editor, 
2671       to set various pre-defined sets of rules for the default actions section
2672       in <filename>default.action</filename>. These have increasing levels of
2673       aggressiveness <emphasis>and have no influence on your browsing unless
2674       you select them explicitly in the editor</emphasis>. It is not recommend
2675       to edit this file.
2676     </para>
2677    </listitem> 
2678    <listitem>
2679     <para>
2680      <filename>default.action</filename> - is the primary action file 
2681      that sets the initial values for all actions. It is intended to 
2682      provide a base level of functionality for
2683      <application>Privoxy's</application> array of features. So it is 
2684      a set of broad rules that should work reasonably well for users everywhere.
2685      This is the file that the developers are keeping updated, and making 
2686      available to users.
2687     </para>
2688    </listitem> 
2689    <listitem>
2690     <para>
2691      <filename>user.action</filename> - is intended to be for local site 
2692      preferences and exceptions. As an example, if your ISP or your bank
2693      has specific requirements, and need special handling, this kind of 
2694      thing should go here. This file will not be upgraded.
2695     </para>
2696   </listitem> 
2697   </itemizedlist>
2698  </para> 
2699
2700 <para>
2701  The list of actions files to be used are defined in the main configuration 
2702  file, and are processed in the order they are defined. The content of these
2703  can all be viewed and edited from <ulink
2704  url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>.
2705 </para>
2706
2707 <para>
2708  An actions file typically has multiple sections. If you want to use
2709  <quote>aliases</quote> in an actions file, you have to place the (optional)
2710  <link linkend="aliases">alias section</link> at the top of that file.
2711  Then comes the default set of rules which will apply universally to all
2712  sites and pages (be <emphasis>very careful</emphasis> with using such a
2713  universal set in <filename>user.action</filename> or any other actions file after 
2714  <filename>default.action</filename>, because it will override the result
2715  from consulting any previous file). And then below that,
2716  exceptions to the defined universal policies. You can regard
2717  <filename>user.action</filename> as an appendix to <filename>default.action</filename>,
2718  with the advantage that is a separate file, which makes preserving your
2719  personal settings across <application>Privoxy</application> upgrades easier.
2720 </para>
2721
2722 <para> 
2723  Actions can be used to block anything you want, including ads, banners, or
2724  just some obnoxious URL that you would rather not see. Cookies can be accepted
2725  or rejected, or accepted only during the current browser session (i.e. not
2726  written to disk), content can be modified, JavaScripts tamed, user-tracking
2727  fooled, and much more. See below for a <link linkend="actions">complete list
2728  of actions</link>.
2729 </para>
2730
2731 <!--   ~~~~~       New section      ~~~~~     -->
2732 <sect2>
2733 <title>Finding the Right Mix</title>
2734 <para>
2735  Note that some <link linkend="actions">actions</link>, like cookie suppression
2736  or script disabling, may render some sites unusable that rely on these
2737  techniques to work properly. Finding the right mix of actions is not always easy and
2738  certainly a matter of personal taste. In general, it can be said that the more
2739  <quote>aggressive</quote> your default settings (in the top section of the
2740  actions file) are, the more exceptions for <quote>trusted</quote> sites you
2741  will have to make later. If, for example, you want to kill popup windows per
2742  default, you'll have to make exceptions from that rule for sites that you
2743  regularly use and that require popups for actually useful content, like maybe
2744  your bank, favorite shop, or newspaper.
2745 </para>
2746
2747 <para>
2748  We have tried to provide you with reasonable rules to start from in the
2749  distribution actions files. But there is no general rule of thumb on these
2750  things. There just are too many variables, and sites are constantly changing.
2751  Sooner or later you will want to change the rules (and read this chapter again :).
2752 </para>
2753 </sect2>
2754
2755 <!--   ~~~~~       New section      ~~~~~     -->
2756 <sect2>
2757 <title>How to Edit</title>
2758 <para>
2759  The easiest way to edit the actions files is with a browser by
2760  using our browser-based editor, which can be reached from <ulink
2761  url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>.
2762  The editor allows both fine-grained control over every single feature on a
2763  per-URL basis, and easy choosing from wholesale sets of defaults like
2764  <quote>Cautious</quote>, <quote>Medium</quote> or <quote>Advanced</quote>.
2765 </para>
2766
2767 <para>
2768  If you prefer plain text editing to GUIs, you can of course also directly edit the
2769  the actions files. Look at <filename>default.action</filename> which is richly
2770  commented.
2771 </para>
2772 </sect2>
2773
2774
2775 <sect2>
2776 <title>How Actions are Applied to URLs</title>
2777 <para>
2778  Actions files are divided into sections. There are special sections,
2779  like the <quote><link linkend="aliases">alias</link></quote> sections which will be discussed later. For now
2780  let's concentrate on regular sections: They have a heading line (often split
2781  up to multiple lines for readability) which consist of a list of actions,
2782  separated by whitespace and enclosed in curly braces. Below that, there
2783  is a list of URL patterns, each on a separate line.
2784 </para>
2785
2786 <para>
2787  To determine which actions apply to a request, the URL of the request is
2788  compared to all patterns in each action file file. Every time it matches, the list of
2789  applicable actions for the URL is incrementally updated, using the heading
2790  of the section in which the pattern is located. If multiple matches for
2791  the same URL set the same action differently, the last match wins. If not, 
2792  the effects are aggregated (e.g. a URL might match both the 
2793  <ulink url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>
2794  and <ulink url="actions-file.html#BLOCK"><quote>+block</quote></ulink> actions).
2795  
2796 </para>
2797
2798 <para>
2799  You can trace this process for any given URL by visiting <ulink
2800  url="http://config.privoxy.org/show-url-info">http://config.privoxy.org/show-url-info</ulink>.
2801 </para>
2802
2803 <para>
2804  More detail on this is provided in the Appendix, <link linkend="ACTIONSANAT">
2805  Anatomy of an Action</link>.
2806 </para>
2807 </sect2>
2808
2809 <!--   ~~~~~       New section      ~~~~~     -->
2810 <sect2>
2811 <title>Patterns</title>
2812 <para>
2813  Generally, a pattern has the form <literal>&lt;domain&gt;/&lt;path&gt;</literal>,
2814  where both the <literal>&lt;domain&gt;</literal> and <literal>&lt;path&gt;</literal>
2815  are optional. (This is why the pattern <literal>/</literal> matches all URLs).
2816 </para>
2817
2818 <variablelist>
2819  <varlistentry>
2820   <term><literal>www.example.com/</literal></term>
2821   <listitem>
2822    <para>
2823     is a domain-only pattern and will match any request to <literal>www.example.com</literal>,
2824     regardless of which document on that server is requested.
2825    </para>
2826   </listitem>
2827  </varlistentry>
2828  <varlistentry>
2829   <term><literal>www.example.com</literal></term>
2830   <listitem>
2831    <para>
2832     means exactly the same. For domain-only patterns, the trailing <literal>/</literal> may
2833     be omitted.
2834    </para>
2835   </listitem>
2836  </varlistentry>
2837  <varlistentry>
2838   <term><literal>www.example.com/index.html</literal></term>
2839   <listitem>
2840    <para>
2841     matches only the single document <literal>/index.html</literal>
2842     on <literal>www.example.com</literal>.
2843    </para>
2844   </listitem>
2845  </varlistentry>
2846  <varlistentry>
2847   <term><literal>/index.html</literal></term>
2848   <listitem>
2849    <para>
2850     matches the document <literal>/index.html</literal>, regardless of the domain,
2851     i.e. on <emphasis>any</emphasis> web server.
2852    </para>
2853   </listitem>
2854  </varlistentry>
2855  <varlistentry>
2856   <term><literal>index.html</literal></term>
2857   <listitem>
2858    <para>
2859     matches nothing, since it would be  interpreted as a domain name and
2860     there is no top-level domain called <literal>.html</literal>.
2861    </para>
2862   </listitem>
2863  </varlistentry>
2864 </variablelist>
2865
2866
2867 <!--   ~~~~~       New section      ~~~~~     -->
2868 <sect3><title>The Domain Pattern</title>
2869
2870 <para>
2871  The matching of the domain part offers some flexible options: if the
2872  domain starts or ends with a dot, it becomes unanchored at that end. 
2873  For example:
2874 </para>
2875
2876 <variablelist>
2877  <varlistentry>
2878   <term><literal>.example.com</literal></term>
2879   <listitem>
2880    <para>
2881     matches any domain that <emphasis>ENDS</emphasis> in
2882     <literal>.example.com</literal>
2883    </para>
2884   </listitem>
2885  </varlistentry>
2886  <varlistentry>
2887   <term><literal>www.</literal></term>
2888   <listitem>
2889    <para>
2890     matches any domain that <emphasis>STARTS</emphasis> with
2891     <literal>www.</literal>
2892    </para>
2893   </listitem>
2894  </varlistentry>
2895  <varlistentry>
2896   <term><literal>.example.</literal></term>
2897   <listitem>
2898    <para>
2899     matches any domain that <emphasis>CONTAINS</emphasis> <literal>.example.</literal>
2900     (Correctly speaking: It matches any FQDN that contains <literal>example</literal> as a domain.)
2901    </para>
2902   </listitem>
2903  </varlistentry>
2904 </variablelist>
2905
2906 <para>
2907  Additionally, there are wild-cards that you can use in the domain names
2908  themselves. They work pretty similar to shell wild-cards: <quote>*</quote>
2909  stands for zero or more arbitrary characters, <quote>?</quote> stands for
2910  any single character, you can define character classes in square
2911  brackets and all of that can be freely mixed:
2912 </para>
2913
2914 <variablelist>
2915  <varlistentry>
2916   <term><literal>ad*.example.com</literal></term>
2917   <listitem>
2918    <para>
2919     matches <quote>adserver.example.com</quote>, 
2920     <quote>ads.example.com</quote>, etc but not <quote>sfads.example.com</quote>
2921    </para>
2922   </listitem>
2923  </varlistentry>
2924  <varlistentry>
2925   <term><literal>*ad*.example.com</literal></term>
2926   <listitem>
2927    <para>
2928     matches all of the above, and then some.
2929    </para>
2930   </listitem>
2931  </varlistentry>
2932  <varlistentry>
2933   <term><literal>.?pix.com</literal></term>
2934   <listitem>
2935    <para>
2936     matches <literal>www.ipix.com</literal>,
2937     <literal>pictures.epix.com</literal>, <literal>a.b.c.d.e.upix.com</literal> etc. 
2938    </para>
2939   </listitem>
2940  </varlistentry>
2941  <varlistentry>
2942   <term><literal>www[1-9a-ez].example.c*</literal></term>
2943   <listitem>
2944    <para>
2945      matches <literal>www1.example.com</literal>, 
2946      <literal>www4.example.cc</literal>, <literal>wwwd.example.cy</literal>, 
2947      <literal>wwwz.example.com</literal> etc., but <emphasis>not</emphasis> 
2948      <literal>wwww.example.com</literal>.
2949    </para>
2950   </listitem>
2951  </varlistentry>
2952 </variablelist>
2953
2954 </sect3>
2955
2956 <!--  ~  End section  ~  -->
2957
2958
2959 <!--   ~~~~~       New section      ~~~~~     -->
2960 <sect3><title>The Path Pattern</title>
2961
2962 <para>
2963  <application>Privoxy</application> uses Perl compatible regular expressions
2964  (through the <ulink url="http://www.pcre.org/">PCRE</ulink> library) for
2965  matching the path.
2966 </para>
2967
2968 <para>
2969  There is an <link linkend="regex">Appendix</link> with a brief quick-start into regular
2970  expressions, and full (very technical) documentation on PCRE regex syntax is available on-line
2971  at <ulink url="http://www.pcre.org/man.txt">http://www.pcre.org/man.txt</ulink>.
2972  You might also find the Perl man page on regular expressions (<literal>man perlre</literal>)
2973  useful, which is available on-line at <ulink
2974  url="http://www.perldoc.com/perl5.6/pod/perlre.html">http://www.perldoc.com/perl5.6/pod/perlre.html</ulink>.
2975 </para>
2976
2977 <para>
2978  Note that the path pattern is automatically left-anchored at the <quote>/</quote>,
2979  i.e. it matches as if it would start with a <quote>^</quote> (regular expression speak 
2980  for the beginning of a line).
2981 </para>
2982
2983 <para>
2984  Please also note that matching in the path is case
2985  <emphasis>INSENSITIVE</emphasis> by default, but you can switch to case
2986  sensitive at any point in the pattern by using the 
2987  <quote>(?-i)</quote> switch:
2988  <literal>www.example.com/(?-i)PaTtErN.*</literal> will match only
2989  documents whose path starts with <literal>PaTtErN</literal> in
2990  <emphasis>exactly</emphasis> this capitalization.
2991 </para>
2992 </sect3>
2993
2994 </sect2>
2995
2996 <!--  ~  End section  ~  -->
2997
2998
2999 <!--   ~~~~~       New section      ~~~~~     -->
3000
3001 <sect2 id="actions">
3002 <title>Actions</title>
3003 <para>
3004  All actions are disabled by default, until they are explicitly enabled
3005  somewhere in an actions file. Actions are turned on if preceded with a
3006  <quote>+</quote>, and turned off if preceded with a <quote>-</quote>. So a
3007  <literal>+action</literal> means <quote>do that action</quote>, e.g.
3008  <literal>+block</literal> means <quote>please block URLs that match the
3009  following patterns</quote>, and <literal>-block</literal> means <quote>don't
3010  block URLs that match the following patterns, even if <literal>+block</literal>
3011  previously applied.</quote>
3012
3013 </para>
3014
3015 <para> 
3016  Again, actions are invoked by placing them on a line, enclosed in curly braces and
3017  separated by whitespace, like in 
3018  <literal>{+some-action -some-other-action{some-parameter}}</literal>,
3019  followed by a list of URL patterns, one per line, to which they apply.
3020  Together, the actions line and the following pattern lines make up a section
3021  of the actions file. 
3022 </para>
3023
3024 <para> 
3025  There are three classes of actions:
3026 </para>
3027
3028 <para>
3029  <itemizedlist>
3030  <listitem>
3031   <para>  
3032    Boolean, i.e the action can only be <quote>enabled</quote> or
3033    <quote>disabled</quote>. Syntax:
3034   </para>
3035   <para>
3036    <screen>
3037   +<replaceable class="function">name</replaceable>        # enable action <replaceable class="parameter">name</replaceable>
3038   -<replaceable class="function">name</replaceable>        # disable action <replaceable class="parameter">name</replaceable></screen>
3039   </para>
3040   <para>  
3041    Example: <literal>+block</literal>
3042   </para>
3043  </listitem>
3044
3045
3046  <listitem>
3047   <para>  
3048    Parameterized, where some value is required in order to enable this type of action.
3049    Syntax:
3050   </para>
3051   <para>
3052    <screen>
3053   +<replaceable class="function">name</replaceable>{<replaceable class="parameter">param</replaceable>}  # enable action and set parameter to <replaceable class="parameter">param</replaceable>,
3054                # overwriting parameter from previous match if necessary
3055   -<replaceable class="function">name</replaceable>         # disable action. The parameter can be omitted</screen>
3056   </para>
3057   <para>
3058    Note that if the URL matches multiple positive forms of a parameterized action,
3059    the last match wins, i.e. the params from earlier matches are simply ignored.
3060   </para>
3061   <para>  
3062    Example: <literal>+hide-user-agent{ Mozilla 1.0 }</literal>
3063   </para>
3064  </listitem>
3065  
3066  <listitem>
3067   <para>  
3068    Multi-value. These look exactly like parameterized actions,
3069    but they behave differently: If the action applies multiple times to the
3070    same URL, but with different parameters, <emphasis>all</emphasis> the parameters
3071    from <emphasis>all</emphasis> matches are remembered. This is used for actions
3072    that can be executed for the same request repeatedly, like adding multiple
3073    headers, or filtering through multiple filters. Syntax:
3074   </para>
3075   <para>
3076    <screen>
3077   +<replaceable class="function">name</replaceable>{<replaceable class="parameter">param</replaceable>}   # enable action and add <replaceable class="parameter">param</replaceable> to the list of parameters
3078   -<replaceable class="function">name</replaceable>{<replaceable class="parameter">param</replaceable>}   # remove the parameter <replaceable class="parameter">param</replaceable> from the list of parameters
3079                 # If it was the last one left, disable the action.
3080   <replaceable class="parameter">-name</replaceable>          # disable this action completely and remove all parameters from the list</screen>
3081   </para>
3082   <para>  
3083    Examples: <literal>+add-header{X-Fun-Header: Some text}</literal> and
3084    <literal>+filter{html-annoyances}</literal>
3085   </para>
3086  </listitem>
3087
3088  </itemizedlist>
3089 </para>
3090
3091 <para>
3092  If nothing is specified in any actions file, no <quote>actions</quote> are
3093  taken. So in this case <application>Privoxy</application> would just be a
3094  normal, non-blocking, non-anonymizing proxy. You must specifically enable the
3095  privacy and blocking features you need (although the provided default actions
3096  files will give a good starting point).
3097 </para>
3098
3099 <para>
3100  Later defined actions always over-ride earlier ones.  So exceptions 
3101  to any rules you make, should come in the latter part of the file (or 
3102  in a file that is processed later when using multiple actions files). For
3103  multi-valued actions, the actions are applied in the order they are specified.
3104  Actions files are processed in the order they are defined in
3105  <filename>config</filename> (the default installation has three actions
3106  files). It also quite possible for any given URL pattern to match more than
3107  one pattern and thus more than one set of actions!
3108 </para>
3109
3110 <!-- start actions listing -->
3111 <para>
3112  The list of valid <application>Privoxy</application> actions are:
3113 </para>
3114
3115
3116 <!-- ********************************************************** -->
3117 <!-- Please note the below defined actions use id's that are    -->
3118 <!-- probably linked from other places, so please don't change. -->
3119 <!--                                                            -->
3120 <!-- ********************************************************** -->
3121
3122
3123 <!--   ~~~~~       New section      ~~~~~     -->
3124
3125 <sect3 renderas="sect4" id="add-header">
3126 <title><emphasis>+add-header</emphasis></title>
3127
3128 <variablelist>
3129  <varlistentry>
3130   <term>Type:</term>
3131   <!-- boolean, parameterized, Multi-value -->
3132   <listitem>
3133    <para>Multi-value.</para>
3134   </listitem>
3135  </varlistentry>
3136  
3137  <varlistentry>
3138   <term>Purpose and typical uses:</term>
3139   <listitem>
3140    <para>
3141     Send a user defined HTTP header to the web server. Can be used to confuse log analysis.
3142    </para>
3143   </listitem>
3144  </varlistentry>
3145
3146  <varlistentry>
3147   <term>Possible values:</term>
3148   <listitem>
3149    <para>
3150     Any value is possible. Validity of the defined HTTP headers is not checked.
3151     It is recommended that you use the <quote><literal>X-</literal></quote> prefix
3152     for custom headers.
3153    </para>
3154   </listitem>
3155  </varlistentry>
3156  
3157  <varlistentry>
3158   <term>Example usage:</term>
3159   <listitem>
3160     <literallayout>
3161      <emphasis>{+add-header{X-User-Tracking: sucks}}</emphasis>
3162      <emphasis>.example.com</emphasis></literallayout>
3163   </listitem>
3164  </varlistentry>
3165
3166 <varlistentry>
3167   <term>Notes:</term>
3168   <listitem>
3169    <para>
3170     This action may be specified multiple times, in order to define multiple 
3171     headers. This is rarely needed for the typical user. If you don't know what 
3172     <quote>HTTP headers</quote> are, you definitely don't need to worry about this 
3173     one.
3174    </para>
3175   </listitem>
3176  </varlistentry>
3177 </variablelist>
3178 </sect3>
3179
3180
3181 <!--   ~~~~~       New section      ~~~~~     -->
3182 <sect3 renderas="sect4" id="block">
3183 <title><emphasis>+block</emphasis></title>
3184
3185 <variablelist>
3186  <varlistentry>
3187   <term>Type:</term>
3188   <!-- boolean, parameterized, Multi-value -->
3189   <listitem>
3190    <para>Boolean.</para>
3191   </listitem>
3192  </varlistentry>
3193
3194  <varlistentry>
3195   <term>Purpose and typical uses:</term>
3196   <listitem>
3197    <para>
3198     Requests for URLs to which this action applies are blocked, i.e. the requests are not
3199     forwarded to the remote server, but answered locally with a substitute page or image,
3200     as determined by the <link linkend="handle-as-image">handle-as-image</link> and  
3201     <link linkend="set-image-blocker">set-image-blocker</link> actions.
3202     It is typically used to block ads or other obnoxious content.    
3203    </para>
3204   </listitem>
3205  </varlistentry>
3206
3207  <varlistentry>
3208   <term>Possible values:</term>
3209   <listitem>
3210    <para>N/A</para>
3211   </listitem>
3212  </varlistentry>
3213  
3214  <varlistentry>
3215   <term>Example usage:</term>
3216   <listitem>
3217     <literallayout>
3218      <emphasis>{+block}</emphasis>
3219      <emphasis>.banners.example.com</emphasis>
3220      <emphasis>.ads.r.us</emphasis>
3221     </literallayout>
3222   </listitem>
3223  </varlistentry>
3224
3225 <varlistentry>
3226   <term>Notes:</term>
3227   <listitem>
3228    <para>
3229     If a URL matches one of the blocked patterns, <application>Privoxy</application>
3230     will intercept the URL and display its special <quote>BLOCKED</quote> page
3231     instead. If there is sufficient space, a large red banner will appear with
3232     a friendly message about why the page was blocked, and a way to go there
3233     anyway. If there is insufficient space a smaller <quote>BLOCKED</quote>
3234     page will appear without the red banner. 
3235     <ulink url="http://ads.bannerserver.example.com/nasty-ads/sponsor.html">Click here</ulink>
3236     to view the default blocked HTML page (<application>Privoxy</application> must be running 
3237     for this to work as intended!).
3238    </para>
3239
3240    <para> 
3241     A very important exception is if the URL <emphasis>matches both</emphasis>
3242     <quote>+block</quote> and <ulink
3243     url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>,
3244     then it will be handled by 
3245     <ulink url="actions-file.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
3246     (see below). It is important to understand this process, in order 
3247     to understand how <application>Privoxy</application> is able to deal with 
3248     ads and other objectionable content.
3249    </para>
3250    <para>
3251     The <ulink url="actions-file.html#FILTER"><quote>+filter</quote></ulink>
3252     action can also perform some of the 
3253     same functionality as <quote>+block</quote>, but by virtue of very 
3254     different programming techniques, and is most often used for different 
3255     reasons.
3256    </para>
3257   </listitem>
3258  </varlistentry>
3259
3260 </variablelist>
3261 </sect3>
3262
3263
3264 <!--   ~~~~~       New section      ~~~~~     -->
3265 <sect3 renderas="sect4" id="deanimate-gifs">
3266 <title><emphasis>+deanimate-gifs</emphasis></title>
3267
3268 <variablelist>
3269  <varlistentry>
3270   <term>Type:</term>
3271   <!-- boolean, parameterized, Multi-value -->
3272   <listitem>
3273    <para>Parameterized.</para>
3274   </listitem>
3275  </varlistentry>
3276
3277  <varlistentry>
3278   <term>Typical uses:</term>
3279   <listitem>
3280    <para>
3281     To stop those annoying, distracting animated GIF images.
3282    </para>
3283   </listitem>
3284  </varlistentry>
3285
3286  <varlistentry>
3287   <term>Possible values:</term>
3288   <listitem>
3289    <para>
3290     <quote>last</quote> or <quote>first</quote>
3291    </para>
3292   </listitem>
3293  </varlistentry>
3294  
3295  <varlistentry>
3296   <term>Example usage:</term>
3297   <listitem>
3298     <literallayout>
3299       <emphasis>{+deanimate-gifs{last}}</emphasis>
3300       <emphasis>.example.com</emphasis>
3301     </literallayout>
3302   </listitem>
3303  </varlistentry>
3304
3305  <varlistentry>
3306   <term>Notes:</term>
3307   <listitem>
3308    <para>
3309     De-animate all animated GIF images, i.e. reduce them to their last frame.
3310     This will also shrink the images considerably (in bytes, not pixels!). If
3311     the option <quote>first</quote> is given, the first frame of the animation
3312     is used as the replacement. If <quote>last</quote> is given, the last
3313     frame of the animation is used instead, which probably makes more sense for
3314     most banner animations, but also has the risk of not showing the entire
3315     last frame (if it is only a delta to an earlier frame).
3316    </para>
3317   </listitem>
3318  </varlistentry>
3319
3320 </variablelist>
3321 </sect3>
3322
3323 <!--   ~~~~~       New section      ~~~~~     -->
3324 <sect3 renderas="sect4" id="downgrade-http-version">
3325 <title><emphasis>+downgrade-http-version</emphasis></title>
3326
3327 <variablelist>
3328  <varlistentry>
3329   <term>Type:</term>
3330   <!-- boolean, parameterized, Multi-value -->
3331   <listitem>
3332    <para>Boolean.</para>
3333   </listitem>
3334  </varlistentry>
3335
3336  <varlistentry>
3337   <term>Typical uses:</term>
3338   <listitem>
3339    <para>
3340     <quote>+downgrade-http-version</quote> will downgrade HTTP/1.1 client requests to
3341     HTTP/1.0 and downgrade the responses as well.
3342    </para>
3343   </listitem>
3344  </varlistentry>
3345
3346  <varlistentry>
3347   <term>Possible values:</term>
3348   <listitem>
3349    <para>
3350     N/A
3351    </para>
3352   </listitem>
3353  </varlistentry>
3354  
3355  <varlistentry>
3356   <term>Example usage:</term>
3357   <listitem>
3358     <literallayout>
3359      <emphasis>{+downgrade-http-version}</emphasis>
3360      <emphasis>.example.com</emphasis>
3361     </literallayout>
3362   </listitem>
3363  </varlistentry>
3364
3365  <varlistentry>
3366   <term>Notes:</term>
3367   <listitem>
3368    <para>
3369     Use this action for servers that use HTTP/1.1 protocol features that
3370     <application>Privoxy</application> doesn't handle well yet. HTTP/1.1 is
3371     only partially implemented. Default is not to downgrade requests. This is
3372     an infrequently needed action, and is used to help with rare problem sites only.
3373    </para>
3374   </listitem>
3375  </varlistentry>
3376
3377 </variablelist>
3378 </sect3>
3379
3380 <!--   ~~~~~       New section      ~~~~~     -->
3381 <sect3 renderas="sect4" id="fast-redirects">
3382 <title><emphasis>+fast-redirects</emphasis></title>
3383
3384 <variablelist>
3385  <varlistentry>
3386   <term>Type:</term>
3387   <!-- boolean, parameterized, Multi-value -->
3388   <listitem>
3389    <para>Boolean.</para>
3390   </listitem>
3391  </varlistentry>
3392
3393  <varlistentry>
3394   <term>Typical uses:</term>
3395   <listitem>
3396    <para>
3397     The <quote>+fast-redirects</quote> action enables interception of 
3398     <quote>redirect</quote> requests from one server to another, which 
3399     are used to track users.<application>Privoxy</application> can cut off
3400     all but the last valid URL in a redirect request and send a local redirect
3401     back to your browser without contacting the intermediate site(s).
3402    </para>
3403   </listitem>
3404  </varlistentry>
3405
3406  <varlistentry>
3407   <term>Possible values:</term>
3408   <listitem>
3409    <para>
3410     N/A
3411    </para>
3412   </listitem>
3413  </varlistentry>
3414  
3415  <varlistentry>
3416   <term>Example usage:</term>
3417   <listitem>
3418     <literallayout>
3419      <emphasis>{+fast-redirects}</emphasis>
3420      <emphasis>.example.com</emphasis>
3421     </literallayout>
3422   </listitem>
3423  </varlistentry>
3424
3425  <varlistentry>
3426   <term>Notes:</term>
3427   <listitem>
3428    <para>  
3429     Many sites, like yahoo.com, don't just link to other sites. Instead, they
3430     will link to some script on their own server, giving the destination as a
3431     parameter, which will then redirect you to the final target. URLs
3432     resulting from this scheme typically look like:
3433     <emphasis>http://some.place/some_script?http://some.where-else</emphasis>.
3434   </para>
3435    <para>
3436     Sometimes, there are even multiple consecutive redirects encoded in the
3437     URL. These redirections via scripts make your web browsing more traceable,
3438     since the server from which you follow such a link can see where you go
3439     to. Apart from that, valuable bandwidth and time is wasted, while your
3440     browser ask the server for one redirect after the other. Plus, it feeds
3441     the advertisers.
3442    </para>
3443    <para>
3444     This is a normally <quote>on</quote> feature, and often requires exceptions
3445     for sites that are sensitive to defeating this mechanism.
3446    </para>
3447   </listitem>
3448  </varlistentry>
3449
3450 </variablelist>
3451 </sect3>
3452
3453
3454 <!--   ~~~~~       New section      ~~~~~     -->
3455 <sect3 renderas="sect4" id="filter">
3456 <title><emphasis>+filter</emphasis></title>
3457
3458 <variablelist>
3459  <varlistentry>
3460   <term>Type:</term>
3461   <!-- boolean, parameterized, Multi-value -->
3462   <listitem>
3463    <para>Parameterized.</para>
3464   </listitem>
3465  </varlistentry>
3466
3467  <varlistentry>
3468   <term>Typical uses:</term>
3469   <listitem>
3470    <para>
3471     Apply page filtering as defined by named sections of the
3472     <filename>default.filter</filename> file to the specified site(s). 
3473     <quote>Filtering</quote> can be any modification of the raw 
3474     page content, including re-writing or deletion of content.
3475    </para>
3476   </listitem>
3477  </varlistentry>
3478
3479  <varlistentry>
3480   <term>Possible values:</term>
3481   <listitem>
3482    <para>
3483     <quote>+filter</quote> must include the name of one of the section identifiers
3484     from <filename>default.filter</filename> (or whatever
3485     <emphasis>filterfile</emphasis> is specified in <filename>config</filename>).
3486    </para>
3487   </listitem>
3488  </varlistentry>
3489  
3490  <varlistentry>
3491   <term>Example usage (from the current <filename>default.filter</filename>):</term>
3492   <listitem>
3493    <simplelist>
3494    <member>
3495     <anchor id="filter-html-annoyances">
3496     <emphasis>+filter{html-annoyances}</emphasis>:  Get rid of particularly annoying HTML abuse.
3497    </member>
3498   </simplelist>
3499   <simplelist>
3500    <member>
3501     <anchor id="filter-js-annoyances">
3502     <emphasis>+filter{js-annoyances}</emphasis>:    Get rid of particularly annoying JavaScript abuse
3503    </member>
3504   </simplelist>
3505   <simplelist>
3506    <member>
3507     <anchor id="filter-content-cookies">
3508     <emphasis>+filter{content-cookies}</emphasis>:   Kill cookies that come in the HTML or JS content 
3509    </member>
3510   </simplelist>
3511   <simplelist>
3512    <member>
3513     <anchor id="filter-popups">
3514     <emphasis>+filter{popups}</emphasis>:         Kill all popups in JS and HTML
3515    </member>
3516   </simplelist>
3517   <simplelist>
3518    <member>
3519     <anchor id="filter-frameset-borders">
3520     <emphasis>+filter{frameset-borders}</emphasis>: Give frames a border and make them resizable 
3521    </member>
3522   </simplelist>
3523   <simplelist>
3524    <member>
3525     <anchor id="filter-webbugs">
3526     <emphasis>+filter{webbugs}</emphasis>:          Squish WebBugs (1x1 invisible GIFs used for user tracking)
3527    </member>
3528   </simplelist>
3529   <simplelist>
3530    <member>
3531     <anchor id="filter-refresh-tags">
3532     <emphasis>+filter{refresh-tags}</emphasis>:     Kill automatic refresh tags (for dial-on-demand setups) 
3533    </member>
3534   </simplelist>
3535   <simplelist>
3536    <member>
3537     <anchor id="filter-fun">
3538     <emphasis>+filter{fun}</emphasis>:              Text replacements  for subversive browsing fun!
3539    </member>
3540   </simplelist>
3541   <simplelist>
3542    <member>
3543     <anchor id="filter-nimda">
3544     <emphasis>+filter{nimda}</emphasis>:            Remove Nimda (virus) code.
3545    </member>
3546   </simplelist>
3547   <simplelist>
3548    <member>
3549     <anchor id="filter-banners-by-size">
3550     <emphasis>+filter{banners-by-size}</emphasis>:  Kill banners by size (<emphasis>very</emphasis> efficient!)
3551    </member>
3552   </simplelist>
3553   <simplelist>
3554    <member>
3555     <anchor id="filter-shockwave-flash">
3556     <emphasis>+filter{shockwave-flash}</emphasis>:   Kill embedded Shockwave Flash objects
3557    </member>
3558   </simplelist>
3559   <simplelist>
3560    <member>
3561     <anchor id="filter-crude-parental">
3562     <emphasis>+filter{crude-parental}</emphasis>:   Kill all web pages that contain the words "sex" or "warez"
3563    </member>
3564   </simplelist>
3565   </listitem>
3566  </varlistentry>
3567
3568  <varlistentry>
3569   <term>Notes:</term>
3570   <listitem>
3571    <para>
3572     This is potentially a very powerful feature! And requires a knowledge 
3573     of regular expressions if you want to <quote>roll your own</quote>.
3574     Filtering operates on a line by line basis throughout the entire page.
3575    </para>
3576    <para>
3577     Filtering requires buffering the page content, which may appear to
3578     slow down page rendering since nothing is displayed until all content has
3579     passed the filters. (It does not really take longer, but seems that way
3580     since the page is not incrementally displayed.) This effect will be more
3581     noticeable on slower connections.
3582    </para>
3583    <para>
3584     Filtering can achieve some of the effects as the 
3585     <ulink url="actions-file#BLOCK"><quote>+block</quote></ulink>
3586     action, i.e. it can be used to block ads and banners. In the overall 
3587     scheme of things, filtering is one of the first things <quote>Privoxy</quote> 
3588     does with a web page. So other most other actions are applied to the 
3589     already <quote>filtered</quote> page.
3590    </para>
3591   </listitem>
3592  </varlistentry>
3593
3594 </variablelist>
3595 </sect3>
3596
3597
3598 <!--   ~~~~~       New section      ~~~~~     -->
3599 <sect3 renderas="sect4" id="hide-forwarded-for-headers">
3600 <title><emphasis>+hide-forwarded-for-headers</emphasis></title>
3601
3602 <variablelist>
3603  <varlistentry>
3604   <term>Type:</term>
3605   <!-- Boolean, Parameterized, Multi-value -->
3606   <listitem>
3607    <para>Boolean.</para>
3608   </listitem>
3609  </varlistentry>
3610
3611  <varlistentry>
3612   <term>Typical uses:</term>
3613   <listitem>
3614    <para>
3615     Block any existing X-Forwarded-for HTTP header, and do not add a new one.
3616    </para>
3617   </listitem>
3618  </varlistentry>
3619
3620  <varlistentry>
3621   <term>Possible values:</term>
3622   <listitem>
3623    <para>
3624     N/A
3625    </para>
3626   </listitem>
3627  </varlistentry>
3628  
3629  <varlistentry>
3630   <term>Example usage:</term>
3631   <listitem>
3632     <literallayout>
3633      <emphasis>{+hide-forwarded-for-headers}</emphasis>
3634      <emphasis>.example.com</emphasis>
3635     </literallayout>
3636   </listitem>
3637  </varlistentry>
3638
3639  <varlistentry>
3640   <term>Notes:</term>
3641   <listitem>
3642    <para>
3643     It is fairly safe to leave this on. It does not seem to break many sites.
3644    </para>
3645   </listitem>
3646  </varlistentry>
3647
3648 </variablelist>
3649 </sect3>
3650
3651
3652 <!--   ~~~~~       New section      ~~~~~     -->
3653 <sect3 renderas="sect4" id="hide-from-header">
3654 <title><emphasis>+hide-from-header</emphasis></title>
3655
3656 <variablelist>
3657  <varlistentry>
3658   <term>Type:</term>
3659   <!-- Boolean, Parameterized, Multi-value -->
3660   <listitem>
3661    <para>Parameterized.</para>
3662   </listitem>
3663  </varlistentry>
3664
3665  <varlistentry>
3666   <term>Typical uses:</term>
3667   <listitem>
3668    <para>
3669     To block the browser from sending your email address in a <quote>From:</quote>
3670     header.
3671    </para>
3672   </listitem>
3673  </varlistentry>
3674
3675  <varlistentry>
3676   <term>Possible values:</term>
3677   <listitem>
3678    <para>
3679     Keyword: <quote>block</quote>, or any user defined value.
3680    </para>
3681   </listitem>
3682  </varlistentry>
3683  
3684  <varlistentry>
3685   <term>Example usage:</term>
3686   <listitem>
3687     <literallayout>
3688      <emphasis>{+hide-from-header{block}}</emphasis>
3689      <emphasis>.example.com</emphasis>
3690     </literallayout>
3691   </listitem>
3692  </varlistentry>
3693
3694  <varlistentry>
3695   <term>Notes:</term>
3696   <listitem>
3697    <para>
3698     The keyword <quote>block</quote> will completely remove the header 
3699     (not to be confused with the <ulink
3700     url="actions-file.html#BLOCK"><quote>+block</quote></ulink> action).
3701     Alternately, you can specify any value you prefer to send to the web
3702     server.
3703    </para>
3704   </listitem>
3705  </varlistentry>
3706
3707 </variablelist>
3708 </sect3>
3709
3710
3711 <!--   ~~~~~       New section      ~~~~~     -->
3712 <sect3 renderas="sect4" id="hide-referer">
3713 <title><emphasis>+hide-referer</emphasis></title>
3714 <anchor id="hide-referrer">
3715 <variablelist>
3716  <varlistentry>
3717   <term>Type:</term>
3718   <!-- Boolean, Parameterized, Multi-value -->
3719   <listitem>
3720    <para>Parameterized.</para>
3721   </listitem>
3722  </varlistentry>
3723
3724  <varlistentry>
3725   <term>Typical uses:</term>
3726   <listitem>
3727    <para>
3728      Don't send the <quote>Referer:</quote> (sic) HTTP header to the web site.
3729      Or, alternately send a forged header instead.
3730    </para>
3731   </listitem>
3732  </varlistentry>
3733
3734  <varlistentry>
3735   <term>Possible values:</term>
3736   <listitem>
3737    <para>
3738      Prevent the header from being sent with the keyword, <quote>block</quote>.
3739      Or, <quote>forge</quote> a URL to one from the same server as the request.
3740      Or, set to user defined value of your choice.
3741    </para>
3742   </listitem>
3743  </varlistentry>
3744  
3745  <varlistentry>
3746   <term>Example usage:</term>
3747   <listitem>
3748     <literallayout>
3749      <emphasis>{+hide-referer{forge}}</emphasis>
3750      <emphasis>.example.com</emphasis>
3751     </literallayout>
3752   </listitem>
3753  </varlistentry>
3754
3755  <varlistentry>
3756   <term>Notes:</term>
3757   <listitem>
3758    <para>
3759     <quote>forge</quote> is the preferred option here, since some servers will
3760     not send images back otherwise.
3761    </para>
3762   <para>  
3763    <quote>+hide-referrer</quote> is an alternate spelling of
3764    <quote>+hide-referer</quote>. It has the exact same parameters, and can be freely
3765    mixed with, <quote>+hide-referer</quote>. (<quote>referrer</quote> is the
3766    correct English spelling, however the HTTP specification has a bug - it
3767    requires it to be spelled as <quote>referer</quote>.) 
3768   </para>
3769   </listitem>
3770  </varlistentry>
3771
3772 </variablelist>
3773 </sect3>
3774
3775
3776 <!--   ~~~~~       New section      ~~~~~     -->
3777 <sect3 renderas="sect4" id="hide-user-agent">
3778 <title><emphasis>+hide-user-agent</emphasis></title>
3779
3780 <variablelist>
3781  <varlistentry>
3782   <term>Type:</term>
3783   <!-- Boolean, Parameterized, Multi-value -->
3784   <listitem>
3785    <para>Parameterized.</para>
3786   </listitem>
3787  </varlistentry>
3788
3789  <varlistentry>
3790   <term>Typical uses:</term>
3791   <listitem>
3792    <para>
3793     To change the <quote>User-Agent:</quote> header so web servers can't tell
3794     your browser type. Who's business is it anyway?
3795    </para>
3796   </listitem>
3797  </varlistentry>
3798
3799  <varlistentry>
3800   <term>Possible values:</term>
3801   <listitem>
3802    <para>
3803     Any user defined string.
3804    </para>
3805   </listitem>
3806  </varlistentry>
3807  
3808  <varlistentry>
3809   <term>Example usage:</term>
3810   <listitem>
3811     <literallayout>
3812      <emphasis>{+hide-user-agent{Netscape 6.1 (X11; I; Linux 2.4.18 i686)}}</emphasis>
3813      <emphasis>.msn.com</emphasis>
3814     </literallayout>
3815   </listitem>
3816  </varlistentry>
3817
3818  <varlistentry>
3819   <term>Notes:</term>
3820   <listitem>
3821    <para>
3822      Warning! This breaks many web sites that depend on this in order 
3823      to determine how the target browser will respond to various 
3824      requests. Use with caution.
3825    </para>
3826   </listitem>
3827  </varlistentry>
3828
3829 </variablelist>
3830 </sect3>
3831
3832 <!--   ~~~~~       New section      ~~~~~     -->
3833 <sect3 renderas="sect4" id="handle-as-image">
3834 <title><emphasis>+handle-as-image</emphasis></title>
3835
3836 <variablelist>
3837  <varlistentry>
3838   <term>Type:</term>
3839   <!-- Boolean, Parameterized, Multi-value -->
3840   <listitem>
3841    <para>Boolean.</para>
3842   </listitem>
3843  </varlistentry>
3844
3845  <varlistentry>
3846   <term>Typical uses:</term>
3847   <listitem>
3848    <para>
3849     To define what <application>Privoxy</application> should treat 
3850     automatically as an image, and is an important ingredient of how 
3851     ads are handled.
3852    </para>
3853   </listitem>
3854  </varlistentry>
3855
3856  <varlistentry>
3857   <term>Possible values:</term>
3858   <listitem>
3859    <para>
3860     N/A
3861    </para>
3862   </listitem>
3863  </varlistentry>
3864  
3865  <varlistentry>
3866   <term>Example usage:</term>
3867   <listitem>
3868     <literallayout>
3869      <emphasis>{+handle-as-image}</emphasis>
3870      <emphasis>/.*\.(gif|jpg|jpeg|png|bmp|ico)</emphasis>
3871     </literallayout>
3872   </listitem>
3873  </varlistentry>
3874
3875  <varlistentry>
3876   <term>Notes:</term>
3877   <listitem>
3878    <para>
3879     This only has meaning if the URL (or pattern) also is
3880     <quote>+block</quote>ed, in which case a user definable image can
3881     be sent rather than a HTML page. This is integral to the whole concept of
3882     ad blocking: the URL must match <emphasis>both</emphasis> a <ulink
3883     url="actions-file.html#BLOCK"><quote>+block</quote></ulink> rule,
3884     <emphasis>and</emphasis> <quote>+handle-as-image</quote>.
3885     (See <ulink
3886     url="actions-file.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
3887     below for control over what will actually be displayed by the browser.)
3888    </para>
3889    <para>
3890     There is little reason to change the default definition for this action.
3891    </para>
3892   </listitem>
3893  </varlistentry>
3894
3895 </variablelist>
3896 </sect3>
3897
3898
3899 <!--   ~~~~~       New section      ~~~~~     -->
3900 <sect3 renderas="sect4" id="set-image-blocker">
3901 <title><emphasis>+set-image-blocker</emphasis></title>
3902
3903 <variablelist>
3904  <varlistentry>
3905   <term>Type:</term>
3906   <!-- Boolean, Parameterized, Multi-value -->
3907   <listitem>
3908    <para>Parameterized.</para>
3909   </listitem>
3910  </varlistentry>
3911
3912  <varlistentry>
3913   <term>Typical uses:</term>
3914   <listitem>
3915    <para>
3916     Decide what to do with URLs that end up tagged with <emphasis>both</emphasis> 
3917     <ulink url="actions-file.html#BLOCK"><quote>+block</quote></ulink>
3918     and <ulink
3919     url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>,
3920     e.g an advertisement.
3921    </para>
3922   </listitem>
3923  </varlistentry>
3924
3925  <varlistentry>
3926   <term>Possible values:</term>
3927   <listitem>
3928    <para>
3929     There are four available options: <quote>-set-image-blocker</quote> will send a HTML
3930     <quote>blocked</quote> page, usually resulting in a <quote>broken
3931     image</quote> icon.
3932     <quote>+set-image-blocker{<emphasis>blank</emphasis>}</quote> will send a
3933     1x1 transparent GIF image.
3934     <quote>+set-image-blocker{<emphasis>pattern</emphasis>}</quote> will send a
3935     checkerboard type pattern (the default). And finally,
3936     <quote>+set-image-blocker{<emphasis>http://xyz.com</emphasis>}</quote> will
3937     send a HTTP temporary redirect to the specified image. This has the
3938     advantage of the icon being being cached by the browser, which will speed
3939     up the display.
3940    </para>
3941   </listitem>
3942  </varlistentry>
3943  
3944  <varlistentry>
3945   <term>Example usage:</term>
3946   <listitem>
3947     <literallayout>
3948      <emphasis>{+set-image-blocker{blank}}</emphasis>
3949      <emphasis>.example.com</emphasis>
3950     </literallayout>
3951   </listitem>
3952  </varlistentry>
3953
3954  <varlistentry>
3955   <term>Notes:</term>
3956   <listitem>
3957    <para>
3958     If you want <emphasis>invisible</emphasis> ads, they need to meet 
3959     criteria as matching both <emphasis>images</emphasis> and <emphasis>blocked</emphasis>
3960     actions. And then, <quote>image-blocker</quote> should be set to
3961     <quote>blank</quote> for invisibility. Note you cannot treat HTML pages as
3962     images in most cases. For instance, frames require an HTML page to
3963     display. So a frame that is an ad, typically cannot be treated as an image.
3964     Forcing an <quote>image</quote> in this situation just will not work
3965     reliably. 
3966    </para>
3967   </listitem>
3968  </varlistentry>
3969
3970 </variablelist>
3971 </sect3>
3972
3973 <!--   ~~~~~       New section      ~~~~~     -->
3974 <sect3 renderas="sect4" id="limit-connect">
3975 <title><emphasis>+limit-connect</emphasis></title>
3976
3977 <variablelist>
3978  <varlistentry>
3979   <term>Type:</term>
3980   <!-- Boolean, Parameterized, Multi-value -->
3981   <listitem>
3982    <para>Parameterized.</para>
3983   </listitem>
3984  </varlistentry>
3985
3986  <varlistentry>
3987   <term>Typical uses:</term>
3988   <listitem>
3989    <para>
3990     By default, <application>Privoxy</application> only allows HTTP CONNECT
3991     requests to port 443 (the standard, secure HTTPS port). Use 
3992     <quote>+limit-connect</quote> to disable this altogether, or to allow 
3993     more ports.
3994    </para>
3995   </listitem>
3996  </varlistentry>
3997
3998  <varlistentry>
3999   <term>Possible values:</term>
4000   <listitem>
4001    <para>
4002     Any valid port number, or port number range.
4003    </para>
4004   </listitem>
4005  </varlistentry>
4006  
4007  <varlistentry>
4008   <term>Example usages:</term>
4009   <listitem>
4010    <!-- I had trouble getting the spacing to look right in my browser -->
4011    <!-- I probably have the wrong font setup, bollocks. -->
4012    <!-- Apparently the emphasis tag uses a proportional font no matter what -->
4013     <literallayout>
4014      <emphasis>+limit-connect{443}</emphasis>                       # This is the default and need not be specified.
4015      <emphasis>+limit-connect{80,443}</emphasis>                  # Ports 80 and 443 are OK.
4016      <emphasis>+limit-connect{-3, 7, 20-100, 500-}</emphasis>   # Port less than 3, 7, 20 to 100 and above 500 are OK.
4017     </literallayout>
4018   </listitem>
4019  </varlistentry>
4020
4021  <varlistentry>
4022   <term>Notes:</term>
4023   <listitem>
4024    <para>
4025     The CONNECT methods exists in HTTP to allow access to secure websites
4026     (https:// URLs) through proxies. It works very simply: the proxy connects
4027     to the server on the specified port, and then short-circuits its
4028     connections to the client <emphasis>and</emphasis> to the remote proxy.
4029     This can be a big security hole, since CONNECT-enabled proxies can be
4030     abused as TCP relays very easily.
4031   </para>
4032   <para> 
4033    If you want to allow CONNECT for more ports than this, or want to forbid
4034    CONNECT altogether, you can specify a comma separated list of ports and
4035    port ranges (the latter using dashes, with the minimum defaulting to 0 and
4036    max to 65K).
4037   </para>
4038   <para>
4039    If you don't know what any of this means, there probably is no reason to 
4040    change this one.
4041   </para>
4042   </listitem>
4043  </varlistentry>
4044
4045 </variablelist>
4046 </sect3>
4047
4048 <!--   ~~~~~       New section      ~~~~~     -->
4049 <sect3 renderas="sect4" id="prevent-compression">
4050 <title><emphasis>+prevent-compression</emphasis></title>
4051
4052 <variablelist>
4053  <varlistentry>
4054   <term>Type:</term>
4055   <!-- Boolean, Parameterized, Multi-value -->
4056   <listitem>
4057    <para>Boolean.</para>
4058   </listitem>
4059  </varlistentry>
4060
4061  <varlistentry>
4062   <term>Typical uses:</term>
4063   <listitem>
4064    <para>
4065     Prevent the specified websites from compressing HTTP data.
4066    </para>
4067   </listitem>
4068  </varlistentry>
4069
4070  <varlistentry>
4071   <term>Possible values:</term>
4072   <listitem>
4073    <para>
4074     N/A
4075    </para>
4076   </listitem>
4077  </varlistentry>
4078  
4079  <varlistentry>
4080   <term>Example usage:</term>
4081   <listitem>
4082     <literallayout>
4083      <emphasis>{+prevent-compression}</emphasis>
4084      <emphasis>.example.com</emphasis>
4085     </literallayout>
4086   </listitem>
4087  </varlistentry>
4088
4089  <varlistentry>
4090   <term>Notes:</term>
4091   <listitem>
4092    <para>
4093     Some websites do this, which can be a problem for
4094     <application>Privoxy</application>, since 
4095     <ulink url="actions-file.html#FILTER"><quote>+filter</quote></ulink>,
4096     <ulink url="actions-file.html#KILL-POPUPS"><quote>+kill-popups</quote></ulink>
4097     and <ulink
4098     url="actions-file.html#GIF-DEANIMATE"><quote>+gif-deanimate</quote></ulink>
4099     will not work on compressed data. This will slow down connections to those
4100     websites, though. Default typically is to turn
4101     <quote>prevent-compression</quote> on.
4102    </para>
4103   </listitem>
4104  </varlistentry>
4105
4106 </variablelist>
4107 </sect3>
4108
4109 <!--   ~~~~~       New section      ~~~~~     -->
4110 <sect3 renderas="sect4" id="session-cookies-only">
4111 <title><emphasis>+session-cookies-only</emphasis></title>
4112
4113 <variablelist>
4114  <varlistentry>
4115   <term>Type:</term>
4116   <!-- Boolean, Parameterized, Multi-value -->
4117   <listitem>
4118    <para>Boolean.</para>
4119   </listitem>
4120  </varlistentry>
4121
4122  <varlistentry>
4123   <term>Typical uses:</term>
4124   <listitem>
4125    <para>
4126     Allow cookies for the current browser session <emphasis>only</emphasis>.
4127    </para>
4128   </listitem>
4129  </varlistentry>
4130
4131  <varlistentry>
4132   <term>Possible values:</term>
4133   <listitem>
4134    <para>
4135     N/A
4136    </para>
4137   </listitem>
4138  </varlistentry>
4139  
4140  <varlistentry>
4141   <term>Example usage (disabling):</term>
4142   <listitem>
4143     <literallayout>
4144      <emphasis>{-session-cookies-only}</emphasis>
4145      <emphasis>.example.com</emphasis>
4146     </literallayout>
4147   </listitem>
4148  </varlistentry>
4149
4150  <varlistentry>
4151   <term>Notes:</term>
4152   <listitem>
4153    <para>
4154     If websites set cookies, <quote>+session-cookies-only</quote> will make sure
4155     they are erased when you exit and restart your web browser. This makes
4156     profiling cookies useless, but won't break sites which require cookies so
4157     that you can log in for transactions. This is generally turned on for all 
4158     sites, and is the recommended setting.
4159    </para>
4160    <para>
4161     <quote>+prevent-*-cookies</quote> actions should be turned off as well (see
4162     below), for <quote>+session-cookies-only</quote> to work. Or, else no cookies 
4163     will get through at all. For, <quote>persistent</quote> cookies that survive 
4164     across browser sessions, see below as well.
4165    </para>
4166   </listitem>
4167  </varlistentry>
4168
4169 </variablelist>
4170 </sect3>
4171
4172
4173 <!--   ~~~~~       New section      ~~~~~     -->
4174 <sect3 renderas="sect4" id="prevent-reading-cookies">
4175 <title><emphasis>+prevent-reading-cookies</emphasis></title>
4176
4177 <variablelist>
4178  <varlistentry>
4179   <term>Type:</term>
4180   <!-- Boolean, Parameterized, Multi-value -->
4181   <listitem>
4182    <para>Boolean.</para>
4183   </listitem>
4184  </varlistentry>
4185
4186  <varlistentry>
4187   <term>Typical uses:</term>
4188   <listitem>
4189    <para>
4190     Explicitly prevent the web server from reading any cookies on your 
4191     system.
4192    </para>
4193   </listitem>
4194  </varlistentry>
4195
4196  <varlistentry>
4197   <term>Possible values:</term>
4198   <listitem>
4199    <para>
4200     N/A
4201    </para>
4202   </listitem>
4203  </varlistentry>
4204  
4205  <varlistentry>
4206   <term>Example usage:</term>
4207   <listitem>
4208     <literallayout>
4209      <emphasis>{+prevent-reading-cookies}</emphasis>
4210      <emphasis>.example.com</emphasis>
4211     </literallayout>
4212   </listitem>
4213  </varlistentry>
4214
4215  <varlistentry>
4216   <term>Notes:</term>
4217   <listitem>
4218    <para>
4219     Often used in conjunction with <quote>+prevent-setting-cookies</quote> to 
4220     disable cookies completely. Note that 
4221     <ulink url="actions-file.html#SESSION-COOKIES-ONLY"><quote>+session-cookies-only</quote></ulink>
4222     requires these to both be disabled (or else it never gets any cookies to cache).
4223    </para>
4224    <para>
4225     For <quote>persistent</quote> cookies to work (i.e. they survive across browser 
4226     sessions and reboots), all three cookie settings should be <quote>off</quote> 
4227     for the specified sites.
4228    </para>
4229   </listitem>
4230  </varlistentry>
4231
4232 </variablelist>
4233 </sect3>
4234
4235
4236 <!--   ~~~~~       New section      ~~~~~     -->
4237 <sect3 renderas="sect4" id="prevent-setting-cookies">
4238 <title><emphasis>+prevent-setting-cookies</emphasis></title>
4239
4240 <variablelist>
4241  <varlistentry>
4242   <term>Type:</term>
4243   <!-- Boolean, Parameterized, Multi-value -->
4244   <listitem>
4245    <para>Boolean.</para>
4246   </listitem>
4247  </varlistentry>
4248
4249  <varlistentry>
4250   <term>Typical uses:</term>
4251   <listitem>
4252    <para>
4253     Explicitly block the web server from storing cookies on your 
4254     system.
4255    </para>
4256   </listitem>
4257  </varlistentry>
4258
4259  <varlistentry>
4260   <term>Possible values:</term>
4261   <listitem>
4262    <para>
4263     N/A
4264    </para>
4265   </listitem>
4266  </varlistentry>
4267  
4268  <varlistentry>
4269   <term>Example usage:</term>
4270   <listitem>
4271     <literallayout>
4272      <emphasis>{+prevent-setting-cookies}</emphasis>
4273      <emphasis>.example.com</emphasis>
4274     </literallayout>
4275   </listitem>
4276  </varlistentry>
4277
4278  <varlistentry>
4279   <term>Notes:</term>
4280   <listitem>
4281    <para>
4282     Often used in conjunction with <quote>+prevent-reading-cookies</quote> to 
4283     disable cookies completely (see above).
4284    </para>
4285   </listitem>
4286  </varlistentry>
4287
4288 </variablelist>
4289 </sect3>
4290
4291
4292 <!--   ~~~~~       New section      ~~~~~     -->
4293 <sect3 renderas="sect4" id="kill-popup">
4294 <title><emphasis>+kill-popups<anchor id="kill-popups"></emphasis></title>
4295 <variablelist>
4296  <varlistentry>
4297   <term>Type:</term>
4298   <!-- Boolean, Parameterized, Multi-value -->
4299   <listitem>
4300    <para>Boolean.</para>
4301   </listitem>
4302  </varlistentry>
4303
4304  <varlistentry>
4305   <term>Typical uses:</term>
4306   <listitem>
4307    <para>
4308     Stop those annoying JavaScript pop-up windows! 
4309    </para>
4310   </listitem>
4311  </varlistentry>
4312
4313  <varlistentry>
4314   <term>Possible values:</term>
4315   <listitem>
4316    <para>
4317     N/A
4318    </para>
4319   </listitem>
4320  </varlistentry>
4321  
4322  <varlistentry>
4323   <term>Example usage:</term>
4324   <listitem>
4325     <literallayout>
4326      <emphasis>{+kill-popups}</emphasis>
4327      <emphasis>.example.com</emphasis>
4328     </literallayout>
4329   </listitem>
4330  </varlistentry>
4331
4332  <varlistentry>
4333   <term>Notes:</term>
4334   <listitem>
4335    <para>
4336     <quote>+kill-popups</quote> uses a built in filter to disable pop-ups
4337     that use the <literal>window.open()</literal> function, etc. This is 
4338     one of the first actions processed by <application>Privoxy</application>
4339     as it contacts the remote web server. This action is not always 100% reliable, 
4340     and is supplemented by <quote>+filter{<emphasis>popups</emphasis>}</quote>.
4341     </para>
4342   <!-- 
4343    <para>
4344     An alternate spelling is <quote>+kill-popup</quote>, which is 
4345     interchangeable.
4346    </para>
4347  --> 
4348   </listitem>
4349  </varlistentry>
4350
4351 </variablelist>
4352 </sect3>
4353
4354
4355 <!--   ~~~~~       New section      ~~~~~     -->
4356 <sect3 renderas="sect4" id="send-vanilla-wafer">
4357 <title><emphasis>+send-vanilla-wafer</emphasis></title>
4358
4359 <variablelist>
4360  <varlistentry>
4361   <term>Type:</term>
4362   <!-- Boolean, Parameterized, Multi-value -->
4363   <listitem>
4364    <para>Boolean.</para>
4365   </listitem>
4366  </varlistentry>
4367
4368  <varlistentry>
4369   <term>Typical uses:</term>
4370   <listitem>
4371    <para>
4372     Sends a cookie for every site stating that you do not accept any copyright
4373     on cookies sent to you, and asking them not to track you.
4374    </para>
4375   </listitem>
4376  </varlistentry>
4377
4378  <varlistentry>
4379   <term>Possible values:</term>
4380   <listitem>
4381    <para>
4382     N/A
4383    </para>
4384   </listitem>
4385  </varlistentry>
4386  
4387  <varlistentry>
4388   <term>Example usage:</term>
4389   <listitem>
4390     <literallayout>
4391      <emphasis>{+send-vanilla-wafer}</emphasis>
4392      <emphasis>.example.com</emphasis>
4393     </literallayout>
4394   </listitem>
4395  </varlistentry>
4396
4397  <varlistentry>
4398   <term>Notes:</term>
4399   <listitem>
4400    <para>
4401     This action only applies if you are using a <filename>jarfile</filename>
4402     for saving cookies. Of course, this is a (relatively) unique header and 
4403     could conceivably be used to track you.
4404    </para>
4405   </listitem>
4406  </varlistentry>
4407
4408 </variablelist>
4409 </sect3>
4410
4411
4412 <!--   ~~~~~       New section      ~~~~~     -->
4413 <sect3 renderas="sect4" id="send-wafer">
4414 <title><emphasis>+send-wafer</emphasis></title>
4415
4416 <variablelist>
4417  <varlistentry>
4418   <term>Type:</term>
4419   <!-- Boolean, Parameterized, Multi-value -->
4420   <listitem>
4421    <para>Multi-value.</para>
4422   </listitem>
4423  </varlistentry>
4424
4425  <varlistentry>
4426   <term>Typical uses:</term>
4427   <listitem>
4428    <para>
4429     This allows you to send an arbitrary, user definable cookie.
4430    </para>
4431   </listitem>
4432  </varlistentry>
4433
4434  <varlistentry>
4435   <term>Possible values:</term>
4436   <listitem>
4437    <para>
4438     User specified cookie name and corresponding value.
4439    </para>
4440   </listitem>
4441  </varlistentry>
4442  
4443  <varlistentry>
4444   <term>Example usage:</term>
4445   <listitem>
4446     <literallayout>
4447      <emphasis>{+send-wafer{name=value}}</emphasis>
4448      <emphasis>.example.com</emphasis>
4449     </literallayout>
4450   </listitem>
4451  </varlistentry>
4452
4453  <varlistentry>
4454   <term>Notes:</term>
4455   <listitem>
4456    <para>
4457     This can be specified multiple times in order to add as many cookies as you
4458     like.
4459    </para>
4460   </listitem>
4461  </varlistentry>
4462
4463 </variablelist>
4464 </sect3>
4465
4466
4467 <!--   ~~~~~       New section      ~~~~~     -->
4468 <sect3>
4469 <title>Summary</title>
4470 <para>
4471  Note that many of these actions have the potential to cause a page to
4472  misbehave, possibly even not to display at all. There are many ways 
4473  a site designer may choose to design his site, and what HTTP header 
4474  content, and other criteria, he may depend on. There is no way to have hard
4475  and fast rules for all sites. See the <link
4476  linkend="ACTIONSANAT">Appendix</link> for a brief example on troubleshooting
4477  actions.
4478 </para>
4479 </sect3>
4480
4481
4482 <!--   ~~~~~       New section      ~~~~~     -->
4483 <sect3 renderas="sect2" id="act-examples">
4484 <title>Sample Actions Files</title>
4485 <para>
4486  Remember that the meaning of any of the above references is reversed by preceding
4487  the action with a <quote>-</quote>, in place of the <quote>+</quote>. Also, 
4488  that some actions are turned on in the default section of the actions file, 
4489  and require little to no additional configuration. These are just <quote>on</quote>.
4490 </para>
4491
4492 <para>
4493  But, other actions that are turned on in the default section <emphasis>do
4494  typically require</emphasis> exceptions to be listed in the latter sections of 
4495  one of our actions file. For instance, by default no URLs are
4496  <quote>blocked</quote> (i.e. in the default definitions of
4497  <filename>default.action</filename>). We need exceptions to this in order to
4498  <emphasis>enable</emphasis> ad blocking in the lower sections. But we need to
4499  be very selective about what we do block. Thus, the default is <quote>off</quote>
4500  for blocking.
4501 </para>
4502
4503 <para>
4504  Below is a liberally commented sample <filename>default.action</filename> file
4505  to demonstrate how all the pieces come together. And to show how exceptions
4506  to the default policies can be handled. This is followed by a brief 
4507  <filename>user.action</filename> with similar examples.
4508 </para>
4509
4510 <para>
4511  <literal>
4512   <msgtext> 
4513    <literallayout>
4514 # Sample default.action file &lt;developers@privoxy.org&gt;
4515
4516 # Settings -- Don't change! For internal Privoxy use ONLY.
4517 {{settings}}
4518 for-privoxy-version=3.0
4519
4520
4521 ##########################################################################
4522 # <ulink url="actions-file.html#ALIASES">Aliases</ulink> must be defined *before* they are used. These are
4523 # easier to remember, and can combine several actions into one. Once 
4524 # defined they can be used just like any built-in action -- but within 
4525 # this file only! Aliases do not require a + or - sign.
4526 ##########################################################################
4527
4528 # Some useful aliases.
4529 # Alias to turn off cookie handling, ie allow all cookies unmolested.
4530  -prevent-cookies = -prevent-setting-cookies -prevent-reading-cookies \
4531                     -session-cookies-only
4532
4533 # Alias to both block and treat as if an image for ad blocking
4534 # purposes.
4535  +imageblock      = +block +handle-as-image
4536
4537 # Fragile sites should have the minimum changes:
4538  fragile     = -block -deanimate-gifs -fast-redirects -filter -hide-referer \
4539                -prevent-cookies -kill-popups
4540
4541 # Shops should be allowed to set persistent cookies
4542  shop        = -filter -prevent-cookies -session-cookies-only
4543
4544
4545 ##########################################################################
4546 # Begin default action settings. Anything in this section will match 
4547 # all URLs -- UNLESS we have exceptions that also match, defined below this 
4548 # section. We will show all potential actions here whether they are on 
4549 # or off. We could omit any disabled action if we wanted, since all 
4550 # actions are 'off' by default anyway. Shown for completeness only.
4551 # Actions are enabled if preceded by a '+', otherwise they are disabled 
4552 # (unless an alias has been defined without this).
4553 ##########################################################################
4554  { \
4555  <ulink url="actions-file.html#ADD-HEADER">-add-header</ulink> \
4556  <ulink url="actions-file.html#BLOCK">-block</ulink> \
4557  <ulink url="actions-file.html#DEANIMATE-GIFS">-deanimate-gifs</ulink> \
4558  <ulink url="actions-file.html#DOWNGRADE-HTTP-VERSION">-downgrade-http-version</ulink> \
4559  <ulink url="actions-file.html#FAST-REDIRECTS">+fast-redirects</ulink> \
4560  <ulink url="actions-file.html#FILTER-HTML-ANNOYANCES">+filter{html-annoyances}</ulink> \
4561  <ulink url="actions-file.html#FILTER-JS-ANNOYANCES">+filter{js-annoyances}</ulink> \
4562  <ulink url="actions-file.html#FILTER-CONTENT-COOKIES">-filter{content-cookies}</ulink> \
4563  <ulink url="actions-file.html#FILTER-POPUPS">-filter{popups}</ulink> \
4564  <ulink url="actions-file.html#FILTER-WEBBUGS">+filter{webbugs}</ulink> \
4565  <ulink url="actions-file.html#FILTER-REFRESH-TAGS">-filter{refresh-tags}</ulink> \
4566  <ulink url="actions-file.html#FILTER-FUN">-filter{fun}</ulink> \
4567  <ulink url="actions-file.html#FILTER-NIMDA">+filter{nimda}</ulink> \
4568  <ulink url="actions-file.html#FILTER-BANNERS-BY-SIZE">+filter{banners-by-size}</ulink> \
4569  <ulink url="actions-file.html#FILTER-SHOCKWAVE-FLASH">-filter{shockwave-flash}</ulink> \
4570  <ulink url="actions-file.html#FILTER-CRUDE-PARENTAL">-filter{crude-prental}</ulink> \
4571  <ulink url="actions-file.html#HIDE-FORWARDED-FOR-HEADERS">+hide-forwarded-for-headers</ulink> \
4572  <ulink url="actions-file.html#HIDE-FROM-HEADER">+hide-from-header{block}</ulink> \
4573  <ulink url="actions-file.html#HIDE-REFERER">-hide-referrer</ulink> \
4574  <ulink url="actions-file.html#HIDE-USER-AGENT">-hide-user-agent</ulink> \
4575  <ulink url="actions-file.html#HANDLE-AS-IMAGE">-handle-as-image</ulink> \
4576  <ulink url="actions-file.html#SET-IMAGE-BLOCKER">+set-image-blocker{pattern}</ulink> \
4577  <ulink url="actions-file.html#LIMIT-CONNECT">-limit-connect</ulink> \
4578  <ulink url="actions-file.html#PREVENT-COMPRESSION">+prevent-compression</ulink> \
4579  <ulink url="actions-file.html#SESSION-COOKIES-ONLY">-session-cookies-only</ulink> \
4580  <ulink url="actions-file.html#PREVENT-READING-COOKIES">-prevent-reading-cookies</ulink> \
4581  <ulink url="actions-file.html#PREVENT-SETTING-COOKIES">-prevent-setting-cookies</ulink> \
4582  <ulink url="actions-file.html#KILL-POPUPS">-kill-popups</ulink> \
4583  <ulink url="actions-file.html#SEND-VANILLA-WAFER">-send-vanilla-wafer</ulink> \
4584  <ulink url="actions-file.html#SEND-WAFER">-send-wafer</ulink> \
4585  }
4586  / # forward slash will match *all* potential URL patterns. 
4587
4588 ##########################################################################
4589 # Default behavior is now set. Now we will define some exceptions to our 
4590 # default action policies.
4591 ##########################################################################
4592
4593 # These sites are very complex and require very minimal interference.
4594 # We'll disable most actions with our 'fragile' alias:
4595  { fragile }
4596  .office.microsoft.com           # surprise, surprise!
4597  .windowsupdate.microsoft.com
4598
4599
4600 # Shopping sites - not as fragile but require some special 
4601 # handling. We still want to block ads, and we will allow 
4602 # persistant cookies via the 'shop' alias:
4603  { shop }
4604  .quietpc.com 
4605  .worldpay.com   # for quietpc.com
4606  .jungle.com
4607  .scan.co.uk
4608
4609
4610 # These sites require pop-ups too :(  We'll combine our 'shop' 
4611 # alias with two other actions into one rule to allow all popups.
4612  { shop <ulink url="actions-file.html#KILL-POPUPS">-kill-popups</ulink> <ulink url="actions-file.html#FILTER-POPUPS">-filter{popups}</ulink> }
4613  .dabs.com
4614  .overclockers.co.uk
4615
4616
4617 # The 'Fast-redirects' action breaks some sites. Disable this action
4618 # for these known sensitive sites:
4619  { <ulink url="actions-file.html#FAST-REDIRECTS">-fast-redirects</ulink> }
4620  login.yahoo.com
4621  edit.europe.yahoo.com
4622  .google.com
4623  .altavista.com/.*(like|url|link):http
4624  .altavista.com/trans.*urltext=http
4625  .nytimes.com
4626
4627
4628 # Define which file types will be treated as images. Important
4629 # for ad blocking.
4630  { <ulink url="actions-file.html#HANDLE-AS-IMAGE">+handle-as-image</ulink> }
4631  /.*\.(gif|jpe?g|png|bmp|ico)
4632
4633
4634 # Now lets list some domains that are known ad generators. And
4635 # our alias that we use here will block these as well as force 
4636 # them to be treated as images. This combination of actions is 
4637 # important for ad blocking. What the browser will show instead is 
4638 # determined by the setting of <ulink url="actions-file.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
4639  { +imageblock }
4640  ar.atwola.com 
4641  .ad.doubleclick.net
4642  .a.yimg.com/(?:(?!/i/).)*$
4643  .a[0-9].yimg.com/(?:(?!/i/).)*$
4644  bs*.gsanet.com
4645  bs*.einets.com
4646  .qkimg.net
4647  ad.*.doubleclick.net
4648
4649
4650 # These will just simply be blocked. They will generate the BLOCKED
4651 # banner page, if matched. Heavy use of wildcards and regular 
4652 # expressions in this example. Enable block action:
4653  { <ulink url="actions-file.html#BLOCK">+block</ulink> }
4654  ad*.
4655  .*ads.
4656  banner?.
4657  count*.
4658  /.*count(er)?\.(pl|cgi|exe|dll|asp|php[34]?)
4659  /(?:.*/)?(publicite|werbung|rekla(ma|me|am)|annonse|maino(kset|nta|s)?)/
4660  .hitbox.com 
4661
4662
4663 # The above block section will probably inadvertantly catch some 
4664 # sites we DO NOT want blocked via the wildcards and regular expressions. 
4665 # Now let's set exceptions to the exceptions so the good guys get better 
4666 # treatment. Disable block action:
4667  { <ulink url="actions-file.html#BLOCK">-block</ulink> }
4668  advogato.org
4669  adsl.
4670  ad[ud]*.
4671  advice.
4672 # Let's just trust all .edu top level domains.
4673  .edu
4674  www.ugu.com/sui/ugu/adv
4675 # We'll need to access to path names containing 'download' 
4676  .*downloads.
4677  /downloads/
4678 # 'adv' is for globalintersec and means advanced, not advertisement
4679  www.globalintersec.com/adv
4680
4681
4682 # Don't filter *anything* from our friends at sourceforge.
4683 # Notice we don't have to name the individual filter 
4684 # identifiers -- we just turn them all off in one fell swoop.
4685 # Disable all filters for this one site:
4686  { <ulink url="actions-file.html#FILTER">-filter</ulink> }
4687  .sourceforge.net
4688    </literallayout>
4689   </msgtext> 
4690  </literal>
4691 </para>
4692
4693 <para>
4694  So far we are painting with a broad brush by setting general policies. 
4695  The above would be a reasonable starting point for many situations. Now, 
4696  we want to be more specific and have customized rules that are more suitable
4697  to our personal habits and preferences. These would be for narrowly defined 
4698  situations like your ISP or your bank, and should be placed in 
4699  <filename>user.action</filename>, which is parsed after all other 
4700  actions files and should not be clobbered by upgrades. So any settings here,
4701  will have the last word and over-ride any previously defined actions.
4702 </para>
4703
4704 <para>
4705  Now a few examples of some things that one might do with a
4706  <filename>user.action</filename> file. 
4707 </para>
4708
4709 <!-- brief sample user.action here -->
4710
4711 <para>
4712  <literal>
4713   <msgtext> 
4714    <literallayout>
4715 # Sample user.action file.
4716
4717 # Any aliases you want to use need to be re-defined here.
4718 # Alias to turn off cookie handling, ie allow all cookies unmolested.
4719  -prevent-cookies = -prevent-setting-cookies -prevent-reading-cookies \
4720                     -session-cookies-only
4721
4722 # Fragile sites should have the minimum changes:
4723  fragile     = -block -deanimate-gifs -fast-redirects -filter -hide-referer \
4724                -prevent-cookies -kill-popups
4725
4726 # Allow persistent cookies for a few regular sites that we 
4727 # trust via our above alias. These will be saved from one browser session 
4728 # to the next. We are explicity turning off any and all cookie handling, 
4729 # even though the prevent-*-cookie settings were disabled in our above 
4730 # default.action anyway. So cookies from these domains will come through 
4731 # unmolested.
4732  { -prevent-cookies }
4733  .sun.com
4734  .yahoo.com
4735  .msdn.microsoft.com
4736  .redhat.com
4737
4738
4739 # My ISP uses obnoxious self promoting images on many pages.
4740 # Nuke them :) Note that <ulink url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink> need not be specified,
4741 # since all URLs ending in .gif will be tagged as images by the
4742 # general rules in default.action anyway.
4743  { <ulink url="actions-file.html#BLOCK">+block</ulink> }
4744  www.my-isp-example.com/logo[0-9].gif
4745
4746
4747 # Say the site where you do your homebanking needs to open
4748 # popup windows, but you have chosen to kill popups by
4749 # default. This will allow it for your-example-bank.com:
4750 #
4751  { <ulink url="actions-file.html#FILTER-POPUPS">-filter{popups}</ulink> <ulink url="actions-file.html#KILL-POPUPS">-kill-popups</ulink> }
4752  .my-example-bank.com
4753
4754
4755 # This site is delicate, and requires kid-glove 
4756 # treatment.
4757  { fragile }
4758  .forbes.com
4759    </literallayout>
4760   </msgtext> 
4761  </literal>
4762 </para>
4763
4764 </sect3>
4765 </sect2>
4766
4767 <!--  ~  End section  ~  -->
4768
4769
4770 <!--   ~~~~~       New section      ~~~~~     -->
4771 <sect2 id="aliases">
4772 <title>Aliases</title>
4773 <para>
4774  Custom <quote>actions</quote>, known to <application>Privoxy</application>
4775  as <quote>aliases</quote>, can be defined by combining other <quote>actions</quote>.
4776  These can in turn be invoked just like the built-in <quote>actions</quote>.
4777  Currently, an alias can contain any character except space, tab, <quote>=</quote>,
4778  <quote>{</quote> or <quote>}</quote>. But please use only <quote>a</quote>-
4779  <quote>z</quote>, <quote>0</quote>-<quote>9</quote>, <quote>+</quote>, and
4780  <quote>-</quote>. Alias names are not case sensitive, and 
4781  <emphasis>must be defined before other actions</emphasis> in the
4782  actions file! And there can only be one set of <quote>aliases</quote>
4783  defined per file. Each actions file may have its own aliases, but they are 
4784  only visible within that file. Aliases do not requir a <quote>+</quote> or 
4785  <quote>-</quote> sign in front, since they are merely expanded.
4786 </para>
4787
4788 <para>
4789  Now let's define a few aliases:
4790 </para>
4791
4792 <para>
4793  <literal>
4794   <msgtext> 
4795    <literallayout>
4796  # Useful custom aliases we can use later. These must come first!
4797  {{alias}}
4798  +prevent-cookies = +prevent-setting-cookies +prevent-reading-cookies
4799  -prevent-cookies = -prevent-setting-cookies -prevent-reading-cookies
4800  fragile     = -block -prevent-cookies -filter -fast-redirects -hide-referer -kill-popups
4801  shop        = -prevent-cookies -filter -fast-redirects
4802  +imageblock = +block +handle-as-image
4803
4804  # Aliases defined from other aliases, for people who don't like to type 
4805  # too much:  ;-)
4806  c0 = +prevent-cookies
4807  c1 = -prevent-cookies
4808  #... etc.  Customize to your heart's content.
4809    </literallayout>
4810   </msgtext> 
4811  </literal>
4812 </para>
4813
4814 <para>
4815  Some examples using our <quote>shop</quote> and <quote>fragile</quote>
4816  aliases from above. These would appear in the lower sections of an 
4817  actions file as exceptions to the default actions (as defined in the 
4818  upper section):
4819 </para>
4820
4821 <para>
4822  <literal>
4823   <msgtext> 
4824    <literallayout>
4825  # These sites are very complex and require
4826  # minimal interference.
4827  {fragile}
4828   .office.microsoft.com
4829   .windowsupdate.microsoft.com
4830   .nytimes.com
4831
4832  # Shopping sites - but we still want to block ads.
4833  {shop}
4834   .quietpc.com
4835   .worldpay.com   # for quietpc.com
4836   .scan.co.uk
4837
4838  # These shops require pop-ups also 
4839  {shop -kill-popups}
4840   .dabs.com
4841   .overclockers.co.uk
4842    </literallayout>
4843   </msgtext> 
4844  </literal>
4845 </para>
4846
4847 <para>
4848  The <quote>shop</quote> and <quote>fragile</quote> aliases are often used for 
4849  <quote>problem</quote> sites that require most actions to be disabled 
4850  in order to function properly.
4851
4852 </para>
4853
4854 </sect2>
4855 </sect1>
4856
4857 <!--  ~  End section  ~  -->
4858
4859
4860
4861 <!--   ~~~~~~~~       New section Header    ~~~~~~~~~     -->
4862
4863 <sect1 id="filter-file">
4864 <title>The Filter File</title>
4865 <para>
4866  Any web page can be dynamically modified with the filter file. This
4867  modification can be removal, or re-writing, of any web page content,
4868  including tags and non-visible content. The default filter file is
4869  oddly enough <filename>default.filter</filename>, located in the config
4870  directory. 
4871 </para>
4872
4873 <para>
4874  This is potentially a very powerful feature, and requires knowledge of both 
4875  <quote>regular expression</quote> and HTML in order create custom 
4876  filters. But, there are a number of useful filters included with 
4877  <application>Privoxy</application> for many common situations.
4878 </para>
4879
4880 <para>
4881  The included example file is divided into sections. Each section begins 
4882  with the <literal>FILTER</literal> keyword, followed by the identifier 
4883  for that section, e.g. <quote>FILTER: webbugs</quote>. Each section performs
4884  a similar type of filtering, such as <quote>html-annoyances</quote>.
4885 </para>
4886
4887 <para>
4888  This file uses regular expressions to alter or remove any string in the
4889  target page. The expressions can only operate on one line at a time. Some
4890  examples from the included default <filename>default.filter</filename>:
4891 </para>
4892
4893 <para>
4894  Stop web pages from displaying annoying messages in the status bar by
4895  deleting such references:
4896 </para>
4897
4898 <para>
4899  <literal>
4900   <msgtext> 
4901    <literallayout>
4902  FILTER: html-annoyances
4903
4904  # New browser windows should be resizeable and have a location and status
4905  # bar. Make it so.
4906  #
4907  s/resizable="?(no|0)"?/resizable=1/ig s/noresize/yesresize/ig
4908  s/location="?(no|0)"?/location=1/ig s/status="?(no|0)"?/status=1/ig
4909  s/scrolling="?(no|0|Auto)"?/scrolling=1/ig
4910  s/menubar="?(no|0)"?/menubar=1/ig 
4911
4912  # The &lt;BLINK&gt; tag was a crime!
4913  #
4914  s*&lt;blink&gt;|&lt;/blink&gt;**ig
4915
4916  # Is this evil? 
4917  #
4918  #s/framespacing="?(no|0)"?//ig
4919  #s/margin(height|width)=[0-9]*//gi
4920    </literallayout>
4921   </msgtext> 
4922  </literal>
4923 </para>
4924
4925 <para>
4926  Just for kicks, replace any occurrence of <quote>Microsoft</quote> with
4927  <quote>MicroSuck</quote>, and have a little fun with topical buzzwords: 
4928 </para>
4929
4930 <para>
4931  <literal>
4932   <msgtext> 
4933    <literallayout>
4934  FILTER: fun
4935
4936  s/microsoft(?!.com)/MicroSuck/ig
4937
4938  # Buzzword Bingo:
4939  #
4940  s/industry-leading|cutting-edge|award-winning/&lt;font color=red&gt;&lt;b&gt;BINGO!&lt;/b&gt;&lt;/font&gt;/ig
4941    </literallayout>
4942   </msgtext> 
4943  </literal>
4944 </para>
4945
4946 <para>
4947  Kill those pesky little web-bugs:
4948 </para>
4949
4950 <para>
4951  <literal>
4952   <msgtext> 
4953    <literallayout>
4954  # webbugs: Squish WebBugs (1x1 invisible GIFs used for user tracking)
4955  FILTER: webbugs
4956
4957  s/&lt;img\s+[^&gt;]*?(width|height)\s*=\s*['"]?1\D[^&gt;]*?(width|height)\s*=\s*['"]?1(\D[^&gt;]*?)?>/&lt;!-- Squished WebBug --&gt;/sig
4958    </literallayout>
4959   </msgtext> 
4960  </literal>
4961 </para>
4962
4963
4964 <!--   ~~~~~       New section      ~~~~~     -->
4965 <sect2>
4966 <title>The <emphasis>+filter</emphasis> Action</title>
4967 <para>
4968  Filters are enabled with the <ulink
4969  url="actions-file.html#FILTER"><quote>+filter</quote></ulink> action from within 
4970  one of the actions files. <quote>+filter</quote> requires one parameter, which 
4971  should match one of the section identifiers in the filter file itself. Example:
4972 </para>
4973
4974 <screen>
4975   +filter{html-annoyances}
4976 </screen>
4977
4978 <para>
4979  This would activate that particular filter. Similarly, <quote>+filter</quote>
4980  can be turned off for selected sites as:
4981  <quote>-filter{html-annoyances}</quote>. Remember too, all actions are off by
4982  default, unless they are explicity enabled in one of the actions files.
4983 </para>
4984
4985 </sect2>
4986
4987 </sect1>
4988
4989 <!--  ~  End section  ~  -->
4990
4991
4992
4993 <!--   ~~~~~       New section      ~~~~~     -->
4994
4995 <sect1 id="templates">
4996 <title>Templates</title>
4997 <para>
4998  When <application>Privoxy</application> displays one of its internal 
4999  pages, such as a <ulink url="http://bogus_404_page.com">404 Not Found error page</ulink>
5000  (<application>Privoxy</application> must be running for link to work as
5001  intended), it uses the appropriate template. On Linux, BSD, and Unix, these
5002  are located in <filename>/etc/privoxy/templates</filename> by default. These
5003  may be customized, if desired. <filename>cgi-style.css</filename> is used to
5004  control the HTML attributes (fonts, etc).
5005 </para>
5006 <para>
5007  The default 
5008 <ulink url="http://ads.bannerserver.example.com/nasty-ads/sponsor.html">Blocked 
5009 (<application>Privoxy</application> needs to be running for page to display)</ulink>
5010  banner page with the bright red top 
5011  banner, is called just <quote><filename>blocked</filename></quote>. This 
5012  may be customized or replaced with something else if desired.
5013
5014 </para>
5015 </sect1>
5016
5017 <!--  ~  End section  ~  -->
5018
5019
5020
5021 <!--   ~~~~~       New section      ~~~~~     -->
5022
5023 <sect1 id="contact"><title>Contacting the Developers, Bug Reporting and Feature
5024 Requests</title>
5025
5026 <!-- Include contacting.sgml boilerplate: -->
5027  &contacting;
5028 <!-- end boilerplate -->
5029
5030 </sect1>
5031
5032 <!--  ~  End section  ~  -->
5033
5034
5035 <!--   ~~~~~       New section      ~~~~~     -->
5036 <sect1 id="copyright"><title><application>Privoxy</application> Copyright, License and History</title>
5037
5038 <!-- Include copyright.sgml: -->
5039  &copyright;
5040 <!-- end copyright -->
5041
5042 <!--   ~~~~~       New section      ~~~~~     -->
5043 <sect2><title>License</title>
5044 <!-- Include copyright.sgml: -->
5045  &license;
5046 <!-- end copyright -->
5047 </sect2>
5048 <!--  ~  End section  ~  -->
5049
5050
5051 <!--   ~~~~~       New section      ~~~~~     -->
5052
5053 <sect2 id="history"><title>History</title>
5054 <!-- Include history.sgml: -->
5055  &history;
5056 <!-- end history -->
5057 </sect2>
5058 </sect1>
5059
5060 <!--  ~  End section  ~  -->
5061
5062
5063 <!--   ~~~~~       New section      ~~~~~     -->
5064 <sect1 id="seealso"><title>See Also</title>
5065 <!-- Include seealso.sgml: -->
5066  &seealso;
5067 <!-- end seealso -->
5068 </sect1>
5069
5070
5071
5072 <!--   ~~~~~       New section      ~~~~~     -->
5073 <sect1 id="appendix"><title>Appendix</title>
5074
5075
5076 <!--   ~~~~~       New section      ~~~~~     -->
5077 <sect2 id="regex">
5078 <title>Regular Expressions</title>
5079 <para>
5080  <application>Privoxy</application> can use <quote>regular expressions</quote> 
5081  in various config files. Assuming support for <quote>pcre</quote> (Perl
5082  Compatible Regular Expressions) is compiled in, which is the default. Such
5083  configuration directives do not require regular expressions, but they can be
5084  used to increase flexibility by matching a pattern with wild-cards against
5085  URLs.
5086 </para>
5087
5088 <para>
5089  If you are reading this, you probably don't understand what <quote>regular
5090  expressions</quote> are, or what they can do. So this will be a very brief
5091  introduction only. A full explanation would require a book ;-)
5092 </para>
5093
5094 <para>
5095  <quote>Regular expressions</quote> is a way of matching one character
5096  expression against another to see if it matches or not. One of the
5097  <quote>expressions</quote> is a literal string of readable characters
5098  (letter, numbers, etc), and the other is a complex string of literal
5099  characters combined with wild-cards, and other special characters, called
5100  meta-characters. The <quote>meta-characters</quote> have special meanings and
5101  are used to build the complex pattern to be matched against. Perl Compatible
5102  Regular Expressions is an enhanced form of the regular expression language
5103  with backward compatibility.
5104 </para>
5105
5106 <para>
5107  To make a simple analogy, we do something similar when we use wild-card
5108  characters when listing files with the <command>dir</command> command in DOS. 
5109  <literal>*.*</literal> matches all filenames. The <quote>special</quote>
5110  character here is the asterisk which matches any and all characters. We can be
5111  more specific and use <literal>?</literal> to match just individual
5112  characters. So <quote>dir file?.text</quote> would match
5113  <quote>file1.txt</quote>, <quote>file2.txt</quote>, etc. We are pattern
5114  matching, using a similar technique to <quote>regular expressions</quote>!
5115 </para>
5116
5117 <para>
5118  Regular expressions do essentially the same thing, but are much, much more
5119  powerful. There are many more <quote>special characters</quote> and ways of 
5120  building complex patterns however. Let's look at a few of the common ones,
5121  and then some examples:
5122 </para>
5123
5124 <para><simplelist>
5125  <member>
5126   <emphasis>.</emphasis> - Matches any single character, e.g. <quote>a</quote>,
5127   <quote>A</quote>, <quote>4</quote>, <quote>:</quote>, or <quote>@</quote>.
5128  </member>
5129 </simplelist></para>
5130
5131 <para><simplelist>
5132  <member>
5133   <emphasis>?</emphasis> - The preceding character or expression is matched ZERO or ONE
5134   times. Either/or.
5135  </member>
5136 </simplelist></para>
5137
5138 <para><simplelist>
5139  <member>
5140   <emphasis>+</emphasis> - The preceding character or expression is matched ONE or MORE
5141   times.
5142  </member>
5143 </simplelist></para>
5144
5145 <para><simplelist>
5146  <member>
5147   <emphasis>*</emphasis> - The preceding character or expression is matched ZERO or MORE
5148   times.
5149  </member>
5150 </simplelist></para>
5151
5152 <para><simplelist>
5153  <member>
5154   <emphasis>\</emphasis> - The <quote>escape</quote> character denotes that
5155   the following character should be taken literally. This is used where one of the 
5156   special characters (e.g. <quote>.</quote>) needs to be taken literally and
5157   not as a special meta-character. Example: <quote>example\.com</quote>, makes 
5158   sure the period is recognized only as a period (and not expanded to its 
5159   meta-character meaning of any single character).
5160  </member>
5161 </simplelist></para>
5162
5163 <para><simplelist>
5164  <member>
5165   <emphasis>[]</emphasis> - Characters enclosed in brackets will be matched if
5166   any of the enclosed characters are encountered. For instance, <quote>[0-9]</quote>
5167   matches any numeric digit (zero through nine). As an example, we can combine 
5168   this with <quote>+</quote> to match any digit one of more times: <quote>[0-9]+</quote>.
5169  </member>
5170 </simplelist></para>
5171
5172 <para><simplelist>
5173  <member>
5174   <emphasis>()</emphasis> - parentheses are used to group a sub-expression,
5175   or multiple sub-expressions.
5176  </member>
5177 </simplelist></para>
5178
5179 <para><simplelist>
5180  <member>
5181   <emphasis>|</emphasis> - The <quote>bar</quote> character works like an
5182   <quote>or</quote> conditional statement. A match is successful if the
5183   sub-expression on either side of <quote>|</quote> matches. As an example:
5184   <quote>/(this|that) example/</quote> uses grouping and the bar character 
5185   and would match either <quote>this example</quote> or <quote>that
5186   example</quote>, and nothing else.
5187  </member>
5188 </simplelist></para>
5189
5190 <para><simplelist>
5191  <member>
5192   <emphasis>s/string1/string2/g</emphasis> - This is used to rewrite strings of text. 
5193   <quote>string1</quote> is replaced by <quote>string2</quote> in this
5194   example. There must of course be a match on <quote>string1</quote> first.
5195  </member>
5196 </simplelist></para>
5197
5198 <para>
5199  These are just some of the ones you are likely to use when matching URLs with 
5200  <application>Privoxy</application>, and is a long way from a definitive
5201  list. This is enough to get us started with a few simple examples which may
5202  be more illuminating:
5203 </para>
5204
5205 <para>
5206  <emphasis><literal>/.*/banners/.*</literal></emphasis> - A  simple example
5207  that uses the common combination of <quote>.</quote> and <quote>*</quote> to 
5208  denote any character, zero or more times. In other words, any string at all.
5209  So we start with a literal forward slash, then our regular expression pattern 
5210  (<quote>.*</quote>) another literal forward slash, the string
5211  <quote>banners</quote>, another forward slash, and lastly another
5212  <quote>.*</quote>. We are building 
5213  a directory path here. This will match any file with the path that has a
5214  directory named <quote>banners</quote> in it. The <quote>.*</quote> matches
5215  any characters, and this could conceivably be more forward slashes, so it
5216  might expand into a much longer looking path. For example, this could match:
5217  <quote>/eye/hate/spammers/banners/annoy_me_please.gif</quote>, or just
5218  <quote>/banners/annoying.html</quote>, or almost an infinite number of other
5219  possible combinations, just so it has <quote>banners</quote> in the path
5220  somewhere.
5221 </para>
5222
5223 <para>
5224  A now something a little more complex:
5225 </para>
5226
5227 <para>
5228  <emphasis><literal>/.*/adv((er)?ts?|ertis(ing|ements?))?/</literal></emphasis> - 
5229  We have several literal forward slashes again (<quote>/</quote>), so we are
5230  building another expression that is a file path statement. We have another 
5231  <quote>.*</quote>, so we are matching against any conceivable sub-path, just so
5232  it matches our expression. The only true literal that <emphasis>must
5233  match</emphasis> our pattern is <application>adv</application>, together with
5234  the forward slashes. What comes after the <quote>adv</quote> string is the
5235  interesting part. 
5236 </para>
5237
5238 <para>
5239  Remember the <quote>?</quote> means the preceding expression (either a
5240  literal character or anything grouped with <quote>(...)</quote> in this case)
5241  can exist or not, since this means either zero or one match. So
5242  <quote>((er)?ts?|ertis(ing|ements?))</quote> is optional, as are the
5243  individual sub-expressions: <quote>(er)</quote>,
5244  <quote>(ing|ements?)</quote>, and the <quote>s</quote>. The <quote>|</quote>
5245  means <quote>or</quote>. We have two of those. For instance, 
5246  <quote>(ing|ements?)</quote>, can expand to match either <quote>ing</quote> 
5247  <emphasis>OR</emphasis> <quote>ements?</quote>. What is being done here, is an
5248  attempt at matching as many variations of <quote>advertisement</quote>, and 
5249  similar, as possible. So this would expand to match just <quote>adv</quote>,
5250  or <quote>advert</quote>, or <quote>adverts</quote>, or
5251  <quote>advertising</quote>, or <quote>advertisement</quote>, or
5252  <quote>advertisements</quote>. You get the idea. But it would not match 
5253  <quote>advertizements</quote> (with a <quote>z</quote>). We could fix that by
5254  changing our regular expression to: 
5255  <quote>/.*/adv((er)?ts?|erti(s|z)(ing|ements?))?/</quote>, which would then match
5256  either spelling.
5257 </para>
5258
5259 <para>
5260  <emphasis><literal>/.*/advert[0-9]+\.(gif|jpe?g)</literal></emphasis> - Again 
5261  another path statement with forward slashes. Anything in the square brackets 
5262  <quote>[]</quote> can be matched. This is using <quote>0-9</quote> as a
5263  shorthand expression to mean any digit one through nine. It is the same as
5264  saying <quote>0123456789</quote>. So any digit matches. The <quote>+</quote>
5265  means one or more of the preceding expression must be included. The preceding 
5266  expression here is what is in the square brackets -- in this case, any digit 
5267  one through nine. Then, at the end, we have a grouping: <quote>(gif|jpe?g)</quote>. 
5268  This includes a <quote>|</quote>, so this needs to match the expression on
5269  either side of that bar character also. A simple <quote>gif</quote> on one side, and the other
5270  side will in turn match either <quote>jpeg</quote> or <quote>jpg</quote>,
5271  since the <quote>?</quote> means the letter <quote>e</quote> is optional and
5272  can be matched once or not at all. So we are building an expression here to
5273  match image GIF or JPEG type image file. It must include the literal
5274  string <quote>advert</quote>, then one or more digits, and a <quote>.</quote>
5275  (which is now a literal, and not a special character, since it is escaped
5276  with <quote>\</quote>), and lastly either <quote>gif</quote>, or
5277  <quote>jpeg</quote>, or <quote>jpg</quote>. Some possible matches would
5278  include: <quote>//advert1.jpg</quote>,
5279  <quote>/nasty/ads/advert1234.gif</quote>,
5280  <quote>/banners/from/hell/advert99.jpg</quote>. It would not match
5281  <quote>advert1.gif</quote> (no leading slash), or
5282  <quote>/adverts232.jpg</quote> (the expression does not include an
5283  <quote>s</quote>), or <quote>/advert1.jsp</quote> (<quote>jsp</quote> is not
5284  in the expression anywhere).
5285 </para>
5286
5287 <para>
5288  <emphasis><literal>s/microsoft(?!.com)/MicroSuck/i</literal></emphasis> - This is 
5289  a substitution. <quote>MicroSuck</quote> will replace any occurrence of 
5290  <quote>microsoft</quote>.  The <quote>i</quote> at the end of the expression
5291  means ignore case. The <quote>(?!.com)</quote> means 
5292  the match should fail if <quote>microsoft</quote> is followed by
5293  <quote>.com</quote>. In other words, this acts like a <quote>NOT</quote>
5294  modifier. In case this is a hyperlink, we don't want to break it ;-).
5295 </para>
5296
5297 <para>
5298  We are barely scratching the surface of regular expressions here so that you
5299  can understand the default <application>Privoxy</application>
5300  configuration files, and maybe use this knowledge to customize your own
5301  installation. There is much, much more that can be done with regular
5302  expressions. Now that you know enough to get started, you can learn more on
5303  your own :/
5304 </para>
5305
5306 <para>
5307  More reading on Perl Compatible Regular expressions: 
5308  <ulink url="http://www.perldoc.com/perl5.6/pod/perlre.html">http://www.perldoc.com/perl5.6/pod/perlre.html</ulink>
5309 </para>
5310
5311 </sect2>
5312
5313 <!--  ~  End section  ~  -->
5314
5315
5316 <!--   ~~~~~       New section      ~~~~~     -->
5317 <sect2>
5318 <title><application>Privoxy</application>'s Internal Pages</title>
5319
5320 <para>
5321  Since <application>Privoxy</application> proxies each requested 
5322  web page, it is easy for <application>Privoxy</application> to 
5323  trap certain special URLs. In this way, we can talk directly to
5324  <application>Privoxy</application>, and see how it is 
5325  configured, see how our rules are being applied, change these 
5326  rules and other configuration options, and even turn
5327  <application>Privoxy's</application> filtering off, all with 
5328  a web browser.
5329
5330 </para>
5331
5332 <para>
5333  The URLs listed below are the special ones that allow direct access 
5334  to <application>Privoxy</application>. Of course,
5335  <application>Privoxy</application> must be running to access these. If 
5336  not, you will get a friendly error message. Internet access is not 
5337  necessary either.
5338 </para>
5339
5340 <para>
5341  <itemizedlist>
5342
5343  <listitem>
5344   <para>  
5345    Privoxy main page: 
5346   </para>
5347   <blockquote>
5348    <para> 
5349      <ulink url="http://config.privoxy.org/">http://config.privoxy.org/</ulink>
5350    </para>
5351   </blockquote>
5352   <para>
5353    Alternately, this may be reached at <ulink
5354    url="http://p.p/">http://p.p/</ulink>, but this
5355    variation may not work as reliably as the above in some configurations.
5356   </para>
5357  </listitem>
5358
5359  <listitem>
5360   <para>  
5361     Show information about the current configuration, including viewing and 
5362     editing of actions files:
5363   </para>
5364    <blockquote>
5365    <para> 
5366     <ulink url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>
5367    </para>
5368   </blockquote>
5369  </listitem>
5370  
5371  <listitem>
5372   <para>  
5373     Show the source code version numbers:
5374   </para>
5375   <blockquote>
5376    <para> 
5377     <ulink url="http://config.privoxy.org/show-version">http://config.privoxy.org/show-version</ulink>
5378    </para>
5379   </blockquote>
5380  </listitem>
5381  
5382  <listitem>
5383   <para>  
5384    Show the browser's request headers:
5385   </para>
5386   <blockquote>
5387    <para> 
5388     <ulink url="http://config.privoxy.org/show-request">http://config.privoxy.org/show-request</ulink>
5389    </para>
5390   </blockquote>
5391  </listitem>
5392  
5393  <listitem>
5394   <para>  
5395    Show which actions apply to a URL and why:
5396   </para>
5397    <blockquote>
5398    <para> 
5399     <ulink url="http://config.privoxy.org/show-url-info">http://config.privoxy.org/show-url-info</ulink>
5400    </para>
5401   </blockquote>
5402  </listitem>
5403  
5404  <listitem>
5405   <para>  
5406    Toggle Privoxy on or off. In this case, <quote>Privoxy</quote> continues 
5407    to run, but only as a pass-through proxy, with no actions taking place:
5408   </para>
5409    <blockquote>
5410    <para> 
5411     <ulink url="http://config.privoxy.org/toggle">http://config.privoxy.org/toggle</ulink>
5412    </para>
5413   </blockquote>
5414   <para>
5415    Short cuts. Turn off, then on: 
5416   </para>
5417    <blockquote>
5418    <para> 
5419      <ulink url="http://config.privoxy.org/toggle?set=disable">http://config.privoxy.org/toggle?set=disable</ulink>
5420    </para>
5421   </blockquote>
5422    <blockquote>
5423    <para> 
5424      <ulink url="http://config.privoxy.org/toggle?set=enable">http://config.privoxy.org/toggle?set=enable</ulink>
5425    </para>
5426   </blockquote>
5427  </listitem>
5428  
5429  </itemizedlist>
5430 </para>
5431
5432 <para>
5433  These may be bookmarked for quick reference. See next.
5434
5435 </para>
5436
5437 <sect3 id="bookmarklets">
5438 <title>Bookmarklets</title>
5439 <para>
5440  Below are some <quote>bookmarklets</quote> to allow you to easily access a
5441  <quote>mini</quote> version of some of <application>Privoxy's</application>
5442  special pages. They are designed for MS Internet Explorer, but should work
5443  equally well in Netscape, Mozilla, and other browsers which support
5444  JavaScript. They are designed to run directly from your bookmarks - not by
5445  clicking the links below (although that should work for testing).
5446 </para>
5447 <para>
5448  To save them, right-click the link and choose <quote>Add to Favorites</quote>
5449  (IE) or <quote>Add Bookmark</quote> (Netscape). You will get a warning that
5450  the bookmark <quote>may not be safe</quote> - just click OK. Then you can run the
5451  Bookmarklet directly from your favorites/bookmarks. For even faster access,
5452  you can put them on the <quote>Links</quote> bar (IE) or the <quote>Personal
5453  Toolbar</quote> (Netscape), and run them with a single click. 
5454 </para>
5455
5456 <para>
5457  <itemizedlist>
5458
5459   <listitem>
5460    <para>
5461     <ulink
5462     url="javascript:void(window.open('http://config.privoxy.org/toggle?mini=y&#38;set=enabled','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Enable</ulink>
5463    </para>
5464   </listitem> 
5465
5466   <listitem>
5467    <para>
5468     <ulink
5469     url="javascript:void(window.open('http://config.privoxy.org/toggle?mini=y&#38;set=disabled','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Disable</ulink>
5470    </para>
5471   </listitem> 
5472
5473   <listitem>
5474    <para>
5475     <ulink
5476     url="javascript:void(window.open('http://config.privoxy.org/toggle?mini=y&#38;set=toggle','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Toggle Privoxy</ulink> (Toggles between enabled and disabled)
5477    </para>
5478   </listitem> 
5479
5480   <listitem>
5481    <para>
5482     <ulink
5483     url="javascript:void(window.open('http://config.privoxy.org/toggle?mini=y','ijbstatus','width=250,height=2,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy- View Status</ulink>
5484    </para>
5485   </listitem> 
5486
5487   <listitem>
5488    <para>
5489     <ulink url="javascript:w=Math.floor(screen.width/2);h=Math.floor(screen.height*0.9);void(window.open('http://www.privoxy.org/actions','Feedback','screenx='+w+',width='+w+',height='+h+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Submit Filter Feedback</ulink>
5490    </para>
5491   </listitem> 
5492
5493  </itemizedlist>
5494 </para>
5495
5496
5497
5498 <para>
5499  Credit: The site which gave me the general idea for these bookmarklets is
5500  <ulink url="http://www.bookmarklets.com">www.bookmarklets.com</ulink>. They
5501  have more information about bookmarklets. 
5502 </para>
5503
5504
5505 </sect3>
5506
5507 </sect2>
5508
5509
5510 <!--   ~~~~~       New section      ~~~~~     -->
5511 <sect2 id="chain">
5512 <title>Chain of Events</title>
5513 <para>
5514  Let's take a quick look at the basic sequence of events when a web page is 
5515  requested by your browser and <application>Privoxy</application> is on duty:
5516 </para>
5517
5518 <para>
5519  <itemizedlist>
5520  <listitem>
5521   <para>
5522    First, your web browser requests a web page. The browser knows to send 
5523    the request to <application>Privoxy</application>, which will in turn, 
5524    relay the request to the remote web server after passing the following 
5525    tests: 
5526   </para>
5527  </listitem> 
5528  <listitem>
5529   <para>
5530    <application>Privoxy</application> traps any request for its own internal CGI 
5531    pages (e.g http://p.p/) and sends the CGI page back to the browser.
5532   </para>
5533  </listitem> 
5534  <listitem>
5535   <para>
5536    Next, <application>Privoxy</application> checks to see if the URL 
5537    matches any <ulink
5538    url="actions-file.html#BLOCK"><quote>+block</quote></ulink> patterns. If
5539    so, the URL is then blocked, and the remote web server will not be contacted.
5540    <ulink url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink> 
5541    is then checked and if it does not match, an 
5542    HTML <quote>BLOCKED</quote> page is sent back. Otherwise, if it does match,
5543    an image is returned. The type of image depends on the setting of <ulink
5544    url="actions-file.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
5545    (blank, checkerboard pattern, or an HTTP redirect to an image elsewhere).
5546   </para>
5547  </listitem> 
5548  <listitem>
5549   <para>
5550    Untrusted URLs are blocked. If URLs are being added to the
5551    <filename>trust</filename> file, then that is done.
5552   </para>
5553  </listitem> 
5554  <listitem>
5555   <para>
5556    If the URL pattern matches the <ulink
5557    url="actions-file.html#FAST-REDIRECTS"><quote>+fast-redirects</quote></ulink> action,
5558    it is then processed. Unwanted parts of the requested URL are stripped.
5559   </para>
5560  </listitem> 
5561  <listitem>
5562   <para>
5563    Now the rest of the client browser's request headers are processed. If any
5564    of these match any of the relevant actions (e.g. <ulink
5565    url="actions-file.html#HIDE-USER-AGENT"><quote>+hide-user-agent</quote></ulink>,
5566    etc.), headers are suppressed or forged as determined by these actions and
5567    their parameters.
5568   </para>
5569  </listitem> 
5570  <listitem>
5571   <para>
5572    Now the web server starts sending its response back (i.e. typically a web page and related 
5573    data).
5574   </para>
5575  </listitem> 
5576  <listitem>
5577   <para>
5578    First, the server headers are read and processed to determine, among other
5579    things, the MIME type (document type) and encoding. The headers are then
5580    filtered as deterimed by the 
5581    <ulink url="actions-file.html#PREVENT-SETTING-COOKIES"><quote>+prevent-setting-cookies</quote></ulink>,
5582    <ulink url="actions-file.html#SESSION-COOKIES-ONLY"><quote>+session-cookies-only</quote></ulink>,
5583    and <ulink url="actions-file.html#DOWNGRADE-HTTP-VERSION"><quote>+downgrade-http-version</quote></ulink>
5584    actions.
5585   </para>
5586  </listitem> 
5587  <listitem>
5588   <para>
5589    If the <ulink url="actions-file.html#KILL-POPUPS"><quote>+kill-popups</quote></ulink>
5590    action applies, and it is an HTML or JavaScript document, the popup-code in the
5591    response is filtered on-the-fly as it is received.
5592   </para>
5593  </listitem> 
5594  <listitem>
5595   <para>
5596    If a <ulink url="actions-file.html#FILTER"><quote>+filter</quote></ulink>
5597    or <ulink
5598    url="actions-file.html#DEANIMATE-GIFS"><quote>+deanimate-gifs</quote></ulink>
5599    action applies (and the document type fits the action), the rest of the page is
5600    read into memory (up to a configurable limit). Then the filter rules (from
5601    <filename>default.filter</filename>) are processed against the buffered
5602    content. Filters are applied in the order they are specified in the
5603    <filename>default.filter</filename> file. Animated GIFs, if present, are
5604    reduced to either the first or last frame, depending on the action
5605    setting.The entire page, which is now filtered, is then sent by
5606    <application>Privoxy</application> back to your browser. 
5607   </para>
5608   <para>
5609    If neither <ulink url="actions-file.html#FILTER"><quote>+filter</quote></ulink>
5610    or <ulink
5611    url="actions-file.html#DEANIMATE-GIFS"><quote>+deanimate-gifs</quote></ulink>
5612    matches, then <application>Privoxy</application> passes the raw data through 
5613    to the client browser as it becomes available.
5614   </para>
5615  </listitem> 
5616  <listitem>
5617   <para>
5618    As the browser receives the now (probably filtered) page content, it 
5619    reads and then requests any URLs that may be embedded within the page
5620    source, e.g. ad images, stylesheets, JavaScript, other HTML documents (e.g.
5621    frames), sounds, etc. For each of these objects, the browser issues a new
5622    request. And each such request is in turn processed as above. Note that a
5623    complex web page may have many such embedded URLs.
5624   </para>
5625  </listitem> 
5626  
5627  </itemizedlist>
5628 </para>
5629
5630 </sect2>
5631
5632
5633 <!--   ~~~~~       New section      ~~~~~     -->
5634 <sect2 id="actionsanat">
5635 <title>Anatomy of an Action</title>
5636
5637 <para>
5638  The way <application>Privoxy</application> applies 
5639  <ulink url="actions-file.html#ACTIONS"><quote>actions</quote></ulink>
5640  and <ulink url="actions-file.html#FILTER"><quote>filters</quote></ulink>
5641  to any given URL can be complex, and not always so
5642  easy to understand what is happening. And sometimes we need to be able to
5643  <emphasis>see</emphasis> just what <application>Privoxy</application> is
5644  doing. Especially, if something <application>Privoxy</application> is doing
5645  is causing us a problem inadvertently. It can be a little daunting to look at
5646  the actions and filters files themselves, since they tend to be filled with
5647  <quote>regular expressions</quote> whose consequences are not always 
5648  so obvious. 
5649 </para>
5650
5651 <para>
5652  One quick test to see if <application>Privoxy</application> is causing a problem 
5653  or not, is to disable it temporarily. This should be the first troubleshooting 
5654  step. See <link linkend="bookmarklets">the Bookmarklets</link> section on a quick 
5655  and easy way to do this (be sure to flush caches afterward!).
5656 </para>
5657
5658 <para>
5659  <application>Privoxy</application> also provides the 
5660  <ulink url="http://config.privoxy.org/show-url-info">http://config.privoxy.org/show-url-info</ulink>
5661  page that can show us very specifically how <application>actions</application>
5662  are being applied to any given URL. This is a big help for troubleshooting.
5663 </para>
5664
5665 <para>
5666  First, enter one URL (or partial URL) at the prompt, and then
5667  <application>Privoxy</application> will tell us 
5668  how the current configuration will handle it. This will not
5669  help with filtering effects (i.e. the <ulink
5670  url="actions-file.html#FILTER"><quote>+filter</quote></ulink> action) from
5671  the <filename>default.filter</filename> file since this is handled very
5672  differently and not so easy to trap! It also will not tell you about any other
5673  URLs that may be embedded within the URL you are testing. For instance, images
5674  such as ads are expressed as URLs within the raw page source of HTML pages. So
5675  you will only get info for the actual URL that is pasted into the prompt area
5676  -- not any sub-URLs. If you want to know about embedded URLs like ads, you
5677  will have to dig those out of the HTML source. Use your browser's <quote>View
5678  Page Source</quote> option for this. Or right click on the ad, and grab the
5679  URL.
5680 </para>
5681
5682 <para>
5683  Let's try an example, <ulink url="http://google.com">google.com</ulink>, 
5684  and look at it one section at a time:
5685 </para>
5686
5687 <para>
5688  <screen>
5689  Matches for http://google.com:
5690
5691 --- File standard ---
5692 (no matches in this file)
5693
5694 --- File default ---
5695
5696 { -add-header -block +deanimate-gifs{last} -downgrade-http-version +fast-redirects 
5697  -filter{popups} -filter{fun} -filter{shockwave-flash} -filter{crude-parental} 
5698  +filter{html-annoyances} +filter{js-annoyances} +filter{content-cookies} 
5699  +filter{webbugs} +filter{refresh-tags} +filter{nimda} +filter{banners-by-size} 
5700  +hide-forwarded-for-headers +hide-from-header{block} +hide-referer{forge} 
5701  -hide-user-agent -handle-as-image +set-image-blocker{pattern} -limit-connect 
5702  +prevent-compression +session-cookies-only -prevent-reading-cookies 
5703  -prevent-setting-cookies -kill-popups -send-vanilla-wafer -send-wafer }
5704 /
5705
5706  { -session-cookies-only }
5707  .google.com
5708
5709  { -fast-redirects }
5710  .google.com
5711
5712 --- File user ---
5713 (no matches in this file)  
5714 </screen>
5715 </para>
5716
5717 <para>
5718  This tells us how we have defined our 
5719  <ulink url="actions-file.html#ACTIONS"><quote>actions</quote></ulink>, and
5720  which ones match for our example, <quote>google.com</quote>. The first listing
5721  is any matches for the <filename>standard.action</filename> file. No hits at
5722  all here on <quote>standard</quote>. Then next is <quote>default</quote>, or
5723  our <filename>default.action</filename> file. The large, multi-line listing,
5724  is how the actions are set to match for all URLs, i.e. our default settings.
5725  If you look at your <quote>actions</quote> file, this would be the section
5726  just below the <quote>aliases</quote> section near the top. This will apply to
5727  all URLs as signified by the single forward slash at the end of the listing
5728  -- <quote>/</quote>.
5729 </para>
5730
5731 <para>
5732  But we can define additional actions that would be exceptions to these general
5733  rules, and then list specific URLs (or patterns) that these exceptions would
5734  apply to. Last match wins. Just below this then are two explicit matches for
5735  <quote>.google.com</quote>. The first is negating our previous cookie setting, 
5736  which was for <ulink
5737  url="actions-file.html#SESSION-COOKIES-ONLY"><quote>+session-cookies-only</quote></ulink>
5738  (i.e. not persistent). So we will allow persistent cookies for google. The
5739  second turns <emphasis>off</emphasis> any 
5740  <ulink
5741  url="actions-file.html#FAST-REDIRECTS"><quote>+fast-redirects</quote></ulink>
5742  action, allowing this to take place unmolested. Note that there is a leading
5743  dot here -- <quote>.google.com</quote>. This will match any hosts and
5744  sub-domains, in the google.com domain also, such as
5745  <quote>www.google.com</quote>. So, apparently, we have these two actions
5746  defined somewhere in the lower part of our <filename>default.action</filename>
5747  file, and <quote>google.com</quote> is referenced somewhere in these latter
5748  sections.
5749 </para>
5750
5751 <para>
5752  Then, for our <filename>user.action</filename> file, we again have no hits.
5753 </para>
5754
5755 <para>
5756  And finally we pull it all together in the bottom section and summarize how
5757  <application>Privoxy</application> is applying all its <quote>actions</quote> 
5758  to <quote>google.com</quote>:
5759
5760 </para>
5761
5762 <para>
5763  <screen>
5764
5765  Final results:
5766  -add-header -block +deanimate-gifs{last} -downgrade-http-version -fast-redirects 
5767  -filter{popups} -filter{fun} -filter{shockwave-flash} -filter{crude-parental} 
5768  +filter{html-annoyances} +filter{js-annoyances} +filter{content-cookies} 
5769  +filter{webbugs} +filter{refresh-tags} +filter{nimda} +filter{banners-by-size} 
5770  +hide-forwarded-for-headers +hide-from-header{block} +hide-referer{forge} 
5771  -hide-user-agent -handle-as-image +set-image-blocker{pattern} -limit-connect 
5772  +prevent-compression -session-cookies-only -prevent-reading-cookies 
5773  -prevent-setting-cookies -kill-popups -send-vanilla-wafer -send-wafer
5774 </screen>
5775 </para>
5776
5777 <para>
5778  Notice the only difference here to the previous listing, is to 
5779  <quote>fast-redirects</quote> and <quote>session-cookies-only</quote>.
5780 </para>
5781
5782 <para>
5783  Now another example, <quote>ad.doubleclick.net</quote>:
5784 </para>
5785
5786 <para>
5787  <screen>
5788
5789  { +block +handle-as-image }
5790   .ad.doubleclick.net
5791
5792  { +block +handle-as-image }
5793   ad*.
5794
5795  { +block +handle-as-image }
5796   .doubleclick.net
5797 </screen>
5798 </para>
5799
5800 <para>
5801  We'll just show the interesting part here, the explicit matches. It is 
5802  matched three different times. Each as an <quote>+block +handle-as-image</quote>,
5803  which is the expanded form of one of our aliases that had been defined as: 
5804  <quote>+imageblock</quote>. (<ulink
5805  url="actions-file.html#ALIASES"><quote>Aliases</quote></ulink> are defined in
5806  the first section of the actions file and typically used to combine more 
5807  than one action.)
5808 </para>
5809
5810 <para>
5811  Any one of these would have done the trick and blocked this as an unwanted 
5812  image. This is unnecessarily redundant since the last case effectively 
5813  would also cover the first. No point in taking chances with these guys 
5814  though ;-) Note that if you want an ad or obnoxious 
5815  URL to be invisible, it should be defined as <quote>ad.doubleclick.net</quote>
5816  is done here -- as both a <ulink
5817  url="actions-file.html#BLOCK"><quote>+block</quote></ulink>
5818  <emphasis>and</emphasis> an 
5819  <ulink
5820  url="actions-file.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>.
5821  The custom alias <quote>+imageblock</quote> just simplifies the process and make 
5822  it more readable.
5823 </para>
5824
5825 <para>
5826  One last example. Let's try <quote>http://www.rhapsodyk.net/adsl/HOWTO/</quote>.
5827  This one is giving us problems. We are getting a blank page. Hmmm...
5828 </para>
5829
5830 <para>
5831  <screen>
5832
5833  Matches for http://www.rhapsodyk.net/adsl/HOWTO/:
5834
5835  { -add-header -block +deanimate-gifs -downgrade-http-version +fast-redirects 
5836    +filter{html-annoyances} +filter{js-annoyances} +filter{kill-popups} 
5837    +filter{webbugs} +filter{nimda} +filter{banners-by-size} +filter{hal} 
5838    +filter{fun} +hide-forwarded-for-headers +hide-from-header{block} 
5839    +hide-referer{forge} -hide-user-agent -handle-as-image +set-image-blocker{blank} 
5840    +prevent-compression +session-cookies-only -prevent-setting-cookies 
5841    -prevent-reading-cookies +kill-popups -send-vanilla-wafer -send-wafer }
5842    /
5843
5844  { +block +handle-as-image }
5845   /ads
5846 </screen>
5847 </para>
5848
5849 <para>
5850  Ooops, the <quote>/adsl/</quote> is matching <quote>/ads</quote>! But 
5851  we did not want this at all! Now we see why we get the blank page. We could
5852  now add a new action below this that explicitly does <emphasis>not</emphasis>
5853  block (<quote>{-block}</quote>) paths with <quote>adsl</quote>. There are
5854  various ways to handle such exceptions. Example:
5855 </para>
5856
5857 <para>
5858  <screen>
5859
5860  { -block }
5861   /adsl
5862 </screen>
5863 </para>
5864
5865 <para>
5866  Now the page displays ;-) Be sure to flush your browser's caches when 
5867  making such changes. Or, try using <literal>Shift+Reload</literal>.
5868 </para>
5869
5870 <para>
5871  But now what about a situation where we get no explicit matches like 
5872  we did with:
5873 </para>
5874
5875 <para>
5876  <screen>
5877
5878  { +block +handle-as-image }
5879  /ads
5880 </screen>
5881 </para>
5882
5883 <para>
5884  That actually was very telling and pointed us quickly to where the problem
5885  was. If you don't get this kind of match, then it means one of the default 
5886  rules in the first section is causing the problem. This would require some 
5887  guesswork, and maybe a little trial and error to isolate the offending rule.
5888  One likely cause would be one of the <quote>{+filter}</quote> actions. Try 
5889  adding the URL for the site to one of aliases that turn off <quote>+filter</quote>:
5890 </para>
5891
5892 <para>
5893  <screen>
5894
5895  {shop}
5896  .quietpc.com
5897  .worldpay.com   # for quietpc.com
5898  .jungle.com
5899  .scan.co.uk
5900  .forbes.com
5901 </screen>
5902 </para>
5903
5904 <para>
5905  <quote>{shop}</quote> is an <quote>alias</quote> that expands to 
5906  <quote>{ -filter -session-cookies-only }</quote>.
5907  Or you could do your own exception to negate filtering:
5908
5909 </para>
5910
5911 <para>
5912  <screen>
5913
5914  {-filter}
5915  .forbes.com
5916 </screen>
5917 </para>
5918
5919 <para>
5920  This would probably be most appropriately put in <filename>user.action</filename>, 
5921  for local site exceptions.
5922 </para>
5923
5924 <para>
5925  <quote>{fragile}</quote> is an alias that disables most actions. This can be 
5926  used as a last resort for problem sites. Remember to flush caches! If this 
5927  still does not work, you will have to go through the remaining actions one by
5928  one to find which one(s) is causing the problem.
5929 </para>
5930
5931 </sect2>
5932
5933 </sect1>
5934
5935  <!--
5936
5937  This program is free software; you can redistribute it 
5938  and/or modify it under the terms of the GNU General
5939  Public License as published by the Free Software
5940  Foundation; either version 2 of the License, or (at
5941  your option) any later version.
5942
5943  This program is distributed in the hope that it will
5944  be useful, but WITHOUT ANY WARRANTY; without even the
5945  implied warranty of MERCHANTABILITY or FITNESS FOR A
5946  PARTICULAR PURPOSE.  See the GNU General Public
5947  License for more details.
5948
5949  The GNU General Public License should be included with
5950  this file.  If not, you can view it at
5951  http://www.gnu.org/copyleft/gpl.html
5952  or write to the Free Software Foundation, Inc., 59
5953  Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5954
5955  $Log: user-manual.sgml,v $
5956  Revision 1.105  2002/05/05 20:26:02  hal9
5957  Sorting out license vs copyright in these docs.
5958
5959  Revision 1.104  2002/05/04 08:44:45  swa
5960  bumped version
5961
5962  Revision 1.103  2002/05/04 00:40:53  hal9
5963  -Remove the TOC first page kludge. It's fixed proper now in ldp.dsl.in.
5964  -Some minor additions to Quickstart.
5965
5966  Revision 1.102  2002/05/03 17:46:00  oes
5967  Further proofread & reactivated short build instructions
5968
5969  Revision 1.101  2002/05/03 03:58:30  hal9
5970  Move the user-manual config directive to top of section. Add note about
5971  Privoxy needing read permissions for configs, and write for logs.
5972
5973  Revision 1.100  2002/04/29 03:05:55  hal9
5974  Add clarification on differences of new actions files.
5975
5976  Revision 1.99  2002/04/28 16:59:05  swa
5977  more structure in starting section
5978
5979  Revision 1.98  2002/04/28 05:43:59  hal9
5980  This is the break up of configuration.html into multiple files. This
5981  will probably break links elsewhere :(
5982
5983  Revision 1.97  2002/04/27 21:04:42  hal9
5984  -Rewrite of Actions File example.
5985  -Add section for user-manual directive in config.
5986
5987  Revision 1.96  2002/04/27 05:32:00  hal9
5988  -Add short section to Filter Files to tie in with +filter action.
5989  -Start rewrite of examples in Actions Examples (not finished).
5990
5991  Revision 1.95  2002/04/26 17:23:29  swa
5992  bookmarks cleaned, changed structure of user manual, screen and programlisting cleanups, and numerous other changes that I forgot
5993
5994  Revision 1.94  2002/04/26 05:24:36  hal9
5995  -Add most of Andreas suggestions to Chain of Events section.
5996  -A few other minor corrections and touch up.
5997
5998  Revision 1.92  2002/04/25 18:55:13  hal9
5999  More catchups on new actions files, and new actions names.
6000  Other assorted cleanups, and minor modifications.
6001
6002  Revision 1.91  2002/04/24 02:39:31  hal9
6003  Add 'Chain of Events' section.
6004
6005  Revision 1.90  2002/04/23 21:41:25  hal9
6006  Linuxconf is deprecated on RH, substitute chkconfig.
6007
6008  Revision 1.89  2002/04/23 21:05:28  oes
6009  Added hint for startup on Red Hat
6010
6011  Revision 1.88  2002/04/23 05:37:54  hal9
6012  Add AmigaOS install stuff.
6013
6014  Revision 1.87  2002/04/23 02:53:15  david__schmidt
6015  Updated OSX installation section
6016  Added a few English tweaks here an there
6017
6018  Revision 1.86  2002/04/21 01:46:32  hal9
6019  Re-write actions section.
6020
6021  Revision 1.85  2002/04/18 21:23:23  hal9
6022  Fix ugly typo (mine).
6023
6024  Revision 1.84  2002/04/18 21:17:13  hal9
6025  Spell Redhat correctly (ie Red Hat). A few minor grammar corrections.
6026
6027  Revision 1.83  2002/04/18 18:21:12  oes
6028  Added RPM install detail
6029
6030  Revision 1.82  2002/04/18 12:04:50  oes
6031  Cosmetics
6032
6033  Revision 1.81  2002/04/18 11:50:24  oes
6034  Extended Install section - needs fixing by packagers
6035
6036  Revision 1.80  2002/04/18 10:45:19  oes
6037  Moved text to buildsource.sgml, renamed some filters, details
6038
6039  Revision 1.79  2002/04/18 03:18:06  hal9
6040  Spellcheck, and minor touchups.
6041
6042  Revision 1.78  2002/04/17 18:04:16  oes
6043  Proofreading part 2
6044
6045  Revision 1.77  2002/04/17 13:51:23  oes
6046  Proofreading, part one
6047
6048  Revision 1.76  2002/04/16 04:25:51  hal9
6049  -Added 'Note to Upgraders' and re-ordered the 'Quickstart' section.
6050  -Note about proxy may need requests to re-read config files.
6051
6052  Revision 1.75  2002/04/12 02:08:48  david__schmidt
6053  Remove OS/2 building info... it is already in the developer-manual
6054
6055  Revision 1.74  2002/04/11 00:54:38  hal9
6056  Add small section on submitting actions.
6057
6058  Revision 1.73  2002/04/10 18:45:15  swa
6059  generated
6060
6061  Revision 1.72  2002/04/10 04:06:19  hal9
6062  Added actions feedback  to Bookmarklets section
6063
6064  Revision 1.71  2002/04/08 22:59:26  hal9
6065  Version update. Spell chkconfig correctly :)
6066
6067  Revision 1.70  2002/04/08 20:53:56  swa
6068  ?
6069
6070  Revision 1.69  2002/04/06 05:07:29  hal9
6071  -Add privoxy-man-page.sgml, for man page.
6072  -Add authors.sgml for AUTHORS (and p-authors.sgml)
6073  -Reworked various aspects of various docs.
6074  -Added additional comments to sub-docs.
6075
6076  Revision 1.68  2002/04/04 18:46:47  swa
6077  consistent look. reuse of copyright, history et. al.
6078
6079  Revision 1.67  2002/04/04 17:27:57  swa
6080  more single file to be included at multiple points. make maintaining easier
6081
6082  Revision 1.66  2002/04/04 06:48:37  hal9
6083  Structural changes to allow for conditional inclusion/exclusion of content
6084  based on entity toggles, e.g. 'entity % p-not-stable  "INCLUDE"'. And
6085  definition of internal entities, e.g. 'entity p-version "2.9.13"' that will
6086  eventually be set by Makefile.
6087  More boilerplate text for use across multiple docs.
6088
6089  Revision 1.65  2002/04/03 19:52:07  swa
6090  enhance squid section due to user suggestion
6091
6092  Revision 1.64  2002/04/03 03:53:43  hal9
6093  A few minor bug fixes, and touch ups. Ready for review.
6094
6095  Revision 1.63  2002/04/01 16:24:49  hal9
6096  Define entities to include boilerplate text. See doc/source/*.
6097
6098  Revision 1.62  2002/03/30 04:15:53  hal9
6099  - Fix privoxy.org/config links.
6100  - Paste in Bookmarklets from Toggle page.
6101  - Move Quickstart nearer top, and minor rework.
6102
6103  Revision 1.61  2002/03/29 01:31:08  hal9
6104  Minor update.
6105
6106  Revision 1.60  2002/03/27 01:57:34  hal9
6107  Added more to Anatomy section.
6108
6109  Revision 1.59  2002/03/27 00:54:33  hal9
6110  Touch up intro for new name.
6111
6112  Revision 1.58  2002/03/26 22:29:55  swa
6113  we have a new homepage!
6114
6115  Revision 1.57  2002/03/24 20:33:30  hal9
6116  A few minor catch ups with name change.
6117
6118  Revision 1.56  2002/03/24 16:17:06  swa
6119  configure needs to be generated.
6120
6121  Revision 1.55  2002/03/24 16:08:08  swa
6122  we are too lazy to make a block-built
6123  privoxy logo. hence removed the option.
6124
6125  Revision 1.54  2002/03/24 15:46:20  swa
6126  name change related issue.
6127
6128  Revision 1.53  2002/03/24 11:51:00  swa
6129  name change. changed filenames.
6130
6131  Revision 1.52  2002/03/24 11:01:06  swa
6132  name change
6133
6134  Revision 1.51  2002/03/23 15:13:11  swa
6135  renamed every reference to the old name with foobar.
6136  fixed "application foobar application" tag, fixed
6137  "the foobar" with "foobar". left junkbustser in cvs
6138  comments and remarks to history untouched.
6139
6140  Revision 1.50  2002/03/23 05:06:21  hal9
6141  Touch up.
6142
6143  Revision 1.49  2002/03/21 17:01:05  hal9
6144  New section in Appendix.
6145
6146  Revision 1.48  2002/03/12 06:33:01  hal9
6147  Catching up to Andreas and re_filterfile changes.
6148
6149  Revision 1.47  2002/03/11 13:13:27  swa
6150  correct feedback channels
6151
6152  Revision 1.46  2002/03/10 00:51:08  hal9
6153  Added section on JB internal pages in Appendix.
6154
6155  Revision 1.45  2002/03/09 17:43:53  swa
6156  more distros
6157
6158  Revision 1.44  2002/03/09 17:08:48  hal9
6159  New section on Jon's actions file editor, and move some stuff around.
6160
6161  Revision 1.43  2002/03/08 00:47:32  hal9
6162  Added imageblock{pattern}.
6163
6164  Revision 1.42  2002/03/07 18:16:55  swa
6165  looks better
6166
6167  Revision 1.41  2002/03/07 16:46:43  hal9
6168  Fix a few markup problems for jade.
6169
6170  Revision 1.40  2002/03/07 16:28:39  swa
6171  provide correct feedback channels
6172
6173  Revision 1.39  2002/03/06 16:19:28  hal9
6174  Note on perceived filtering slowdown per FR.
6175
6176  Revision 1.38  2002/03/05 23:55:14  hal9
6177  Stupid I did it again. Double hyphen in comment breaks jade.
6178
6179  Revision 1.37  2002/03/05 23:53:49  hal9
6180  jade barfs on '- -' embedded in comments. - -user option broke it.
6181
6182  Revision 1.36  2002/03/05 22:53:28  hal9
6183  Add new - - user option.
6184
6185  Revision 1.35  2002/03/05 00:17:27  hal9
6186  Added section on command line options.
6187
6188  Revision 1.34  2002/03/04 19:32:07  oes
6189  Changed default port to 8118
6190
6191  Revision 1.33  2002/03/03 19:46:13  hal9
6192  Emphasis on where/how to report bugs, etc
6193
6194  Revision 1.32  2002/03/03 09:26:06  joergs
6195  AmigaOS changes, config is now loaded from PROGDIR: instead of
6196  AmiTCP:db/junkbuster/ if no configuration file is specified on the
6197  command line.
6198
6199  Revision 1.31  2002/03/02 22:45:52  david__schmidt
6200  Just tweaking
6201
6202  Revision 1.30  2002/03/02 22:00:14  hal9
6203  Updated 'New Features' list. Ran through spell-checker.
6204
6205  Revision 1.29  2002/03/02 20:34:07  david__schmidt
6206  Update OS/2 build section
6207
6208  Revision 1.28  2002/02/24 14:34:24  jongfoster
6209  Formatting changes.  Now changing the doctype to DocBook XML 4.1
6210  will work - no other changes are needed.
6211
6212  Revision 1.27  2002/01/11 14:14:32  hal9
6213  Added a very short section on Templates
6214
6215  Revision 1.26  2002/01/09 20:02:50  hal9
6216  Fix bug re: auto-detect config file changes.
6217
6218  Revision 1.25  2002/01/09 18:20:30  hal9
6219  Touch ups for *.action files.
6220
6221  Revision 1.24  2001/12/02 01:13:42  hal9
6222  Fix typo.
6223
6224  Revision 1.23  2001/12/02 00:20:41  hal9
6225  Updates for recent changes.
6226
6227  Revision 1.22  2001/11/05 23:57:51  hal9
6228  Minor update for startup now daemon mode.
6229
6230  Revision 1.21  2001/10/31 21:11:03  hal9
6231  Correct 2 minor errors
6232
6233  Revision 1.18  2001/10/24 18:45:26  hal9
6234  *** empty log message ***
6235
6236  Revision 1.17  2001/10/24 17:10:55  hal9
6237  Catching up with Jon's recent work, and a few other things.
6238
6239  Revision 1.16  2001/10/21 17:19:21  swa
6240  wrong url in documentation
6241
6242  Revision 1.15  2001/10/14 23:46:24  hal9
6243  Various minor changes. Fleshed out SEE ALSO section.
6244
6245  Revision 1.13  2001/10/10 17:28:33  hal9
6246  Very minor changes.
6247
6248  Revision 1.12  2001/09/28 02:57:04  hal9
6249  Ditto :/
6250
6251  Revision 1.11  2001/09/28 02:25:20  hal9
6252  Ditto.
6253
6254  Revision 1.9  2001/09/27 23:50:29  hal9
6255  A few changes. A short section on regular expression in appendix.
6256
6257  Revision 1.8  2001/09/25 00:34:59  hal9
6258  Some additions, and re-arranging.
6259
6260  Revision 1.7  2001/09/24 14:31:36  hal9
6261  Diddling.
6262
6263  Revision 1.6  2001/09/24 14:10:32  hal9
6264  Including David's OS/2 installation instructions.
6265
6266  Revision 1.2  2001/09/13 15:27:40  swa
6267  cosmetics
6268
6269  Revision 1.1  2001/09/12 15:36:41  swa
6270  source files for junkbuster documentation
6271
6272  Revision 1.3  2001/09/10 17:43:59  swa
6273  first proposal of a structure.
6274
6275  Revision 1.2  2001/06/13 14:28:31  swa
6276  docs should have an author.
6277
6278  Revision 1.1  2001/06/13 14:20:37  swa
6279  first import of project's documentation for the webserver.
6280
6281  -->
6282
6283 </article>