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