Syncing with minor additions on filtering.
[privoxy.git] / doc / webserver / user-manual / actions-file.html
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Actions Files</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 "><LINK
9 REL="HOME"
10 TITLE="Privoxy User Manual"
11 HREF="index.html"><LINK
12 REL="PREVIOUS"
13 TITLE="The Main Configuration File"
14 HREF="config.html"><LINK
15 REL="NEXT"
16 TITLE="The Filter File"
17 HREF="filter-file.html"><LINK
18 REL="STYLESHEET"
19 TYPE="text/css"
20 HREF="../p_doc.css"></HEAD
21 ><BODY
22 CLASS="SECT1"
23 BGCOLOR="#EEEEEE"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >Privoxy User Manual</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="config.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 ></TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="filter-file.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="SECT1"
73 ><H1
74 CLASS="SECT1"
75 ><A
76 NAME="ACTIONS-FILE">8. Actions Files</H1
77 ><P
78 > The actions files are used to define what actions
79  <SPAN
80 CLASS="APPLICATION"
81 >Privoxy</SPAN
82 > takes for which URLs, and thus determine
83  how ad images, cookies and various other aspects of HTTP content and
84  transactions are handled, and on which sites (or even parts thereof). There 
85  are three such files included with <SPAN
86 CLASS="APPLICATION"
87 >Privoxy</SPAN
88 > (as of 
89  version 2.9.15), with differing purposes:
90  </P
91 ><P
92 >  <P
93 ></P
94 ><UL
95 ><LI
96 ><P
97 >     <TT
98 CLASS="FILENAME"
99 >default.action</TT
100 > - is the primary action file 
101      that sets the initial values for all actions. It is intended to 
102      provide a base level of functionality for
103      <SPAN
104 CLASS="APPLICATION"
105 >Privoxy's</SPAN
106 > array of features. So it is 
107      a set of broad rules that should work reasonably well for users everywhere.
108      This is the file that the developers are keeping updated, and making 
109      available to users.
110     </P
111 ></LI
112 ><LI
113 ><P
114 >     <TT
115 CLASS="FILENAME"
116 >user.action</TT
117 > - is intended to be for local site 
118      preferences and exceptions. As an example, if your ISP or your bank
119      has specific requirements, and need special handling, this kind of 
120      thing should go here. This file will not be upgraded.
121     </P
122 ></LI
123 ><LI
124 ><P
125 >     <TT
126 CLASS="FILENAME"
127 >standard.action</TT
128 > - is used by the web based editor, 
129      to set various pre-defined sets of rules for the default actions section
130      in <TT
131 CLASS="FILENAME"
132 >default.action</TT
133 >. These have increasing levels of
134      aggressiveness <SPAN
135 CLASS="emphasis"
136 ><I
137 CLASS="EMPHASIS"
138 >and have no influence on your browsing unless
139      you select them explicitly in the editor</I
140 ></SPAN
141 >. It is not recommend
142      to edit this file.
143     </P
144 ></LI
145 ></UL
146 >
147  </P
148 ><P
149 > The list of actions files to be used are defined in the main configuration 
150  file, and are processed in the order they are defined. The content of these
151  can all be viewed and edited from <A
152 HREF="http://config.privoxy.org/show-status"
153 TARGET="_top"
154 >http://config.privoxy.org/show-status</A
155 >.</P
156 ><P
157 > An actions file typically has multiple sections. If you want to use
158  <SPAN
159 CLASS="QUOTE"
160 >"aliases"</SPAN
161 > in an actions file, you have to place the (optional)
162  <A
163 HREF="actions-file.html#ALIASES"
164 >alias section</A
165 > at the top of that file.
166  Then comes the default set of rules which will apply universally to all
167  sites and pages (be <SPAN
168 CLASS="emphasis"
169 ><I
170 CLASS="EMPHASIS"
171 >very careful</I
172 ></SPAN
173 > with using such a
174  universal set in <TT
175 CLASS="FILENAME"
176 >user.action</TT
177 > or any other actions file after 
178  <TT
179 CLASS="FILENAME"
180 >default.action</TT
181 >, because it will override the result
182  from consulting any previous file). And then below that,
183  exceptions to the defined universal policies. You can regard
184  <TT
185 CLASS="FILENAME"
186 >user.action</TT
187 > as an appendix to <TT
188 CLASS="FILENAME"
189 >default.action</TT
190 >,
191  with the advantage that is a separate file, which makes preserving your
192  personal settings across <SPAN
193 CLASS="APPLICATION"
194 >Privoxy</SPAN
195 > upgrades easier.</P
196 ><P
197
198  Actions can be used to block anything you want, including ads, banners, or
199  just some obnoxious URL that you would rather not see. Cookies can be accepted
200  or rejected, or accepted only during the current browser session (i.e. not
201  written to disk), content can be modified, JavaScripts tamed, user-tracking
202  fooled, and much more. See below for a <A
203 HREF="actions-file.html#ACTIONS"
204 >complete list
205  of actions</A
206 >.</P
207 ><DIV
208 CLASS="SECT2"
209 ><H2
210 CLASS="SECT2"
211 ><A
212 NAME="AEN1584">8.1. Finding the Right Mix</H2
213 ><P
214 > Note that some <A
215 HREF="actions-file.html#ACTIONS"
216 >actions</A
217 >, like cookie suppression
218  or script disabling, may render some sites unusable that rely on these
219  techniques to work properly. Finding the right mix of actions is not always easy and
220  certainly a matter of personal taste. In general, it can be said that the more
221  <SPAN
222 CLASS="QUOTE"
223 >"aggressive"</SPAN
224 > your default settings (in the top section of the
225  actions file) are, the more exceptions for <SPAN
226 CLASS="QUOTE"
227 >"trusted"</SPAN
228 > sites you
229  will have to make later. If, for example, you want to kill popup windows per
230  default, you'll have to make exceptions from that rule for sites that you
231  regularly use and that require popups for actually useful content, like maybe
232  your bank, favorite shop, or newspaper.</P
233 ><P
234 > We have tried to provide you with reasonable rules to start from in the
235  distribution actions files. But there is no general rule of thumb on these
236  things. There just are too many variables, and sites are constantly changing.
237  Sooner or later you will want to change the rules (and read this chapter again :).</P
238 ></DIV
239 ><DIV
240 CLASS="SECT2"
241 ><H2
242 CLASS="SECT2"
243 ><A
244 NAME="AEN1591">8.2. How to Edit</H2
245 ><P
246 > The easiest way to edit the actions files is with a browser by
247  using our browser-based editor, which can be reached from <A
248 HREF="http://config.privoxy.org/show-status"
249 TARGET="_top"
250 >http://config.privoxy.org/show-status</A
251 >.
252  The editor allows both fine-grained control over every single feature on a
253  per-URL basis, and easy choosing from wholesale sets of defaults like
254  <SPAN
255 CLASS="QUOTE"
256 >"Cautious"</SPAN
257 >, <SPAN
258 CLASS="QUOTE"
259 >"Medium"</SPAN
260 > or <SPAN
261 CLASS="QUOTE"
262 >"Advanced"</SPAN
263 >.</P
264 ><P
265 > If you prefer plain text editing to GUIs, you can of course also directly edit the
266  the actions files. Look at <TT
267 CLASS="FILENAME"
268 >default.action</TT
269 > which is richly
270  commented.</P
271 ></DIV
272 ><DIV
273 CLASS="SECT2"
274 ><H2
275 CLASS="SECT2"
276 ><A
277 NAME="ACTIONS-APPLY">8.3. How Actions are Applied to URLs</H2
278 ><P
279 > Actions files are divided into sections. There are special sections,
280  like the <SPAN
281 CLASS="QUOTE"
282 >"<A
283 HREF="actions-file.html#ALIASES"
284 >alias</A
285 >"</SPAN
286 > sections which will
287  be discussed later. For now let's concentrate on regular sections: They have a
288  heading line (often split up to multiple lines for readability) which consist
289  of a list of actions, separated by whitespace and enclosed in curly braces.
290  Below that, there is a list of URL patterns, each on a separate line.</P
291 ><P
292 > To determine which actions apply to a request, the URL of the request is
293  compared to all patterns in each action file file. Every time it matches, the list of
294  applicable actions for the URL is incrementally updated, using the heading
295  of the section in which the pattern is located. If multiple matches for
296  the same URL set the same action differently, the last match wins. If not, 
297  the effects are aggregated. E.g. a URL might match a regular section with 
298  a heading line of <TT
299 CLASS="LITERAL"
300 >{ 
301  +<A
302 HREF="actions-file.html#HANDLE-AS-IMAGE"
303 TARGET="_top"
304 >handle-as-image</A
305 > }</TT
306 >,
307  then later another one with just <TT
308 CLASS="LITERAL"
309 >{
310  +<A
311 HREF="actions-file.html#BLOCK"
312 TARGET="_top"
313 >block</A
314 > }</TT
315 >, resulting
316  in <SPAN
317 CLASS="emphasis"
318 ><I
319 CLASS="EMPHASIS"
320 >both</I
321 ></SPAN
322 > actions to apply.</P
323 ><P
324 > You can trace this process for any given URL by visiting <A
325 HREF="http://config.privoxy.org/show-url-info"
326 TARGET="_top"
327 >http://config.privoxy.org/show-url-info</A
328 >.</P
329 ><P
330 > More detail on this is provided in the Appendix, <A
331 HREF="appendix.html#ACTIONSANAT"
332 > Anatomy of an Action</A
333 >.</P
334 ></DIV
335 ><DIV
336 CLASS="SECT2"
337 ><H2
338 CLASS="SECT2"
339 ><A
340 NAME="AF-PATTERNS">8.4. Patterns</H2
341 ><P
342 > Generally, a pattern has the form <TT
343 CLASS="LITERAL"
344 >&#60;domain&#62;/&#60;path&#62;</TT
345 >,
346  where both the <TT
347 CLASS="LITERAL"
348 >&#60;domain&#62;</TT
349 > and <TT
350 CLASS="LITERAL"
351 >&#60;path&#62;</TT
352 >
353  are optional. (This is why the pattern <TT
354 CLASS="LITERAL"
355 >/</TT
356 > matches all URLs).</P
357 ><P
358 ></P
359 ><DIV
360 CLASS="VARIABLELIST"
361 ><DL
362 ><DT
363 ><TT
364 CLASS="LITERAL"
365 >www.example.com/</TT
366 ></DT
367 ><DD
368 ><P
369 >    is a domain-only pattern and will match any request to <TT
370 CLASS="LITERAL"
371 >www.example.com</TT
372 >,
373     regardless of which document on that server is requested.
374    </P
375 ></DD
376 ><DT
377 ><TT
378 CLASS="LITERAL"
379 >www.example.com</TT
380 ></DT
381 ><DD
382 ><P
383 >    means exactly the same. For domain-only patterns, the trailing <TT
384 CLASS="LITERAL"
385 >/</TT
386 > may
387     be omitted.
388    </P
389 ></DD
390 ><DT
391 ><TT
392 CLASS="LITERAL"
393 >www.example.com/index.html</TT
394 ></DT
395 ><DD
396 ><P
397 >    matches only the single document <TT
398 CLASS="LITERAL"
399 >/index.html</TT
400 >
401     on <TT
402 CLASS="LITERAL"
403 >www.example.com</TT
404 >.
405    </P
406 ></DD
407 ><DT
408 ><TT
409 CLASS="LITERAL"
410 >/index.html</TT
411 ></DT
412 ><DD
413 ><P
414 >    matches the document <TT
415 CLASS="LITERAL"
416 >/index.html</TT
417 >, regardless of the domain,
418     i.e. on <SPAN
419 CLASS="emphasis"
420 ><I
421 CLASS="EMPHASIS"
422 >any</I
423 ></SPAN
424 > web server.
425    </P
426 ></DD
427 ><DT
428 ><TT
429 CLASS="LITERAL"
430 >index.html</TT
431 ></DT
432 ><DD
433 ><P
434 >    matches nothing, since it would be  interpreted as a domain name and
435     there is no top-level domain called <TT
436 CLASS="LITERAL"
437 >.html</TT
438 >.
439    </P
440 ></DD
441 ></DL
442 ></DIV
443 ><DIV
444 CLASS="SECT3"
445 ><H3
446 CLASS="SECT3"
447 ><A
448 NAME="AEN1655">8.4.1. The Domain Pattern</H3
449 ><P
450 > The matching of the domain part offers some flexible options: if the
451  domain starts or ends with a dot, it becomes unanchored at that end. 
452  For example:</P
453 ><P
454 ></P
455 ><DIV
456 CLASS="VARIABLELIST"
457 ><DL
458 ><DT
459 ><TT
460 CLASS="LITERAL"
461 >.example.com</TT
462 ></DT
463 ><DD
464 ><P
465 >    matches any domain that <SPAN
466 CLASS="emphasis"
467 ><I
468 CLASS="EMPHASIS"
469 >ENDS</I
470 ></SPAN
471 > in
472     <TT
473 CLASS="LITERAL"
474 >.example.com</TT
475 >
476    </P
477 ></DD
478 ><DT
479 ><TT
480 CLASS="LITERAL"
481 >www.</TT
482 ></DT
483 ><DD
484 ><P
485 >    matches any domain that <SPAN
486 CLASS="emphasis"
487 ><I
488 CLASS="EMPHASIS"
489 >STARTS</I
490 ></SPAN
491 > with
492     <TT
493 CLASS="LITERAL"
494 >www.</TT
495 >
496    </P
497 ></DD
498 ><DT
499 ><TT
500 CLASS="LITERAL"
501 >.example.</TT
502 ></DT
503 ><DD
504 ><P
505 >    matches any domain that <SPAN
506 CLASS="emphasis"
507 ><I
508 CLASS="EMPHASIS"
509 >CONTAINS</I
510 ></SPAN
511 > <TT
512 CLASS="LITERAL"
513 >.example.</TT
514 >
515     (Correctly speaking: It matches any FQDN that contains <TT
516 CLASS="LITERAL"
517 >example</TT
518 > as a domain.)
519    </P
520 ></DD
521 ></DL
522 ></DIV
523 ><P
524 > Additionally, there are wild-cards that you can use in the domain names
525  themselves. They work pretty similar to shell wild-cards: <SPAN
526 CLASS="QUOTE"
527 >"*"</SPAN
528 >
529  stands for zero or more arbitrary characters, <SPAN
530 CLASS="QUOTE"
531 >"?"</SPAN
532 > stands for
533  any single character, you can define character classes in square
534  brackets and all of that can be freely mixed:</P
535 ><P
536 ></P
537 ><DIV
538 CLASS="VARIABLELIST"
539 ><DL
540 ><DT
541 ><TT
542 CLASS="LITERAL"
543 >ad*.example.com</TT
544 ></DT
545 ><DD
546 ><P
547 >    matches <SPAN
548 CLASS="QUOTE"
549 >"adserver.example.com"</SPAN
550 >, 
551     <SPAN
552 CLASS="QUOTE"
553 >"ads.example.com"</SPAN
554 >, etc but not <SPAN
555 CLASS="QUOTE"
556 >"sfads.example.com"</SPAN
557 >
558    </P
559 ></DD
560 ><DT
561 ><TT
562 CLASS="LITERAL"
563 >*ad*.example.com</TT
564 ></DT
565 ><DD
566 ><P
567 >    matches all of the above, and then some.
568    </P
569 ></DD
570 ><DT
571 ><TT
572 CLASS="LITERAL"
573 >.?pix.com</TT
574 ></DT
575 ><DD
576 ><P
577 >    matches <TT
578 CLASS="LITERAL"
579 >www.ipix.com</TT
580 >,
581     <TT
582 CLASS="LITERAL"
583 >pictures.epix.com</TT
584 >, <TT
585 CLASS="LITERAL"
586 >a.b.c.d.e.upix.com</TT
587 > etc. 
588    </P
589 ></DD
590 ><DT
591 ><TT
592 CLASS="LITERAL"
593 >www[1-9a-ez].example.c*</TT
594 ></DT
595 ><DD
596 ><P
597 >     matches <TT
598 CLASS="LITERAL"
599 >www1.example.com</TT
600 >, 
601      <TT
602 CLASS="LITERAL"
603 >www4.example.cc</TT
604 >, <TT
605 CLASS="LITERAL"
606 >wwwd.example.cy</TT
607 >, 
608      <TT
609 CLASS="LITERAL"
610 >wwwz.example.com</TT
611 > etc., but <SPAN
612 CLASS="emphasis"
613 ><I
614 CLASS="EMPHASIS"
615 >not</I
616 ></SPAN
617
618      <TT
619 CLASS="LITERAL"
620 >wwww.example.com</TT
621 >.
622    </P
623 ></DD
624 ></DL
625 ></DIV
626 ></DIV
627 ><DIV
628 CLASS="SECT3"
629 ><H3
630 CLASS="SECT3"
631 ><A
632 NAME="AEN1717">8.4.2. The Path Pattern</H3
633 ><P
634 > <SPAN
635 CLASS="APPLICATION"
636 >Privoxy</SPAN
637 > uses Perl compatible regular expressions
638  (through the <A
639 HREF="http://www.pcre.org/"
640 TARGET="_top"
641 >PCRE</A
642 > library) for
643  matching the path.</P
644 ><P
645 > There is an <A
646 HREF="appendix.html#REGEX"
647 >Appendix</A
648 > with a brief quick-start into regular
649  expressions, and full (very technical) documentation on PCRE regex syntax is available on-line
650  at <A
651 HREF="http://www.pcre.org/man.txt"
652 TARGET="_top"
653 >http://www.pcre.org/man.txt</A
654 >.
655  You might also find the Perl man page on regular expressions (<TT
656 CLASS="LITERAL"
657 >man perlre</TT
658 >)
659  useful, which is available on-line at <A
660 HREF="http://www.perldoc.com/perl5.6/pod/perlre.html"
661 TARGET="_top"
662 >http://www.perldoc.com/perl5.6/pod/perlre.html</A
663 >.</P
664 ><P
665 > Note that the path pattern is automatically left-anchored at the <SPAN
666 CLASS="QUOTE"
667 >"/"</SPAN
668 >,
669  i.e. it matches as if it would start with a <SPAN
670 CLASS="QUOTE"
671 >"^"</SPAN
672 > (regular expression speak 
673  for the beginning of a line).</P
674 ><P
675 > Please also note that matching in the path is <SPAN
676 CLASS="emphasis"
677 ><I
678 CLASS="EMPHASIS"
679 >CASE INSENSITIVE</I
680 ></SPAN
681 >
682  by default, but you can switch to case sensitive at any point in the pattern by using the 
683  <SPAN
684 CLASS="QUOTE"
685 >"(?-i)"</SPAN
686 > switch: <TT
687 CLASS="LITERAL"
688 >www.example.com/(?-i)PaTtErN.*</TT
689 > will match
690  only documents whose path starts with <TT
691 CLASS="LITERAL"
692 >PaTtErN</TT
693 > in
694  <SPAN
695 CLASS="emphasis"
696 ><I
697 CLASS="EMPHASIS"
698 >exactly</I
699 ></SPAN
700 > this capitalization.</P
701 ></DIV
702 ></DIV
703 ><DIV
704 CLASS="SECT2"
705 ><H2
706 CLASS="SECT2"
707 ><A
708 NAME="ACTIONS">8.5. Actions</H2
709 ><P
710 > All actions are disabled by default, until they are explicitly enabled
711  somewhere in an actions file. Actions are turned on if preceded with a
712  <SPAN
713 CLASS="QUOTE"
714 >"+"</SPAN
715 >, and turned off if preceded with a <SPAN
716 CLASS="QUOTE"
717 >"-"</SPAN
718 >. So a
719  <TT
720 CLASS="LITERAL"
721 >+action</TT
722 > means <SPAN
723 CLASS="QUOTE"
724 >"do that action"</SPAN
725 >, e.g.
726  <TT
727 CLASS="LITERAL"
728 >+block</TT
729 > means <SPAN
730 CLASS="QUOTE"
731 >"please block URLs that match the
732  following patterns"</SPAN
733 >, and <TT
734 CLASS="LITERAL"
735 >-block</TT
736 > means <SPAN
737 CLASS="QUOTE"
738 >"don't
739  block URLs that match the following patterns, even if <TT
740 CLASS="LITERAL"
741 >+block</TT
742 >
743  previously applied."</SPAN
744 >&#13;</P
745 ><P
746
747  Again, actions are invoked by placing them on a line, enclosed in curly braces and
748  separated by whitespace, like in 
749  <TT
750 CLASS="LITERAL"
751 >{+some-action -some-other-action{some-parameter}}</TT
752 >,
753  followed by a list of URL patterns, one per line, to which they apply.
754  Together, the actions line and the following pattern lines make up a section
755  of the actions file. </P
756 ><P
757
758  There are three classes of actions:</P
759 ><P
760 > <P
761 ></P
762 ><UL
763 ><LI
764 ><P
765 >  
766    Boolean, i.e the action can only be <SPAN
767 CLASS="QUOTE"
768 >"enabled"</SPAN
769 > or
770    <SPAN
771 CLASS="QUOTE"
772 >"disabled"</SPAN
773 >. Syntax:
774   </P
775 ><P
776 >   <TABLE
777 BORDER="0"
778 BGCOLOR="#E0E0E0"
779 WIDTH="90%"
780 ><TR
781 ><TD
782 ><PRE
783 CLASS="SCREEN"
784 >  +<TT
785 CLASS="REPLACEABLE"
786 ><I
787 >name</I
788 ></TT
789 >        # enable action <TT
790 CLASS="REPLACEABLE"
791 ><I
792 >name</I
793 ></TT
794 >
795   -<TT
796 CLASS="REPLACEABLE"
797 ><I
798 >name</I
799 ></TT
800 >        # disable action <TT
801 CLASS="REPLACEABLE"
802 ><I
803 >name</I
804 ></TT
805 ></PRE
806 ></TD
807 ></TR
808 ></TABLE
809 >
810   </P
811 ><P
812 >  
813    Example: <TT
814 CLASS="LITERAL"
815 >+block</TT
816 >
817   </P
818 ></LI
819 ><LI
820 ><P
821 >  
822    Parameterized, where some value is required in order to enable this type of action.
823    Syntax:
824   </P
825 ><P
826 >   <TABLE
827 BORDER="0"
828 BGCOLOR="#E0E0E0"
829 WIDTH="90%"
830 ><TR
831 ><TD
832 ><PRE
833 CLASS="SCREEN"
834 >  +<TT
835 CLASS="REPLACEABLE"
836 ><I
837 >name</I
838 ></TT
839 >{<TT
840 CLASS="REPLACEABLE"
841 ><I
842 >param</I
843 ></TT
844 >}  # enable action and set parameter to <TT
845 CLASS="REPLACEABLE"
846 ><I
847 >param</I
848 ></TT
849 >,
850                # overwriting parameter from previous match if necessary
851   -<TT
852 CLASS="REPLACEABLE"
853 ><I
854 >name</I
855 ></TT
856 >         # disable action. The parameter can be omitted</PRE
857 ></TD
858 ></TR
859 ></TABLE
860 >
861   </P
862 ><P
863 >   Note that if the URL matches multiple positive forms of a parameterized action,
864    the last match wins, i.e. the params from earlier matches are simply ignored.
865   </P
866 ><P
867 >  
868    Example: <TT
869 CLASS="LITERAL"
870 >+hide-user-agent{ Mozilla 1.0 }</TT
871 >
872   </P
873 ></LI
874 ><LI
875 ><P
876 >  
877    Multi-value. These look exactly like parameterized actions,
878    but they behave differently: If the action applies multiple times to the
879    same URL, but with different parameters, <SPAN
880 CLASS="emphasis"
881 ><I
882 CLASS="EMPHASIS"
883 >all</I
884 ></SPAN
885 > the parameters
886    from <SPAN
887 CLASS="emphasis"
888 ><I
889 CLASS="EMPHASIS"
890 >all</I
891 ></SPAN
892 > matches are remembered. This is used for actions
893    that can be executed for the same request repeatedly, like adding multiple
894    headers, or filtering through multiple filters. Syntax:
895   </P
896 ><P
897 >   <TABLE
898 BORDER="0"
899 BGCOLOR="#E0E0E0"
900 WIDTH="90%"
901 ><TR
902 ><TD
903 ><PRE
904 CLASS="SCREEN"
905 >  +<TT
906 CLASS="REPLACEABLE"
907 ><I
908 >name</I
909 ></TT
910 >{<TT
911 CLASS="REPLACEABLE"
912 ><I
913 >param</I
914 ></TT
915 >}   # enable action and add <TT
916 CLASS="REPLACEABLE"
917 ><I
918 >param</I
919 ></TT
920 > to the list of parameters
921   -<TT
922 CLASS="REPLACEABLE"
923 ><I
924 >name</I
925 ></TT
926 >{<TT
927 CLASS="REPLACEABLE"
928 ><I
929 >param</I
930 ></TT
931 >}   # remove the parameter <TT
932 CLASS="REPLACEABLE"
933 ><I
934 >param</I
935 ></TT
936 > from the list of parameters
937                 # If it was the last one left, disable the action.
938   <TT
939 CLASS="REPLACEABLE"
940 ><I
941 >-name</I
942 ></TT
943 >          # disable this action completely and remove all parameters from the list</PRE
944 ></TD
945 ></TR
946 ></TABLE
947 >
948   </P
949 ><P
950 >  
951    Examples: <TT
952 CLASS="LITERAL"
953 >+add-header{X-Fun-Header: Some text}</TT
954 > and
955    <TT
956 CLASS="LITERAL"
957 >+filter{html-annoyances}</TT
958 >
959   </P
960 ></LI
961 ></UL
962 ></P
963 ><P
964 > If nothing is specified in any actions file, no <SPAN
965 CLASS="QUOTE"
966 >"actions"</SPAN
967 > are
968  taken. So in this case <SPAN
969 CLASS="APPLICATION"
970 >Privoxy</SPAN
971 > would just be a
972  normal, non-blocking, non-anonymizing proxy. You must specifically enable the
973  privacy and blocking features you need (although the provided default actions
974  files will give a good starting point).</P
975 ><P
976 > Later defined actions always over-ride earlier ones.  So exceptions 
977  to any rules you make, should come in the latter part of the file (or 
978  in a file that is processed later when using multiple actions files). For
979  multi-valued actions, the actions are applied in the order they are specified.
980  Actions files are processed in the order they are defined in
981  <TT
982 CLASS="FILENAME"
983 >config</TT
984 > (the default installation has three actions
985  files). It also quite possible for any given URL pattern to match more than
986  one pattern and thus more than one set of actions!</P
987 ><P
988 > The list of valid <SPAN
989 CLASS="APPLICATION"
990 >Privoxy</SPAN
991 > actions are:</P
992 ><DIV
993 CLASS="SECT3"
994 ><H4
995 CLASS="SECT3"
996 ><A
997 NAME="ADD-HEADER">8.5.1. add-header</H4
998 ><P
999 ></P
1000 ><DIV
1001 CLASS="VARIABLELIST"
1002 ><DL
1003 ><DT
1004 >Typical use:</DT
1005 ><DD
1006 ><P
1007 >Confuse log analysis, custom applications</P
1008 ></DD
1009 ><DT
1010 >Effect:</DT
1011 ><DD
1012 ><P
1013 >    Sends a user defined HTTP header to the web server.
1014    </P
1015 ></DD
1016 ><DT
1017 >Type:</DT
1018 ><DD
1019 ><P
1020 >Multi-value.</P
1021 ></DD
1022 ><DT
1023 >Parameter:</DT
1024 ><DD
1025 ><P
1026 >    Any string value is possible. Validity of the defined HTTP headers is not checked.
1027     It is recommended that you use the <SPAN
1028 CLASS="QUOTE"
1029 >"<TT
1030 CLASS="LITERAL"
1031 >X-</TT
1032 >"</SPAN
1033 > prefix
1034     for custom headers.
1035    </P
1036 ></DD
1037 ><DT
1038 >Notes:</DT
1039 ><DD
1040 ><P
1041 >    This action may be specified multiple times, in order to define multiple 
1042     headers. This is rarely needed for the typical user. If you don't know what 
1043     <SPAN
1044 CLASS="QUOTE"
1045 >"HTTP headers"</SPAN
1046 > are, you definitely don't need to worry about this 
1047     one.
1048    </P
1049 ></DD
1050 ><DT
1051 >Example usage:</DT
1052 ><DD
1053 ><P
1054 >     <TABLE
1055 BORDER="0"
1056 BGCOLOR="#E0E0E0"
1057 WIDTH="90%"
1058 ><TR
1059 ><TD
1060 ><PRE
1061 CLASS="SCREEN"
1062 >+add-header{X-User-Tracking: sucks}</PRE
1063 ></TD
1064 ></TR
1065 ></TABLE
1066 >
1067    </P
1068 ></DD
1069 ></DL
1070 ></DIV
1071 ></DIV
1072 ><DIV
1073 CLASS="SECT3"
1074 ><H4
1075 CLASS="SECT3"
1076 ><A
1077 NAME="BLOCK">8.5.2. block</H4
1078 ><P
1079 ></P
1080 ><DIV
1081 CLASS="VARIABLELIST"
1082 ><DL
1083 ><DT
1084 >Typical use:</DT
1085 ><DD
1086 ><P
1087 >Block ads or other obnoxious content</P
1088 ></DD
1089 ><DT
1090 >Effect:</DT
1091 ><DD
1092 ><P
1093 >    Requests for URLs to which this action applies are blocked, i.e. the requests are not
1094     forwarded to the remote server, but answered locally with a substitute page or image,
1095     as determined by the <TT
1096 CLASS="LITERAL"
1097 ><A
1098 HREF="actions-file.html#HANDLE-AS-IMAGE"
1099 >handle-as-image</A
1100 ></TT
1101 >
1102     and <TT
1103 CLASS="LITERAL"
1104 ><A
1105 HREF="actions-file.html#SET-IMAGE-BLOCKER"
1106 >set-image-blocker</A
1107 ></TT
1108 > actions.
1109    </P
1110 ></DD
1111 ><DT
1112 >Type:</DT
1113 ><DD
1114 ><P
1115 >Boolean.</P
1116 ></DD
1117 ><DT
1118 >Parameter:</DT
1119 ><DD
1120 ><P
1121 >N/A</P
1122 ></DD
1123 ><DT
1124 >Notes:</DT
1125 ><DD
1126 ><P
1127 >    <SPAN
1128 CLASS="APPLICATION"
1129 >Privoxy</SPAN
1130 > sends a special <SPAN
1131 CLASS="QUOTE"
1132 >"BLOCKED"</SPAN
1133 > page
1134     for requests to blocked pages. This page contains links to find out why the request
1135     was blocked, and a click-through to the blocked content (the latter only if compiled with the
1136     force feature enabled). The <SPAN
1137 CLASS="QUOTE"
1138 >"BLOCKED"</SPAN
1139 > page adapts to the available
1140     screen space -- it displays full-blown if space allows, or miniaturized and text-only
1141     if loaded into a small frame or window. If you are using <SPAN
1142 CLASS="APPLICATION"
1143 >Privoxy</SPAN
1144 >
1145     right now, you can take a look at the 
1146     <A
1147 HREF="http://ads.bannerserver.example.com/nasty-ads/sponsor.html"
1148 TARGET="_top"
1149 ><SPAN
1150 CLASS="QUOTE"
1151 >"BLOCKED"</SPAN
1152 >
1153     page</A
1154 >.
1155    </P
1156 ><P
1157
1158     A very important exception occurs if <SPAN
1159 CLASS="emphasis"
1160 ><I
1161 CLASS="EMPHASIS"
1162 >both</I
1163 ></SPAN
1164
1165     <TT
1166 CLASS="LITERAL"
1167 >block</TT
1168 > and <TT
1169 CLASS="LITERAL"
1170 ><A
1171 HREF="actions-file.html#HANDLE-AS-IMAGE"
1172 >handle-as-image</A
1173 ></TT
1174 >,
1175     apply to the same request: it will then be replaced by an image. If 
1176     <TT
1177 CLASS="LITERAL"
1178 ><A
1179 HREF="actions-file.html#SET-IMAGE-BLOCKER"
1180 >set-image-blocker</A
1181 ></TT
1182 >
1183     (see below) also applies, the type of image will be determined by its parameter,
1184     if not, the standard checkerboard pattern is sent.
1185    </P
1186 ><P
1187 >    It is important to understand this process, in order 
1188     to understand how <SPAN
1189 CLASS="APPLICATION"
1190 >Privoxy</SPAN
1191 > deals with 
1192     ads and other unwanted content.
1193    </P
1194 ><P
1195 >    The <TT
1196 CLASS="LITERAL"
1197 ><A
1198 HREF="actions-file.html#FILTER"
1199 >filter</A
1200 ></TT
1201 >
1202     action can perform a very similar task, by <SPAN
1203 CLASS="QUOTE"
1204 >"blocking"</SPAN
1205 >
1206     banner images and other content through rewriting the relevant URLs in the
1207     document's HTML source, so they don't get requested in the first place.
1208     Note that this is a totally different technique, and it's easy to confuse the two.
1209    </P
1210 ></DD
1211 ><DT
1212 >Example usage (section):</DT
1213 ><DD
1214 ><P
1215 >     <TABLE
1216 BORDER="0"
1217 BGCOLOR="#E0E0E0"
1218 WIDTH="90%"
1219 ><TR
1220 ><TD
1221 ><PRE
1222 CLASS="SCREEN"
1223 >{+block}      # Block and replace with "blocked" page
1224 .nasty-stuff.example.com
1225
1226 {+block +handle-as-image} # Block and replace with image
1227 .ad.doubleclick.net
1228 .ads.r.us</PRE
1229 ></TD
1230 ></TR
1231 ></TABLE
1232 >
1233     </P
1234 ></DD
1235 ></DL
1236 ></DIV
1237 ></DIV
1238 ><DIV
1239 CLASS="SECT3"
1240 ><H4
1241 CLASS="SECT3"
1242 ><A
1243 NAME="CRUNCH-INCOMING-COOKIES">8.5.3. crunch-incoming-cookies</H4
1244 ><P
1245 ></P
1246 ><DIV
1247 CLASS="VARIABLELIST"
1248 ><DL
1249 ><DT
1250 >Typical use:</DT
1251 ><DD
1252 ><P
1253 >    Prevent the web server from setting any cookies on your system
1254    </P
1255 ></DD
1256 ><DT
1257 >Effect:</DT
1258 ><DD
1259 ><P
1260 >    Deletes any <SPAN
1261 CLASS="QUOTE"
1262 >"Set-Cookie:"</SPAN
1263 > HTTP headers from server replies.
1264    </P
1265 ></DD
1266 ><DT
1267 >Type:</DT
1268 ><DD
1269 ><P
1270 >Boolean.</P
1271 ></DD
1272 ><DT
1273 >Parameter:</DT
1274 ><DD
1275 ><P
1276 >    N/A
1277    </P
1278 ></DD
1279 ><DT
1280 >Notes:</DT
1281 ><DD
1282 ><P
1283 >    This action is only concerned with <SPAN
1284 CLASS="emphasis"
1285 ><I
1286 CLASS="EMPHASIS"
1287 >incoming</I
1288 ></SPAN
1289 > cookies. For
1290     <SPAN
1291 CLASS="emphasis"
1292 ><I
1293 CLASS="EMPHASIS"
1294 >outgoing</I
1295 ></SPAN
1296 > cookies, use
1297     <TT
1298 CLASS="LITERAL"
1299 ><A
1300 HREF="actions-file.html#CRUNCH-OUTGOING-COOKIES"
1301 >crunch-outgoing-cookies</A
1302 ></TT
1303 >.
1304     Use <SPAN
1305 CLASS="emphasis"
1306 ><I
1307 CLASS="EMPHASIS"
1308 >both</I
1309 ></SPAN
1310 > to disable cookies completely.
1311    </P
1312 ><P
1313 >    It makes <SPAN
1314 CLASS="emphasis"
1315 ><I
1316 CLASS="EMPHASIS"
1317 >no sense at all</I
1318 ></SPAN
1319 > to use this action in conjunction
1320     with the <TT
1321 CLASS="LITERAL"
1322 ><A
1323 HREF="actions-file.html#SESSION-COOKIES-ONLY"
1324 >session-cookies-only</A
1325 ></TT
1326 > action,
1327     since it would prevent the session cookies from being set.
1328    </P
1329 ></DD
1330 ><DT
1331 >Example usage:</DT
1332 ><DD
1333 ><P
1334 >    <TABLE
1335 BORDER="0"
1336 BGCOLOR="#E0E0E0"
1337 WIDTH="90%"
1338 ><TR
1339 ><TD
1340 ><PRE
1341 CLASS="SCREEN"
1342 >+crunch-incoming-cookies</PRE
1343 ></TD
1344 ></TR
1345 ></TABLE
1346 >
1347    </P
1348 ></DD
1349 ></DL
1350 ></DIV
1351 ></DIV
1352 ><DIV
1353 CLASS="SECT3"
1354 ><H4
1355 CLASS="SECT3"
1356 ><A
1357 NAME="CRUNCH-OUTGOING-COOKIES">8.5.4. crunch-outgoing-cookies</H4
1358 ><P
1359 ></P
1360 ><DIV
1361 CLASS="VARIABLELIST"
1362 ><DL
1363 ><DT
1364 >Typical use:</DT
1365 ><DD
1366 ><P
1367 >    Prevent the web server from reading any cookies from your system
1368    </P
1369 ></DD
1370 ><DT
1371 >Effect:</DT
1372 ><DD
1373 ><P
1374 >    Deletes any <SPAN
1375 CLASS="QUOTE"
1376 >"Cookie:"</SPAN
1377 > HTTP headers from client requests.
1378    </P
1379 ></DD
1380 ><DT
1381 >Type:</DT
1382 ><DD
1383 ><P
1384 >Boolean.</P
1385 ></DD
1386 ><DT
1387 >Parameter:</DT
1388 ><DD
1389 ><P
1390 >    N/A
1391    </P
1392 ></DD
1393 ><DT
1394 >Notes:</DT
1395 ><DD
1396 ><P
1397 >    This action is only concerned with <SPAN
1398 CLASS="emphasis"
1399 ><I
1400 CLASS="EMPHASIS"
1401 >outgoing</I
1402 ></SPAN
1403 > cookies. For
1404     <SPAN
1405 CLASS="emphasis"
1406 ><I
1407 CLASS="EMPHASIS"
1408 >incoming</I
1409 ></SPAN
1410 > cookies, use
1411     <TT
1412 CLASS="LITERAL"
1413 ><A
1414 HREF="actions-file.html#CRUNCH-INCOMING-COOKIES"
1415 >crunch-incoming-cookies</A
1416 ></TT
1417 >.
1418     Use <SPAN
1419 CLASS="emphasis"
1420 ><I
1421 CLASS="EMPHASIS"
1422 >both</I
1423 ></SPAN
1424 > to disable cookies completely.
1425    </P
1426 ><P
1427 >    It makes <SPAN
1428 CLASS="emphasis"
1429 ><I
1430 CLASS="EMPHASIS"
1431 >no sense at all</I
1432 ></SPAN
1433 > to use this action in conjunction
1434     with the <TT
1435 CLASS="LITERAL"
1436 ><A
1437 HREF="actions-file.html#SESSION-COOKIES-ONLY"
1438 >session-cookies-only</A
1439 ></TT
1440 > action,
1441     since it would prevent the session cookies from being read.
1442    </P
1443 ></DD
1444 ><DT
1445 >Example usage:</DT
1446 ><DD
1447 ><P
1448 >    <TABLE
1449 BORDER="0"
1450 BGCOLOR="#E0E0E0"
1451 WIDTH="90%"
1452 ><TR
1453 ><TD
1454 ><PRE
1455 CLASS="SCREEN"
1456 >+crunch-outgoing-cookies</PRE
1457 ></TD
1458 ></TR
1459 ></TABLE
1460 >
1461    </P
1462 ></DD
1463 ></DL
1464 ></DIV
1465 ></DIV
1466 ><DIV
1467 CLASS="SECT3"
1468 ><H4
1469 CLASS="SECT3"
1470 ><A
1471 NAME="DEANIMATE-GIFS">8.5.5. deanimate-gifs</H4
1472 ><P
1473 ></P
1474 ><DIV
1475 CLASS="VARIABLELIST"
1476 ><DL
1477 ><DT
1478 >Typical use:</DT
1479 ><DD
1480 ><P
1481 >Stop those annoying, distracting animated GIF images.</P
1482 ></DD
1483 ><DT
1484 >Effect:</DT
1485 ><DD
1486 ><P
1487 >    De-animate GIF animations, i.e. reduce them to their first or last image.
1488    </P
1489 ></DD
1490 ><DT
1491 >Type:</DT
1492 ><DD
1493 ><P
1494 >Parameterized.</P
1495 ></DD
1496 ><DT
1497 >Parameter:</DT
1498 ><DD
1499 ><P
1500 >    <SPAN
1501 CLASS="QUOTE"
1502 >"last"</SPAN
1503 > or <SPAN
1504 CLASS="QUOTE"
1505 >"first"</SPAN
1506 >
1507    </P
1508 ></DD
1509 ><DT
1510 >Notes:</DT
1511 ><DD
1512 ><P
1513 >    This will also shrink the images considerably (in bytes, not pixels!). If
1514     the option <SPAN
1515 CLASS="QUOTE"
1516 >"first"</SPAN
1517 > is given, the first frame of the animation
1518     is used as the replacement. If <SPAN
1519 CLASS="QUOTE"
1520 >"last"</SPAN
1521 > is given, the last
1522     frame of the animation is used instead, which probably makes more sense for
1523     most banner animations, but also has the risk of not showing the entire
1524     last frame (if it is only a delta to an earlier frame).
1525    </P
1526 ><P
1527 >    You can safely use this action with patterns that will also match non-GIF
1528     objects, because no attempt will be made at anything that doesn't look like
1529     a GIF.
1530    </P
1531 ></DD
1532 ><DT
1533 >Example usage:</DT
1534 ><DD
1535 ><P
1536 >      <TABLE
1537 BORDER="0"
1538 BGCOLOR="#E0E0E0"
1539 WIDTH="90%"
1540 ><TR
1541 ><TD
1542 ><PRE
1543 CLASS="SCREEN"
1544 >+deanimate-gifs{last}</PRE
1545 ></TD
1546 ></TR
1547 ></TABLE
1548 >
1549     </P
1550 ></DD
1551 ></DL
1552 ></DIV
1553 ></DIV
1554 ><DIV
1555 CLASS="SECT3"
1556 ><H4
1557 CLASS="SECT3"
1558 ><A
1559 NAME="DOWNGRADE-HTTP-VERSION">8.5.6. downgrade-http-version</H4
1560 ><P
1561 ></P
1562 ><DIV
1563 CLASS="VARIABLELIST"
1564 ><DL
1565 ><DT
1566 >Typical use:</DT
1567 ><DD
1568 ><P
1569 >Work around (very rare) problems with HTTP/1.1</P
1570 ></DD
1571 ><DT
1572 >Effect:</DT
1573 ><DD
1574 ><P
1575 >    Downgrades HTTP/1.1 client requests and server replies to HTTP/1.0.
1576    </P
1577 ></DD
1578 ><DT
1579 >Type:</DT
1580 ><DD
1581 ><P
1582 >Boolean.</P
1583 ></DD
1584 ><DT
1585 >Parameter:</DT
1586 ><DD
1587 ><P
1588 >    N/A
1589    </P
1590 ></DD
1591 ><DT
1592 >Notes:</DT
1593 ><DD
1594 ><P
1595 >    This is a left-over from the time when <SPAN
1596 CLASS="APPLICATION"
1597 >Privoxy</SPAN
1598 >
1599     didn't support important HTTP/1.1 features well. It is left here for the
1600     unlikely case that you experience HTTP/1.1 related problems with some server
1601     out there. Not all (optional) HTTP/1.1 features are supported yet, so there
1602     is a chance you might need this action.
1603    </P
1604 ></DD
1605 ><DT
1606 >Example usage (section):</DT
1607 ><DD
1608 ><P
1609 >     <TABLE
1610 BORDER="0"
1611 BGCOLOR="#E0E0E0"
1612 WIDTH="90%"
1613 ><TR
1614 ><TD
1615 ><PRE
1616 CLASS="SCREEN"
1617 >{+downgrade-http-version}
1618 problem-host.example.com</PRE
1619 ></TD
1620 ></TR
1621 ></TABLE
1622 >
1623     </P
1624 ></DD
1625 ></DL
1626 ></DIV
1627 ></DIV
1628 ><DIV
1629 CLASS="SECT3"
1630 ><H4
1631 CLASS="SECT3"
1632 ><A
1633 NAME="FAST-REDIRECTS">8.5.7. fast-redirects</H4
1634 ><P
1635 ></P
1636 ><DIV
1637 CLASS="VARIABLELIST"
1638 ><DL
1639 ><DT
1640 >Typical use:</DT
1641 ><DD
1642 ><P
1643 >Fool some click-tracking scripts and speed up indirect links</P
1644 ></DD
1645 ><DT
1646 >Effect:</DT
1647 ><DD
1648 ><P
1649 >    Cut off all but the last valid URL from requests.
1650    </P
1651 ></DD
1652 ><DT
1653 >Type:</DT
1654 ><DD
1655 ><P
1656 >Boolean.</P
1657 ></DD
1658 ><DT
1659 >Parameter:</DT
1660 ><DD
1661 ><P
1662 >    N/A
1663    </P
1664 ></DD
1665 ><DT
1666 >Notes:</DT
1667 ><DD
1668 ><P
1669 >  
1670     Many sites, like yahoo.com, don't just link to other sites. Instead, they
1671     will link to some script on their own servers, giving the destination as a
1672     parameter, which will then redirect you to the final target. URLs
1673     resulting from this scheme typically look like:
1674     <SPAN
1675 CLASS="emphasis"
1676 ><I
1677 CLASS="EMPHASIS"
1678 >http://some.place/click-tracker.cgi?target=http://some.where.else</I
1679 ></SPAN
1680 >.
1681   </P
1682 ><P
1683 >    Sometimes, there are even multiple consecutive redirects encoded in the
1684     URL. These redirections via scripts make your web browsing more traceable,
1685     since the server from which you follow such a link can see where you go
1686     to. Apart from that, valuable bandwidth and time is wasted, while your
1687     browser ask the server for one redirect after the other. Plus, it feeds
1688     the advertisers.
1689    </P
1690 ><P
1691 >    This feature is currently not very smart and is scheduled for improvement.
1692     It is likely to break some sites. You should expect to need possibly 
1693     many exceptions to this action, if it is enabled by default in
1694     <TT
1695 CLASS="FILENAME"
1696 >default.action</TT
1697 >. Some sites just don't work without 
1698     it.
1699    </P
1700 ></DD
1701 ><DT
1702 >Example usage:</DT
1703 ><DD
1704 ><P
1705 >     <TABLE
1706 BORDER="0"
1707 BGCOLOR="#E0E0E0"
1708 WIDTH="90%"
1709 ><TR
1710 ><TD
1711 ><PRE
1712 CLASS="SCREEN"
1713 >{+fast-redirects}</PRE
1714 ></TD
1715 ></TR
1716 ></TABLE
1717 >
1718     </P
1719 ></DD
1720 ></DL
1721 ></DIV
1722 ></DIV
1723 ><DIV
1724 CLASS="SECT3"
1725 ><H4
1726 CLASS="SECT3"
1727 ><A
1728 NAME="FILTER">8.5.8. filter</H4
1729 ><P
1730 ></P
1731 ><DIV
1732 CLASS="VARIABLELIST"
1733 ><DL
1734 ><DT
1735 >Typical use:</DT
1736 ><DD
1737 ><P
1738 >Get rid of HTML and JavaScript annoyances, banner advertisements (by size), do fun text replacements, etc.</P
1739 ></DD
1740 ><DT
1741 >Effect:</DT
1742 ><DD
1743 ><P
1744 >    Text documents, including HTML and JavaScript, to which this action
1745     applies, are filtered on-the-fly through the specified regular expression
1746     based substitutions.
1747    </P
1748 ></DD
1749 ><DT
1750 >Type:</DT
1751 ><DD
1752 ><P
1753 >Parameterized.</P
1754 ></DD
1755 ><DT
1756 >Parameter:</DT
1757 ><DD
1758 ><P
1759 >    The name of a filter, as defined in the <A
1760 HREF="filter-file.html"
1761 >filter file</A
1762 >
1763     (typically <TT
1764 CLASS="FILENAME"
1765 >default.filter</TT
1766 >, set by the
1767     <TT
1768 CLASS="LITERAL"
1769 ><A
1770 HREF="config.html#FILTERFILE"
1771 >filterfile</A
1772 ></TT
1773 >
1774     option in the <A
1775 HREF="config.html"
1776 >config file</A
1777 >). Filtering 
1778     can be completely disabled without the use of parameters. Example:
1779    </P
1780 ><P
1781 >    <TABLE
1782 BORDER="0"
1783 BGCOLOR="#E0E0E0"
1784 WIDTH="90%"
1785 ><TR
1786 ><TD
1787 ><PRE
1788 CLASS="SCREEN"
1789 >  { -filter }
1790      .example.com</PRE
1791 ></TD
1792 ></TR
1793 ></TABLE
1794 >
1795    </P
1796 ><P
1797 >    Disables filters for that site.
1798    </P
1799 ></DD
1800 ><DT
1801 >Notes:</DT
1802 ><DD
1803 ><P
1804 >    For your convenience, there are a number of pre-defined filters available 
1805     in the distribution filter file that you can use. See the examples below for
1806     a list.
1807    </P
1808 ><P
1809 >    This is potentially a very powerful feature!  But <SPAN
1810 CLASS="QUOTE"
1811 >"rolling your own"</SPAN
1812 >
1813     filters requires a knowledge of regular expressions and HTML.
1814    </P
1815 ><P
1816 >    Filtering requires buffering the page content, which may appear to
1817     slow down page rendering since nothing is displayed until all content has
1818     passed the filters. (It does not really take longer, but seems that way
1819     since the page is not incrementally displayed.) This effect will be more
1820     noticeable on slower connections.
1821    </P
1822 ><P
1823 >    The amount of data that can be filtered is limited to the 
1824     <TT
1825 CLASS="LITERAL"
1826 ><A
1827 HREF="config.html#BUFFER-LIMIT"
1828 >buffer-limit</A
1829 ></TT
1830 >
1831     option in the main <A
1832 HREF="config.html"
1833 >config file</A
1834 >. The 
1835     default is 4096 KB (4 Megs). Once this limit is exceeded, the buffered
1836     data, and all pending data, is passed through unfiltered.
1837    </P
1838 ><P
1839 >    At this time, <SPAN
1840 CLASS="APPLICATION"
1841 >Privoxy</SPAN
1842 > cannot (yet!) uncompress compressed
1843     documents. If you want filtering to work on all documents, even those that
1844     would normally be sent compressed, use the
1845     <TT
1846 CLASS="LITERAL"
1847 ><A
1848 HREF="actions-file.html#PREVENT-COMPRESSION"
1849 >prevent-compression</A
1850 ></TT
1851 >
1852     action in conjunction with <TT
1853 CLASS="LITERAL"
1854 >filter</TT
1855 >.
1856    </P
1857 ><P
1858 >    Filtering can achieve some of the same effects as the 
1859     <TT
1860 CLASS="LITERAL"
1861 ><A
1862 HREF="actions-file.html#BLOCK"
1863 >block</A
1864 ></TT
1865 >
1866     action, i.e. it can be used to block ads and banners. But the mechanism 
1867     works quite differently. One effective use, is to block ad banners 
1868     based on their size (see below), since many of these seem to be somewhat 
1869     standardized.
1870    </P
1871 ><P
1872 >    <A
1873 HREF="contact.html"
1874 >Feedback</A
1875 > with suggestions for new or
1876     improved filters is particularly welcome!
1877    </P
1878 ></DD
1879 ><DT
1880 >Example usage (with filters from the distribution <TT
1881 CLASS="FILENAME"
1882 >default.filter</TT
1883 > file):</DT
1884 ><DD
1885 ><P
1886 >    <A
1887 NAME="FILTER-HTML-ANNOYANCES"
1888 ></A
1889 >
1890     <TABLE
1891 BORDER="0"
1892 BGCOLOR="#E0E0E0"
1893 WIDTH="90%"
1894 ><TR
1895 ><TD
1896 ><PRE
1897 CLASS="SCREEN"
1898 >+filter{html-annoyances}     # Get rid of particularly annoying HTML abuse.</PRE
1899 ></TD
1900 ></TR
1901 ></TABLE
1902 >
1903    </P
1904 ><P
1905 >    <A
1906 NAME="FILTER-JS-ANNOYANCES"
1907 ></A
1908 >
1909     <TABLE
1910 BORDER="0"
1911 BGCOLOR="#E0E0E0"
1912 WIDTH="90%"
1913 ><TR
1914 ><TD
1915 ><PRE
1916 CLASS="SCREEN"
1917 >+filter{js-annoyances}       # Get rid of particularly annoying JavaScript abuse</PRE
1918 ></TD
1919 ></TR
1920 ></TABLE
1921 >
1922    </P
1923 ><P
1924 >    <A
1925 NAME="FILTER-BANNERS-BY-SIZE"
1926 ></A
1927 >
1928     <TABLE
1929 BORDER="0"
1930 BGCOLOR="#E0E0E0"
1931 WIDTH="90%"
1932 ><TR
1933 ><TD
1934 ><PRE
1935 CLASS="SCREEN"
1936 >+filter{banners-by-size}     # Kill banners based on their size for this page (<SPAN
1937 CLASS="emphasis"
1938 ><I
1939 CLASS="EMPHASIS"
1940 >very</I
1941 ></SPAN
1942 > efficient!)</PRE
1943 ></TD
1944 ></TR
1945 ></TABLE
1946 >
1947    </P
1948 ><P
1949 >    <A
1950 NAME="FILTER-CONTENT-COOKIES"
1951 ></A
1952 >
1953     <TABLE
1954 BORDER="0"
1955 BGCOLOR="#E0E0E0"
1956 WIDTH="90%"
1957 ><TR
1958 ><TD
1959 ><PRE
1960 CLASS="SCREEN"
1961 >+filter{content-cookies}     # Kill cookies that come sneaking in the HTML or JS content</PRE
1962 ></TD
1963 ></TR
1964 ></TABLE
1965 >
1966    </P
1967 ><P
1968 >    <A
1969 NAME="FILTER-POPUPS"
1970 ></A
1971 >
1972     <TABLE
1973 BORDER="0"
1974 BGCOLOR="#E0E0E0"
1975 WIDTH="90%"
1976 ><TR
1977 ><TD
1978 ><PRE
1979 CLASS="SCREEN"
1980 >+filter{popups}              # Kill all popups in JS and HTML</PRE
1981 ></TD
1982 ></TR
1983 ></TABLE
1984 >
1985    </P
1986 ><P
1987 >    <A
1988 NAME="FILTER-WEBBUGS"
1989 ></A
1990 >
1991     <TABLE
1992 BORDER="0"
1993 BGCOLOR="#E0E0E0"
1994 WIDTH="90%"
1995 ><TR
1996 ><TD
1997 ><PRE
1998 CLASS="SCREEN"
1999 >+filter{webbugs}             # Squish WebBugs (1x1 invisible GIFs used for user tracking)</PRE
2000 ></TD
2001 ></TR
2002 ></TABLE
2003 >
2004    </P
2005 ><P
2006 >    <A
2007 NAME="FILTER-FUN"
2008 ></A
2009 >
2010     <TABLE
2011 BORDER="0"
2012 BGCOLOR="#E0E0E0"
2013 WIDTH="90%"
2014 ><TR
2015 ><TD
2016 ><PRE
2017 CLASS="SCREEN"
2018 >+filter{fun}                 # Text replacements for subversive browsing fun!</PRE
2019 ></TD
2020 ></TR
2021 ></TABLE
2022 >
2023    </P
2024 ><P
2025 >    <A
2026 NAME="FILTER-FRAMESET-BORDERS"
2027 ></A
2028 >
2029     <TABLE
2030 BORDER="0"
2031 BGCOLOR="#E0E0E0"
2032 WIDTH="90%"
2033 ><TR
2034 ><TD
2035 ><PRE
2036 CLASS="SCREEN"
2037 >+filter{frameset-borders}    # Give frames a border and make them resizeable</PRE
2038 ></TD
2039 ></TR
2040 ></TABLE
2041
2042    </P
2043 ><P
2044 >    <A
2045 NAME="FILTER-REFRESH-TAGS"
2046 ></A
2047 >
2048     <TABLE
2049 BORDER="0"
2050 BGCOLOR="#E0E0E0"
2051 WIDTH="90%"
2052 ><TR
2053 ><TD
2054 ><PRE
2055 CLASS="SCREEN"
2056 >+filter{refresh-tags}        # Kill automatic refresh tags (for dial-on-demand setups)</PRE
2057 ></TD
2058 ></TR
2059 ></TABLE
2060 >
2061    </P
2062 ><P
2063 >    <A
2064 NAME="FILTER-NIMDA"
2065 ></A
2066 >
2067     <TABLE
2068 BORDER="0"
2069 BGCOLOR="#E0E0E0"
2070 WIDTH="90%"
2071 ><TR
2072 ><TD
2073 ><PRE
2074 CLASS="SCREEN"
2075 >+filter{nimda}               # Remove Nimda (virus) code.</PRE
2076 ></TD
2077 ></TR
2078 ></TABLE
2079 >
2080    </P
2081 ><P
2082 >    <A
2083 NAME="FILTER-SHOCKWAVE-FLASH"
2084 ></A
2085 >
2086     <TABLE
2087 BORDER="0"
2088 BGCOLOR="#E0E0E0"
2089 WIDTH="90%"
2090 ><TR
2091 ><TD
2092 ><PRE
2093 CLASS="SCREEN"
2094 >+filter{shockwave-flash}     # Kill embedded Shockwave Flash objects</PRE
2095 ></TD
2096 ></TR
2097 ></TABLE
2098 >
2099    </P
2100 ><P
2101 >    <A
2102 NAME="FILTER-CRUDE-PARENTAL"
2103 ></A
2104 >
2105     <TABLE
2106 BORDER="0"
2107 BGCOLOR="#E0E0E0"
2108 WIDTH="90%"
2109 ><TR
2110 ><TD
2111 ><PRE
2112 CLASS="SCREEN"
2113 >+filter{crude-parental}      # Kill all web pages that contain the words "sex" or "warez"</PRE
2114 ></TD
2115 ></TR
2116 ></TABLE
2117 >
2118    </P
2119 ></DD
2120 ></DL
2121 ></DIV
2122 ></DIV
2123 ><DIV
2124 CLASS="SECT3"
2125 ><H4
2126 CLASS="SECT3"
2127 ><A
2128 NAME="HANDLE-AS-IMAGE">8.5.9. handle-as-image</H4
2129 ><P
2130 ></P
2131 ><DIV
2132 CLASS="VARIABLELIST"
2133 ><DL
2134 ><DT
2135 >Typical use:</DT
2136 ><DD
2137 ><P
2138 >Mark URLs as belonging to images (so they'll be replaced by images <SPAN
2139 CLASS="emphasis"
2140 ><I
2141 CLASS="EMPHASIS"
2142 >if they get blocked</I
2143 ></SPAN
2144 >)</P
2145 ></DD
2146 ><DT
2147 >Effect:</DT
2148 ><DD
2149 ><P
2150 >    This action alone doesn't do anything noticeable. It just marks URLs as images.
2151     If the <TT
2152 CLASS="LITERAL"
2153 ><A
2154 HREF="actions-file.html#BLOCK"
2155 >block</A
2156 ></TT
2157 > action <SPAN
2158 CLASS="emphasis"
2159 ><I
2160 CLASS="EMPHASIS"
2161 >also applies</I
2162 ></SPAN
2163 >,
2164     the presence or absence of this mark decides whether an HTML <SPAN
2165 CLASS="QUOTE"
2166 >"blocked"</SPAN
2167 >
2168     page, or a replacement image (as determined by the <TT
2169 CLASS="LITERAL"
2170 ><A
2171 HREF="actions-file.html#SET-IMAGE-BLOCKER"
2172 >set-image-blocker</A
2173 ></TT
2174 > action) will be sent to the
2175     client as a substitute for the blocked content.
2176    </P
2177 ></DD
2178 ><DT
2179 >Type:</DT
2180 ><DD
2181 ><P
2182 >Boolean.</P
2183 ></DD
2184 ><DT
2185 >Parameter:</DT
2186 ><DD
2187 ><P
2188 >    N/A
2189    </P
2190 ></DD
2191 ><DT
2192 >Notes:</DT
2193 ><DD
2194 ><P
2195 >    The below generic example section is actually part of <TT
2196 CLASS="FILENAME"
2197 >default.action</TT
2198 >.
2199     It marks all URLs with well-known image file name extensions as images and should
2200     be left intact. 
2201    </P
2202 ><P
2203 >    Users will probably only want to use the handle-as-image action in conjunction with
2204     <TT
2205 CLASS="LITERAL"
2206 ><A
2207 HREF="actions-file.html#BLOCK"
2208 >block</A
2209 ></TT
2210 >, to block sources of banners, whose URLs don't
2211     reflect the file type, like in the second example section.
2212    </P
2213 ><P
2214 >    Note that you cannot treat HTML pages as images in most cases. For instance, (in-line) ad
2215     frames require an HTML page to be sent, or they won't display properly.
2216     Forcing <TT
2217 CLASS="LITERAL"
2218 >handle-as-image</TT
2219 > in this situation will not replace the
2220     ad frame with an image, but lead to error messages.
2221    </P
2222 ></DD
2223 ><DT
2224 >Example usage (sections):</DT
2225 ><DD
2226 ><P
2227 >     <TABLE
2228 BORDER="0"
2229 BGCOLOR="#E0E0E0"
2230 WIDTH="90%"
2231 ><TR
2232 ><TD
2233 ><PRE
2234 CLASS="SCREEN"
2235 ># Generic image extensions:
2236 #
2237 {+handle-as-image}
2238 /.*\.(gif|jpg|jpeg|png|bmp|ico)$
2239
2240 # These don't look like images, but they're banners and should be
2241 # blocked as images:
2242 #
2243 {+block +handle-as-image}
2244 some.nasty-banner-server.com/junk.cgi?output=trash
2245
2246 # Banner source! Who cares if they also have non-image content?
2247 ad.doubleclick.net </PRE
2248 ></TD
2249 ></TR
2250 ></TABLE
2251 >
2252    </P
2253 ></DD
2254 ></DL
2255 ></DIV
2256 ></DIV
2257 ><DIV
2258 CLASS="SECT3"
2259 ><H4
2260 CLASS="SECT3"
2261 ><A
2262 NAME="HIDE-FORWARDED-FOR-HEADERS">8.5.10. hide-forwarded-for-headers</H4
2263 ><P
2264 ></P
2265 ><DIV
2266 CLASS="VARIABLELIST"
2267 ><DL
2268 ><DT
2269 >Typical use:</DT
2270 ><DD
2271 ><P
2272 >Improve privacy by hiding the true source of the request</P
2273 ></DD
2274 ><DT
2275 >Effect:</DT
2276 ><DD
2277 ><P
2278 >    Deletes any existing <SPAN
2279 CLASS="QUOTE"
2280 >"X-Forwarded-for:"</SPAN
2281 > HTTP header from client requests,
2282     and prevents adding a new one.
2283    </P
2284 ></DD
2285 ><DT
2286 >Type:</DT
2287 ><DD
2288 ><P
2289 >Boolean.</P
2290 ></DD
2291 ><DT
2292 >Parameter:</DT
2293 ><DD
2294 ><P
2295 >    N/A
2296    </P
2297 ></DD
2298 ><DT
2299 >Notes:</DT
2300 ><DD
2301 ><P
2302 >    It is fairly safe to leave this on.
2303    </P
2304 ><P
2305 >    This action is scheduled for improvement: It should be able to generate forged 
2306     <SPAN
2307 CLASS="QUOTE"
2308 >"X-Forwarded-for:"</SPAN
2309 > headers using random IP addresses from a specified network,
2310     to make successive requests from the same client look like requests from a pool of different
2311     users sharing the same proxy.
2312    </P
2313 ></DD
2314 ><DT
2315 >Example usage:</DT
2316 ><DD
2317 ><P
2318 >     <TABLE
2319 BORDER="0"
2320 BGCOLOR="#E0E0E0"
2321 WIDTH="90%"
2322 ><TR
2323 ><TD
2324 ><PRE
2325 CLASS="SCREEN"
2326 >+hide-forwarded-for-headers</PRE
2327 ></TD
2328 ></TR
2329 ></TABLE
2330 >
2331    </P
2332 ></DD
2333 ></DL
2334 ></DIV
2335 ></DIV
2336 ><DIV
2337 CLASS="SECT3"
2338 ><H4
2339 CLASS="SECT3"
2340 ><A
2341 NAME="HIDE-FROM-HEADER">8.5.11. hide-from-header</H4
2342 ><P
2343 ></P
2344 ><DIV
2345 CLASS="VARIABLELIST"
2346 ><DL
2347 ><DT
2348 >Typical use:</DT
2349 ><DD
2350 ><P
2351 >Keep your (old and ill) browser from telling web servers your email address</P
2352 ></DD
2353 ><DT
2354 >Effect:</DT
2355 ><DD
2356 ><P
2357 >    Deletes any existing <SPAN
2358 CLASS="QUOTE"
2359 >"From:"</SPAN
2360 > HTTP header, or replaces it with the
2361     specified string.
2362    </P
2363 ></DD
2364 ><DT
2365 >Type:</DT
2366 ><DD
2367 ><P
2368 >Parameterized.</P
2369 ></DD
2370 ><DT
2371 >Parameter:</DT
2372 ><DD
2373 ><P
2374 >    Keyword: <SPAN
2375 CLASS="QUOTE"
2376 >"block"</SPAN
2377 >, or any user defined value.
2378    </P
2379 ></DD
2380 ><DT
2381 >Notes:</DT
2382 ><DD
2383 ><P
2384 >    The keyword <SPAN
2385 CLASS="QUOTE"
2386 >"block"</SPAN
2387 > will completely remove the header 
2388     (not to be confused with the <TT
2389 CLASS="LITERAL"
2390 ><A
2391 HREF="actions-file.html#BLOCK"
2392 >block</A
2393 ></TT
2394 >
2395     action).
2396    </P
2397 ><P
2398 >    Alternately, you can specify any value you prefer to be sent to the web
2399     server. If you do, it is a matter of fairness not to use any address that
2400     is actually used by a real person.
2401    </P
2402 ><P
2403 >    This action is rarely needed, as modern web browsers don't send
2404     <SPAN
2405 CLASS="QUOTE"
2406 >"From:"</SPAN
2407 > headers anymore.
2408    </P
2409 ></DD
2410 ><DT
2411 >Example usage:</DT
2412 ><DD
2413 ><P
2414 >    <TABLE
2415 BORDER="0"
2416 BGCOLOR="#E0E0E0"
2417 WIDTH="90%"
2418 ><TR
2419 ><TD
2420 ><PRE
2421 CLASS="SCREEN"
2422 >+hide-from-header{block}</PRE
2423 ></TD
2424 ></TR
2425 ></TABLE
2426 > or
2427     <TABLE
2428 BORDER="0"
2429 BGCOLOR="#E0E0E0"
2430 WIDTH="90%"
2431 ><TR
2432 ><TD
2433 ><PRE
2434 CLASS="SCREEN"
2435 >+hide-from-header{spam-me-senseless@sittingduck.example.com}</PRE
2436 ></TD
2437 ></TR
2438 ></TABLE
2439 >
2440    </P
2441 ></DD
2442 ></DL
2443 ></DIV
2444 ></DIV
2445 ><DIV
2446 CLASS="SECT3"
2447 ><H4
2448 CLASS="SECT3"
2449 ><A
2450 NAME="HIDE-REFERRER">8.5.12. hide-referrer</H4
2451 ><A
2452 NAME="HIDE-REFERER"
2453 ></A
2454 ><P
2455 ></P
2456 ><DIV
2457 CLASS="VARIABLELIST"
2458 ><DL
2459 ><DT
2460 >Typical use:</DT
2461 ><DD
2462 ><P
2463 >Conceal which link you followed to get to a particular site</P
2464 ></DD
2465 ><DT
2466 >Effect:</DT
2467 ><DD
2468 ><P
2469 >    Deletes the <SPAN
2470 CLASS="QUOTE"
2471 >"Referer:"</SPAN
2472 > (sic) HTTP header from the client request,
2473     or replaces it with a forged one.
2474    </P
2475 ></DD
2476 ><DT
2477 >Type:</DT
2478 ><DD
2479 ><P
2480 >Parameterized.</P
2481 ></DD
2482 ><DT
2483 >Parameter:</DT
2484 ><DD
2485 ><P
2486 ></P
2487 ><UL
2488 ><LI
2489 ><P
2490 ><SPAN
2491 CLASS="QUOTE"
2492 >"block"</SPAN
2493 > to delete the header completely.</P
2494 ></LI
2495 ><LI
2496 ><P
2497 ><SPAN
2498 CLASS="QUOTE"
2499 >"forge"</SPAN
2500 > to pretend to be coming from the homepage of the server we are talking to.</P
2501 ></LI
2502 ><LI
2503 ><P
2504 >Any other string to set a user defined referrer.</P
2505 ></LI
2506 ></UL
2507 ></DD
2508 ><DT
2509 >Notes:</DT
2510 ><DD
2511 ><P
2512 >    <SPAN
2513 CLASS="QUOTE"
2514 >"forge"</SPAN
2515 > is the preferred option here, since some servers will
2516     not send images back otherwise, in an attempt to prevent their valuable
2517     content from being embedded elsewhere (and hence, without being surrounded
2518     by <SPAN
2519 CLASS="emphasis"
2520 ><I
2521 CLASS="EMPHASIS"
2522 >their</I
2523 ></SPAN
2524 > banners).
2525    </P
2526 ><P
2527 >  
2528    <TT
2529 CLASS="LITERAL"
2530 >hide-referer</TT
2531 > is an alternate spelling of
2532    <TT
2533 CLASS="LITERAL"
2534 >hide-referrer</TT
2535 > and the two can be can be freely
2536    substituted with each other. (<SPAN
2537 CLASS="QUOTE"
2538 >"referrer"</SPAN
2539 > is the
2540    correct English spelling, however the HTTP specification has a bug - it
2541    requires it to be spelled as <SPAN
2542 CLASS="QUOTE"
2543 >"referer"</SPAN
2544 >.) 
2545   </P
2546 ></DD
2547 ><DT
2548 >Example usage:</DT
2549 ><DD
2550 ><P
2551 >     <TABLE
2552 BORDER="0"
2553 BGCOLOR="#E0E0E0"
2554 WIDTH="90%"
2555 ><TR
2556 ><TD
2557 ><PRE
2558 CLASS="SCREEN"
2559 >+hide-referrer{forge}</PRE
2560 ></TD
2561 ></TR
2562 ></TABLE
2563 > or
2564      <TABLE
2565 BORDER="0"
2566 BGCOLOR="#E0E0E0"
2567 WIDTH="90%"
2568 ><TR
2569 ><TD
2570 ><PRE
2571 CLASS="SCREEN"
2572 >+hide-referrer{http://www.yahoo.com/}</PRE
2573 ></TD
2574 ></TR
2575 ></TABLE
2576 >
2577    </P
2578 ></DD
2579 ></DL
2580 ></DIV
2581 ></DIV
2582 ><DIV
2583 CLASS="SECT3"
2584 ><H4
2585 CLASS="SECT3"
2586 ><A
2587 NAME="HIDE-USER-AGENT">8.5.13. hide-user-agent</H4
2588 ><P
2589 ></P
2590 ><DIV
2591 CLASS="VARIABLELIST"
2592 ><DL
2593 ><DT
2594 >Typical use:</DT
2595 ><DD
2596 ><P
2597 >Conceal your type of browser and client operating system</P
2598 ></DD
2599 ><DT
2600 >Effect:</DT
2601 ><DD
2602 ><P
2603 >    Replaces the value of the <SPAN
2604 CLASS="QUOTE"
2605 >"User-Agent:"</SPAN
2606 > HTTP header
2607     in client requests with the specified value.
2608    </P
2609 ></DD
2610 ><DT
2611 >Type:</DT
2612 ><DD
2613 ><P
2614 >Parameterized.</P
2615 ></DD
2616 ><DT
2617 >Parameter:</DT
2618 ><DD
2619 ><P
2620 >    Any user-defined string.
2621    </P
2622 ></DD
2623 ><DT
2624 >Notes:</DT
2625 ><DD
2626 ><DIV
2627 CLASS="WARNING"
2628 ><P
2629 ></P
2630 ><TABLE
2631 CLASS="WARNING"
2632 BORDER="1"
2633 WIDTH="90%"
2634 ><TR
2635 ><TD
2636 ALIGN="CENTER"
2637 ><B
2638 >Warning</B
2639 ></TD
2640 ></TR
2641 ><TR
2642 ><TD
2643 ALIGN="LEFT"
2644 ><P
2645 >     This breaks many web sites that depend on looking at this header in order
2646      to customize their content for different browsers (which, by the
2647      way, is <SPAN
2648 CLASS="emphasis"
2649 ><I
2650 CLASS="EMPHASIS"
2651 >NOT</I
2652 ></SPAN
2653 > a <A
2654 HREF="http://www.javascriptkit.com/javaindex.shtml"
2655 TARGET="_top"
2656 >smart way to do
2657      that</A
2658 >!).
2659     </P
2660 ></TD
2661 ></TR
2662 ></TABLE
2663 ></DIV
2664 ><P
2665 >    Using this action in multi-user setups or wherever different types of
2666     browsers will access the same <SPAN
2667 CLASS="APPLICATION"
2668 >Privoxy</SPAN
2669 > is
2670     <SPAN
2671 CLASS="emphasis"
2672 ><I
2673 CLASS="EMPHASIS"
2674 >not recommended</I
2675 ></SPAN
2676 >. In single-user, single-browser
2677     setups, you might use it to delete your OS version information from
2678     the headers, because it is an invitation to exploit known bugs for your
2679     OS. It is also occasionally useful to forge this in order to access 
2680     sites that won't let you in otherwise (though there may be a good 
2681     reason in some cases). Example of this: some MSN sites will not 
2682     let <SPAN
2683 CLASS="APPLICATION"
2684 >Mozilla</SPAN
2685 > enter, yet forging to a 
2686     <SPAN
2687 CLASS="APPLICATION"
2688 >Netscape 6.1</SPAN
2689 > user-agent works just fine.
2690     (Must be just a silly MS goof, I'm sure :-).
2691    </P
2692 ><P
2693 >    This action is scheduled for improvement.
2694    </P
2695 ></DD
2696 ><DT
2697 >Example usage:</DT
2698 ><DD
2699 ><P
2700 >     <TABLE
2701 BORDER="0"
2702 BGCOLOR="#E0E0E0"
2703 WIDTH="90%"
2704 ><TR
2705 ><TD
2706 ><PRE
2707 CLASS="SCREEN"
2708 >+hide-user-agent{Netscape 6.1 (X11; I; Linux 2.4.18 i686)}</PRE
2709 ></TD
2710 ></TR
2711 ></TABLE
2712 >
2713    </P
2714 ></DD
2715 ></DL
2716 ></DIV
2717 ></DIV
2718 ><DIV
2719 CLASS="SECT3"
2720 ><H4
2721 CLASS="SECT3"
2722 ><A
2723 NAME="KILL-POPUPS">8.5.14. kill-popups<A
2724 NAME="KILL-POPUP"
2725 ></A
2726 ></H4
2727 ><P
2728 ></P
2729 ><DIV
2730 CLASS="VARIABLELIST"
2731 ><DL
2732 ><DT
2733 >Typical use:</DT
2734 ><DD
2735 ><P
2736 >Eliminate those annoying pop-up windows</P
2737 ></DD
2738 ><DT
2739 >Effect:</DT
2740 ><DD
2741 ><P
2742 >    While loading the document, replace JavaScript code that opens
2743     pop-up windows with (syntactically neutral) dummy code on the fly.
2744    </P
2745 ></DD
2746 ><DT
2747 >Type:</DT
2748 ><DD
2749 ><P
2750 >Boolean.</P
2751 ></DD
2752 ><DT
2753 >Parameter:</DT
2754 ><DD
2755 ><P
2756 >    N/A
2757    </P
2758 ></DD
2759 ><DT
2760 >Notes:</DT
2761 ><DD
2762 ><P
2763 >    This action is easily confused with the built-in, hardwired <TT
2764 CLASS="LITERAL"
2765 ><A
2766 HREF="actions-file.html#FILTER"
2767 >filter</A
2768 ></TT
2769 >
2770     action, but there are important differences: For <TT
2771 CLASS="LITERAL"
2772 >kill-popups</TT
2773 >,
2774     the document need not be buffered, so it can be incrementally rendered while
2775     downloading. But <TT
2776 CLASS="LITERAL"
2777 >kill-popups</TT
2778 > doesn't catch as many pop-ups as
2779     <TT
2780 CLASS="LITERAL"
2781 ><A
2782 HREF="actions-file.html#FILTER"
2783 >filter</A
2784 >{<TT
2785 CLASS="REPLACEABLE"
2786 ><I
2787 >popups</I
2788 ></TT
2789 >}</TT
2790 >
2791     does. 
2792    </P
2793 ><P
2794 >    Think of it as a fast and efficient replacement for a filter that you
2795     can use if you don't want any filtering at all. Note that it doesn't make
2796     sense to combine it with any <TT
2797 CLASS="LITERAL"
2798 ><A
2799 HREF="actions-file.html#FILTER"
2800 >filter</A
2801 ></TT
2802 > action,
2803     since as soon as one <TT
2804 CLASS="LITERAL"
2805 ><A
2806 HREF="actions-file.html#FILTER"
2807 >filter</A
2808 ></TT
2809 > applies,
2810     the whole document needs to be buffered anyway, which destroys the advantage of
2811     the <TT
2812 CLASS="LITERAL"
2813 >kill-popups</TT
2814 > action over its filter equivalent.
2815    </P
2816 ><P
2817 >    Killing all pop-ups is a dangerous business. Many shops and banks rely on
2818     pop-ups to display forms, shopping carts etc, and killing only the unwanted pop-ups 
2819     would require artificial intelligence in <SPAN
2820 CLASS="APPLICATION"
2821 >Privoxy</SPAN
2822 >.
2823     If the only kind of pop-ups that you want to kill are exit consoles (those
2824     <SPAN
2825 CLASS="emphasis"
2826 ><I
2827 CLASS="EMPHASIS"
2828 >really nasty</I
2829 ></SPAN
2830 > windows that appear when you close an other
2831     one), you might want to use
2832     <TT
2833 CLASS="LITERAL"
2834 ><A
2835 HREF="actions-file.html#FILTER"
2836 >filter</A
2837 >{<TT
2838 CLASS="REPLACEABLE"
2839 ><I
2840 >js-annoyances</I
2841 ></TT
2842 >}</TT
2843 >
2844     instead. 
2845    </P
2846 ></DD
2847 ><DT
2848 >Example usage:</DT
2849 ><DD
2850 ><P
2851 ><TABLE
2852 BORDER="0"
2853 BGCOLOR="#E0E0E0"
2854 WIDTH="90%"
2855 ><TR
2856 ><TD
2857 ><PRE
2858 CLASS="SCREEN"
2859 >+kill-popups</PRE
2860 ></TD
2861 ></TR
2862 ></TABLE
2863 ></P
2864 ></DD
2865 ></DL
2866 ></DIV
2867 ></DIV
2868 ><DIV
2869 CLASS="SECT3"
2870 ><H4
2871 CLASS="SECT3"
2872 ><A
2873 NAME="LIMIT-CONNECT">8.5.15. limit-connect</H4
2874 ><P
2875 ></P
2876 ><DIV
2877 CLASS="VARIABLELIST"
2878 ><DL
2879 ><DT
2880 >Typical use:</DT
2881 ><DD
2882 ><P
2883 >Prevent abuse of <SPAN
2884 CLASS="APPLICATION"
2885 >Privoxy</SPAN
2886 > as a TCP proxy relay</P
2887 ></DD
2888 ><DT
2889 >Effect:</DT
2890 ><DD
2891 ><P
2892 >    Specifies to which ports HTTP CONNECT requests are allowable.
2893    </P
2894 ></DD
2895 ><DT
2896 >Type:</DT
2897 ><DD
2898 ><P
2899 >Parameterized.</P
2900 ></DD
2901 ><DT
2902 >Parameter:</DT
2903 ><DD
2904 ><P
2905 >    A comma-separated list of ports or port ranges (the latter using dashes, with the minimum
2906     defaulting to 0 and the maximum to 65K).
2907    </P
2908 ></DD
2909 ><DT
2910 >Notes:</DT
2911 ><DD
2912 ><P
2913 >    By default, i.e. if no <TT
2914 CLASS="LITERAL"
2915 >limit-connect</TT
2916 > action applies,
2917     <SPAN
2918 CLASS="APPLICATION"
2919 >Privoxy</SPAN
2920 > only allows HTTP CONNECT
2921     requests to port 443 (the standard, secure HTTPS port). Use 
2922     <TT
2923 CLASS="LITERAL"
2924 >limit-connect</TT
2925 > if more fine-grained control is desired
2926     for some or all destinations.
2927    </P
2928 ><P
2929 >    The CONNECT methods exists in HTTP to allow access to secure websites
2930     (<SPAN
2931 CLASS="QUOTE"
2932 >"https://"</SPAN
2933 > URLs) through proxies. It works very simply:
2934     the proxy connects to the server on the specified port, and then
2935     short-circuits its connections to the client and to the remote server.
2936     This can be a big security hole, since CONNECT-enabled proxies can be
2937     abused as TCP relays very easily.
2938   </P
2939 ><P
2940 >   If you don't know what any of this means, there probably is no reason to 
2941    change this one, since the default is already very restrictive.
2942   </P
2943 ></DD
2944 ><DT
2945 >Example usages:</DT
2946 ><DD
2947 ><P
2948 >     <TABLE
2949 BORDER="0"
2950 BGCOLOR="#E0E0E0"
2951 WIDTH="90%"
2952 ><TR
2953 ><TD
2954 ><PRE
2955 CLASS="SCREEN"
2956 >+limit-connect{443}                   # This is the default and need not be specified.
2957 +limit-connect{80,443}                # Ports 80 and 443 are OK.
2958 +limit-connect{-3, 7, 20-100, 500-}   # Ports less than 3, 7, 20 to 100 and above 500 are OK.
2959 +limit-connect{-}                     # All ports are OK (gaping security hole!)</PRE
2960 ></TD
2961 ></TR
2962 ></TABLE
2963 >
2964    </P
2965 ></DD
2966 ></DL
2967 ></DIV
2968 ></DIV
2969 ><DIV
2970 CLASS="SECT3"
2971 ><H4
2972 CLASS="SECT3"
2973 ><A
2974 NAME="PREVENT-COMPRESSION">8.5.16. prevent-compression</H4
2975 ><P
2976 ></P
2977 ><DIV
2978 CLASS="VARIABLELIST"
2979 ><DL
2980 ><DT
2981 >Typical use:</DT
2982 ><DD
2983 ><P
2984 >    Ensure that servers send the content uncompressed, so it can be
2985     passed through <TT
2986 CLASS="LITERAL"
2987 ><A
2988 HREF="actions-file.html#FILTER"
2989 >filter</A
2990 ></TT
2991 >s
2992    </P
2993 ></DD
2994 ><DT
2995 >Effect:</DT
2996 ><DD
2997 ><P
2998 >    Adds a header to the request that asks for uncompressed transfer.
2999    </P
3000 ></DD
3001 ><DT
3002 >Type:</DT
3003 ><DD
3004 ><P
3005 >Boolean.</P
3006 ></DD
3007 ><DT
3008 >Parameter:</DT
3009 ><DD
3010 ><P
3011 >    N/A
3012    </P
3013 ></DD
3014 ><DT
3015 >Notes:</DT
3016 ><DD
3017 ><P
3018 >    More and more websites send their content compressed by default, which
3019     is generally a good idea and saves bandwidth. But for the <TT
3020 CLASS="LITERAL"
3021 ><A
3022 HREF="actions-file.html#FILTER"
3023 >filter</A
3024 ></TT
3025 >, <TT
3026 CLASS="LITERAL"
3027 ><A
3028 HREF="actions-file.html#DEANIMATE-GIFS"
3029 >deanimate-gifs</A
3030 ></TT
3031 >
3032     and <TT
3033 CLASS="LITERAL"
3034 ><A
3035 HREF="actions-file.html#KILL-POPUPS"
3036 >kill-popups</A
3037 ></TT
3038 > actions to work,
3039     <SPAN
3040 CLASS="APPLICATION"
3041 >Privoxy</SPAN
3042 > needs access to the  uncompressed data.
3043     Unfortunately, <SPAN
3044 CLASS="APPLICATION"
3045 >Privoxy</SPAN
3046 > can't yet(!)  uncompress, filter, and
3047     re-compress the content on the fly. So if you want to ensure that all websites, including
3048     those that normally compress, can be filtered, you need to use this action.
3049    </P
3050 ><P
3051 >    This will slow down transfers from those websites, though. If you use any of the above-mentioned
3052     actions, you will typically want to use <TT
3053 CLASS="LITERAL"
3054 >prevent-compression</TT
3055 > in conjunction
3056     with them.
3057    </P
3058 ><P
3059 >    Note that some (rare) ill-configured sites don't handle requests for uncompressed
3060     documents correctly (they send an empty document body). If you use <TT
3061 CLASS="LITERAL"
3062 >prevent-compression</TT
3063 >
3064     per default, you'll have to add exceptions for those sites. See the example for how to do that.
3065    </P
3066 ></DD
3067 ><DT
3068 >Example usage (sections):</DT
3069 ><DD
3070 ><P
3071 >    <TABLE
3072 BORDER="0"
3073 BGCOLOR="#E0E0E0"
3074 WIDTH="90%"
3075 ><TR
3076 ><TD
3077 ><PRE
3078 CLASS="SCREEN"
3079 ># Set default:
3080 #
3081 {+prevent-compression}
3082 / # Match all sites
3083
3084 # Make exceptions for ill sites:
3085 #
3086 {-prevent-compression}
3087 www.debianhelp.org
3088 www.pclinuxonline.com</PRE
3089 ></TD
3090 ></TR
3091 ></TABLE
3092 >
3093    </P
3094 ></DD
3095 ></DL
3096 ></DIV
3097 ></DIV
3098 ><DIV
3099 CLASS="SECT3"
3100 ><H4
3101 CLASS="SECT3"
3102 ><A
3103 NAME="SEND-VANILLA-WAFER">8.5.17. send-vanilla-wafer</H4
3104 ><P
3105 ></P
3106 ><DIV
3107 CLASS="VARIABLELIST"
3108 ><DL
3109 ><DT
3110 >Typical use:</DT
3111 ><DD
3112 ><P
3113 >    Feed log analysis scripts with useless data.
3114    </P
3115 ></DD
3116 ><DT
3117 >Effect:</DT
3118 ><DD
3119 ><P
3120 >    Sends a cookie with each request stating that you do not accept any copyright
3121     on cookies sent to you, and asking the site operator not to track you.
3122    </P
3123 ></DD
3124 ><DT
3125 >Type:</DT
3126 ><DD
3127 ><P
3128 >Boolean.</P
3129 ></DD
3130 ><DT
3131 >Parameter:</DT
3132 ><DD
3133 ><P
3134 >    N/A
3135    </P
3136 ></DD
3137 ><DT
3138 >Notes:</DT
3139 ><DD
3140 ><P
3141 >    The vanilla wafer is a (relatively) unique header and could conceivably be used to track you.
3142    </P
3143 ><P
3144 >    This action is rarely used and not enabled in the default configuration.
3145    </P
3146 ></DD
3147 ><DT
3148 >Example usage:</DT
3149 ><DD
3150 ><P
3151 >     <TABLE
3152 BORDER="0"
3153 BGCOLOR="#E0E0E0"
3154 WIDTH="90%"
3155 ><TR
3156 ><TD
3157 ><PRE
3158 CLASS="SCREEN"
3159 >+send-vanilla-wafer</PRE
3160 ></TD
3161 ></TR
3162 ></TABLE
3163 >
3164    </P
3165 ></DD
3166 ></DL
3167 ></DIV
3168 ></DIV
3169 ><DIV
3170 CLASS="SECT3"
3171 ><H4
3172 CLASS="SECT3"
3173 ><A
3174 NAME="SEND-WAFER">8.5.18. send-wafer</H4
3175 ><P
3176 ></P
3177 ><DIV
3178 CLASS="VARIABLELIST"
3179 ><DL
3180 ><DT
3181 >Typical use:</DT
3182 ><DD
3183 ><P
3184 >    Send custom cookies or feed log analysis scripts with even more useless data.
3185    </P
3186 ></DD
3187 ><DT
3188 >Effect:</DT
3189 ><DD
3190 ><P
3191 >    Sends a custom, user-defined cookie with each request.
3192    </P
3193 ></DD
3194 ><DT
3195 >Type:</DT
3196 ><DD
3197 ><P
3198 >Multi-value.</P
3199 ></DD
3200 ><DT
3201 >Parameter:</DT
3202 ><DD
3203 ><P
3204 >    A string of the form <SPAN
3205 CLASS="QUOTE"
3206 >"<TT
3207 CLASS="REPLACEABLE"
3208 ><I
3209 >name</I
3210 ></TT
3211 >=<TT
3212 CLASS="REPLACEABLE"
3213 ><I
3214 >value</I
3215 ></TT
3216 >"</SPAN
3217 >.
3218    </P
3219 ></DD
3220 ><DT
3221 >Notes:</DT
3222 ><DD
3223 ><P
3224 >    Being multi-valued, multiple instances of this action can apply to the same request,
3225     resulting in multiple cookies being sent.
3226    </P
3227 ><P
3228 >    This action is rarely used and not enabled in the default configuration.
3229    </P
3230 ></DD
3231 ><DT
3232 >Example usage (section):</DT
3233 ><DD
3234 ><P
3235 >    <TABLE
3236 BORDER="0"
3237 BGCOLOR="#E0E0E0"
3238 WIDTH="90%"
3239 ><TR
3240 ><TD
3241 ><PRE
3242 CLASS="SCREEN"
3243 >{+send-wafer{UsingPrivoxy=true}}
3244 my-internal-testing-server.void</PRE
3245 ></TD
3246 ></TR
3247 ></TABLE
3248 >
3249    </P
3250 ></DD
3251 ></DL
3252 ></DIV
3253 ></DIV
3254 ><DIV
3255 CLASS="SECT3"
3256 ><H4
3257 CLASS="SECT3"
3258 ><A
3259 NAME="SESSION-COOKIES-ONLY">8.5.19. session-cookies-only</H4
3260 ><P
3261 ></P
3262 ><DIV
3263 CLASS="VARIABLELIST"
3264 ><DL
3265 ><DT
3266 >Typical use:</DT
3267 ><DD
3268 ><P
3269 >    Allow only temporary <SPAN
3270 CLASS="QUOTE"
3271 >"session"</SPAN
3272 > cookies (for the current browser session <SPAN
3273 CLASS="emphasis"
3274 ><I
3275 CLASS="EMPHASIS"
3276 >only</I
3277 ></SPAN
3278 >).
3279    </P
3280 ></DD
3281 ><DT
3282 >Effect:</DT
3283 ><DD
3284 ><P
3285 >    Deletes the <SPAN
3286 CLASS="QUOTE"
3287 >"expires"</SPAN
3288 > field from <SPAN
3289 CLASS="QUOTE"
3290 >"Set-Cookie:"</SPAN
3291 > server headers.
3292     Most browsers will not store such cookies permanently and forget them in between sessions.
3293    </P
3294 ></DD
3295 ><DT
3296 >Type:</DT
3297 ><DD
3298 ><P
3299 >Boolean.</P
3300 ></DD
3301 ><DT
3302 >Parameter:</DT
3303 ><DD
3304 ><P
3305 >    N/A
3306    </P
3307 ></DD
3308 ><DT
3309 >Notes:</DT
3310 ><DD
3311 ><P
3312 >    This is less strict than <TT
3313 CLASS="LITERAL"
3314 ><A
3315 HREF="actions-file.html#CRUNCH-INCOMING-COOKIES"
3316 >crunch-incoming-cookies</A
3317 ></TT
3318 > / 
3319     <TT
3320 CLASS="LITERAL"
3321 ><A
3322 HREF="actions-file.html#CRUNCH-OUTGOING-COOKIES"
3323 >crunch-outgoing-cookies</A
3324 ></TT
3325 > and allows you to browse
3326     websites that insist or rely on setting cookies, without compromising your privacy too badly.
3327    </P
3328 ><P
3329 >    Most browsers will not permanently store cookies that have been processed by
3330     <TT
3331 CLASS="LITERAL"
3332 >session-cookies-only</TT
3333 > and will forget about them between sessions.
3334     This makes profiling cookies useless, but won't break sites which require cookies so
3335     that you can log in for transactions. This is generally turned on for all 
3336     sites, and is the recommended setting.
3337    </P
3338 ><P
3339 >    It makes <SPAN
3340 CLASS="emphasis"
3341 ><I
3342 CLASS="EMPHASIS"
3343 >no sense at all</I
3344 ></SPAN
3345 > to use <TT
3346 CLASS="LITERAL"
3347 >session-cookies-only</TT
3348 >
3349     together with <TT
3350 CLASS="LITERAL"
3351 ><A
3352 HREF="actions-file.html#CRUNCH-INCOMING-COOKIES"
3353 >crunch-incoming-cookies</A
3354 ></TT
3355 > or
3356     <TT
3357 CLASS="LITERAL"
3358 ><A
3359 HREF="actions-file.html#CRUNCH-OUTGOING-COOKIES"
3360 >crunch-outgoing-cookies</A
3361 ></TT
3362 >. If you do, cookies
3363     will be plainly killed.
3364    </P
3365 ><P
3366 >    Note that it is up to the browser how it handles such cookies without an <SPAN
3367 CLASS="QUOTE"
3368 >"expires"</SPAN
3369 >
3370     field. If you use an exotic browser, you might want to try it out to be sure.
3371    </P
3372 ></DD
3373 ><DT
3374 >Example usage:</DT
3375 ><DD
3376 ><P
3377 >     <TABLE
3378 BORDER="0"
3379 BGCOLOR="#E0E0E0"
3380 WIDTH="90%"
3381 ><TR
3382 ><TD
3383 ><PRE
3384 CLASS="SCREEN"
3385 >+session-cookies-only</PRE
3386 ></TD
3387 ></TR
3388 ></TABLE
3389 >
3390    </P
3391 ></DD
3392 ></DL
3393 ></DIV
3394 ></DIV
3395 ><DIV
3396 CLASS="SECT3"
3397 ><H4
3398 CLASS="SECT3"
3399 ><A
3400 NAME="SET-IMAGE-BLOCKER">8.5.20. set-image-blocker</H4
3401 ><P
3402 ></P
3403 ><DIV
3404 CLASS="VARIABLELIST"
3405 ><DL
3406 ><DT
3407 >Typical use:</DT
3408 ><DD
3409 ><P
3410 >Choose the replacement for blocked images</P
3411 ></DD
3412 ><DT
3413 >Effect:</DT
3414 ><DD
3415 ><P
3416 >     This action alone doesn't do anything noticeable. If <SPAN
3417 CLASS="emphasis"
3418 ><I
3419 CLASS="EMPHASIS"
3420 >both</I
3421 ></SPAN
3422 >
3423      <TT
3424 CLASS="LITERAL"
3425 ><A
3426 HREF="actions-file.html#BLOCK"
3427 >block</A
3428 ></TT
3429 > <SPAN
3430 CLASS="emphasis"
3431 ><I
3432 CLASS="EMPHASIS"
3433 >and</I
3434 ></SPAN
3435 > <TT
3436 CLASS="LITERAL"
3437 ><A
3438 HREF="actions-file.html#HANDLE-AS-IMAGE"
3439 >handle-as-image</A
3440 ></TT
3441 > <SPAN
3442 CLASS="emphasis"
3443 ><I
3444 CLASS="EMPHASIS"
3445 >also</I
3446 ></SPAN
3447 >
3448      apply, i.e. if the request is to be blocked as an image,
3449      <SPAN
3450 CLASS="emphasis"
3451 ><I
3452 CLASS="EMPHASIS"
3453 >then</I
3454 ></SPAN
3455 > the parameter of this action decides what will be
3456      sent as a replacement.
3457    </P
3458 ></DD
3459 ><DT
3460 >Type:</DT
3461 ><DD
3462 ><P
3463 >Parameterized.</P
3464 ></DD
3465 ><DT
3466 >Parameter:</DT
3467 ><DD
3468 ><P
3469 ></P
3470 ><UL
3471 ><LI
3472 ><P
3473 >      <SPAN
3474 CLASS="QUOTE"
3475 >"pattern"</SPAN
3476 > to send a built-in checkerboard pattern image. The image is visually
3477       decent, scales very well, and makes it obvious where banners were busted.
3478      </P
3479 ></LI
3480 ><LI
3481 ><P
3482 >      <SPAN
3483 CLASS="QUOTE"
3484 >"blank"</SPAN
3485 > to send a built-in transparent image. This makes banners disappear
3486       completely, but makes it hard to detect where <SPAN
3487 CLASS="APPLICATION"
3488 >Privoxy</SPAN
3489 > has blocked
3490       images on a given page and complicates troubleshooting if <SPAN
3491 CLASS="APPLICATION"
3492 >Privoxy</SPAN
3493 >
3494       has blocked innocent images, like navigation icons.
3495      </P
3496 ></LI
3497 ><LI
3498 ><P
3499 >      <SPAN
3500 CLASS="QUOTE"
3501 >"<TT
3502 CLASS="REPLACEABLE"
3503 ><I
3504 >target-url</I
3505 ></TT
3506 >"</SPAN
3507 > to
3508       send a redirect to <TT
3509 CLASS="REPLACEABLE"
3510 ><I
3511 >target-url</I
3512 ></TT
3513 >. You can redirect
3514       to any image anywhere, even in your local filesystem (via <SPAN
3515 CLASS="QUOTE"
3516 >"file:///"</SPAN
3517 > URL).
3518      </P
3519 ><P
3520 >      A good application of redirects is to use special <SPAN
3521 CLASS="APPLICATION"
3522 >Privoxy</SPAN
3523 >-built-in
3524       URLs, which send the built-in images, as <TT
3525 CLASS="REPLACEABLE"
3526 ><I
3527 >target-url</I
3528 ></TT
3529 >.
3530       This has the same visual effect as specifying <SPAN
3531 CLASS="QUOTE"
3532 >"blank"</SPAN
3533 > or <SPAN
3534 CLASS="QUOTE"
3535 >"pattern"</SPAN
3536 > in
3537       the first place, but enables your browser to cache the replacement image, instead of requesting
3538       it over and over again.
3539      </P
3540 ></LI
3541 ></UL
3542 ></DD
3543 ><DT
3544 >Notes:</DT
3545 ><DD
3546 ><P
3547 >    The URLs for the built-in images are <SPAN
3548 CLASS="QUOTE"
3549 >"http://config.privoxy.org/send-banner?type=<TT
3550 CLASS="REPLACEABLE"
3551 ><I
3552 >type</I
3553 ></TT
3554 >"</SPAN
3555 >, where <TT
3556 CLASS="REPLACEABLE"
3557 ><I
3558 >type</I
3559 ></TT
3560 > is
3561     either <SPAN
3562 CLASS="QUOTE"
3563 >"blank"</SPAN
3564 > or <SPAN
3565 CLASS="QUOTE"
3566 >"pattern"</SPAN
3567 >.
3568    </P
3569 ><P
3570 >    There is a third (advanced) type, called <SPAN
3571 CLASS="QUOTE"
3572 >"auto"</SPAN
3573 >. It is <SPAN
3574 CLASS="emphasis"
3575 ><I
3576 CLASS="EMPHASIS"
3577 >NOT</I
3578 ></SPAN
3579 > to be
3580     used in <TT
3581 CLASS="LITERAL"
3582 >set-image-blocker</TT
3583 >, but meant for use from <A
3584 HREF="filter-file.html"
3585 >filters</A
3586 >.
3587     Auto will select the type of image that would have applied to the referring page, had it been an image.
3588    </P
3589 ></DD
3590 ><DT
3591 >Example usage:</DT
3592 ><DD
3593 ><P
3594 >    Built-in pattern:
3595    </P
3596 ><P
3597 >    <TABLE
3598 BORDER="0"
3599 BGCOLOR="#E0E0E0"
3600 WIDTH="90%"
3601 ><TR
3602 ><TD
3603 ><PRE
3604 CLASS="SCREEN"
3605 >+set-image-blocker{pattern}</PRE
3606 ></TD
3607 ></TR
3608 ></TABLE
3609 >
3610    </P
3611 ><P
3612 >    Redirect to the BSD devil:
3613    </P
3614 ><P
3615 >    <TABLE
3616 BORDER="0"
3617 BGCOLOR="#E0E0E0"
3618 WIDTH="90%"
3619 ><TR
3620 ><TD
3621 ><PRE
3622 CLASS="SCREEN"
3623 >+set-image-blocker{http://www.freebsd.org/gifs/dae_up3.gif}</PRE
3624 ></TD
3625 ></TR
3626 ></TABLE
3627 >
3628    </P
3629 ><P
3630 >    Redirect to the built-in pattern for better caching:
3631    </P
3632 ><P
3633 >    <TABLE
3634 BORDER="0"
3635 BGCOLOR="#E0E0E0"
3636 WIDTH="90%"
3637 ><TR
3638 ><TD
3639 ><PRE
3640 CLASS="SCREEN"
3641 >+set-image-blocker{http://config.privoxy.org/send-banner?type=pattern}</PRE
3642 ></TD
3643 ></TR
3644 ></TABLE
3645 >
3646    </P
3647 ></DD
3648 ></DL
3649 ></DIV
3650 ></DIV
3651 ><DIV
3652 CLASS="SECT3"
3653 ><H3
3654 CLASS="SECT3"
3655 ><A
3656 NAME="AEN2638">8.5.21. Summary</H3
3657 ><P
3658 > Note that many of these actions have the potential to cause a page to
3659  misbehave, possibly even not to display at all. There are many ways 
3660  a site designer may choose to design his site, and what HTTP header 
3661  content, and other criteria, he may depend on. There is no way to have hard
3662  and fast rules for all sites. See the <A
3663 HREF="appendix.html#ACTIONSANAT"
3664 >Appendix</A
3665 > for a brief example on troubleshooting
3666  actions.</P
3667 ></DIV
3668 ></DIV
3669 ><DIV
3670 CLASS="SECT2"
3671 ><H2
3672 CLASS="SECT2"
3673 ><A
3674 NAME="ALIASES">8.6. Aliases</H2
3675 ><P
3676 > Custom <SPAN
3677 CLASS="QUOTE"
3678 >"actions"</SPAN
3679 >, known to <SPAN
3680 CLASS="APPLICATION"
3681 >Privoxy</SPAN
3682 >
3683  as <SPAN
3684 CLASS="QUOTE"
3685 >"aliases"</SPAN
3686 >, can be defined by combining other actions.
3687  These can in turn be invoked just like the built-in actions.
3688  Currently, an alias name can contain any character except space, tab,
3689  <SPAN
3690 CLASS="QUOTE"
3691 >"="</SPAN
3692 >,
3693  <SPAN
3694 CLASS="QUOTE"
3695 >"{"</SPAN
3696 > and <SPAN
3697 CLASS="QUOTE"
3698 >"}"</SPAN
3699 >, but we <SPAN
3700 CLASS="emphasis"
3701 ><I
3702 CLASS="EMPHASIS"
3703 >strongly 
3704  recommend</I
3705 ></SPAN
3706 > that you only use <SPAN
3707 CLASS="QUOTE"
3708 >"a"</SPAN
3709 > to <SPAN
3710 CLASS="QUOTE"
3711 >"z"</SPAN
3712 >,
3713  <SPAN
3714 CLASS="QUOTE"
3715 >"0"</SPAN
3716 > to <SPAN
3717 CLASS="QUOTE"
3718 >"9"</SPAN
3719 >, <SPAN
3720 CLASS="QUOTE"
3721 >"+"</SPAN
3722 >, and <SPAN
3723 CLASS="QUOTE"
3724 >"-"</SPAN
3725 >.
3726  Alias names are not case sensitive, and are not required to start with a
3727  <SPAN
3728 CLASS="QUOTE"
3729 >"+"</SPAN
3730 > or <SPAN
3731 CLASS="QUOTE"
3732 >"-"</SPAN
3733 > sign, since they are merely textually
3734  expanded.</P
3735 ><P
3736 > Aliases can be used throughout the actions file, but they <SPAN
3737 CLASS="emphasis"
3738 ><I
3739 CLASS="EMPHASIS"
3740 >must be
3741  defined in a special section at the top of the file!</I
3742 ></SPAN
3743 >
3744  And there can only be one such section per actions file. Each actions file may
3745  have its own alias section, and the aliases defined in it are only visible
3746  within that file.</P
3747 ><P
3748 > There are two main reasons to use aliases: One is to save typing for frequently
3749  used combinations of actions, the other one is a gain in flexibility: If you
3750  decide once how you want to handle shops by defining an alias called
3751  <SPAN
3752 CLASS="QUOTE"
3753 >"shop"</SPAN
3754 >, you can later change your policy on shops in
3755  <SPAN
3756 CLASS="emphasis"
3757 ><I
3758 CLASS="EMPHASIS"
3759 >one</I
3760 ></SPAN
3761 > place, and your changes will take effect everywhere
3762  in the actions file where the <SPAN
3763 CLASS="QUOTE"
3764 >"shop"</SPAN
3765 > alias is used. Calling aliases
3766  by their purpose also makes your actions files more readable.</P
3767 ><P
3768 > Currently, there is one big drawback to using aliases, though:
3769  <SPAN
3770 CLASS="APPLICATION"
3771 >Privoxy</SPAN
3772 >'s built-in web-based action file
3773  editor honors aliases when reading the actions files, but it expands
3774  them before writing. So the effects of your aliases are of course preserved,
3775  but the aliases themselves are lost when you edit sections that use aliases
3776  with it.
3777  This is likely to change in future versions of <SPAN
3778 CLASS="APPLICATION"
3779 >Privoxy</SPAN
3780 >.</P
3781 ><P
3782 > Now let's define some aliases...</P
3783 ><P
3784 > <TABLE
3785 BORDER="0"
3786 BGCOLOR="#E0E0E0"
3787 WIDTH="100%"
3788 ><TR
3789 ><TD
3790 ><PRE
3791 CLASS="SCREEN"
3792 > # Useful custom aliases we can use later.
3793  #
3794  # Note the (required!) section header line and that this section
3795  # must be at the top of the actions file!
3796  #
3797  {{alias}}
3798
3799  # These aliases just save typing later:
3800  # (Note that some already use other aliases!)
3801  #
3802  +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
3803  -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
3804  block-as-image      = +block +handle-as-image
3805  mercy-for-cookies   = -crunch-all-cookies -session-cookies-only
3806
3807  # These aliases define combinations of actions
3808  # that are useful for certain types of sites:
3809  #
3810  fragile     = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups
3811  shop        = -crunch-all-cookies -filter{popups} -kill-popups
3812
3813  # Short names for other aliases, for really lazy people ;-)
3814  #
3815  c0 = +crunch-all-cookies
3816  c1 = -crunch-all-cookies</PRE
3817 ></TD
3818 ></TR
3819 ></TABLE
3820 ></P
3821 ><P
3822 > ...and put them to use. These sections would appear in the lower part of an 
3823  actions file and define exceptions to the default actions (as specified further
3824  up for the <SPAN
3825 CLASS="QUOTE"
3826 >"/"</SPAN
3827 > pattern):</P
3828 ><P
3829 > <TABLE
3830 BORDER="0"
3831 BGCOLOR="#E0E0E0"
3832 WIDTH="100%"
3833 ><TR
3834 ><TD
3835 ><PRE
3836 CLASS="SCREEN"
3837 > # These sites are either very complex or very keen on
3838  # user data and require minimal interference to work:
3839  #
3840  {fragile}
3841  .office.microsoft.com
3842  .windowsupdate.microsoft.com
3843  .nytimes.com
3844
3845  # Shopping sites:
3846  # Allow cookies (for setting and retrieving your customer data)
3847  #           
3848  {shop}
3849  .quietpc.com
3850  .worldpay.com   # for quietpc.com
3851  .scan.co.uk
3852
3853  # These shops require pop-ups:
3854  #
3855  {shop -kill-popups -filter{popups}}
3856   .dabs.com
3857   .overclockers.co.uk</PRE
3858 ></TD
3859 ></TR
3860 ></TABLE
3861 ></P
3862 ><P
3863 > Aliases like <SPAN
3864 CLASS="QUOTE"
3865 >"shop"</SPAN
3866 > and <SPAN
3867 CLASS="QUOTE"
3868 >"fragile"</SPAN
3869 > are often used for 
3870  <SPAN
3871 CLASS="QUOTE"
3872 >"problem"</SPAN
3873 > sites that require some actions to be disabled 
3874  in order to function properly.</P
3875 ></DIV
3876 ><DIV
3877 CLASS="SECT2"
3878 ><H2
3879 CLASS="SECT2"
3880 ><A
3881 NAME="ACT-EXAMPLES">8.7. Actions Files Tutorial</H2
3882 ><P
3883 > The above chapters have shown <A
3884 HREF="actions-file.html"
3885 >which actions files
3886  there are and how they are organized</A
3887 >, how actions are <A
3888 HREF="actions-file.html#ACTIONS"
3889 >specified</A
3890 > and <A
3891 HREF="actions-file.html#ACTIONS-APPLY"
3892 >applied
3893  to URLs</A
3894 >, how <A
3895 HREF="actions-file.html#AF-PATTERNS"
3896 >patterns</A
3897 > work, and how to
3898  define and use <A
3899 HREF="actions-file.html#ALIASES"
3900 >aliases</A
3901 >. Now, let's look at an
3902  example <TT
3903 CLASS="FILENAME"
3904 >default.action</TT
3905 > and <TT
3906 CLASS="FILENAME"
3907 >user.action</TT
3908 >
3909  file and see how all these pieces come together:</P
3910 ><DIV
3911 CLASS="SECT3"
3912 ><H3
3913 CLASS="SECT3"
3914 ><A
3915 NAME="AEN2690">8.7.1. default.action</H3
3916 ><P
3917 >Every config file should start with a short comment stating its purpose:</P
3918 ><P
3919 > <TABLE
3920 BORDER="0"
3921 BGCOLOR="#E0E0E0"
3922 WIDTH="100%"
3923 ><TR
3924 ><TD
3925 ><PRE
3926 CLASS="SCREEN"
3927 ># Sample default.action file &#60;developers@privoxy.org&#62;</PRE
3928 ></TD
3929 ></TR
3930 ></TABLE
3931 ></P
3932 ><P
3933 >Then, since this is the <TT
3934 CLASS="FILENAME"
3935 >default.action</TT
3936 > file, the
3937 first section is a special section for internal use that you needn't
3938 change or worry about:</P
3939 ><P
3940 > <TABLE
3941 BORDER="0"
3942 BGCOLOR="#E0E0E0"
3943 WIDTH="100%"
3944 ><TR
3945 ><TD
3946 ><PRE
3947 CLASS="SCREEN"
3948 >##########################################################################
3949 # Settings -- Don't change! For internal Privoxy use ONLY.
3950 ##########################################################################
3951
3952 {{settings}}
3953 for-privoxy-version=3.0</PRE
3954 ></TD
3955 ></TR
3956 ></TABLE
3957 ></P
3958 ><P
3959 >After that comes the (optional) alias section. We'll use the example
3960 section from the above <A
3961 HREF="actions-file.html#ALIASES"
3962 >chapter on aliases</A
3963 >,
3964 that also explains why and how aliases are used:</P
3965 ><P
3966 > <TABLE
3967 BORDER="0"
3968 BGCOLOR="#E0E0E0"
3969 WIDTH="100%"
3970 ><TR
3971 ><TD
3972 ><PRE
3973 CLASS="SCREEN"
3974 >##########################################################################
3975 # Aliases
3976 ##########################################################################
3977 {{alias}}
3978
3979 # These aliases just save typing later:
3980 # (Note that some already use other aliases!)
3981 #
3982 +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
3983 -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
3984 block-as-image      = +block +handle-as-image
3985 mercy-for-cookies   = -crunch-all-cookies -session-cookies-only
3986
3987 # These aliases define combinations of actions
3988 # that are useful for certain types of sites:
3989 #
3990 fragile     = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups
3991 shop        = mercy-for-cookies -filter{popups} -kill-popups</PRE
3992 ></TD
3993 ></TR
3994 ></TABLE
3995 ></P
3996 ><P
3997 > Now come the regular sections, i.e. sets of actions, accompanied
3998  by URL patterns to which they apply. Remember <SPAN
3999 CLASS="emphasis"
4000 ><I
4001 CLASS="EMPHASIS"
4002 >all actions
4003  are disabled when matching starts</I
4004 ></SPAN
4005 >, so we have to explicitly
4006  enable the ones we want.</P
4007 ><P
4008 > The first regular section is probably the most important. It has only
4009  one pattern, <SPAN
4010 CLASS="QUOTE"
4011 >"<TT
4012 CLASS="LITERAL"
4013 >/</TT
4014 >"</SPAN
4015 >, but this pattern
4016  <A
4017 HREF="actions-file.html#AF-PATTERNS"
4018 >matches all URLs</A
4019 >. Therefore, the
4020  set of actions used in this <SPAN
4021 CLASS="QUOTE"
4022 >"default"</SPAN
4023 > section <SPAN
4024 CLASS="emphasis"
4025 ><I
4026 CLASS="EMPHASIS"
4027 >will
4028  be applied to all requests as a start</I
4029 ></SPAN
4030 >. It can  be partly or
4031  wholly overridden by later matches further down this file, or in user.action,
4032  but it will still be largely responsible for your overall browsing
4033  experience.</P
4034 ><P
4035 > Again, at the start of matching, all actions are disabled, so there is
4036  no real need to disable any actions here, but we will do that nonetheless,
4037  to have a complete listing for your reference. (Remember: a <SPAN
4038 CLASS="QUOTE"
4039 >"+"</SPAN
4040 >
4041  preceding the action name enables the action, a <SPAN
4042 CLASS="QUOTE"
4043 >"-"</SPAN
4044 > disables!).
4045  Also note how this long line has been made more readable by splitting it into
4046  multiple lines with line continuation.</P
4047 ><P
4048 > <TABLE
4049 BORDER="0"
4050 BGCOLOR="#E0E0E0"
4051 WIDTH="100%"
4052 ><TR
4053 ><TD
4054 ><PRE
4055 CLASS="SCREEN"
4056 >##########################################################################
4057 # "Defaults" section:
4058 ##########################################################################
4059  { \
4060  -<A
4061 HREF="actions-file.html#ADD-HEADER"
4062 >add-header</A
4063 > \
4064  -<A
4065 HREF="actions-file.html#BLOCK"
4066 >block</A
4067 > \
4068  -<A
4069 HREF="actions-file.html#CRUNCH-INCOMING-COOKIES"
4070 >crunch-incoming-cookies</A
4071 > \
4072  -<A
4073 HREF="actions-file.html#CRUNCH-OUTGOING-COOKIES"
4074 >crunch-outgoing-cookies</A
4075 > \
4076  +<A
4077 HREF="actions-file.html#DEANIMATE-GIFS"
4078 >deanimate-gifs</A
4079 > \
4080  -<A
4081 HREF="actions-file.html#DOWNGRADE-HTTP-VERSION"
4082 >downgrade-http-version</A
4083 > \
4084  +<A
4085 HREF="actions-file.html#FAST-REDIRECTS"
4086 >fast-redirects</A
4087 > \
4088  +<A
4089 HREF="actions-file.html#FILTER-HTML-ANNOYANCES"
4090 >filter{html-annoyances}</A
4091 > \
4092  +<A
4093 HREF="actions-file.html#FILTER-JS-ANNOYANCES"
4094 >filter{js-annoyances}</A
4095 > \
4096  -<A
4097 HREF="actions-file.html#FILTER-CONTENT-COOKIES"
4098 >filter{content-cookies}</A
4099 > \
4100  +<A
4101 HREF="actions-file.html#FILTER-POPUPS"
4102 >filter{popups}</A
4103 > \
4104  +<A
4105 HREF="actions-file.html#FILTER-WEBBUGS"
4106 >filter{webbugs}</A
4107 > \
4108  -<A
4109 HREF="actions-file.html#FILTER-REFRESH-TAGS"
4110 >filter{refresh-tags}</A
4111 > \
4112  -<A
4113 HREF="actions-file.html#FILTER-FUN"
4114 >filter{fun}</A
4115 > \
4116  +<A
4117 HREF="actions-file.html#FILTER-NIMDA"
4118 >filter{nimda}</A
4119 > \
4120  +<A
4121 HREF="actions-file.html#FILTER-BANNERS-BY-SIZE"
4122 >filter{banners-by-size}</A
4123 > \
4124  -<A
4125 HREF="actions-file.html#FILTER-SHOCKWAVE-FLASH"
4126 >filter{shockwave-flash}</A
4127 > \
4128  -<A
4129 HREF="actions-file.html#FILTER-CRUDE-PARENTAL"
4130 >filter{crude-parental}</A
4131 > \
4132  -<A
4133 HREF="actions-file.html#HANDLE-AS-IMAGE"
4134 >handle-as-image</A
4135 > \
4136  +<A
4137 HREF="actions-file.html#HIDE-FORWARDED-FOR-HEADERS"
4138 >hide-forwarded-for-headers</A
4139 > \
4140  +<A
4141 HREF="actions-file.html#HIDE-FROM-HEADER"
4142 >hide-from-header{block}</A
4143 > \
4144  +<A
4145 HREF="actions-file.html#HIDE-REFERER"
4146 >hide-referrer{forge}</A
4147 > \
4148  -<A
4149 HREF="actions-file.html#HIDE-USER-AGENT"
4150 >hide-user-agent</A
4151 > \
4152  -<A
4153 HREF="actions-file.html#KILL-POPUPS"
4154 >kill-popups</A
4155 > \
4156  -<A
4157 HREF="actions-file.html#LIMIT-CONNECT"
4158 >limit-connect</A
4159 > \
4160  +<A
4161 HREF="actions-file.html#PREVENT-COMPRESSION"
4162 >prevent-compression</A
4163 > \
4164  -<A
4165 HREF="actions-file.html#SEND-VANILLA-WAFER"
4166 >send-vanilla-wafer</A
4167 > \
4168  -<A
4169 HREF="actions-file.html#SEND-WAFER"
4170 >send-wafer</A
4171 > \
4172  +<A
4173 HREF="actions-file.html#SESSION-COOKIES-ONLY"
4174 >session-cookies-only</A
4175 > \
4176  +<A
4177 HREF="actions-file.html#SET-IMAGE-BLOCKER"
4178 >set-image-blocker{pattern}</A
4179 > \
4180  }
4181  / # forward slash will match *all* potential URL patterns.</PRE
4182 ></TD
4183 ></TR
4184 ></TABLE
4185 ></P
4186 ><P
4187 > The default behavior is now set. Note that some actions, like not hiding
4188  the user agent, are part of a <SPAN
4189 CLASS="QUOTE"
4190 >"general policy"</SPAN
4191 > that applies
4192  universally and won't get any exceptions defined later. Other choices,
4193  like not blocking (which is <SPAN
4194 CLASS="emphasis"
4195 ><I
4196 CLASS="EMPHASIS"
4197 >understandably</I
4198 ></SPAN
4199 > the
4200  default!) need exceptions, i.e. we need to specify explicitly what we
4201  want to block in later sections.
4202  We will also want to make exceptions from our general pop-up-killing,
4203  and use our defined aliases for that.</P
4204 ><P
4205 > The first of our specialized sections is concerned with <SPAN
4206 CLASS="QUOTE"
4207 >"fragile"</SPAN
4208 >
4209  sites, i.e. sites that require minimum interference, because they are either
4210  very complex or very keen on tracking you (and have mechanisms in place that
4211  make them unusable for people who avoid being tracked). We will simply use
4212  our pre-defined <TT
4213 CLASS="LITERAL"
4214 >fragile</TT
4215 > alias instead of stating the list
4216  of actions explicitly:</P
4217 ><P
4218 > <TABLE
4219 BORDER="0"
4220 BGCOLOR="#E0E0E0"
4221 WIDTH="100%"
4222 ><TR
4223 ><TD
4224 ><PRE
4225 CLASS="SCREEN"
4226 >##########################################################################
4227 # Exceptions for sites that'll break under the default action set:
4228 ##########################################################################
4229
4230 # "Fragile" Use a minimum set of actions for these sites (see alias above):
4231 #
4232 { fragile }
4233 .office.microsoft.com           # surprise, surprise!
4234 .windowsupdate.microsoft.com</PRE
4235 ></TD
4236 ></TR
4237 ></TABLE
4238 ></P
4239 ><P
4240 > Shopping sites are not as fragile, but they typically
4241  require cookies to log in, and pop-up windows for shopping
4242  carts or item details. Again, we'll use a pre-defined alias:</P
4243 ><P
4244 > <TABLE
4245 BORDER="0"
4246 BGCOLOR="#E0E0E0"
4247 WIDTH="100%"
4248 ><TR
4249 ><TD
4250 ><PRE
4251 CLASS="SCREEN"
4252 ># Shopping sites:
4253 #
4254 { shop }
4255 .quietpc.com 
4256 .worldpay.com   # for quietpc.com
4257 .jungle.com
4258 .scan.co.uk</PRE
4259 ></TD
4260 ></TR
4261 ></TABLE
4262 ></P
4263 ><P
4264 > Then, there are sites which rely on pop-up windows (yuck!) to work.
4265  Since we made pop-up-killing our default above, we need to make exceptions
4266  now. <A
4267 HREF="http://www.mozilla.org/"
4268 TARGET="_top"
4269 >Mozilla</A
4270 > users, who
4271  can turn on smart handling of unwanted pop-ups in their browsers, can
4272  safely choose
4273  -<TT
4274 CLASS="LITERAL"
4275 ><A
4276 HREF="actions-file.html#FILTER-POPUPS"
4277 >filter{popups}</A
4278 ></TT
4279 > (and
4280  -<TT
4281 CLASS="LITERAL"
4282 ><A
4283 HREF="actions-file.html#KILL-POPUPS"
4284 >kill-popups</A
4285 ></TT
4286 >) above
4287  and hence don't need this section. Anyway, disabling an already disabled
4288  action doesn't hurt, so we'll define our exceptions regardless of what was
4289  chosen in the defaults section:</P
4290 ><P
4291 > <TABLE
4292 BORDER="0"
4293 BGCOLOR="#E0E0E0"
4294 WIDTH="100%"
4295 ><TR
4296 ><TD
4297 ><PRE
4298 CLASS="SCREEN"
4299 ># These sites require pop-ups too :( 
4300 #
4301 { -<A
4302 HREF="actions-file.html#KILL-POPUPS"
4303 >kill-popups</A
4304 > -<A
4305 HREF="actions-file.html#FILTER-POPUPS"
4306 >filter{popups}</A
4307 > }
4308 .dabs.com
4309 .overclockers.co.uk
4310 .deutsche-bank-24.de</PRE
4311 ></TD
4312 ></TR
4313 ></TABLE
4314 ></P
4315 ><P
4316 > The <TT
4317 CLASS="LITERAL"
4318 ><A
4319 HREF="actions-file.html#FAST-REDIRECTS"
4320 >fast-redirects</A
4321 ></TT
4322 >
4323  action, which we enabled per default above,  breaks some sites. So disable
4324  it for popular sites where we know it misbehaves:</P
4325 ><P
4326 > <TABLE
4327 BORDER="0"
4328 BGCOLOR="#E0E0E0"
4329 WIDTH="100%"
4330 ><TR
4331 ><TD
4332 ><PRE
4333 CLASS="SCREEN"
4334 >{ -<A
4335 HREF="actions-file.html#FAST-REDIRECTS"
4336 >fast-redirects</A
4337 > }
4338 login.yahoo.com
4339 edit.*.yahoo.com
4340 .google.com
4341 .altavista.com/.*(like|url|link):http
4342 .altavista.com/trans.*urltext=http
4343 .nytimes.com</PRE
4344 ></TD
4345 ></TR
4346 ></TABLE
4347 ></P
4348 ><P
4349 > It is important that <SPAN
4350 CLASS="APPLICATION"
4351 >Privoxy</SPAN
4352 > knows which
4353  URLs belong to images, so that <SPAN
4354 CLASS="emphasis"
4355 ><I
4356 CLASS="EMPHASIS"
4357 >if</I
4358 ></SPAN
4359 > they are to
4360  be blocked, a substitute image can be sent, rather than an HTML page.
4361  Contacting the remote site to find out is not an option, since it
4362  would destroy the loading time advantage of banner blocking, and it
4363  would feed the advertisers (in terms of money <SPAN
4364 CLASS="emphasis"
4365 ><I
4366 CLASS="EMPHASIS"
4367 >and</I
4368 ></SPAN
4369 >
4370  information). We can mark any URL as an image with the <TT
4371 CLASS="LITERAL"
4372 ><A
4373 HREF="actions-file.html#HANDLE-AS-IMAGE"
4374 >handle-as-image</A
4375 ></TT
4376 > action,
4377  and marking all URLs that end in a known image file extension is a
4378  good start:</P
4379 ><P
4380 > <TABLE
4381 BORDER="0"
4382 BGCOLOR="#E0E0E0"
4383 WIDTH="100%"
4384 ><TR
4385 ><TD
4386 ><PRE
4387 CLASS="SCREEN"
4388 >##########################################################################
4389 # Images:
4390 ##########################################################################
4391
4392 # Define which file types will be treated as images, in case they get
4393 # blocked further down this file:
4394 #
4395 { +<A
4396 HREF="actions-file.html#HANDLE-AS-IMAGE"
4397 >handle-as-image</A
4398 > }
4399 /.*\.(gif|jpe?g|png|bmp|ico)$</PRE
4400 ></TD
4401 ></TR
4402 ></TABLE
4403 ></P
4404 ><P
4405 > And then there are known banner sources. They often use scripts to
4406  generate the banners, so it won't be visible from the URL that the
4407  request is for an image. Hence we block them <SPAN
4408 CLASS="emphasis"
4409 ><I
4410 CLASS="EMPHASIS"
4411 >and</I
4412 ></SPAN
4413 >
4414  mark them as images in one go, with the help of our
4415  <TT
4416 CLASS="LITERAL"
4417 >block-as-image</TT
4418 > alias defined above. (We could of
4419  course just as well use <TT
4420 CLASS="LITERAL"
4421 >+<A
4422 HREF="actions-file.html#BLOCK"
4423 >block</A
4424 >
4425  +<A
4426 HREF="actions-file.html#HANDLE-AS-IMAGE"
4427 >handle-as-image</A
4428 ></TT
4429 > here.)
4430  Remember that the type of the replacement image is chosen by the
4431  <TT
4432 CLASS="LITERAL"
4433 ><A
4434 HREF="actions-file.html#SET-IMAGE-BLOCKER"
4435 >set-image-blocker</A
4436 ></TT
4437 >
4438  action. Since all URLs have matched the default section with its
4439  <TT
4440 CLASS="LITERAL"
4441 >+<A
4442 HREF="actions-file.html#SET-IMAGE-BLOCKER"
4443 >set-image-blocker</A
4444 >{pattern}</TT
4445 >
4446  action before, it still applies and needn't be repeated:</P
4447 ><P
4448 > <TABLE
4449 BORDER="0"
4450 BGCOLOR="#E0E0E0"
4451 WIDTH="100%"
4452 ><TR
4453 ><TD
4454 ><PRE
4455 CLASS="SCREEN"
4456 ># Known ad generators:
4457 #
4458 { block-as-image }
4459 ar.atwola.com 
4460 .ad.doubleclick.net
4461 .ad.*.doubleclick.net
4462 .a.yimg.com/(?:(?!/i/).)*$
4463 .a[0-9].yimg.com/(?:(?!/i/).)*$
4464 bs*.gsanet.com
4465 bs*.einets.com
4466 .qkimg.net</PRE
4467 ></TD
4468 ></TR
4469 ></TABLE
4470 ></P
4471 ><P
4472 > One of the most important jobs of <SPAN
4473 CLASS="APPLICATION"
4474 >Privoxy</SPAN
4475 >
4476  is to block banners. A huge bunch of them are already <SPAN
4477 CLASS="QUOTE"
4478 >"blocked"</SPAN
4479 >
4480  by the <TT
4481 CLASS="LITERAL"
4482 ><A
4483 HREF="actions-file.html#FILTER"
4484 >filter</A
4485 >{banners-by-size}</TT
4486 >
4487  action, which we enabled above, and which deletes the references to banner
4488  images from the pages while they are loaded, so the browser doesn't request
4489  them anymore, and hence they don't need to be blocked here. But this naturally
4490  doesn't catch all banners, and some people choose not to use filters, so we
4491  need a comprehensive list of patterns for banner URLs here, and apply the
4492  <TT
4493 CLASS="LITERAL"
4494 ><A
4495 HREF="actions-file.html#BLOCK"
4496 >block</A
4497 ></TT
4498 > action to them.</P
4499 ><P
4500 > First comes a bunch of generic patterns, which do most of the work, by
4501  matching typical domain and path name components of banners. Then comes
4502  a list of individual patterns for specific sites, which is omitted here
4503  to keep the example short:</P
4504 ><P
4505 > <TABLE
4506 BORDER="0"
4507 BGCOLOR="#E0E0E0"
4508 WIDTH="100%"
4509 ><TR
4510 ><TD
4511 ><PRE
4512 CLASS="SCREEN"
4513 >##########################################################################
4514 # Block these fine banners:
4515 ##########################################################################
4516 { <A
4517 HREF="actions-file.html#BLOCK"
4518 >+block</A
4519 > }
4520
4521 # Generic patterns:
4522
4523 ad*.
4524 .*ads.
4525 banner?.
4526 count*.
4527 /.*count(er)?\.(pl|cgi|exe|dll|asp|php[34]?)
4528 /(?:.*/)?(publicite|werbung|rekla(ma|me|am)|annonse|maino(kset|nta|s)?)/
4529
4530 # Site-specific patterns (abbreviated):
4531 #
4532 .hitbox.com</PRE
4533 ></TD
4534 ></TR
4535 ></TABLE
4536 ></P
4537 ><P
4538 > You wouldn't believe how many advertisers actually call their banner
4539  servers ads.<TT
4540 CLASS="REPLACEABLE"
4541 ><I
4542 >company</I
4543 ></TT
4544 >.com, or call the directory
4545  in which the banners are stored simply <SPAN
4546 CLASS="QUOTE"
4547 >"banners"</SPAN
4548 >. So the above
4549  generic patterns are surprisingly effective.</P
4550 ><P
4551 > But being very generic, they necessarily also catch URLs that we don't want
4552  to block. The pattern <TT
4553 CLASS="LITERAL"
4554 >.*ads.</TT
4555 > e.g. catches 
4556  <SPAN
4557 CLASS="QUOTE"
4558 >"nasty-<SPAN
4559 CLASS="emphasis"
4560 ><I
4561 CLASS="EMPHASIS"
4562 >ads</I
4563 ></SPAN
4564 >.nasty-corp.com"</SPAN
4565 > as intended,
4566  but also <SPAN
4567 CLASS="QUOTE"
4568 >"downlo<SPAN
4569 CLASS="emphasis"
4570 ><I
4571 CLASS="EMPHASIS"
4572 >ads</I
4573 ></SPAN
4574 >.sourcefroge.net"</SPAN
4575 > or
4576  <SPAN
4577 CLASS="QUOTE"
4578 >"<SPAN
4579 CLASS="emphasis"
4580 ><I
4581 CLASS="EMPHASIS"
4582 >ads</I
4583 ></SPAN
4584 >l.some-provider.net."</SPAN
4585 > So here come some
4586  well-known exceptions to the <TT
4587 CLASS="LITERAL"
4588 >+<A
4589 HREF="actions-file.html#BLOCK"
4590 >block</A
4591 ></TT
4592 >
4593  section above.</P
4594 ><P
4595 > Note that these are exceptions to exceptions from the default! Consider the URL
4596  <SPAN
4597 CLASS="QUOTE"
4598 >"downloads.sourcefroge.net"</SPAN
4599 >: Initially, all actions are deactivated,
4600  so it wouldn't get blocked. Then comes the defaults section, which matches the
4601  URL, but just deactivates the <TT
4602 CLASS="LITERAL"
4603 ><A
4604 HREF="actions-file.html#BLOCK"
4605 >block</A
4606 ></TT
4607 >
4608  action once again. Then it matches <TT
4609 CLASS="LITERAL"
4610 >.*ads.</TT
4611 >, an exception to the
4612  general non-blocking policy, and suddenly
4613  <TT
4614 CLASS="LITERAL"
4615 ><A
4616 HREF="actions-file.html#BLOCK"
4617 >+block</A
4618 ></TT
4619 > applies. And now, it'll match
4620  <TT
4621 CLASS="LITERAL"
4622 >.*loads.</TT
4623 >, where <TT
4624 CLASS="LITERAL"
4625 ><A
4626 HREF="actions-file.html#BLOCK"
4627 >-block</A
4628 ></TT
4629 >
4630  applies, so (unless it matches <SPAN
4631 CLASS="emphasis"
4632 ><I
4633 CLASS="EMPHASIS"
4634 >again</I
4635 ></SPAN
4636 > further down) it ends up
4637  with no <TT
4638 CLASS="LITERAL"
4639 ><A
4640 HREF="actions-file.html#BLOCK"
4641 >block</A
4642 ></TT
4643 > action applying.</P
4644 ><P
4645 > <TABLE
4646 BORDER="0"
4647 BGCOLOR="#E0E0E0"
4648 WIDTH="100%"
4649 ><TR
4650 ><TD
4651 ><PRE
4652 CLASS="SCREEN"
4653 >##########################################################################
4654 # Save some innocent victims of the above generic block patterns:
4655 ##########################################################################
4656
4657 # By domain:
4658
4659 { -<A
4660 HREF="actions-file.html#BLOCK"
4661 >block</A
4662 > }
4663 adv[io]*.  # (for advogato.org and advice.*)
4664 adsl.      # (has nothing to do with ads)
4665 ad[ud]*.   # (adult.* and add.*)
4666 .edu       # (universities don't host banners (yet!))
4667 .*loads.   # (downloads, uploads etc)
4668
4669 # By path:
4670 #
4671 /.*loads/
4672
4673 # Site-specific:
4674 #
4675 www.globalintersec.com/adv # (adv = advanced)
4676 www.ugu.com/sui/ugu/adv</PRE
4677 ></TD
4678 ></TR
4679 ></TABLE
4680 ></P
4681 ><P
4682 > Filtering source code can have nasty side effects,
4683  so make an exception for our friends at sourceforge.net,
4684  and all paths with <SPAN
4685 CLASS="QUOTE"
4686 >"cvs"</SPAN
4687 > in them. Note that
4688  <TT
4689 CLASS="LITERAL"
4690 >-<A
4691 HREF="actions-file.html#FILTER"
4692 >filter</A
4693 ></TT
4694 >
4695  disables <SPAN
4696 CLASS="emphasis"
4697 ><I
4698 CLASS="EMPHASIS"
4699 >all</I
4700 ></SPAN
4701 > filters in one fell swoop!</P
4702 ><P
4703 > <TABLE
4704 BORDER="0"
4705 BGCOLOR="#E0E0E0"
4706 WIDTH="100%"
4707 ><TR
4708 ><TD
4709 ><PRE
4710 CLASS="SCREEN"
4711 ># Don't filter code!
4712 #
4713 { -<A
4714 HREF="actions-file.html#FILTER"
4715 >filter</A
4716 > }
4717 /.*cvs
4718 .sourceforge.net</PRE
4719 ></TD
4720 ></TR
4721 ></TABLE
4722 ></P
4723 ><P
4724 > The actual <TT
4725 CLASS="FILENAME"
4726 >default.action</TT
4727 > is of course more
4728  comprehensive, but we hope this example made clear how it works.</P
4729 ></DIV
4730 ><DIV
4731 CLASS="SECT3"
4732 ><H3
4733 CLASS="SECT3"
4734 ><A
4735 NAME="AEN2844">8.7.2. user.action</H3
4736 ><P
4737 > So far we are painting with a broad brush by setting general policies,
4738  which would be a reasonable starting point for many people. Now, 
4739  you might want to be more specific and have customized rules that
4740  are more suitable to your personal habits and preferences. These would
4741  be for narrowly defined situations like your ISP or your bank, and should
4742  be placed in <TT
4743 CLASS="FILENAME"
4744 >user.action</TT
4745 >, which is parsed after all other 
4746  actions files and hence has the last word, over-riding any previously
4747  defined actions. <TT
4748 CLASS="FILENAME"
4749 >user.action</TT
4750 > is also a 
4751  <SPAN
4752 CLASS="emphasis"
4753 ><I
4754 CLASS="EMPHASIS"
4755 >safe</I
4756 ></SPAN
4757 > place for your personal settings, since
4758  <TT
4759 CLASS="FILENAME"
4760 >default.action</TT
4761 > is actively maintained by the
4762  <SPAN
4763 CLASS="APPLICATION"
4764 >Privoxy</SPAN
4765 > developers and you'll probably want
4766  to install updated versions from time to time.</P
4767 ><P
4768 > So let's look at a few examples of things that one might typically do in
4769  <TT
4770 CLASS="FILENAME"
4771 >user.action</TT
4772 >: </P
4773 ><P
4774 > <TABLE
4775 BORDER="0"
4776 BGCOLOR="#E0E0E0"
4777 WIDTH="100%"
4778 ><TR
4779 ><TD
4780 ><PRE
4781 CLASS="SCREEN"
4782 ># My user.action file. &#60;fred@foobar.com&#62;</PRE
4783 ></TD
4784 ></TR
4785 ></TABLE
4786 ></P
4787 ><P
4788 > As <A
4789 HREF="actions-file.html#ALIASES"
4790 >aliases</A
4791 > are local to the actions
4792  file that they are defined in, you can't use the ones from
4793  <TT
4794 CLASS="FILENAME"
4795 >default.action</TT
4796 >, unless you repeat them here:</P
4797 ><P
4798 > <TABLE
4799 BORDER="0"
4800 BGCOLOR="#E0E0E0"
4801 WIDTH="100%"
4802 ><TR
4803 ><TD
4804 ><PRE
4805 CLASS="SCREEN"
4806 ># (Re-)define aliases for this file:
4807 #
4808 {{alias}}
4809 -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
4810 mercy-for-cookies   = -crunch-all-cookies -session-cookies-only
4811 fragile     = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups
4812 shop        = mercy-for-cookies -filter{popups} -kill-popups
4813 allow-ads   = -block -filter{banners-by-size} # (see below)</PRE
4814 ></TD
4815 ></TR
4816 ></TABLE
4817 >
4818  </P
4819 ><P
4820 > Say you have accounts on some sites that you visit regularly, and
4821  you don't want to have to log in manually each time. So you'd like
4822  to allow persistent cookies for these sites. The
4823  <TT
4824 CLASS="LITERAL"
4825 >mercy-for-cookies</TT
4826 > alias defined above does exactly
4827  that, i.e. it disables crunching of cookies in any direction, and
4828  processing of cookies to make them temporary.</P
4829 ><P
4830 > <TABLE
4831 BORDER="0"
4832 BGCOLOR="#E0E0E0"
4833 WIDTH="100%"
4834 ><TR
4835 ><TD
4836 ><PRE
4837 CLASS="SCREEN"
4838 >{ mercy-for-cookies }
4839 sunsolve.sun.com
4840 slashdot.org
4841 .yahoo.com
4842 .msdn.microsoft.com
4843 .redhat.com</PRE
4844 ></TD
4845 ></TR
4846 ></TABLE
4847 ></P
4848 ><P
4849 > Your bank needs popups and is allergic to some filter, but you don't
4850  know which, so you disable them all:</P
4851 ><P
4852 > <TABLE
4853 BORDER="0"
4854 BGCOLOR="#E0E0E0"
4855 WIDTH="100%"
4856 ><TR
4857 ><TD
4858 ><PRE
4859 CLASS="SCREEN"
4860 >{ -<A
4861 HREF="actions-file.html#FILTER"
4862 >filter</A
4863 > -<A
4864 HREF="actions-file.html#KILL-POPUPS"
4865 >kill-popups</A
4866 > }
4867 .your-home-banking-site.com</PRE
4868 ></TD
4869 ></TR
4870 ></TABLE
4871 ></P
4872 ><P
4873 > While browsing the web with <SPAN
4874 CLASS="APPLICATION"
4875 >Privoxy</SPAN
4876 > you
4877  noticed some ads that sneaked through, but you were too lazy to
4878  report them through our fine and easy <A
4879 HREF="contact.html"
4880 >feedback</A
4881 >
4882  system, so you have added them here:</P
4883 ><P
4884 > <TABLE
4885 BORDER="0"
4886 BGCOLOR="#E0E0E0"
4887 WIDTH="100%"
4888 ><TR
4889 ><TD
4890 ><PRE
4891 CLASS="SCREEN"
4892 >{ +<A
4893 HREF="actions-file.html#BLOCK"
4894 >block</A
4895 > }
4896 www.a-popular-site.com/some/unobvious/path
4897 another.popular.site.net/more/junk/here/</PRE
4898 ></TD
4899 ></TR
4900 ></TABLE
4901 ></P
4902 ><P
4903 > Note that, assuming the banners in the above example have regular image
4904  extensions (most do),
4905  <TT
4906 CLASS="LITERAL"
4907 >+<A
4908 HREF="actions-file.html#HANDLE-AS-IMAGE"
4909 >handle-as-image</A
4910 ></TT
4911 >
4912  need not be specified, since all URLs ending in these extensions will
4913  already have been tagged as images in the relevant section of 
4914  <TT
4915 CLASS="FILENAME"
4916 >default.action</TT
4917 > by now.</P
4918 ><P
4919 > Then you noticed that the default configuration breaks Forbes Magazine,
4920  but you were too lazy to find out which action is the culprit, and you
4921  were again too lazy to give <A
4922 HREF="contact.html"
4923 >feedback</A
4924 >, so
4925  you just used the <TT
4926 CLASS="LITERAL"
4927 >fragile</TT
4928 > alias on the site, and
4929  -- whoa! -- it worked:</P
4930 ><P
4931 ><TABLE
4932 BORDER="0"
4933 BGCOLOR="#E0E0E0"
4934 WIDTH="100%"
4935 ><TR
4936 ><TD
4937 ><PRE
4938 CLASS="SCREEN"
4939 >{ fragile }
4940 .forbes.com</PRE
4941 ></TD
4942 ></TR
4943 ></TABLE
4944 ></P
4945 ><P
4946 > You like the <SPAN
4947 CLASS="QUOTE"
4948 >"fun"</SPAN
4949 > text replacements in <TT
4950 CLASS="FILENAME"
4951 >default.filter</TT
4952 >,
4953  but it is disabled in the distributed actions file. (My colleagues on the team just
4954  don't have a sense of humour, that's why! ;-). So you'd like to turn it on in your private,
4955  update-safe config, once and for all:</P
4956 ><P
4957 ><TABLE
4958 BORDER="0"
4959 BGCOLOR="#E0E0E0"
4960 WIDTH="100%"
4961 ><TR
4962 ><TD
4963 ><PRE
4964 CLASS="SCREEN"
4965 >{ +<A
4966 HREF="actions-file.html#FILTER-FUN"
4967 >filter{fun}</A
4968 > }
4969 / # For ALL sites!</PRE
4970 ></TD
4971 ></TR
4972 ></TABLE
4973 ></P
4974 ><P
4975 > Note that the above is not really a good idea: There are exceptions
4976  to the filters in <TT
4977 CLASS="FILENAME"
4978 >default.action</TT
4979 > for things that
4980  really shouldn't be filtered, like code on CVS-&#62;Web interfaces. Since
4981  <TT
4982 CLASS="FILENAME"
4983 >user.action</TT
4984 > has the last word, these exceptions
4985  won't be valid for the <SPAN
4986 CLASS="QUOTE"
4987 >"fun"</SPAN
4988 > filtering specified here.</P
4989 ><P
4990 > Finally, you might think about how your favourite free websites are
4991  funded, and find that they rely on displaying banner advertisements
4992  to survive. So you might want to specifically allow banners for those
4993  sites that you feel provide value to you:</P
4994 ><P
4995 ><TABLE
4996 BORDER="0"
4997 BGCOLOR="#E0E0E0"
4998 WIDTH="100%"
4999 ><TR
5000 ><TD
5001 ><PRE
5002 CLASS="SCREEN"
5003 >{ allow-ads }
5004 .sourceforge.net
5005 .slashdot.org
5006 .osdn.net</PRE
5007 ></TD
5008 ></TR
5009 ></TABLE
5010 >   </P
5011 ><P
5012 > Note that <TT
5013 CLASS="LITERAL"
5014 >allow-ads</TT
5015 > has been aliased to 
5016  <TT
5017 CLASS="LITERAL"
5018 >-<A
5019 HREF="actions-file.html#BLOCK"
5020 >block</A
5021 ></TT
5022 >
5023  <TT
5024 CLASS="LITERAL"
5025 >-<A
5026 HREF="actions-file.html#FILTER-BANNERS-BY-SIZE"
5027 >filter{banners-by-size}</A
5028 ></TT
5029 >
5030  above.</P
5031 ></DIV
5032 ></DIV
5033 ></DIV
5034 ><DIV
5035 CLASS="NAVFOOTER"
5036 ><HR
5037 ALIGN="LEFT"
5038 WIDTH="100%"><TABLE
5039 SUMMARY="Footer navigation table"
5040 WIDTH="100%"
5041 BORDER="0"
5042 CELLPADDING="0"
5043 CELLSPACING="0"
5044 ><TR
5045 ><TD
5046 WIDTH="33%"
5047 ALIGN="left"
5048 VALIGN="top"
5049 ><A
5050 HREF="config.html"
5051 ACCESSKEY="P"
5052 >Prev</A
5053 ></TD
5054 ><TD
5055 WIDTH="34%"
5056 ALIGN="center"
5057 VALIGN="top"
5058 ><A
5059 HREF="index.html"
5060 ACCESSKEY="H"
5061 >Home</A
5062 ></TD
5063 ><TD
5064 WIDTH="33%"
5065 ALIGN="right"
5066 VALIGN="top"
5067 ><A
5068 HREF="filter-file.html"
5069 ACCESSKEY="N"
5070 >Next</A
5071 ></TD
5072 ></TR
5073 ><TR
5074 ><TD
5075 WIDTH="33%"
5076 ALIGN="left"
5077 VALIGN="top"
5078 >The Main Configuration File</TD
5079 ><TD
5080 WIDTH="34%"
5081 ALIGN="center"
5082 VALIGN="top"
5083 >&nbsp;</TD
5084 ><TD
5085 WIDTH="33%"
5086 ALIGN="right"
5087 VALIGN="top"
5088 >The Filter File</TD
5089 ></TR
5090 ></TABLE
5091 ></DIV
5092 ></BODY
5093 ></HTML
5094 >