Generated
[privoxy.git] / doc / webserver / faq / configuration.html
1 <HTML
2 ><HEAD
3 ><TITLE
4 >Configuration</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
8 REL="HOME"
9 TITLE="Privoxy Frequently Asked Questions"
10 HREF="index.html"><LINK
11 REL="PREVIOUS"
12 TITLE="Installation"
13 HREF="installation.html"><LINK
14 REL="NEXT"
15 TITLE="Miscellaneous"
16 HREF="misc.html"><LINK
17 REL="STYLESHEET"
18 TYPE="text/css"
19 HREF="../p_doc.css"></HEAD
20 ><BODY
21 CLASS="SECT1"
22 BGCOLOR="#EEEEEE"
23 TEXT="#000000"
24 LINK="#0000FF"
25 VLINK="#840084"
26 ALINK="#0000FF"
27 ><DIV
28 CLASS="NAVHEADER"
29 ><TABLE
30 WIDTH="100%"
31 BORDER="0"
32 CELLPADDING="0"
33 CELLSPACING="0"
34 ><TR
35 ><TH
36 COLSPAN="3"
37 ALIGN="center"
38 >Privoxy Frequently Asked Questions</TH
39 ></TR
40 ><TR
41 ><TD
42 WIDTH="10%"
43 ALIGN="left"
44 VALIGN="bottom"
45 ><A
46 HREF="installation.html"
47 >Prev</A
48 ></TD
49 ><TD
50 WIDTH="80%"
51 ALIGN="center"
52 VALIGN="bottom"
53 ></TD
54 ><TD
55 WIDTH="10%"
56 ALIGN="right"
57 VALIGN="bottom"
58 ><A
59 HREF="misc.html"
60 >Next</A
61 ></TD
62 ></TR
63 ></TABLE
64 ><HR
65 ALIGN="LEFT"
66 WIDTH="100%"></DIV
67 ><DIV
68 CLASS="SECT1"
69 ><H1
70 CLASS="SECT1"
71 ><A
72 NAME="CONFIGURATION"
73 >3. Configuration</A
74 ></H1
75 ><DIV
76 CLASS="SECT2"
77 ><H3
78 CLASS="SECT2"
79 ><A
80 NAME="GETUPDATES"
81 >3.1. Where can I get updated Actions Files?</A
82 ></H3
83 ><P
84 >   Based on your feedback and the continuing development, updated actions files will be
85    made available on the <A
86 HREF="http://sourceforge.net/project/showfiles.php?group_id=11118"
87 TARGET="_top"
88 >files section</A
89 > of
90   our <A
91 HREF="http://sf.net/projects/ijbswa/"
92 TARGET="_top"
93 >project page</A
94 >.
95  </P
96 ><P
97 >  If you wish to receive an email notification whenever we release updates of
98   <SPAN
99 CLASS="APPLICATION"
100 >Privoxy</SPAN
101 > or the actions file, <A
102 HREF="http://lists.sourceforge.net/lists/listinfo/ijbswa-announce/"
103 TARGET="_top"
104 >subscribe
105   to our announce  mailing list</A
106 >, ijbswa-announce@lists.sourceforge.net.
107  </P
108 ></DIV
109 ><DIV
110 CLASS="SECT2"
111 ><H3
112 CLASS="SECT2"
113 ><A
114 NAME="NEWCONFIG"
115 >3.2. Can I use my old config files?</A
116 ></H3
117 ><P
118 >   The syntax, number, and purpose of configuration files has substantially
119    changed from <SPAN
120 CLASS="APPLICATION"
121 >Junkbuster</SPAN
122 > and earlier versions
123    of <SPAN
124 CLASS="APPLICATION"
125 >Privoxy</SPAN
126 >. The old files, like <TT
127 CLASS="FILENAME"
128 >blocklist</TT
129 >
130    will not work at all. If you are upgrading from a 2.0.x version, you will
131    need to port your configuration data to the new format. Note that even the
132    pattern syntax has changed! Even configuration files from the 2.9.x versions
133    will need to be adapted, as configuration syntax has been very much in flow
134    in the 2.9.x series.
135  </P
136 ></DIV
137 ><DIV
138 CLASS="SECT2"
139 ><H3
140 CLASS="SECT2"
141 ><A
142 NAME="AEN266"
143 >3.3. What is an <SPAN
144 CLASS="QUOTE"
145 >"actions"</SPAN
146 > file?</A
147 ></H3
148 ><P
149 > <A
150 HREF="../user-manual/actions-file.html"
151 TARGET="_top"
152 >Actions files</A
153 >
154  are where various <A
155 HREF="../user-manual/actions-file.html#ACTIONS"
156 TARGET="_top"
157 >actions</A
158 >
159  that <SPAN
160 CLASS="APPLICATION"
161 >Privoxy</SPAN
162 > might take while processing a certain
163  request, are configured. Typically, you would define a set of default actions
164  that apply to all URLs, then add exceptions to these defaults where needed.</P
165 ><P
166 > Actions can be defined on a <A
167 HREF="../user-manual/actions-file.html#AF-PATTERNS"
168 TARGET="_top"
169 >URL pattern</A
170 > basis, i.e.
171  for single URLs, whole web sites, groups or parts thereof etc. Actions can also be
172  grouped together and then applied to requests matching one or more patterns.
173  There are many possible actions that might apply to any given site. As an example,
174  if you are blocking cookies as one of your default actions, but need to accept
175  cookies from a given site, you would need to define an exception for this
176  site in one of your actions files, preferably in <TT
177 CLASS="FILENAME"
178 >user.action</TT
179 ></P
180 ></DIV
181 ><DIV
182 CLASS="SECT2"
183 ><H3
184 CLASS="SECT2"
185 ><A
186 NAME="ACTIONSS"
187 >3.4. The <SPAN
188 CLASS="QUOTE"
189 >"actions"</SPAN
190 > concept confuses me. Please list 
191 some of these <SPAN
192 CLASS="QUOTE"
193 >"actions"</SPAN
194 >.</A
195 ></H3
196 ><P
197 > For a comprehensive discussion of the actions concept, please refer
198  to the <A
199 HREF="../user-manual/actions-file.html"
200 TARGET="_top"
201 >actions file
202  chapter</A
203 > in the <A
204 HREF="../user-manual/index.html"
205 TARGET="_top"
206 >user
207  manual</A
208 >. It includes a <A
209 HREF="../user-manual/actions-file.html#ACTIONS"
210 TARGET="_top"
211 >list of all actions</A
212 >
213  and an <A
214 HREF="../user-manual/actions-file.html#ACT-EXAMPLES"
215 TARGET="_top"
216 >actions
217  file tutorial</A
218 > to get you started.</P
219 ></DIV
220 ><DIV
221 CLASS="SECT2"
222 ><H3
223 CLASS="SECT2"
224 ><A
225 NAME="AEN285"
226 >3.5. How are actions files configured? What is the easiest
227 way to do this?</A
228 ></H3
229 ><P
230 > Actions files are just text files in a special syntax and can be edited
231  with a text editor. The probably easiest way is to access
232  <SPAN
233 CLASS="APPLICATION"
234 >Privoxy</SPAN
235 >'s user interface with your web browser
236  at <A
237 HREF="http://config.privoxy.org/"
238 TARGET="_top"
239 >http://config.privoxy.org/</A
240 >
241  (Shortcut: <A
242 HREF="http://p.p/"
243 TARGET="_top"
244 >http://p.p/</A
245 >) and then select
246  <SPAN
247 CLASS="QUOTE"
248 >"<A
249 HREF="http://config.privoxy.org/show-status"
250 TARGET="_top"
251 >View &#38;
252  change the current configuration</A
253 >"</SPAN
254 > from the menu.</P
255 ></DIV
256 ><DIV
257 CLASS="SECT2"
258 ><H3
259 CLASS="SECT2"
260 ><A
261 NAME="AEN293"
262 >3.6. There are several different <SPAN
263 CLASS="QUOTE"
264 >"actions"</SPAN
265 > files. What are
266 the differences?</A
267 ></H3
268 ><P
269 > As of <SPAN
270 CLASS="APPLICATION"
271 >Privoxy</SPAN
272 > v2.9.15, three actions files 
273  are being included, to be used for 
274  different purposes: These are 
275  <TT
276 CLASS="FILENAME"
277 >default.action</TT
278 >, the <SPAN
279 CLASS="QUOTE"
280 >"main"</SPAN
281 > actions file
282  which is actively maintained by the <SPAN
283 CLASS="APPLICATION"
284 >Privoxy</SPAN
285 >
286  developers, <TT
287 CLASS="FILENAME"
288 >user.action</TT
289 >, where users are encouraged
290  to make their private customizations, and <TT
291 CLASS="FILENAME"
292 >standard.action</TT
293 >, 
294  which is for internal <SPAN
295 CLASS="APPLICATION"
296 >Privoxy</SPAN
297 > use only.
298  Please see <A
299 HREF="../user-manual/actions-file.html"
300 TARGET="_top"
301 >the actions chapter</A
302 >
303  in the <A
304 HREF="../user-manual/index.html"
305 TARGET="_top"
306 >user manual</A
307 > for a more
308  detailed explanation.</P
309 ><P
310 > Earlier versions included three different versions of the 
311  <TT
312 CLASS="FILENAME"
313 >default.action</TT
314 > file. The new scheme allows for 
315  greater flexibility of local configuration, and for browser based 
316  selection of pre-defined <SPAN
317 CLASS="QUOTE"
318 >"aggressiveness"</SPAN
319 > levels.</P
320 ></DIV
321 ><DIV
322 CLASS="SECT2"
323 ><H3
324 CLASS="SECT2"
325 ><A
326 NAME="YAHOO"
327 >3.7. How can I make my Yahoo/Hotmail/GMX account work?</A
328 ></H3
329 ><P
330 >  The default configuration shouldn't impact the usability of any of these services.
331   It will, however, make all cookies temporary, so that your browser will forget your
332   login credentials in between browser sessions. If you would like not to have to log
333   in manually each time you access those websites, simply turn off all cookie handling
334   for them in the <TT
335 CLASS="FILENAME"
336 >user.action</TT
337 > file. An example for yahoo might
338   look like:
339  </P
340 ><P
341 >  <TABLE
342 BORDER="0"
343 BGCOLOR="#E0E0E0"
344 WIDTH="100%"
345 ><TR
346 ><TD
347 ><PRE
348 CLASS="SCREEN"
349 ># Allow all cookies for Yahoo login:
350 #
351 { -<A
352 HREF="../user-manual/actions-file.html#CRUNCH-INCOMING-COOKIES"
353 TARGET="_top"
354 >crunch-incoming-cookies</A
355 > -<A
356 HREF="../user-manual/actions-file.html#CRUNCH-OUTGOING-COOKIES"
357 TARGET="_top"
358 >crunch-outgoing-cookies</A
359 > -<A
360 HREF="../user-manual/actions-file.html#SESSION-COOKIES-ONLY"
361 TARGET="_top"
362 >session-cookies-only</A
363 > }
364 .login.yahoo.com</PRE
365 ></TD
366 ></TR
367 ></TABLE
368 >
369  </P
370 ></DIV
371 ><DIV
372 CLASS="SECT2"
373 ><H3
374 CLASS="SECT2"
375 ><A
376 NAME="CONFIGFILES"
377 >3.8. What's the difference between the
378 <SPAN
379 CLASS="QUOTE"
380 >"Cautious"</SPAN
381 >, <SPAN
382 CLASS="QUOTE"
383 >"Medium"</SPAN
384 > and <SPAN
385 CLASS="QUOTE"
386 >"Advanced"</SPAN
387 > defaults?</A
388 ></H3
389 ><P
390 >  Configuring <SPAN
391 CLASS="APPLICATION"
392 >Privoxy</SPAN
393 > is not entirely trivial. To help you get
394   started, we provide you with three different default action <SPAN
395 CLASS="QUOTE"
396 >"packages"</SPAN
397 > in
398   the web based actions file editor at <A
399 HREF="http://config.privoxy.org/show-status"
400 TARGET="_top"
401 >http://config.privoxy.org/show-status</A
402 >.
403   The following table shows you, which of the most important features are enabled in each
404   configuration:
405  </P
406 ><P
407 ><DIV
408 CLASS="TABLE"
409 ><A
410 NAME="AEN328"
411 ></A
412 ><P
413 ><B
414 >Table 1. Default Configurations</B
415 ></P
416 ><TABLE
417 BORDER="1"
418 CLASS="CALSTABLE"
419 ><THEAD
420 ><TR
421 ><TH
422 WIDTH="25%"
423 ALIGN="LEFT"
424 VALIGN="TOP"
425 >Feature</TH
426 ><TH
427 WIDTH="25%"
428 ALIGN="LEFT"
429 VALIGN="TOP"
430 >Cautious</TH
431 ><TH
432 WIDTH="25%"
433 ALIGN="LEFT"
434 VALIGN="TOP"
435 >Intermadiate</TH
436 ><TH
437 WIDTH="25%"
438 ALIGN="LEFT"
439 VALIGN="TOP"
440 >Advanced</TH
441 ></TR
442 ></THEAD
443 ><TBODY
444 ><TR
445 ><TD
446 WIDTH="25%"
447 ALIGN="LEFT"
448 VALIGN="TOP"
449 >Ad-blocking by URL</TD
450 ><TD
451 WIDTH="25%"
452 ALIGN="LEFT"
453 VALIGN="TOP"
454 >yes</TD
455 ><TD
456 WIDTH="25%"
457 ALIGN="LEFT"
458 VALIGN="TOP"
459 >yes</TD
460 ><TD
461 WIDTH="25%"
462 ALIGN="LEFT"
463 VALIGN="TOP"
464 >yes</TD
465 ></TR
466 ><TR
467 ><TD
468 WIDTH="25%"
469 ALIGN="LEFT"
470 VALIGN="TOP"
471 >Ad-filtering by size</TD
472 ><TD
473 WIDTH="25%"
474 ALIGN="LEFT"
475 VALIGN="TOP"
476 >yes</TD
477 ><TD
478 WIDTH="25%"
479 ALIGN="LEFT"
480 VALIGN="TOP"
481 >yes</TD
482 ><TD
483 WIDTH="25%"
484 ALIGN="LEFT"
485 VALIGN="TOP"
486 >yes</TD
487 ></TR
488 ><TR
489 ><TD
490 WIDTH="25%"
491 ALIGN="LEFT"
492 VALIGN="TOP"
493 >GIF de-animation</TD
494 ><TD
495 WIDTH="25%"
496 ALIGN="LEFT"
497 VALIGN="TOP"
498 >no</TD
499 ><TD
500 WIDTH="25%"
501 ALIGN="LEFT"
502 VALIGN="TOP"
503 >yes</TD
504 ><TD
505 WIDTH="25%"
506 ALIGN="LEFT"
507 VALIGN="TOP"
508 >yes</TD
509 ></TR
510 ><TR
511 ><TD
512 WIDTH="25%"
513 ALIGN="LEFT"
514 VALIGN="TOP"
515 >Referer forging</TD
516 ><TD
517 WIDTH="25%"
518 ALIGN="LEFT"
519 VALIGN="TOP"
520 >no</TD
521 ><TD
522 WIDTH="25%"
523 ALIGN="LEFT"
524 VALIGN="TOP"
525 >yes</TD
526 ><TD
527 WIDTH="25%"
528 ALIGN="LEFT"
529 VALIGN="TOP"
530 >yes</TD
531 ></TR
532 ><TR
533 ><TD
534 WIDTH="25%"
535 ALIGN="LEFT"
536 VALIGN="TOP"
537 >Cookie handling</TD
538 ><TD
539 WIDTH="25%"
540 ALIGN="LEFT"
541 VALIGN="TOP"
542 >none</TD
543 ><TD
544 WIDTH="25%"
545 ALIGN="LEFT"
546 VALIGN="TOP"
547 >session-only</TD
548 ><TD
549 WIDTH="25%"
550 ALIGN="LEFT"
551 VALIGN="TOP"
552 >kill</TD
553 ></TR
554 ><TR
555 ><TD
556 WIDTH="25%"
557 ALIGN="LEFT"
558 VALIGN="TOP"
559 >Pop-up killing</TD
560 ><TD
561 WIDTH="25%"
562 ALIGN="LEFT"
563 VALIGN="TOP"
564 >no</TD
565 ><TD
566 WIDTH="25%"
567 ALIGN="LEFT"
568 VALIGN="TOP"
569 >yes</TD
570 ><TD
571 WIDTH="25%"
572 ALIGN="LEFT"
573 VALIGN="TOP"
574 >yes</TD
575 ></TR
576 ><TR
577 ><TD
578 WIDTH="25%"
579 ALIGN="LEFT"
580 VALIGN="TOP"
581 >Fast redirects</TD
582 ><TD
583 WIDTH="25%"
584 ALIGN="LEFT"
585 VALIGN="TOP"
586 >no</TD
587 ><TD
588 WIDTH="25%"
589 ALIGN="LEFT"
590 VALIGN="TOP"
591 >no</TD
592 ><TD
593 WIDTH="25%"
594 ALIGN="LEFT"
595 VALIGN="TOP"
596 >yes</TD
597 ></TR
598 ><TR
599 ><TD
600 WIDTH="25%"
601 ALIGN="LEFT"
602 VALIGN="TOP"
603 >HTML taming</TD
604 ><TD
605 WIDTH="25%"
606 ALIGN="LEFT"
607 VALIGN="TOP"
608 >yes</TD
609 ><TD
610 WIDTH="25%"
611 ALIGN="LEFT"
612 VALIGN="TOP"
613 >yes</TD
614 ><TD
615 WIDTH="25%"
616 ALIGN="LEFT"
617 VALIGN="TOP"
618 >yes</TD
619 ></TR
620 ><TR
621 ><TD
622 WIDTH="25%"
623 ALIGN="LEFT"
624 VALIGN="TOP"
625 >JavaScript taming</TD
626 ><TD
627 WIDTH="25%"
628 ALIGN="LEFT"
629 VALIGN="TOP"
630 >yes</TD
631 ><TD
632 WIDTH="25%"
633 ALIGN="LEFT"
634 VALIGN="TOP"
635 >yes</TD
636 ><TD
637 WIDTH="25%"
638 ALIGN="LEFT"
639 VALIGN="TOP"
640 >yes</TD
641 ></TR
642 ><TR
643 ><TD
644 WIDTH="25%"
645 ALIGN="LEFT"
646 VALIGN="TOP"
647 >Web-bug killing</TD
648 ><TD
649 WIDTH="25%"
650 ALIGN="LEFT"
651 VALIGN="TOP"
652 >yes</TD
653 ><TD
654 WIDTH="25%"
655 ALIGN="LEFT"
656 VALIGN="TOP"
657 >yes</TD
658 ><TD
659 WIDTH="25%"
660 ALIGN="LEFT"
661 VALIGN="TOP"
662 >yes</TD
663 ></TR
664 ><TR
665 ><TD
666 WIDTH="25%"
667 ALIGN="LEFT"
668 VALIGN="TOP"
669 >Fun text replacements</TD
670 ><TD
671 WIDTH="25%"
672 ALIGN="LEFT"
673 VALIGN="TOP"
674 >no</TD
675 ><TD
676 WIDTH="25%"
677 ALIGN="LEFT"
678 VALIGN="TOP"
679 >no</TD
680 ><TD
681 WIDTH="25%"
682 ALIGN="LEFT"
683 VALIGN="TOP"
684 >yes</TD
685 ></TR
686 ><TR
687 ><TD
688 WIDTH="25%"
689 ALIGN="LEFT"
690 VALIGN="TOP"
691 >Image tag reordering</TD
692 ><TD
693 WIDTH="25%"
694 ALIGN="LEFT"
695 VALIGN="TOP"
696 >no</TD
697 ><TD
698 WIDTH="25%"
699 ALIGN="LEFT"
700 VALIGN="TOP"
701 >no</TD
702 ><TD
703 WIDTH="25%"
704 ALIGN="LEFT"
705 VALIGN="TOP"
706 >yes</TD
707 ></TR
708 ><TR
709 ><TD
710 WIDTH="25%"
711 ALIGN="LEFT"
712 VALIGN="TOP"
713 >Ad-filtering by link</TD
714 ><TD
715 WIDTH="25%"
716 ALIGN="LEFT"
717 VALIGN="TOP"
718 >no</TD
719 ><TD
720 WIDTH="25%"
721 ALIGN="LEFT"
722 VALIGN="TOP"
723 >no</TD
724 ><TD
725 WIDTH="25%"
726 ALIGN="LEFT"
727 VALIGN="TOP"
728 >yes</TD
729 ></TR
730 ></TBODY
731 ></TABLE
732 ></DIV
733 ></P
734 ><P
735 > Where the defaults are likely to break some sites, exceptions for
736  known popular <SPAN
737 CLASS="QUOTE"
738 >"problem"</SPAN
739 > sites are included, but in
740  general, the more aggressive your default settings are, the more
741  exceptions you will have to make later. See the <A
742 HREF="../user-manual/index.html"
743 TARGET="_top"
744 >user manual</A
745 > for a more
746  deatiled discussion.</P
747 ></DIV
748 ><DIV
749 CLASS="SECT2"
750 ><H3
751 CLASS="SECT2"
752 ><A
753 NAME="BROWSECONFIG"
754 >3.9. Why can I change the configuration 
755 with a browser? Does that not raise security issues?</A
756 ></H3
757 ><P
758 >  It may seem strange that regular users can edit the config files with their
759   browsers, although the whole <TT
760 CLASS="FILENAME"
761 >/etc/privoxy</TT
762 > hierarchy
763   belongs to the user <SPAN
764 CLASS="QUOTE"
765 >"privoxy"</SPAN
766 >, with only 644 permissions.
767  </P
768 ><P
769 >  When you use the browser-based editor, <SPAN
770 CLASS="APPLICATION"
771 >Privoxy</SPAN
772 >
773   itself is writing to the config files.  Because
774   <SPAN
775 CLASS="APPLICATION"
776 >Privoxy</SPAN
777 > is running as the user <SPAN
778 CLASS="QUOTE"
779 >"privoxy"</SPAN
780 >,
781   it can update the config files.
782  </P
783 ><P
784 >  If you run <SPAN
785 CLASS="APPLICATION"
786 >Privoxy</SPAN
787 > for multiple untrusted users (e.g. in
788   a LAN), you will probably want to turn the web-based editor and remote toggle
789   features off by setting <SPAN
790 CLASS="QUOTE"
791 >"<TT
792 CLASS="LITERAL"
793 ><A
794 HREF="../user-manual/config.html#ENABLE-EDIT-ACTIONS"
795 TARGET="_top"
796 >enable-edit-actions</A
797 >
798   0</TT
799 >"</SPAN
800 > and <SPAN
801 CLASS="QUOTE"
802 >"<TT
803 CLASS="LITERAL"
804 ><A
805 HREF="../user-manual/config.html#ENABLE-REMOTE-TOGGLE"
806 TARGET="_top"
807 >enable-remote-toggle</A
808 >
809   0</TT
810 >"</SPAN
811 > in the <A
812 HREF="../user-manual/config.html"
813 TARGET="_top"
814 >main configuration file</A
815 >.
816  </P
817 ><P
818 >  Note that in the default configuration, only local users (i.e. those on
819   <SPAN
820 CLASS="QUOTE"
821 >"localhost"</SPAN
822 >) can connect to <SPAN
823 CLASS="APPLICATION"
824 >Privoxy</SPAN
825 >,
826   so this is not (normally) a security problem.
827  </P
828 ></DIV
829 ><DIV
830 CLASS="SECT2"
831 ><H3
832 CLASS="SECT2"
833 ><A
834 NAME="AEN431"
835 >3.10. What is the <TT
836 CLASS="FILENAME"
837 >default.filter</TT
838 > file? What is a <SPAN
839 CLASS="QUOTE"
840 >"filter"</SPAN
841 >?</A
842 ></H3
843 ><P
844 > The <A
845 HREF="../user-manual/filter-file.html"
846 TARGET="_top"
847 ><TT
848 CLASS="FILENAME"
849 >default.filter</TT
850 ></A
851 >
852  file is where <I
853 CLASS="EMPHASIS"
854 >filters</I
855 > are defined, which can be used to modify or
856  remove, web page content on the fly. Filters apply to <I
857 CLASS="EMPHASIS"
858 >anything</I
859 >
860  in the page source, including HTML tags, and JavaScript. Regular expressions are used
861  to accomplish this. There are a number of pre-defined filters to deal with common
862  annoyances. The filters are only defined here, to invoke them, you need to use the
863  <A
864 HREF="../user-manual/actions-file.html#FILTER"
865 TARGET="_top"
866 ><TT
867 CLASS="LITERAL"
868 >filter</TT
869 >
870  action</A
871 > in one of the actions files. Filtering is automatically
872  disabled for inappropriate MIME types.</P
873 ><P
874 > If you are familiar with regular expressions, and HTML, you can look at 
875  the provided <TT
876 CLASS="FILENAME"
877 >default.filter</TT
878 > with a text editor and define
879  your own filters.  This is potentially a very powerful feature, but
880  requires some expertise in both regular expressions and HTML/HTTP. </P
881 ><P
882 > Presently, there is no GUI editor option for this part of the configuration, 
883  but you can disable/enable the various pre-defined filters of the included 
884  <TT
885 CLASS="FILENAME"
886 >default.filter</TT
887 > file with the <A
888 HREF="http://config.privoxy.org/show-status"
889 TARGET="_top"
890 >web-based actions file editor</A
891 >.</P
892 ></DIV
893 ><DIV
894 CLASS="SECT2"
895 ><H3
896 CLASS="SECT2"
897 ><A
898 NAME="AEN447"
899 >3.11. How can I set up <SPAN
900 CLASS="APPLICATION"
901 >Privoxy</SPAN
902 > to act as a proxy for my 
903  LAN?</A
904 ></H3
905 ><P
906 > By default, <SPAN
907 CLASS="APPLICATION"
908 >Privoxy</SPAN
909 > only responds to requests 
910  from <TT
911 CLASS="LITERAL"
912 >127.0.0.1</TT
913 > (localhost). To have it act as a server for
914  a network, this needs to be changed in the <A
915 HREF="../user-manual/config.html"
916 TARGET="_top"
917 >main configuration file</A
918 >. Look for
919  the <TT
920 CLASS="LITERAL"
921 ><A
922 HREF="../user-manual/config.html#LISTEN-ADDRESS"
923 TARGET="_top"
924 >listen-address</A
925 ></TT
926 >
927  option, which may be commented out with a <SPAN
928 CLASS="QUOTE"
929 >"#"</SPAN
930 > symbol. Make sure
931  it is uncommented, and assign it the address of the LAN gateway interface,
932  and port number to use. Assuming your LAN address is 192.168.1.1 and you
933  wish to run <SPAN
934 CLASS="APPLICATION"
935 >Privoxy</SPAN
936 > on port 8118, this line
937  schould look like:</P
938 ><P
939 > <TABLE
940 BORDER="0"
941 BGCOLOR="#E0E0E0"
942 WIDTH="100%"
943 ><TR
944 ><TD
945 ><PRE
946 CLASS="SCREEN"
947 >  listen-address  192.168.1.1:8118</PRE
948 ></TD
949 ></TR
950 ></TABLE
951 ></P
952 ><P
953 > Save the file, and restart <SPAN
954 CLASS="APPLICATION"
955 >Privoxy</SPAN
956 >. Configure 
957  all browsers on the network then to use this address and port number.</P
958 ><P
959 > If you run <SPAN
960 CLASS="APPLICATION"
961 >Privoxy</SPAN
962 > on a LAN with untrusted users,
963  we recommend that you double-check the <A
964 HREF="../user-manual/config.html#ACCESS-CONTROL"
965 TARGET="_top"
966 >access control and security</A
967 >
968  options!</P
969 ></DIV
970 ><DIV
971 CLASS="SECT2"
972 ><H3
973 CLASS="SECT2"
974 ><A
975 NAME="AEN465"
976 >3.12. Instead of ads, now I get a checkerboard pattern. I don't want to see anything.</A
977 ></H3
978 ><P
979 > The replacement for blocked images can be controlled with the <A
980 HREF="../user-manual/actions-file.html#SET-IMAGE-BLOCKER"
981 TARGET="_top"
982 ><TT
983 CLASS="LITERAL"
984 >set-image-blocker</TT
985 >
986  action</A
987 >. You have the choice of a checkerboard pattern, a transparent 1x1 GIF
988  image (aka <SPAN
989 CLASS="QUOTE"
990 >"blank"</SPAN
991 >), or a redirect to a custom image of your choice.
992  Note that this choice only has effect for images which are blocked as images, i.e.
993  whose URLs match both a <TT
994 CLASS="LITERAL"
995 ><A
996 HREF="../user-manual/actions-file.html#HANDLE-AS-IMAGE"
997 TARGET="_top"
998 >handle-as-image</A
999 ></TT
1000 >
1001  <I
1002 CLASS="EMPHASIS"
1003 >and</I
1004 > <TT
1005 CLASS="LITERAL"
1006 ><A
1007 HREF="../user-manual/actions-file.html#BLOCK"
1008 TARGET="_top"
1009 >block</A
1010 ></TT
1011 > action.</P
1012 ><P
1013 > If you want to see nothing, then change the <A
1014 HREF="../user-manual/actions-file.html#SET-IMAGE-BLOCKER"
1015 TARGET="_top"
1016 ><TT
1017 CLASS="LITERAL"
1018 >set-image-blocker</TT
1019 >
1020  action</A
1021 > to <SPAN
1022 CLASS="QUOTE"
1023 >"blank"</SPAN
1024 >. This can be done by editing the 
1025  <TT
1026 CLASS="FILENAME"
1027 >default.action</TT
1028 > file, or trough the <A
1029 HREF="http://config.privoxy.org/show-status"
1030 TARGET="_top"
1031 >web-based actions file editor</A
1032 >.</P
1033 ></DIV
1034 ><DIV
1035 CLASS="SECT2"
1036 ><H3
1037 CLASS="SECT2"
1038 ><A
1039 NAME="AEN482"
1040 >3.13. Why would anybody want to see a checkerboard pattern?</A
1041 ></H3
1042 ><P
1043 > Remember that <A
1044 HREF="general.html#WHATSANAD"
1045 >telling which image is an ad and which
1046  isn't</A
1047 >, is mostly guesswork. While we hope that the standard configuration
1048  is rather smart, it can and will make errors. The checkerboard image is visually
1049  decent, but it shows you that and where images were blocked, which can be very
1050  helpful in case some navigation aid or otherwise innocent image was
1051  erraneously blocked. Some people might also enjoy seeing how many banners
1052  they <I
1053 CLASS="EMPHASIS"
1054 >don't</I
1055 > have to see..</P
1056 ></DIV
1057 ><DIV
1058 CLASS="SECT2"
1059 ><H3
1060 CLASS="SECT2"
1061 ><A
1062 NAME="AEN487"
1063 >3.14. I see some images being replaced by a text
1064 instead of the checkerboard image. Why and how do I get rid of this?</A
1065 ></H3
1066 ><P
1067 > This happens when the banners are not embedded in the HTML code of the
1068  page itself, but in separate HTML (sub)documents that are loaded into (i)frames
1069  or (i)layers, and these external HTML documents are blocked. Being non-images
1070  they get replaced by a substitute HTML page rather than a substitute image,
1071  which wouldn't work out technically, since the browser expects and accepts
1072  only HTML when it has requested an HTML document. </P
1073 ><P
1074 > The substitute page adapts to the available space and shows itself as a
1075  miniature two-liner if loaded into small frames, or full-blown with a
1076  large red "BLOCKED" banner if space allows.</P
1077 ><P
1078 > If you prefer the banners to be blocked by images, you must see to it that
1079  the HTML documents in which they are embedded are not blocked. Clicking
1080  the <SPAN
1081 CLASS="QUOTE"
1082 >"See why"</SPAN
1083 > link offered in the substitute page will show
1084  you which rule blocked the page. After changing the rule and un-blocking
1085  the HTML documents, the browser will try to load the actual banner images
1086  and the usual image blocking will (hopefully!) kick in.</P
1087 ></DIV
1088 ><DIV
1089 CLASS="SECT2"
1090 ><H3
1091 CLASS="SECT2"
1092 ><A
1093 NAME="SRVANY"
1094 >3.15. Can <SPAN
1095 CLASS="APPLICATION"
1096 >Privoxy</SPAN
1097 > run as a service 
1098 on Win2K/NT?</A
1099 ></H3
1100 ><P
1101 > Yes, it can run as a system service using <B
1102 CLASS="COMMAND"
1103 >srvany.exe</B
1104 >.
1105  The only catch is that this will effectively disable the
1106  <SPAN
1107 CLASS="APPLICATION"
1108 >Privoxy</SPAN
1109 > icon (and its menu!) in the taskbar. You can have 
1110  one or the other, but not both at this time :( </P
1111 ><P
1112 > There is a pending feature request for this functionality. See the discussion
1113  at <A
1114 HREF="http://sourceforge.net/tracker/?func=detail&atid=361118&aid=485617&group_id=11118"
1115 TARGET="_top"
1116 >http://sourceforge.net/tracker/?func=detail&#38;atid=361118&#38;aid=485617&#38;group_id=11118</A
1117 >, 
1118  for details, and a sample configuration.&#13;</P
1119 ></DIV
1120 ><DIV
1121 CLASS="SECT2"
1122 ><H3
1123 CLASS="SECT2"
1124 ><A
1125 NAME="OTHERPROXY"
1126 >3.16. How can I make <SPAN
1127 CLASS="APPLICATION"
1128 >Privoxy</SPAN
1129 > work with other 
1130 proxies like <SPAN
1131 CLASS="APPLICATION"
1132 >Squid</SPAN
1133 >?</A
1134 ></H3
1135 ><P
1136 > This can be done and is often useful to combine the benefits of
1137  <SPAN
1138 CLASS="APPLICATION"
1139 >Privoxy</SPAN
1140 > with those of a caching proxy.
1141  See the <A
1142 HREF="../user-manual/config.html#FORWARDING"
1143 TARGET="_top"
1144 >forwarding chapter</A
1145 >
1146  in the <A
1147 HREF="../user-manual/index.html"
1148 TARGET="_top"
1149 >user manual</A
1150 > which
1151  describes how to do this.</P
1152 ></DIV
1153 ><DIV
1154 CLASS="SECT2"
1155 ><H3
1156 CLASS="SECT2"
1157 ><A
1158 NAME="TRANSPARENT"
1159 >3.17. Can <SPAN
1160 CLASS="APPLICATION"
1161 >Privoxy</SPAN
1162 > run as a <SPAN
1163 CLASS="QUOTE"
1164 >"transparent"</SPAN
1165 > proxy?</A
1166 ></H3
1167 ><P
1168 > No, <SPAN
1169 CLASS="APPLICATION"
1170 >Privoxy</SPAN
1171 > currently does not have this ability, 
1172  though it is planned for a future release. Transparent proxies require 
1173  special handling of the request headers beyond what
1174  <SPAN
1175 CLASS="APPLICATION"
1176 >Privoxy</SPAN
1177 > is now capable of.</P
1178 ><P
1179 > Chaining <SPAN
1180 CLASS="APPLICATION"
1181 >Privoxy</SPAN
1182 > behind another proxy that has 
1183  this ability should work though. 
1184  See the <A
1185 HREF="../user-manual/config.html#FORWARDING"
1186 TARGET="_top"
1187 >forwarding chapter</A
1188 >
1189  in the <A
1190 HREF="../user-manual/index.html"
1191 TARGET="_top"
1192 >user manual</A
1193 >. As
1194  a transparent proxy to be used for chaining we recommend Transproxy
1195  (<A
1196 HREF="http://www.transproxy.nlc.net.au/"
1197 TARGET="_top"
1198 >http://www.transproxy.nlc.net.au/</A
1199 >).</P
1200 ></DIV
1201 ></DIV
1202 ><DIV
1203 CLASS="NAVFOOTER"
1204 ><HR
1205 ALIGN="LEFT"
1206 WIDTH="100%"><TABLE
1207 WIDTH="100%"
1208 BORDER="0"
1209 CELLPADDING="0"
1210 CELLSPACING="0"
1211 ><TR
1212 ><TD
1213 WIDTH="33%"
1214 ALIGN="left"
1215 VALIGN="top"
1216 ><A
1217 HREF="installation.html"
1218 >Prev</A
1219 ></TD
1220 ><TD
1221 WIDTH="34%"
1222 ALIGN="center"
1223 VALIGN="top"
1224 ><A
1225 HREF="index.html"
1226 >Home</A
1227 ></TD
1228 ><TD
1229 WIDTH="33%"
1230 ALIGN="right"
1231 VALIGN="top"
1232 ><A
1233 HREF="misc.html"
1234 >Next</A
1235 ></TD
1236 ></TR
1237 ><TR
1238 ><TD
1239 WIDTH="33%"
1240 ALIGN="left"
1241 VALIGN="top"
1242 >Installation</TD
1243 ><TD
1244 WIDTH="34%"
1245 ALIGN="center"
1246 VALIGN="top"
1247 >&nbsp;</TD
1248 ><TD
1249 WIDTH="33%"
1250 ALIGN="right"
1251 VALIGN="top"
1252 >Miscellaneous</TD
1253 ></TR
1254 ></TABLE
1255 ></DIV
1256 ></BODY
1257 ></HTML
1258 >