Testing.
[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="NEWCONFIG"
81 >3.1. Can I use my old config files?</A
82 ></H3
83 ><P
84 >   There are major changes to <SPAN
85 CLASS="APPLICATION"
86 >Junkbuster</SPAN
87 >/ 
88    <SPAN
89 CLASS="APPLICATION"
90 >Privoxy</SPAN
91 > configuration from version 2.0.x to
92    2.9.x and later. Most of the older files will not work at all. This is 
93    especially true of <TT
94 CLASS="FILENAME"
95 >blocklist</TT
96 >. If this is the case, you
97    will need to re-enter your old data into the new configuration structure.
98    This is probably also a good recommendation even if upgrading from 2.9.x to
99    3.x since there were many minor changes along the way.
100  </P
101 ></DIV
102 ><DIV
103 CLASS="SECT2"
104 ><H3
105 CLASS="SECT2"
106 ><A
107 NAME="AEN239"
108 >3.2. What is an <SPAN
109 CLASS="QUOTE"
110 >"actions"</SPAN
111 > file?</A
112 ></H3
113 ><P
114 > <SPAN
115 CLASS="QUOTE"
116 >"actions"</SPAN
117 > files are where various actions that
118  <SPAN
119 CLASS="APPLICATION"
120 >Privoxy</SPAN
121 > might take, are configured. 
122  Typically, you would define a set of default actions that apply 
123  to all URLs, then add exceptions to these defaults.</P
124 ><P
125 > Actions can be defined on a per site basis, or for groups of sites. Actions
126  can also be grouped together and then applied to one or more sites. There
127  are many possible actions that might apply to any given site. As an example,
128  if we are blocking cookies as one of our default
129  <SPAN
130 CLASS="APPLICATION"
131 >actions</SPAN
132 >, but need to accept cookies from a given
133  site, we would define this in our <SPAN
134 CLASS="QUOTE"
135 >"actions"</SPAN
136 > file.&#13;</P
137 ><P
138 > <SPAN
139 CLASS="APPLICATION"
140 >Privoxy</SPAN
141 > comes with several default
142  <SPAN
143 CLASS="APPLICATION"
144 >actions</SPAN
145 > files, with varying degrees 
146  of filtering and blocking, as starting points for your own 
147  configuration (see below).</P
148 ></DIV
149 ><DIV
150 CLASS="SECT2"
151 ><H3
152 CLASS="SECT2"
153 ><A
154 NAME="ACTIONSS"
155 >3.3. The <SPAN
156 CLASS="QUOTE"
157 >"actions"</SPAN
158 > concept confuses me. Please list 
159 some of these <SPAN
160 CLASS="QUOTE"
161 >"actions"</SPAN
162 >.</A
163 ></H3
164 ><P
165 > These are all explained in the 
166  <A
167 HREF="../user-manual/configuration.html#ACTIONSFILE"
168 TARGET="_top"
169 >user-manual</A
170 >.
171  Please refer to that.</P
172 ></DIV
173 ><DIV
174 CLASS="SECT2"
175 ><H3
176 CLASS="SECT2"
177 ><A
178 NAME="AEN257"
179 >3.4. How are actions files configured? What is the easiest
180 way to do this?</A
181 ></H3
182 ><P
183 > The easiest way to do this, is to access <SPAN
184 CLASS="APPLICATION"
185 >Privoxy</SPAN
186 >
187  with your web browser at <A
188 HREF="http://p.p/"
189 TARGET="_top"
190 >http://p.p/</A
191 >, 
192  and then select 
193  "<A
194 HREF="http://config.privoxy.org"
195 TARGET="_top"
196 >Edit the actions list</A
197 >"
198  from the selection list. You can also do this by editing the appropriate 
199  file with a text editor.</P
200 ><P
201 > Please see the 
202  <A
203 HREF="../user-manual/configuration.html#ACTIONSFILE"
204 TARGET="_top"
205 >user-manual</A
206 > for a
207  detailed explanation of these and other configuration files, and their
208  various options and syntax.</P
209 ></DIV
210 ><DIV
211 CLASS="SECT2"
212 ><H3
213 CLASS="SECT2"
214 ><A
215 NAME="CONFIGFILES"
216 >3.5. What are the differences between
217 intermediate.action, basic.action, etc.?</A
218 ></H3
219 ><P
220 >Configuring <SPAN
221 CLASS="APPLICATION"
222 >Privoxy</SPAN
223 > is not easy. To help you get
224 started, we provide you with three different default configurations. The
225 following table shows you, which features are enabled in each configuration.
226  </P
227 ><P
228 ><DIV
229 CLASS="TABLE"
230 ><A
231 NAME="AEN270"
232 ></A
233 ><P
234 ><B
235 >Table 1. Default Configurations</B
236 ></P
237 ><TABLE
238 BORDER="1"
239 CLASS="CALSTABLE"
240 ><THEAD
241 ><TR
242 ><TH
243 WIDTH="20%"
244 ALIGN="LEFT"
245 VALIGN="TOP"
246 >Feature</TH
247 ><TH
248 WIDTH="20%"
249 ALIGN="LEFT"
250 VALIGN="TOP"
251 >default.action</TH
252 ><TH
253 WIDTH="20%"
254 ALIGN="LEFT"
255 VALIGN="TOP"
256 >basic.action</TH
257 ><TH
258 WIDTH="20%"
259 ALIGN="LEFT"
260 VALIGN="TOP"
261 >intermediate.action</TH
262 ><TH
263 WIDTH="20%"
264 ALIGN="LEFT"
265 VALIGN="TOP"
266 >advanced.action</TH
267 ></TR
268 ></THEAD
269 ><TBODY
270 ><TR
271 ><TD
272 WIDTH="20%"
273 ALIGN="LEFT"
274 VALIGN="TOP"
275 >ad-filtering</TD
276 ><TD
277 WIDTH="20%"
278 ALIGN="LEFT"
279 VALIGN="TOP"
280 >?</TD
281 ><TD
282 WIDTH="20%"
283 ALIGN="LEFT"
284 VALIGN="TOP"
285 >x</TD
286 ><TD
287 WIDTH="20%"
288 ALIGN="LEFT"
289 VALIGN="TOP"
290 >x</TD
291 ><TD
292 WIDTH="20%"
293 ALIGN="LEFT"
294 VALIGN="TOP"
295 >x</TD
296 ></TR
297 ><TR
298 ><TD
299 WIDTH="20%"
300 ALIGN="LEFT"
301 VALIGN="TOP"
302 >blank image</TD
303 ><TD
304 WIDTH="20%"
305 ALIGN="LEFT"
306 VALIGN="TOP"
307 >?</TD
308 ><TD
309 WIDTH="20%"
310 ALIGN="LEFT"
311 VALIGN="TOP"
312 >x</TD
313 ><TD
314 WIDTH="20%"
315 ALIGN="LEFT"
316 VALIGN="TOP"
317 >x</TD
318 ><TD
319 WIDTH="20%"
320 ALIGN="LEFT"
321 VALIGN="TOP"
322 >x</TD
323 ></TR
324 ><TR
325 ><TD
326 WIDTH="20%"
327 ALIGN="LEFT"
328 VALIGN="TOP"
329 >de-animate GIFs</TD
330 ><TD
331 WIDTH="20%"
332 ALIGN="LEFT"
333 VALIGN="TOP"
334 >?</TD
335 ><TD
336 WIDTH="20%"
337 ALIGN="LEFT"
338 VALIGN="TOP"
339 >x</TD
340 ><TD
341 WIDTH="20%"
342 ALIGN="LEFT"
343 VALIGN="TOP"
344 >x</TD
345 ><TD
346 WIDTH="20%"
347 ALIGN="LEFT"
348 VALIGN="TOP"
349 >x</TD
350 ></TR
351 ><TR
352 ><TD
353 WIDTH="20%"
354 ALIGN="LEFT"
355 VALIGN="TOP"
356 >referer forging</TD
357 ><TD
358 WIDTH="20%"
359 ALIGN="LEFT"
360 VALIGN="TOP"
361 >?</TD
362 ><TD
363 WIDTH="20%"
364 ALIGN="LEFT"
365 VALIGN="TOP"
366 >x</TD
367 ><TD
368 WIDTH="20%"
369 ALIGN="LEFT"
370 VALIGN="TOP"
371 >x</TD
372 ><TD
373 WIDTH="20%"
374 ALIGN="LEFT"
375 VALIGN="TOP"
376 >x</TD
377 ></TR
378 ><TR
379 ><TD
380 WIDTH="20%"
381 ALIGN="LEFT"
382 VALIGN="TOP"
383 >jon's +no-cookies-keep (i.e. session cookies only)</TD
384 ><TD
385 WIDTH="20%"
386 ALIGN="LEFT"
387 VALIGN="TOP"
388 >?</TD
389 ><TD
390 WIDTH="20%"
391 ALIGN="LEFT"
392 VALIGN="TOP"
393 >x</TD
394 ><TD
395 WIDTH="20%"
396 ALIGN="LEFT"
397 VALIGN="TOP"
398 >x</TD
399 ><TD
400 WIDTH="20%"
401 ALIGN="LEFT"
402 VALIGN="TOP"
403 >x</TD
404 ></TR
405 ><TR
406 ><TD
407 WIDTH="20%"
408 ALIGN="LEFT"
409 VALIGN="TOP"
410 >no-popup windows</TD
411 ><TD
412 WIDTH="20%"
413 ALIGN="LEFT"
414 VALIGN="TOP"
415 >?</TD
416 ><TD
417 WIDTH="20%"
418 ALIGN="LEFT"
419 VALIGN="TOP"
420 >&nbsp;</TD
421 ><TD
422 WIDTH="20%"
423 ALIGN="LEFT"
424 VALIGN="TOP"
425 >x</TD
426 ><TD
427 WIDTH="20%"
428 ALIGN="LEFT"
429 VALIGN="TOP"
430 >x</TD
431 ></TR
432 ><TR
433 ><TD
434 WIDTH="20%"
435 ALIGN="LEFT"
436 VALIGN="TOP"
437 >fast redirects</TD
438 ><TD
439 WIDTH="20%"
440 ALIGN="LEFT"
441 VALIGN="TOP"
442 >?</TD
443 ><TD
444 WIDTH="20%"
445 ALIGN="LEFT"
446 VALIGN="TOP"
447 >&nbsp;</TD
448 ><TD
449 WIDTH="20%"
450 ALIGN="LEFT"
451 VALIGN="TOP"
452 >x</TD
453 ><TD
454 WIDTH="20%"
455 ALIGN="LEFT"
456 VALIGN="TOP"
457 >x</TD
458 ></TR
459 ><TR
460 ><TD
461 WIDTH="20%"
462 ALIGN="LEFT"
463 VALIGN="TOP"
464 >hide-referrer</TD
465 ><TD
466 WIDTH="20%"
467 ALIGN="LEFT"
468 VALIGN="TOP"
469 >?</TD
470 ><TD
471 WIDTH="20%"
472 ALIGN="LEFT"
473 VALIGN="TOP"
474 >&nbsp;</TD
475 ><TD
476 WIDTH="20%"
477 ALIGN="LEFT"
478 VALIGN="TOP"
479 >x</TD
480 ><TD
481 WIDTH="20%"
482 ALIGN="LEFT"
483 VALIGN="TOP"
484 >x</TD
485 ></TR
486 ><TR
487 ><TD
488 WIDTH="20%"
489 ALIGN="LEFT"
490 VALIGN="TOP"
491 >hide-useragent</TD
492 ><TD
493 WIDTH="20%"
494 ALIGN="LEFT"
495 VALIGN="TOP"
496 >?</TD
497 ><TD
498 WIDTH="20%"
499 ALIGN="LEFT"
500 VALIGN="TOP"
501 >&nbsp;</TD
502 ><TD
503 WIDTH="20%"
504 ALIGN="LEFT"
505 VALIGN="TOP"
506 >x</TD
507 ><TD
508 WIDTH="20%"
509 ALIGN="LEFT"
510 VALIGN="TOP"
511 >x</TD
512 ></TR
513 ><TR
514 ><TD
515 WIDTH="20%"
516 ALIGN="LEFT"
517 VALIGN="TOP"
518 >content-modification</TD
519 ><TD
520 WIDTH="20%"
521 ALIGN="LEFT"
522 VALIGN="TOP"
523 >?</TD
524 ><TD
525 WIDTH="20%"
526 ALIGN="LEFT"
527 VALIGN="TOP"
528 >&nbsp;</TD
529 ><TD
530 WIDTH="20%"
531 ALIGN="LEFT"
532 VALIGN="TOP"
533 >&nbsp;</TD
534 ><TD
535 WIDTH="20%"
536 ALIGN="LEFT"
537 VALIGN="TOP"
538 >x</TD
539 ></TR
540 ><TR
541 ><TD
542 WIDTH="20%"
543 ALIGN="LEFT"
544 VALIGN="TOP"
545 >feature-x</TD
546 ><TD
547 WIDTH="20%"
548 ALIGN="LEFT"
549 VALIGN="TOP"
550 >?</TD
551 ><TD
552 WIDTH="20%"
553 ALIGN="LEFT"
554 VALIGN="TOP"
555 >&nbsp;</TD
556 ><TD
557 WIDTH="20%"
558 ALIGN="LEFT"
559 VALIGN="TOP"
560 >&nbsp;</TD
561 ><TD
562 WIDTH="20%"
563 ALIGN="LEFT"
564 VALIGN="TOP"
565 >&nbsp;</TD
566 ></TR
567 ><TR
568 ><TD
569 WIDTH="20%"
570 ALIGN="LEFT"
571 VALIGN="TOP"
572 >feature-y</TD
573 ><TD
574 WIDTH="20%"
575 ALIGN="LEFT"
576 VALIGN="TOP"
577 >?</TD
578 ><TD
579 WIDTH="20%"
580 ALIGN="LEFT"
581 VALIGN="TOP"
582 >&nbsp;</TD
583 ><TD
584 WIDTH="20%"
585 ALIGN="LEFT"
586 VALIGN="TOP"
587 >&nbsp;</TD
588 ><TD
589 WIDTH="20%"
590 ALIGN="LEFT"
591 VALIGN="TOP"
592 >&nbsp;</TD
593 ></TR
594 ><TR
595 ><TD
596 WIDTH="20%"
597 ALIGN="LEFT"
598 VALIGN="TOP"
599 >feature-z</TD
600 ><TD
601 WIDTH="20%"
602 ALIGN="LEFT"
603 VALIGN="TOP"
604 >?</TD
605 ><TD
606 WIDTH="20%"
607 ALIGN="LEFT"
608 VALIGN="TOP"
609 >&nbsp;</TD
610 ><TD
611 WIDTH="20%"
612 ALIGN="LEFT"
613 VALIGN="TOP"
614 >&nbsp;</TD
615 ><TD
616 WIDTH="20%"
617 ALIGN="LEFT"
618 VALIGN="TOP"
619 >&nbsp;</TD
620 ></TR
621 ></TBODY
622 ></TABLE
623 ></DIV
624 ></P
625 ></DIV
626 ><DIV
627 CLASS="SECT2"
628 ><H3
629 CLASS="SECT2"
630 ><A
631 NAME="BROWSECONFIG"
632 >3.6. Why can I change the configuration with a
633 browser? Does that not raise security issues?</A
634 ></H3
635 ><P
636 >What I don't understand, is how I can browser edit the config file as a
637 regular user, while the whole <TT
638 CLASS="FILENAME"
639 >/etc/privoxy</TT
640 > hierarchy
641 belongs to the user <SPAN
642 CLASS="QUOTE"
643 >"privoxy"</SPAN
644 >, with only 644 permissions.
645  </P
646 ><P
647 >When you use the browser-based editor, <SPAN
648 CLASS="APPLICATION"
649 >Privoxy</SPAN
650 >
651 itself is writing to the config files.  Because
652 <SPAN
653 CLASS="APPLICATION"
654 >Privoxy</SPAN
655 > is running as the user <SPAN
656 CLASS="QUOTE"
657 >"privoxy"</SPAN
658 >, it can
659 update the config files.
660  </P
661 ><P
662 >If you don't like this, setting <SPAN
663 CLASS="QUOTE"
664 >"enable-edit-actions 0"</SPAN
665 > in the
666 config file will disable the browser-based editor.  If you're that paranoid,
667 you should also consider setting <SPAN
668 CLASS="QUOTE"
669 >"enable-remote-toggle 0"</SPAN
670 > to prevent
671 browser-based enabling/disabling of <SPAN
672 CLASS="APPLICATION"
673 >Privoxy</SPAN
674 >.
675  </P
676 ><P
677 >Note that normally only local users can connect to
678 <SPAN
679 CLASS="APPLICATION"
680 >Privoxy</SPAN
681 >, so this is not (normally) a security
682 problem.
683  </P
684 ></DIV
685 ><DIV
686 CLASS="SECT2"
687 ><H3
688 CLASS="SECT2"
689 ><A
690 NAME="AEN379"
691 >3.7. What is <SPAN
692 CLASS="QUOTE"
693 >"default.filter"</SPAN
694 >?</A
695 ></H3
696 ><P
697 > The <SPAN
698 CLASS="QUOTE"
699 >"default.filter"</SPAN
700 > file is used to <SPAN
701 CLASS="QUOTE"
702 >"filter"</SPAN
703 > any
704  web page content. By <SPAN
705 CLASS="QUOTE"
706 >"filtering"</SPAN
707 > we mean it can modify, remove, 
708  or change <I
709 CLASS="EMPHASIS"
710 >anything</I
711 > on the page, including HTML tags, and
712  JavaScript. Regular expressions are used to accomplish this, and operate 
713  on a line by line basis. This is potentially a very powerful feature, but
714  requires some expertise. </P
715 ><P
716 > If you are familiar with regular expressions, and HTML, you can look at 
717  the provided <TT
718 CLASS="FILENAME"
719 >default.filter</TT
720 > with a text editor and see
721  some of things it can be used for.</P
722 ><P
723 > Presently, there is no GUI editor option for this part of the configuration, 
724  but you can disable/enable various sections of the included default 
725  file with the <SPAN
726 CLASS="QUOTE"
727 >"Actions List Editor"</SPAN
728 > from your browser.</P
729 ></DIV
730 ><DIV
731 CLASS="SECT2"
732 ><H3
733 CLASS="SECT2"
734 ><A
735 NAME="AEN391"
736 >3.8. How can I set up <SPAN
737 CLASS="APPLICATION"
738 >Privoxy</SPAN
739 > to act as a proxy for my 
740  LAN?</A
741 ></H3
742 ><P
743 > By default, <SPAN
744 CLASS="APPLICATION"
745 >Privoxy</SPAN
746 > only responds to requests 
747  from localhost. To have it act as a server for a network, this needs to be 
748  changed in the main config file where the <SPAN
749 CLASS="APPLICATION"
750 >Privoxy</SPAN
751 >
752  configuration is located. In that file is a <SPAN
753 CLASS="QUOTE"
754 >"listen-address"</SPAN
755
756  option. It may be commented out with a <SPAN
757 CLASS="QUOTE"
758 >"#"</SPAN
759 > symbol. Make sure 
760  it is uncommented, and assign it the address of the LAN gateway interface, 
761  and port number to use:</P
762 ><P
763 > <TABLE
764 BORDER="0"
765 BGCOLOR="#E0E0E0"
766 WIDTH="100%"
767 ><TR
768 ><TD
769 ><PRE
770 CLASS="SCREEN"
771 >  listen-address  192.168.1.1:8118
772  </PRE
773 ></TD
774 ></TR
775 ></TABLE
776 ></P
777 ><P
778 > Save the file, and restart <SPAN
779 CLASS="APPLICATION"
780 >Privoxy</SPAN
781 >. Configure 
782  all browsers on the network then to use this address and port number.</P
783 ></DIV
784 ><DIV
785 CLASS="SECT2"
786 ><H3
787 CLASS="SECT2"
788 ><A
789 NAME="AEN403"
790 >3.9. Instead of ads, now I get a checkerboard pattern. I don't want to see anything.</A
791 ></H3
792 ><P
793 > This is a configuration option for images that
794  <SPAN
795 CLASS="APPLICATION"
796 >Privoxy</SPAN
797 > is stopping. You have the choice   of a checkerboard
798  pattern, a transparent 1x1 GIF image (aka <SPAN
799 CLASS="QUOTE"
800 >"blank"</SPAN
801 >), or a custom
802  URL of your choice. Note that to fit this category, the URL must match both 
803  the <SPAN
804 CLASS="QUOTE"
805 >"+image"</SPAN
806 > and <SPAN
807 CLASS="QUOTE"
808 >"+block"</SPAN
809 > actions.</P
810 ><P
811 > If you want to see nothing, then change the <SPAN
812 CLASS="QUOTE"
813 >"+image-blocker"</SPAN
814
815  action to <SPAN
816 CLASS="QUOTE"
817 >"+image-blocker{blank}"</SPAN
818 >. This can be done from the 
819  <SPAN
820 CLASS="QUOTE"
821 >"Edit Actions List"</SPAN
822 > selection at <A
823 HREF="http://p.p/"
824 TARGET="_top"
825 >http://p.p/</A
826 >. Or by hand editing the appropriate 
827  actions file. This will only effect what is defined as <SPAN
828 CLASS="QUOTE"
829 >"images"</SPAN
830 >
831  though. Also, some URLs that generate the bright red <SPAN
832 CLASS="QUOTE"
833 >"Blocked"</SPAN
834 >
835  banner, can be moved to the <SPAN
836 CLASS="QUOTE"
837 >"+image-blocker"</SPAN
838 > section for the
839  same reason, but there are some limits and risks to this (see below).</P
840 ></DIV
841 ><DIV
842 CLASS="SECT2"
843 ><H3
844 CLASS="SECT2"
845 ><A
846 NAME="AEN418"
847 >3.10. Why would anybody want to see a checkerboard pattern?</A
848 ></H3
849 ><P
850 > This can be helpful for troubleshooting problems. It might also be good 
851  for anyone new to <SPAN
852 CLASS="APPLICATION"
853 >Privoxy</SPAN
854 > so that they can 
855  see if their favorite pages are displaying correctly, and
856  <SPAN
857 CLASS="APPLICATION"
858 >Privoxy</SPAN
859 > is not inadvertently removing something 
860  important.</P
861 ></DIV
862 ><DIV
863 CLASS="SECT2"
864 ><H3
865 CLASS="SECT2"
866 ><A
867 NAME="AEN423"
868 >3.11. I see large red banners on some pages that say 
869 <SPAN
870 CLASS="QUOTE"
871 >"Blocked"</SPAN
872 >. Why and how do I get rid of this?</A
873 ></H3
874 ><P
875 > These are URLs that match something in one of 
876  <SPAN
877 CLASS="APPLICATION"
878 >Privoxy's</SPAN
879 > block actions (+block). It is meant
880  to be a warning so that you know something has been blocked and an easy way
881  for you to see why. These are handled differently than what has been defined
882  explicitly as <SPAN
883 CLASS="QUOTE"
884 >"images"</SPAN
885 > (e.g. ad banners). Depending on the 
886  URL itself, it is sometimes hard for <SPAN
887 CLASS="APPLICATION"
888 >Privoxy</SPAN
889 > to 
890  really know whether there is indeed an ad image there or not. And there are
891  limitations as to what <SPAN
892 CLASS="APPLICATION"
893 >Privoxy</SPAN
894 > can do to 
895  <SPAN
896 CLASS="QUOTE"
897 >"fool"</SPAN
898 > the browser.</P
899 ><P
900 > For instance, if the ad is in a frame, then it is embedded in the separate
901  HTML page used for the frame. In this case, you cannot just substitute an
902  aribitray image (like we would for a <SPAN
903 CLASS="QUOTE"
904 >"blank"</SPAN
905 > image), for an HTML
906  page. The browser is expecting an HTML page, and that is what it must have
907  for frames. So this situation can be a little trickier to deal with, and 
908  <SPAN
909 CLASS="APPLICATION"
910 >Privoxy</SPAN
911 > will use the <SPAN
912 CLASS="QUOTE"
913 >"Blocked"</SPAN
914 > page.</P
915 ><P
916 > If you want these to be treated as if they were images, so that they can be
917  made invisible, you can try moving the offending URL from the
918  <SPAN
919 CLASS="QUOTE"
920 >"+block"</SPAN
921 > section to the <SPAN
922 CLASS="QUOTE"
923 >"+imageblock"</SPAN
924 > section of
925  your actions file. Just be forewarned, if any URL is made
926  <SPAN
927 CLASS="QUOTE"
928 >"invisible"</SPAN
929 >, you may not have any inkling that something has
930  been removed from that page, or why. If this approach does not work, then you are
931  probably dealing with a frame (or <SPAN
932 CLASS="QUOTE"
933 >"ilayer"</SPAN
934 >), and the only thing
935  that can go there is an HTML page of some sort.</P
936 ><P
937 > To deal with this situation, you could modify the
938  <SPAN
939 CLASS="QUOTE"
940 >"<TT
941 CLASS="FILENAME"
942 >block</TT
943 >"</SPAN
944 > HTML template that is used by
945  <SPAN
946 CLASS="APPLICATION"
947 >Privoxy</SPAN
948 > to display this, and make it something
949  more to your liking. Currently, there is no configuration option for this.
950  You will have to modify, or create your own page, and use this to replace
951  <TT
952 CLASS="FILENAME"
953 >templates/blocked</TT
954 >, which is what
955  <SPAN
956 CLASS="APPLICATION"
957 >Privoxy</SPAN
958 > uses to display the <SPAN
959 CLASS="QUOTE"
960 >"Blocked"</SPAN
961 >
962  page.</P
963 ><P
964 > Another way to deal with this is find why and where
965  <SPAN
966 CLASS="APPLICATION"
967 >Privoxy</SPAN
968 > is blocking the frame, and 
969  diable this. Then let the <SPAN
970 CLASS="QUOTE"
971 >"+image-blocker"</SPAN
972 > action 
973  handle the ad that is embedded in the frame's HTML page. </P
974 ></DIV
975 ><DIV
976 CLASS="SECT2"
977 ><H3
978 CLASS="SECT2"
979 ><A
980 NAME="ALLISEEISRED"
981 >3.12. I cannot see all of the <SPAN
982 CLASS="QUOTE"
983 >"Blocked"</SPAN
984 > page banner. All I
985 see is a bright red square.</A
986 ></H3
987 ><P
988 > There is not enough space to fit the entire page. Try right clicking on the
989  visible, red portion, and select <SPAN
990 CLASS="QUOTE"
991 >"Show Frame"</SPAN
992 >, or equivalent.
993  This will usually allow you to see the entire Privoxy <SPAN
994 CLASS="QUOTE"
995 >"Blocked"</SPAN
996 >
997  page, and from there you can see just what is being blocked, and why.</P
998 ></DIV
999 ><DIV
1000 CLASS="SECT2"
1001 ><H2
1002 CLASS="SECT2"
1003 ><A
1004 NAME="SRVANY"
1005 >3.13. Can <SPAN
1006 CLASS="APPLICATION"
1007 >Privoxy</SPAN
1008 > run as a service 
1009 on Win2K/NT?</A
1010 ></H2
1011 ><P
1012 > Yes, it can run as a system service using <B
1013 CLASS="COMMAND"
1014 >srvany.exe</B
1015 >.
1016  The only catch is that this will effectively disable the
1017  <SPAN
1018 CLASS="APPLICATION"
1019 >Privoxy</SPAN
1020 > icon in the taskbar. You can have 
1021  one or the other, but not both at this time :( </P
1022 ><P
1023 > There is a pending feature request for this functionality. See 
1024  thread: <A
1025 HREF="http://sourceforge.net/tracker/?func=detail&atid=361118&aid=485617&group_id=11118"
1026 TARGET="_top"
1027 >http://sourceforge.net/tracker/?func=detail&#38;atid=361118&#38;aid=485617&#38;group_id=11118</A
1028 >, 
1029  for details, and a sample configuration.&#13;</P
1030 ></DIV
1031 ><DIV
1032 CLASS="SECT2"
1033 ><H3
1034 CLASS="SECT2"
1035 ><A
1036 NAME="OTHERPROXY"
1037 >3.14. How can I make <SPAN
1038 CLASS="APPLICATION"
1039 >Privoxy</SPAN
1040 > work with other 
1041 proxies like <SPAN
1042 CLASS="APPLICATION"
1043 >Squid</SPAN
1044 >?</A
1045 ></H3
1046 ><P
1047 > This can be done. See the <A
1048 HREF="../user-manual/configuration.html#FORWARDING"
1049 TARGET="_top"
1050 >user manual</A
1051 >, 
1052  which describes how to do this.&#13;</P
1053 ></DIV
1054 ></DIV
1055 ><DIV
1056 CLASS="NAVFOOTER"
1057 ><HR
1058 ALIGN="LEFT"
1059 WIDTH="100%"><TABLE
1060 WIDTH="100%"
1061 BORDER="0"
1062 CELLPADDING="0"
1063 CELLSPACING="0"
1064 ><TR
1065 ><TD
1066 WIDTH="33%"
1067 ALIGN="left"
1068 VALIGN="top"
1069 ><A
1070 HREF="installation.html"
1071 >Prev</A
1072 ></TD
1073 ><TD
1074 WIDTH="34%"
1075 ALIGN="center"
1076 VALIGN="top"
1077 ><A
1078 HREF="index.html"
1079 >Home</A
1080 ></TD
1081 ><TD
1082 WIDTH="33%"
1083 ALIGN="right"
1084 VALIGN="top"
1085 ><A
1086 HREF="misc.html"
1087 >Next</A
1088 ></TD
1089 ></TR
1090 ><TR
1091 ><TD
1092 WIDTH="33%"
1093 ALIGN="left"
1094 VALIGN="top"
1095 >Installation</TD
1096 ><TD
1097 WIDTH="34%"
1098 ALIGN="center"
1099 VALIGN="top"
1100 >&nbsp;</TD
1101 ><TD
1102 WIDTH="33%"
1103 ALIGN="right"
1104 VALIGN="top"
1105 >Miscellaneous</TD
1106 ></TR
1107 ></TABLE
1108 ></DIV
1109 ></BODY
1110 ></HTML
1111 >