Mass commit to catch a few scattered fixes.
[privoxy.git] / doc / source / user-manual.sgml
index 686c1cf..4cbf7e6 100644 (file)
@@ -25,7 +25,7 @@
                 This file belongs into
                 ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
                 
- $Id: user-manual.sgml,v 1.91 2002/04/24 02:39:31 hal9 Exp $
+ $Id: user-manual.sgml,v 1.92 2002/04/25 18:55:13 hal9 Exp $
 
  Written by and Copyright (C) 2001 the SourceForge
  Privoxy team. http://www.privoxy.org/
@@ -46,7 +46,7 @@
 <artheader>
 <title>Privoxy User Manual</title>
 
-<pubdate>$Id: user-manual.sgml,v 1.91 2002/04/24 02:39:31 hal9 Exp $</pubdate>
+<pubdate>$Id: user-manual.sgml,v 1.92 2002/04/25 18:55:13 hal9 Exp $</pubdate>
 
 <authorgroup>
  <author>
 </para>
 
 <para>
- You will probably want to keep an eye out for sites that require persistent
- cookies, and add these to your actions configuration as needed. By
+ You will probably want to keep an eye out for sites for which you may prefer
persistent cookies, and add these to your actions configuration as needed. By
  default, most of these will be accepted only during the current browser
- session (aka <quote>session cookies</quote>), until you add them to the
+ session (aka <quote>session cookies</quote>), unless you add them to the
  configuration. If you want the browser to handle this instead, you will need
  to edit <filename>user.action</filename> (or through the web based interface)
- and disable this feature. If you use more than one browser, it would make more
- sense to let <application>Privoxy</application> handle this. In which case,
- the browser(s) should be set to accept all cookies.
+ and disable this feature. If you use more than one browser, it would make
+ more sense to let <application>Privoxy</application> handle this. In which
case, the browser(s) should be set to accept all cookies.
 </para>
 
 <para>
  Another feature where you will probably want to define exceptions for trusted
  sites is the popup-killing (through the <literal>+popup</literal> and
  <literal>+filter{popups}</literal> actions), because your favorite shopping,
- banking, or leisure site may need popups. 
+ banking, or leisure site may need popups (explained below)
 </para>
 
 <para>
 <para>
  If you can't get rid of the problem at all, think you've found a bug in
  Privoxy, want to propose a new feature or smarter rules, please see the 
chapter <ulink url="contact.html"><quote>Contacting the
section <ulink url="contact.html"><quote>Contacting the
  Developers</quote></ulink> below. 
 </para>
 
   in text files. These files can be edited with a text editor.
   Many important aspects of <application>Privoxy</application> can 
   also be controlled easily with a web browser.
-
  </para>
 
 
 
 </para>
 
-<para>
- <screen>
-
-Privoxy Menu:
+<!-- Needs to be put in a table and colorized  -->
+<screen>
+ <msgtext>
+ <bridgehead renderas="sect2">Privoxy Menu</bridgehead>
 
-    * View & change the current configuration
-    * View the source code version numbers
-    * View the request headers.
-    * Look up which actions apply to a URL and why
-    * Toggle Privoxy on or off
+ <simplelist>
+ <member>
+  &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>
+ </member>
+ <member>
+  &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>
+ </member>
+ <member>
+  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/show-request">View the request headers.</ulink>
+ </member>
+ <member>
+  &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>
+ </member>
+ <member>
+  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&squf;&nbsp;&nbsp;<ulink url="http://config.privoxy.org/toggle">Toggle Privoxy on or off</ulink>
+ </member>
+ </simplelist>
+ </msgtext>
+</screen>
 
- </screen>
-</para>
 
 <para>
  This should be self-explanatory. Note the first item leads to an editor for the
@@ -729,7 +740,7 @@ Privoxy Menu:
 
   <listitem>
    <para>
-     The main configuration file is named <filename>config</filename>
+     The main configuration file is named <link linkend="config">config</link>
      on Linux, Unix, BSD, OS/2, and AmigaOS and <filename>config.txt</filename>
      on Windows. This is a required file.
    </para>
@@ -737,7 +748,7 @@ Privoxy Menu:
 
   <listitem>
    <para>
-    <filename>default.action</filename> (the main actions file) is used to define
+    <filename>default.action</filename> (the main <link linkend="actions-file">actions file</link>) is used to define
     the default settings for various <quote>actions</quote> relating to images, banners, 
     pop-ups, access restrictions, banners and cookies.
    </para>
@@ -751,21 +762,22 @@ Privoxy Menu:
     for <application>Privoxy's</application> internal use.
    </para>
    <para>    
-    There is also a web based editor for this file that can be accessed at
+    There is also a web based editor that can be accessed from
     <ulink
-    url="http://config.privoxy.org/edit-actions/">http://config.privoxy.org/edit-actions/</ulink>
+    url="http://config.privoxy.org/show-status/">http://config.privoxy.org/show-status/</ulink>
     (Shortcut: <ulink
-    url="http://p.p/edit-actions/">http://p.p/edit-actions/</ulink>) for the
+    url="http://p.p/show-status/">http://p.p/show-status/</ulink>) for the
     various actions files. 
    </para>
   </listitem> 
 
   <listitem>
    <para>
-    <filename>default.filter</filename> (the filter file) can be used to re-write the raw
-    page content, including viewable text as well as embedded HTML and JavaScript,
-    and whatever else lurks on any given web page. The filtering jobs are only
-    pre-defined here; whether to apply them or not is up to the actions files.
+    <filename>default.filter</filename> (the <link linkend="filter-file">filter
+    file</link>) can be used to re-write the raw page content, including
+    viewable text as well as embedded HTML and JavaScript, and whatever else
+    lurks on any given web page. The filtering jobs are only pre-defined here;
+    whether to apply them or not is up to the actions files.
    </para>
   </listitem> 
 
@@ -962,7 +974,7 @@ actionsfile
   <term>Specifies:</term>
   <listitem>
    <para>
-    The actions file(s) to use
+    The <link linkend="actions">actions</link> file(s) to use
    </para>
   </listitem>
  </varlistentry>
@@ -1022,7 +1034,7 @@ actionsfile
   <term>Specifies:</term>
   <listitem>
    <para>
-    The filter file to use
+    The <link linkend="filter">filter</link> file to use
    </para>
   </listitem>
  </varlistentry>
@@ -1720,7 +1732,7 @@ actionsfile
   <term>Specifies:</term>
   <listitem>
    <para>
-    Whether or not the <ulink url="http://config.privoxy.org/edit-actions">web-based actions
+    Whether or not the <ulink url="http://config.privoxy.org/show-status">web-based actions
     file editor</ulink> may be used
    </para>
   </listitem>
@@ -2427,12 +2439,14 @@ forward-socks4 and forward-socks4a</title>
  the default policies. <filename>standard.action</filename> is used by 
  <application>Privoxy</application> and the web based editor to set 
  pre-defined values (and normally should not be edited). Local exceptions 
- are best done in <filename>user.action</filename>.
-</para>
+ are best done in <filename>user.action</filename>. The content of these 
+ can all be viewed and edited from <ulink
+ url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>.
+ </para>
 
 <para> 
  Anything you want can blocked, including ads, banners, or just some obnoxious
- URL that you would rather not see. Cookies can be accepted or rejected, or
+ URL that you would rather not see is done here. Cookies can be accepted or rejected, or
  accepted only during the current browser session (i.e. not written to disk),
  content can be modified, JavaScripts tamed, user-tracking fooled, and much more.
  See below for a complete list of available actions.
@@ -2450,16 +2464,16 @@ forward-socks4 and forward-socks4a</title>
 <sect3>
 <title>Finding the Right Mix</title>
 <para>
- Note that some actions like cookie suppression or script disabling may
- render some sites unusable, which rely on these techniques to work properly.
- Finding the right mix of actions is not easy and certainly a matter of personal
- taste. In general, it can be said that the more <quote>aggressive</quote>
- your default settings (in the top section of the actions file) are,
- the more exceptions for <quote>trusted</quote> sites you will have to
- make later. If, for example, you want to kill popup windows per default, you'll
- have to make exceptions from that rule for sites that you regularly use
- and that require popups for actually useful content, like maybe your bank,
- favorite shop, or newspaper.
+ Note that some <link linkend="actions">actions</link> like cookie suppression
+ or script disabling may render some sites unusable, which rely on these
+ techniques to work properly. Finding the right mix of actions is not easy and
+ certainly a matter of personal taste. In general, it can be said that the more
+ <quote>aggressive</quote> your default settings (in the top section of the
+ actions file) are, the more exceptions for <quote>trusted</quote> sites you
+ will have to make later. If, for example, you want to kill popup windows per
+ default, you'll have to make exceptions from that rule for sites that you
+ regularly use and that require popups for actually useful content, like maybe
your bank, favorite shop, or newspaper.
 </para>
 
 <para>
@@ -2475,8 +2489,8 @@ forward-socks4 and forward-socks4a</title>
 <title>How to Edit</title>
 <para>
  The easiest way to edit the <quote>actions</quote> files is with a browser by
- using our browser-based editor, which is available at <ulink
- url="http://config.privoxy.org/edit-actions">http://config.privoxy.org/edit-actions</ulink>.
+ using our browser-based editor, which can be reached from <ulink
+ url="http://config.privoxy.org/show-status">http://config.privoxy.org/show-status</ulink>.
 </para>
 
 <para>
@@ -2490,7 +2504,7 @@ forward-socks4 and forward-socks4a</title>
 <title>How Actions are Applied to URLs</title>
 <para>
  Actions files are divided into sections. There are special sections,
- like the <quote>alias</quote> sections which will be discussed later. For now
+ like the <quote><link linkend="aliases">alias</link></quote> sections which will be discussed later. For now
  let's concentrate on regular sections: They have a heading line (often split
  up to multiple lines for readability) which consist of a list of actions,
  separated by whitespace and enclosed in curly braces. Below that, there
@@ -2502,7 +2516,11 @@ forward-socks4 and forward-socks4a</title>
  compared to all patterns in this file. Every time it matches, the list of
  applicable actions for the URL is incrementally updated, using the heading
  of the section in which the pattern is located. If multiple matches for
- the same URL set the same action differently, the last match wins.
+ the same URL set the same action differently, the last match wins. If not, 
+ the effects are aggregated (e.g. a URL might match both the 
+ <ulink url="configuration.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>
+ and <ulink url="configuration.html#BLOCK"><quote>+block</quote></ulink> actions).
 </para>
 
 <para>
@@ -2920,12 +2938,15 @@ forward-socks4 and forward-socks4a</title>
     instead. If there is sufficient space, a large red banner will appear with
     a friendly message about why the page was blocked, and a way to go there
     anyway. If there is insufficient space a smaller blocked page will appear
-    without the red banner.
+    without the red banner. 
+    <ulink url="http://ads.bannerserver.example.com/nasty-ads/sponsor.html">Click here</ulink>
+    to view the default blocked HTML page (<application>Privoxy</application> must be running 
+    for this to work as intended!).
    </para>
 
    <para> 
-    A very important exception is if the URL <emphasis>matches both</emphasis> <quote>+block</quote> 
-    and <ulink
+    A very important exception is if the URL <emphasis>matches both</emphasis>
+    <quote>+block</quote> and <ulink
     url="configuration.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>,
     then it will be handled by 
     <ulink url="configuration.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
@@ -2934,7 +2955,8 @@ forward-socks4 and forward-socks4a</title>
     ads and other objectionable content.
    </para>
    <para>
-    The <quote>+filter</quote> action can also perform some of the 
+    The <ulink url="configuration.html#FILTER"><quote>+filter</quote></ulink>
+    action can also perform some of the 
     same functionality as <quote>+block</quote>, but by virtue of very 
     different programming techniques, and is most often used for different 
     reasons.
@@ -3257,8 +3279,9 @@ forward-socks4 and forward-socks4a</title>
     Filtering can achieve some of the effects as the 
     <ulink url="configuration.html#BLOCK"><quote>+block</quote></ulink>
     action, i.e. it can be used to block ads and banners. In the overall 
-    scheme of things, filtering is one of the last things <quote>Privoxy</quote> 
-    does with a web page. So other actions are applied first.
+    scheme of things, filtering is one of the first things <quote>Privoxy</quote> 
+    does with a web page. So other most other actions are applied to the 
+    already <quote>filtered</quote> page.
    </para>
   </listitem>
  </varlistentry>
@@ -3368,7 +3391,8 @@ forward-socks4 and forward-socks4a</title>
   <listitem>
    <para>
     The keyword <quote>block</quote> will completely remove the header 
-    (not to be confused with the <quote>+block</quote> action).
+    (not to be confused with the <ulink
+    url="configuration.html#BLOCK"><quote>+block</quote></ulink> action).
     Alternately, you can specify any value you prefer to send to the web
     server.
    </para>
@@ -3549,13 +3573,17 @@ forward-socks4 and forward-socks4a</title>
   <listitem>
    <para>
     This only has meaning if the URL (or pattern) also is
-    <quote>+block</quote>ed, in which case a <quote>blocked</quote> image can
-    be sent rather than a HTML page. (See 
-    <ulink url="configuration.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
-     below for control over what will actually be displayed by the browser.)    
+    <quote>+block</quote>ed, in which case a user definable image can
+    be sent rather than a HTML page. This is integral to the whole concept of
+    ad blocking: the URL must match <emphasis>both</emphasis> a <ulink
+    url="configuration.html#BLOCK"><quote>+block</quote></ulink> rule,
+    <emphasis>and</emphasis> <quote>+handle-as-image</quote>.
+    (See <ulink
+    url="configuration.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
+    below for control over what will actually be displayed by the browser.)
    </para>
    <para>
-    There is little reason to change the default definition for this.
+    There is little reason to change the default definition for this action.
    </para>
   </listitem>
  </varlistentry>
@@ -4864,7 +4892,8 @@ Requests</title>
 
  <listitem>
   <para>  
-    Show information about the current configuration: 
+    Show information about the current configuration, including viewing and 
+    editing of actions files:
   </para>
    <blockquote>
    <para> 
@@ -4886,7 +4915,7 @@ Requests</title>
  
  <listitem>
   <para>  
-   Show the client's request headers:
+   Show the browser's request headers:
   </para>
   <blockquote>
    <para> 
@@ -4930,17 +4959,6 @@ Requests</title>
    </para>
   </blockquote>
  </listitem>
-
- <listitem>
-  <para>  
-   Edit the actions list file:
-  </para>
-   <blockquote>
-   <para> 
-    <ulink url="http://config.privoxy.org/edit-actions">http://config.privoxy.org/edit-actions</ulink>
-   </para>
-  </blockquote>
- </listitem>
  
  </itemizedlist>
 </para>
@@ -5032,15 +5050,15 @@ Requests</title>
  <listitem>
   <para>
    First, your web browser requests a web page. The browser knows to send 
-   the request to <application>Privoxy</application>, who in turn, 
-   will relay the request to the remote web server after passing a few quick
+   the request to <application>Privoxy</application>, which will in turn, 
+   relay the request to the remote web server after passing the following 
    tests: 
   </para>
  </listitem> 
  <listitem>
   <para>
    <application>Privoxy</application> traps any request for its own internal CGI 
-  pages (e.g http://p.p/) and sends these back to the browser.
+   pages (e.g http://p.p/) and sends the CGI page back to the browser.
   </para>
  </listitem> 
  <listitem>
@@ -5048,13 +5066,13 @@ Requests</title>
    Next, <application>Privoxy</application> checks to see if the URL 
    matches any <ulink
    url="configuration.html#BLOCK"><quote>+block</quote></ulink> patterns. If
-   so, the remote web server is not contacted, and the URL is then further
-   checked against <quote>+handle-as-image</quote>. If both match, then the
-   setting of <ulink url="configuration.html#SET-IMAGE-BLOCKER">
-   <quote>+set-image-blocker</quote></ulink> is used to display whichever
-   option is appropriate. If <ulink
-   url="configuration.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>
-   does not match, then the <quote>BLOCKED</quote> banner page is displayed.
+   so, the URL is then blocked, and the remote web server will not be contacted.
+   <ulink url="configuration.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink> 
+   is then checked and if it does not match, an 
+   HTML <quote>BLOCKED</quote> page is sent back. Otherwise, if it does match,
+   an image is returned. The type of image depends on the setting of <ulink
+   url="configuration.html#SET-IMAGE-BLOCKER"><quote>+set-image-blocker</quote></ulink>
+   (blank, checkerboard pattern, or an HTTP redirect to an image elsewhere).
   </para>
  </listitem> 
  <listitem>
@@ -5065,44 +5083,74 @@ Requests</title>
  </listitem> 
  <listitem>
   <para>
-   <ulink
-   url="configuration.html#FAST-REDIRECTS"><quote>+fast-redirects</quote></ulink>
-   is processed, stripping unwanted parts of the requested web page URL.
+   If the URL pattern matches the <ulink
+   url="configuration.html#FAST-REDIRECTS"><quote>+fast-redirects</quote></ulink> action,
+   it is then processed. Unwanted parts of the requested URL are stripped.
   </para>
  </listitem> 
  <listitem>
   <para>
-   At this point, <application>Privoxy</application> now relays the URL to the
-   web server, requesting the page (assuming nothing up to this point has
-   prevented getting us from this far).
+   Now the rest of the client browser's request headers are processed. If any
+   of these match any of the relevant actions (e.g. <ulink
+   url="configuration.html#HIDE-USER-AGENT"><quote>+hide-user-agent</quote></ulink>,
+   etc.), headers are suppressed or forged as determined by these actions and
+   their parameters.
   </para>
  </listitem> 
  <listitem>
   <para>
-   The first few hundred bytes are read from the web server and 
-   <ulink url="configuration.html#KILL-POPUPS"><quote>+kill-popups</quote></ulink>
-   is processed, if enabled.
+   Now the web server starts sending its response back (i.e. typically a web page and related 
+   data).
   </para>
  </listitem> 
  <listitem>
   <para>
-   If <ulink url="configuration.html#FILTER"><quote>+filter</quote></ulink>
-   applies, the rest of the page is read into memory and then the filter rules
-   (from <filename>default.filter</filename>) are processed. Filters are
-   applied in the order they are specified in the
-   <filename>default.filter</filename> file.  The entire page, which is now
-   filtered, is then sent by <application>Privoxy</application> back to your
-   browser.
+   First, the server headers are read and processed to determine, among other
+   things, the MIME type (document type) and encoding. The headers are then
+   filtered as deterimed by the 
+   <ulink url="configuration.html#PREVENT-SETTING-COOKIES"><quote>+prevent-setting-cookies</quote></ulink>,
+   <ulink url="configuration.html#SESSION-COOKIES-ONLY"><quote>+session-cookies-only</quote></ulink>,
+   and <ulink url="configuration.html#DOWNGRADE-HTTP-VERSION"><quote>+downgrade-http-version</quote></ulink>
+   actions.
   </para>
  </listitem> 
  <listitem>
   <para>
-   As the browser receives the now filtered page content, it will read and request any
-   embedded URLs on the page, e.g. ad images. As the browser requests these
-   secondary URLs from whatever server they may be on,
-   <application>Privoxy</application> handles these same as above, and the process
-   is repeated all over again for each such URL. Note that a fancy web page may
-   have many, many such embedded URLs for graphics, frames, etc.
+   If the <ulink url="configuration.html#KILL-POPUPS"><quote>+kill-popups</quote></ulink>
+   action applies, and it is an HTML or JavaScript document, the popup-code in the
+   response is filtered on-the-fly as it is received.
+  </para>
+ </listitem> 
+ <listitem>
+  <para>
+   If a <ulink url="configuration.html#FILTER"><quote>+filter</quote></ulink>
+   or <ulink
+   url="configuration.html#DEANIMATE-GIFS"><quote>+deanimate-gifs</quote></ulink>
+   action applies (and the document type fits the action), the rest of the page is
+   read into memory (up to a configurable limit). Then the filter rules (from
+   <filename>default.filter</filename>) are processed against the buffered
+   content. Filters are applied in the order they are specified in the
+   <filename>default.filter</filename> file. Animated GIFs, if present, are
+   reduced to either the first or last frame, depending on the action
+   setting.The entire page, which is now filtered, is then sent by
+   <application>Privoxy</application> back to your browser. 
+  </para>
+  <para>
+   If neither <ulink url="configuration.html#FILTER"><quote>+filter</quote></ulink>
+   or <ulink
+   url="configuration.html#DEANIMATE-GIFS"><quote>+deanimate-gifs</quote></ulink>
+   matches, then <application>Privoxy</application> passes the raw data through 
+   to the client browser as it becomes available.
+  </para>
+ </listitem> 
+ <listitem>
+  <para>
+   As the browser receives the now (probably filtered) page content, it 
+   reads and then requests any URLs that may be embedded within the page
+   source, e.g. ad images, stylesheets, JavaScript, other HTML documents (e.g.
+   frames), sounds, etc. For each of these objects, the browser issues a new
+   request. And each such request is in turn processed as above. Note that a
+   complex web page may have many such embedded URLs.
   </para>
  </listitem> 
  
@@ -5117,8 +5165,10 @@ Requests</title>
 <title>Anatomy of an Action</title>
 
 <para>
- The way <application>Privoxy</application> applies <quote>actions</quote>
- and <quote>filters</quote> to any given URL can be complex, and not always so
+ The way <application>Privoxy</application> applies 
+ <ulink url="configuration.html#ACTIONS"><quote>actions</quote></ulink>
+ and <ulink url="configuration.html#FILTER"><quote>filters</quote></ulink>
+ to any given URL can be complex, and not always so
  easy to understand what is happening. And sometimes we need to be able to
  <emphasis>see</emphasis> just what <application>Privoxy</application> is
  doing. Especially, if something <application>Privoxy</application> is doing
@@ -5146,16 +5196,17 @@ Requests</title>
  First, enter one URL (or partial URL) at the prompt, and then
  <application>Privoxy</application> will tell us 
  how the current configuration will handle it. This will not
- help with filtering effects (i.e. the <quote>+filter</quote> action) from the
- <filename>default.filter</filename> file since this is handled very differently 
- and not so easy to trap! It also will not tell you about any other URLs that
- may be embedded within the URL you are testing (i.e. a web page). For
- instance, images such as ads are expressed as URLs within the raw page source
- of HTML pages. So you will only get info for the actual URL that is pasted
- into the prompt area -- not any sub-URLs. If you want to know about embedded
- URLs like ads, you will have to dig those out of the HTML source. Use your
- browser's <quote>View Page Source</quote> option for this. Or right click on
- the ad, and grab the URL.
+ help with filtering effects (i.e. the <ulink
+ url="configuration.html#FILTER"><quote>+filter</quote></ulink> action) from
+ the <filename>default.filter</filename> file since this is handled very
+ differently and not so easy to trap! It also will not tell you about any other
+ URLs that may be embedded within the URL you are testing. For instance, images
+ such as ads are expressed as URLs within the raw page source of HTML pages. So
+ you will only get info for the actual URL that is pasted into the prompt area
+ -- not any sub-URLs. If you want to know about embedded URLs like ads, you
+ will have to dig those out of the HTML source. Use your browser's <quote>View
+ Page Source</quote> option for this. Or right click on the ad, and grab the
+ URL.
 </para>
 
 <para>
@@ -5178,11 +5229,11 @@ Requests</title>
  +filter{webbugs} +filter{refresh-tags} +filter{nimda} +filter{banners-by-size} 
  +hide-forwarded-for-headers +hide-from-header{block} +hide-referer{forge} 
  -hide-user-agent -handle-as-image +set-image-blocker{pattern} -limit-connect 
- +prevent-compression +session-cookies-only +prevent-reading-cookies 
+prevent-setting-cookies -kill-popups -send-vanilla-wafer -send-wafer }
+ +prevent-compression +session-cookies-only -prevent-reading-cookies 
-prevent-setting-cookies -kill-popups -send-vanilla-wafer -send-wafer }
 /
 
- { -prevent-setting-cookies -prevent-reading-cookies }
+ { -session-cookies-only }
  .google.com
 
  { -fast-redirects }
@@ -5195,40 +5246,45 @@ Requests</title>
 </para>
 
 <para>
- This tells us how we have defined our <quote>actions</quote>, and which ones
- match for our example, <quote>google.com</quote>. The first listing is 
- for the <filename>standard.action</filename>. No hits at all here on
- <quote>standard</quote>. Then next is <quote>default</quote>, or our
- <filename>default.action</filename> file. The large, multi-line listing, is
- how the actions are set to match for all URLs, i.e. our default settings. If
- you look at your <quote>actions</quote> file, this would be the section just
- below the <quote>aliases</quote> section near the top. This will apply to all
- URLs as signified by the single forward slash at the end of the listing --
- <quote>/</quote>.
+ This tells us how we have defined our 
+ <ulink url="configuration.html#ACTIONS"><quote>actions</quote></ulink>, and
+ which ones match for our example, <quote>google.com</quote>. The first listing
+ is any matches for the <filename>standard.action</filename> file. No hits at
+ all here on <quote>standard</quote>. Then next is <quote>default</quote>, or
+ our <filename>default.action</filename> file. The large, multi-line listing,
+ is how the actions are set to match for all URLs, i.e. our default settings.
+ If you look at your <quote>actions</quote> file, this would be the section
+ just below the <quote>aliases</quote> section near the top. This will apply to
+ all URLs as signified by the single forward slash at the end of the listing
+ -- <quote>/</quote>.
 </para>
 
 <para>
  But we can define additional actions that would be exceptions to these general
  rules, and then list specific URLs (or patterns) that these exceptions would
  apply to. Last match wins. Just below this then are two explicit matches for
- <quote>.google.com</quote>. The first is negating our various cookie blocking
- actions (i.e. we will allow cookies here). The second is allowing
- <quote>fast-redirects</quote> to take place. Note that there is a leading dot
- here -- <quote>.google.com</quote>. This will match any hosts and sub-domains,
- in the google.com domain also, such as <quote>www.google.com</quote>. So,
- apparently, we have these two actions defined somewhere in the lower part of our
- actions file, and <quote>google.com</quote> is referenced somewhere in these
- latter sections.
+ <quote>.google.com</quote>. The first is negating our previous cookie setting, 
+ which was for <ulink
+ url="configuration.html#SESSION-COOKIES-ONLY"><quote>+session-cookies-only</quote></ulink>
+ (i.e. not persistent). So we will allow persistent cookies for google. The
+ second turns <emphasis>off</emphasis> any 
+ <ulink
+ url="configuration.html#FAST-REDIRECTS"><quote>+fast-redirects</quote></ulink>
+ action, allowing this to take place unmolested. Note that there is a leading
+ dot here -- <quote>.google.com</quote>. This will match any hosts and
+ sub-domains, in the google.com domain also, such as
+ <quote>www.google.com</quote>. So, apparently, we have these two actions
+ defined somewhere in the lower part of our <filename>default.action</filename>
+ file, and <quote>google.com</quote> is referenced somewhere in these latter
+ sections.
 </para>
 
 <para>
- Then, for our <filename>user.action</filename> file, we again have no hits, as 
- signified by <quote>File user</quote>.
+ Then, for our <filename>user.action</filename> file, we again have no hits.
 </para>
 
 <para>
- And finally we pull it altogether in the bottom section and summarize how
+ And finally we pull it altogether in the bottom section and summarize how
  <application>Privoxy</application> is applying all its <quote>actions</quote> 
  to <quote>google.com</quote>:
 
@@ -5244,7 +5300,7 @@ Requests</title>
  +filter{webbugs} +filter{refresh-tags} +filter{nimda} +filter{banners-by-size} 
  +hide-forwarded-for-headers +hide-from-header{block} +hide-referer{forge} 
  -hide-user-agent -handle-as-image +set-image-blocker{pattern} -limit-connect 
- +prevent-compression +session-cookies-only -prevent-reading-cookies 
+ +prevent-compression -session-cookies-only -prevent-reading-cookies 
  -prevent-setting-cookies -kill-popups -send-vanilla-wafer -send-wafer 
  
  </screen>
@@ -5252,7 +5308,7 @@ Requests</title>
 
 <para>
  Notice the only difference here to the previous listing, is to 
- <quote>fast-redirects</quote> and the two cookie settings.
+ <quote>fast-redirects</quote> and <quote>session-cookies-only</quote>.
 </para>
 
 <para>
@@ -5278,8 +5334,9 @@ Requests</title>
  We'll just show the interesting part here, the explicit matches. It is 
  matched three different times. Each as an <quote>+block +handle-as-image</quote>,
  which is the expanded form of one of our aliases that had been defined as: 
- <quote>+imageblock</quote>. (<quote>Aliases</quote> are defined in the 
- first section of the actions file and typically used to combine more 
+ <quote>+imageblock</quote>. (<ulink
+ url="configuration.html#ALIASES"><quote>Aliases</quote></ulink> are defined in
+ the first section of the actions file and typically used to combine more 
  than one action.)
 </para>
 
@@ -5289,9 +5346,13 @@ Requests</title>
  would also cover the first. No point in taking chances with these guys 
  though ;-) Note that if you want an ad or obnoxious 
  URL to be invisible, it should be defined as <quote>ad.doubleclick.net</quote>
- is done here -- as both a <quote>+block</quote> <emphasis>and</emphasis> an
- <quote>+handle-as-image</quote>. The custom alias <quote>+imageblock</quote> does this
- for us.
+ is done here -- as both a <ulink
+ url="configuration.html#BLOCK"><quote>+block</quote></ulink>
+ <emphasis>and</emphasis> an 
+ <ulink
+ url="configuration.html#HANDLE-AS-IMAGE"><quote>+handle-as-image</quote></ulink>.
+ The custom alias <quote>+imageblock</quote> just simplifies the process and make 
+ it more readable.
 </para>
 
 <para>
@@ -5309,8 +5370,8 @@ Requests</title>
    +filter{webbugs} +filter{nimda} +filter{banners-by-size} +filter{hal} 
    +filter{fun} +hide-forwarded-for-headers +hide-from-header{block} 
    +hide-referer{forge} -hide-user-agent -handle-as-image +set-image-blocker{blank} 
-   +prevent-compression +session-cookies-only +prevent-setting-cookies 
-   +prevent-reading-cookies +kill-popups -send-vanilla-wafer -send-wafer }
+   +prevent-compression +session-cookies-only -prevent-setting-cookies 
+   -prevent-reading-cookies +kill-popups -send-vanilla-wafer -send-wafer }
    /
 
  { +block +handle-as-image }
@@ -5323,8 +5384,8 @@ Requests</title>
  Ooops, the <quote>/adsl/</quote> is matching <quote>/ads</quote>! But 
  we did not want this at all! Now we see why we get the blank page. We could
  now add a new action below this that explicitly does <emphasis>not</emphasis>
- block (-block) pages with <quote>adsl</quote>. There are various ways to
- handle such exceptions. Example:
+ block (<quote>{-block}</quote>) paths with <quote>adsl</quote>. There are
various ways to handle such exceptions. Example:
 </para>
 
 <para>
@@ -5349,9 +5410,9 @@ Requests</title>
 <para>
  <screen>
 
- { -block }
-  /adsl
+ { +block +handle-as-image }
+ /ads
+  
  </screen>
 </para>
 
@@ -5379,7 +5440,7 @@ Requests</title>
 
 <para>
  <quote>{shop}</quote> is an <quote>alias</quote> that expands to 
- <quote>{ -filter -prevent-setting-cookies -prevent-reading-cookies }</quote>.
+ <quote>{ -filter -session-cookies-only }</quote>.
  Or you could do your own exception to negate filtering:
 
 </para>
@@ -5395,7 +5456,7 @@ Requests</title>
 
 <para>
  This would probably be most appropriately put in <filename>user.action</filename>, 
- for personal user exceptions.
+ for local site exceptions.
 </para>
 
 <para>
@@ -5430,6 +5491,10 @@ Requests</title>
  Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
  $Log: user-manual.sgml,v $
+ Revision 1.92  2002/04/25 18:55:13  hal9
+ More catchups on new actions files, and new actions names.
+ Other assorted cleanups, and minor modifications.
+
  Revision 1.91  2002/04/24 02:39:31  hal9
  Add 'Chain of Events' section.