Oh well, rename the --enable-pcre-host-patterns option to
[privoxy.git] / config
1 #        Sample Configuration File for Privoxy v3.0.8
2 #
3 #  $Id: config,v 1.62 2007/12/09 07:51:46 fabiankeil Exp $
4 #
5 #  Copyright (C) 2001-2008 Privoxy Developers http://www.privoxy.org/
6 #
7 ####################################################################
8 #                                                                  #
9 #                      Table of Contents                           #
10 #                                                                  #
11 #        I. INTRODUCTION                                           #
12 #       II. FORMAT OF THE CONFIGURATION FILE                       #
13 #                                                                  #
14 #        1. LOCAL SET-UP DOCUMENTATION                             #
15 #        2. CONFIGURATION AND LOG FILE LOCATIONS                   #
16 #        3. DEBUGGING                                              #
17 #        4. ACCESS CONTROL AND SECURITY                            #
18 #        5. FORWARDING                                             #
19 #        6. WINDOWS GUI OPTIONS                                    #
20 #                                                                  #
21 ####################################################################
22 #
23 #
24 #  I. INTRODUCTION
25 #   ===============
26 #
27 #  This file holds Privoxy's main configuration. Privoxy detects
28 #  configuration changes automatically, so you don't have to restart
29 #  it unless you want to load a different configuration file.
30 #
31 #  The configuration will be reloaded with the first request after
32 #  the change was done, this request itself will still use the old
33 #  configuration, though. In other words: it takes two requests before
34 #  you see the result of your changes.  Requests that are dropped due
35 #  to ACL don't trigger reloads.
36 #
37 #  When starting Privoxy on Unix systems, give the location of this
38 #  file as last argument. On Windows systems, Privoxy will look for
39 #  this file with the name 'config.txt' in the current working directory
40 #  of the Privoxy process.
41 #
42 #
43 #  II. FORMAT OF THE CONFIGURATION FILE
44 #  ====================================
45 #
46 #  Configuration lines consist of an initial keyword followed by a
47 #  list of values, all separated by whitespace (any number of spaces
48 #  or tabs). For example,
49 #
50 #  actionsfile default.action
51 #
52 #  Indicates that the actionsfile is named 'default.action'.
53 #
54 #  The '#' indicates a comment. Any part of a line following a '#'
55 #  is ignored, except if the '#' is preceded by a '\'.
56 #
57 #  Thus, by placing a # at the start of an existing configuration
58 #  line, you can make it a comment and it will be treated as if it
59 #  weren't there. This is called "commenting out" an option and can
60 #  be useful. Removing the # again is called "uncommenting".
61 #
62 #  Note that commenting out an option and leaving it at its default
63 #  are two completely different things! Most options behave very
64 #  differently when unset.  See the "Effect if unset" explanation in
65 #  each option's description for details.
66 #
67 #  Long lines can be continued on the next line by using a `\' as the
68 #  last character.
69 #
70 #
71 #
72 #  1. LOCAL SET-UP DOCUMENTATION
73 #
74 #  If you intend to operate Privoxy for more users than just yourself,
75 #  it might be a good idea to let them know how to reach you, what
76 #  you block and why you do that, your policies, etc.
77 #
78 #
79 #
80 #  1.1. user-manual
81 #
82 #  Specifies:
83 #
84 #      Location of the Privoxy User Manual.
85 #
86 #  Type of value:
87 #
88 #      A fully qualified URI
89 #
90 #  Default value:
91 #
92 #      Unset
93 #
94 #  Effect if unset:
95 #
96 #      http://www.privoxy.org/version/user-manual/ will be used,
97 #      where version is the Privoxy version.
98 #
99 #  Notes:
100 #
101 #      The User Manual URI is the single best source of information on
102 #      Privoxy, and is used for help links from some of the internal
103 #      CGI pages. The manual itself is normally packaged with the
104 #      binary distributions, so you probably want to set this to a
105 #      locally installed copy.
106 #
107 #      Examples:
108 #
109 #      The best all purpose solution is simply to put the full local
110 #      PATH to where the User Manual is located:
111 #
112 #        user-manual  /usr/share/doc/privoxy/user-manual
113 #
114 #
115 #      The User Manual is then available to anyone with
116 #      access to Privoxy, by following the built-in URL:
117 #      http://config.privoxy.org/user-manual/ (or the shortcut:
118 #      http://p.p/user-manual/).
119 #
120 #      If the documentation is not on the local system, it can be
121 #      accessed from a remote server, as:
122 #
123 #        user-manual  http://example.com/privoxy/user-manual/
124 #
125 #
126 #      WARNING!!!
127 #
128 #          If set, this option should be the first option in the config
129 #          file, because it is used while the config file is being read.
130 #
131 #user-manual http://www.privoxy.org/user-manual/
132 #
133 #
134 #  1.2. trust-info-url
135 #
136 #  Specifies:
137 #
138 #      A URL to be displayed in the error page that users will see if
139 #      access to an untrusted page is denied.
140 #
141 #  Type of value:
142 #
143 #      URL
144 #
145 #  Default value:
146 #
147 #      Two example URLs are provided
148 #
149 #  Effect if unset:
150 #
151 #      No links are displayed on the "untrusted" error page.
152 #
153 #  Notes:
154 #
155 #      The value of this option only matters if the experimental trust
156 #      mechanism has been activated. (See trustfile below.)
157 #
158 #      If you use the trust mechanism, it is a good idea to write
159 #      up some on-line documentation about your trust policy and to
160 #      specify the URL(s) here. Use multiple times for multiple URLs.
161 #
162 #      The URL(s) should be added to the trustfile as well, so users
163 #      don't end up locked out from the information on why they were
164 #      locked out in the first place!
165 #
166 trust-info-url  http://www.example.com/why_we_block.html
167 trust-info-url  http://www.example.com/what_we_allow.html
168 #
169 #
170 #  1.3. admin-address
171 #
172 #  Specifies:
173 #
174 #      An email address to reach the Privoxy administrator.
175 #
176 #  Type of value:
177 #
178 #      Email address
179 #
180 #  Default value:
181 #
182 #      Unset
183 #
184 #  Effect if unset:
185 #
186 #      No email address is displayed on error pages and the CGI user
187 #      interface.
188 #
189 #  Notes:
190 #
191 #      If both admin-address and proxy-info-url are unset, the whole
192 #      "Local Privoxy Support" box on all generated pages will not
193 #      be shown.
194 #
195 #admin-address privoxy-admin@example.com
196 #
197 #
198 #  1.4. proxy-info-url
199 #
200 #  Specifies:
201 #
202 #      A URL to documentation about the local Privoxy setup,
203 #      configuration or policies.
204 #
205 #  Type of value:
206 #
207 #      URL
208 #
209 #  Default value:
210 #
211 #      Unset
212 #
213 #  Effect if unset:
214 #
215 #      No link to local documentation is displayed on error pages and
216 #      the CGI user interface.
217 #
218 #  Notes:
219 #
220 #      If both admin-address and proxy-info-url are unset, the whole
221 #      "Local Privoxy Support" box on all generated pages will not
222 #      be shown.
223 #
224 #      This URL shouldn't be blocked ;-)
225 #
226 #proxy-info-url http://www.example.com/proxy-service.html
227 #
228 #
229 #  2. CONFIGURATION AND LOG FILE LOCATIONS
230 #
231 #  Privoxy can (and normally does) use a number of other files for
232 #  additional configuration, help and logging. This section of the
233 #  configuration file tells Privoxy where to find those other files.
234 #
235 #  The user running Privoxy, must have read permission for all
236 #  configuration files, and write permission to any files that would
237 #  be modified, such as log files and actions files.
238 #
239 #
240 #
241 #  2.1. confdir
242 #
243 #  Specifies:
244 #
245 #      The directory where the other configuration files are located.
246 #
247 #  Type of value:
248 #
249 #      Path name
250 #
251 #  Default value:
252 #
253 #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
254 #
255 #  Effect if unset:
256 #
257 #      Mandatory
258 #
259 #  Notes:
260 #
261 #      No trailing "/", please.
262 #
263 confdir .
264 #
265 #
266 #  2.2. templdir
267 #
268 #  Specifies:
269 #
270 #      An alternative directory where the templates are loaded from.
271 #
272 #  Type of value:
273 #
274 #      Path name
275 #
276 #  Default value:
277 #
278 #      unset
279 #
280 #  Effect if unset:
281 #
282 #      The templates are assumed to be located in confdir/template.
283 #
284 #  Notes:
285 #
286 #      Privoxy's original templates are usually overwritten with each
287 #      update. Use this option to relocate customized templates that
288 #      should be kept. As template variables might change between
289 #      updates, you shouldn't expect templates to work with Privoxy
290 #      releases other than the one they were part of, though.
291 #
292 #templdir .
293 #
294 #
295 #  2.3. logdir
296 #
297 #  Specifies:
298 #
299 #      The directory where all logging takes place (i.e. where logfile
300 #      and jarfile are located).
301 #
302 #  Type of value:
303 #
304 #      Path name
305 #
306 #  Default value:
307 #
308 #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
309 #
310 #  Effect if unset:
311 #
312 #      Mandatory
313 #
314 #  Notes:
315 #
316 #      No trailing "/", please.
317 #
318 logdir .
319 #
320 #
321 #  2.4. actionsfile
322 #
323 #  Specifies:
324 #
325 #      The actions file(s) to use
326 #
327 #  Type of value:
328 #
329 #      Complete file name, relative to confdir
330 #
331 #  Default values:
332 #
333 #        standard.action     # Internal purposes, no editing recommended
334 #
335 #        default.action      # Main actions file
336 #
337 #        user.action         # User customizations
338 #
339 #  Effect if unset:
340 #
341 #      No actions are taken at all. More or less neutral proxying.
342 #
343 #  Notes:
344 #
345 #      Multiple actionsfile lines are permitted, and are in fact
346 #      recommended!
347 #
348 #      The default values include standard.action, which is used
349 #      for internal purposes and should be loaded, default.action,
350 #      which is the "main" actions file maintained by the developers,
351 #      and user.action, where you can make your personal additions.
352 #
353 #      Actions files contain all the per site and per URL configuration
354 #      for ad blocking, cookie management, privacy considerations,
355 #      etc. There is no point in using Privoxy without at least one
356 #      actions file.
357 #
358 #      Note that since Privoxy 3.0.7, the complete filename, including
359 #      the ".action" extension has to be specified. The syntax change
360 #      was necessary to be consistent with the other file options and
361 #      to allow previously forbidden characters.
362 #
363 actionsfile standard.action  # Internal purpose, recommended
364 actionsfile default.action   # Main actions file
365 actionsfile user.action      # User customizations
366 #
367 #
368 #  2.5. filterfile
369 #
370 #  Specifies:
371 #
372 #      The filter file(s) to use
373 #
374 #  Type of value:
375 #
376 #      File name, relative to confdir
377 #
378 #  Default value:
379 #
380 #      default.filter (Unix) or default.filter.txt (Windows)
381 #
382 #  Effect if unset:
383 #
384 #      No textual content filtering takes place, i.e. all +filter{name}
385 #      actions in the actions files are turned neutral.
386 #
387 #  Notes:
388 #
389 #      Multiple filterfile lines are permitted.
390 #
391 #      The filter files contain content modification rules that use
392 #      regular expressions. These rules permit powerful changes on the
393 #      content of Web pages, and optionally the headers as well, e.g.,
394 #      you could try to disable your favorite JavaScript annoyances,
395 #      re-write the actual displayed text, or just have some fun
396 #      playing buzzword bingo with web pages.
397 #
398 #      The +filter{name} actions rely on the relevant filter (name)
399 #      to be defined in a filter file!
400 #
401 #      A pre-defined filter file called default.filter that contains a
402 #      number of useful filters for common problems is included in the
403 #      distribution. See the section on the filter action for a list.
404 #
405 #      It is recommended to place any locally adapted filters into a
406 #      separate file, such as user.filter.
407 #
408 filterfile default.filter
409 #filterfile user.filter      # User customizations
410 #
411 #
412 #  2.6. logfile
413 #
414 #  Specifies:
415 #
416 #      The log file to use
417 #
418 #  Type of value:
419 #
420 #      File name, relative to logdir
421 #
422 #  Default value:
423 #
424 #      Unset (commented out). When activated: logfile (Unix) or
425 #      privoxy.log (Windows).
426 #
427 #  Effect if unset:
428 #
429 #      No logfile is written.
430 #
431 #  Notes:
432 #
433 #      The logfile is where all logging and error messages are
434 #      written. The level of detail and number of messages are set with
435 #      the debug option (see below).  The logfile can be useful for
436 #      tracking down a problem with Privoxy (e.g., it's not blocking
437 #      an ad you think it should block) and it can help you to monitor
438 #      what your browser is doing.
439 #
440 #      Depending on the debug options below, the logfile may be a privacy
441 #      risk if third parties can get access to it. As most users will never
442 #      look at it, Privoxy 3.0.7 and later only log fatal errors by default.
443 #
444 #      For most troubleshooting purposes, you will have to change that, please
445 #      refer to the debugging section for details.
446 #
447 #      Your logfile will grow indefinitely, and you will probably
448 #      want to periodically remove it. On Unix systems, you can do
449 #      this with a cron job (see "man cron"). For Red Hat based Linux
450 #      distributions, a logrotate script has been included.
451 #
452 #      Any log files must be writable by whatever user Privoxy is
453 #      being run as (on Unix, default user id is "privoxy").
454 #
455 logfile logfile
456 #
457 #
458 #  2.7. jarfile
459 #
460 #  Specifies:
461 #
462 #      The file to store intercepted cookies in
463 #
464 #  Type of value:
465 #
466 #      File name, relative to logdir
467 #
468 #  Default value:
469 #
470 #      Unset (commented out). When activated: jarfile (Unix) or
471 #      privoxy.jar (Windows).
472 #
473 #  Effect if unset:
474 #
475 #      Intercepted cookies are not stored in a dedicated log file.
476 #
477 #  Notes:
478 #
479 #      The jarfile may grow to ridiculous sizes over time.
480 #
481 #      If debug 8 (show header parsing) is enabled, cookies are also
482 #      written to the logfile with the rest of the headers. Therefore
483 #      this option isn't very useful and may be removed in future
484 #      releases. Please report to the developers if you are still
485 #      using it.
486 #
487 #jarfile jarfile
488 #
489 #
490 #  2.8. trustfile
491 #
492 #  Specifies:
493 #
494 #      The name of the trust file to use
495 #
496 #  Type of value:
497 #
498 #      File name, relative to confdir
499 #
500 #  Default value:
501 #
502 #      Unset (commented out). When activated: trust (Unix) or trust.txt
503 #      (Windows)
504 #
505 #  Effect if unset:
506 #
507 #      The entire trust mechanism is disabled.
508 #
509 #  Notes:
510 #
511 #      The trust mechanism is an experimental feature for building
512 #      white-lists and should be used with care. It is NOT recommended
513 #      for the casual user.
514 #
515 #      If you specify a trust file, Privoxy will only allow access to
516 #      sites that are specified in the trustfile. Sites can be listed
517 #      in one of two ways:
518 #
519 #      Prepending a ~ character limits access to this site only (and
520 #      any sub-paths within this site), e.g. ~www.example.com allows
521 #      access to ~www.example.com/ features/news.html, etc.
522 #
523 #      Or, you can designate sites as trusted referrers, by prepending
524 #      the name with a + character. The effect is that access to
525 #      untrusted sites will be granted -- but only if a link from
526 #      this trusted referrer was used to get there. The link target
527 #      will then be added to the "trustfile" so that future, direct
528 #      accesses will be granted. Sites added via this mechanism do
529 #      not become trusted referrers themselves (i.e. they are added
530 #      with a ~ designation). There is a limit of 512 such entries,
531 #      after which new entries will not be made.
532 #
533 #      If you use the + operator in the trust file, it may grow
534 #      considerably over time.
535 #
536 #      It is recommended that Privoxy be compiled with the
537 #      --disable-force, --disable-toggle and --disable-editor options,
538 #      if this feature is to be used.
539 #
540 #      Possible applications include limiting Internet access for
541 #      children.
542 #
543 #trustfile trust
544 #
545 #
546 #  3. DEBUGGING
547 #
548 #  These options are mainly useful when tracing a problem. Note that
549 #  you might also want to invoke Privoxy with the --no-daemon command
550 #  line option when debugging.
551 #
552 #
553 #
554 #  3.1. debug
555 #
556 #  Specifies:
557 #
558 #      Key values that determine what information gets logged.
559 #
560 #  Type of value:
561 #
562 #      Integer values
563 #
564 #  Default value:
565 #
566 #       0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)
567 #
568 #  Effect if unset:
569 #
570 #      Default value is used (see above).
571 #
572 #  Notes:
573 #
574 #      The available debug levels are:
575 #
576 #        debug         1 # log each request destination (and the crunch reason if Privoxy intercepted the request)
577 #        debug         2 # show each connection status 
578 #        debug         4 # show I/O status 
579 #        debug         8 # show header parsing 
580 #        debug        16 # log all data written to the network into the logfile 
581 #        debug        32 # debug force feature 
582 #        debug        64 # debug regular expression filters 
583 #        debug       128 # debug redirects 
584 #        debug       256 # debug GIF de-animation 
585 #        debug       512 # Common Log Format 
586 #        debug      1024 # debug kill pop-ups 
587 #        debug      2048 # CGI user interface 
588 #        debug      4096 # Startup banner and warnings.  
589 #        debug      8192 # Non-fatal errors
590 #
591 #
592 #      To select multiple debug levels, you can either add them or
593 #      use multiple debug lines.
594 #
595 #      A debug level of 1 is informative because it will show you each
596 #      request as it happens. 1, 4096 and 8192 are recommended so that you
597 #      will notice when things go wrong. The other levels are probably only
598 #      of interest if you are hunting down a specific problem. They can
599 #      produce a hell of an output (especially 16).
600 #
601 #      Privoxy used to ship with the debug levels recommended above enabled
602 #      by default, but due to privacy concerns 3.0.7 and later are
603 #      configured to only log fatal errors.
604
605 #      If you are used to the more verbose settings, simply enable the debug
606 #      lines below again.
607 #
608 #      If you want to use pure CLF (Common Log Format), you should set
609 #      debug 512 ONLY and not enable anything else.
610 #
611 #      Privoxy has a hard-coded limit for the length of log messages. If
612 #      it's reached, messages are logged truncated and marked with
613 #      "... [too long, truncated]".
614 #
615 #      Please don't file any support requests without trying to reproduce
616 #      the problem with increased debug level first. Once you read the log
617 #      messages, you may even be able to solve the problem on your own.
618 #
619 #debug   1    # log each request destination (and the crunch reason if Privoxy intercepted the request)
620 #debug   4096 # Startup banner and warnings
621 #debug   8192 # Non-fatal errors
622 #
623 #
624 #  3.2. single-threaded
625 #
626 #  Specifies:
627 #
628 #      Whether to run only one server thread.
629 #
630 #  Type of value:
631 #
632 #      None
633 #
634 #  Default value:
635 #
636 #      Unset
637 #
638 #  Effect if unset:
639 #
640 #      Multi-threaded (or, where unavailable: forked) operation,
641 #      i.e. the ability to serve multiple requests simultaneously.
642 #
643 #  Notes:
644 #
645 #      This option is only there for debugging purposes. It will
646 #      drastically reduce performance.
647 #
648 #single-threaded
649 #
650 #
651 #  4. ACCESS CONTROL AND SECURITY
652 #
653 #  This section of the config file controls the security-relevant
654 #  aspects of Privoxy's configuration.
655 #
656 #
657 #
658 #  4.1. listen-address
659 #
660 #  Specifies:
661 #
662 #      The IP address and TCP port on which Privoxy will listen for
663 #      client requests.
664 #
665 #  Type of value:
666 #
667 #      [IP-Address]:Port
668 #
669 #  Default value:
670 #
671 #      127.0.0.1:8118
672 #
673 #  Effect if unset:
674 #
675 #      Bind to 127.0.0.1 (localhost), port 8118. This is suitable and
676 #      recommended for home users who run Privoxy on the same machine
677 #      as their browser.
678 #
679 #  Notes:
680 #
681 #      You will need to configure your browser(s) to this proxy address
682 #      and port.
683 #
684 #      If you already have another service running on port 8118, or
685 #      if you want to serve requests from other machines (e.g. on your
686 #      local network) as well, you will need to override the default.
687 #
688 #      If you leave out the IP address, Privoxy will bind to all
689 #      interfaces (addresses) on your machine and may become reachable
690 #      from the Internet. In that case, consider using access control
691 #      lists (ACL's, see below), and/or a firewall.
692 #
693 #      If you open Privoxy to untrusted users, you will also
694 #      want to make sure that the following actions are disabled:
695 #      enable-edit-actions and enable-remote-toggle
696 #
697 #  Example:
698 #
699 #      Suppose you are running Privoxy on a machine which has the
700 #      address 192.168.0.1 on your local private network (192.168.0.0)
701 #      and has another outside connection with a different address. You
702 #      want it to serve requests from inside only:
703 #
704 #        listen-address  192.168.0.1:8118
705 #
706 #
707 listen-address  127.0.0.1:8118
708 #
709 #
710 #  4.2. toggle
711 #
712 #  Specifies:
713 #
714 #      Initial state of "toggle" status
715 #
716 #  Type of value:
717 #
718 #      1 or 0
719 #
720 #  Default value:
721 #
722 #      1
723 #
724 #  Effect if unset:
725 #
726 #      Act as if toggled on
727 #
728 #  Notes:
729 #
730 #      If set to 0, Privoxy will start in "toggled off" mode,
731 #      i.e. mostly behave like a normal, content-neutral proxy
732 #      with both ad blocking and content filtering disabled. See
733 #      enable-remote-toggle below.
734 #
735 #      The windows version will only display the toggle icon in the
736 #      system tray if this option is present.
737 #
738 toggle  1
739 #
740 #
741 #  4.3. enable-remote-toggle
742 #
743 #  Specifies:
744 #
745 #      Whether or not the web-based toggle feature may be used
746 #
747 #  Type of value:
748 #
749 #      0 or 1
750 #
751 #  Default value:
752 #
753 #      0
754 #
755 #  Effect if unset:
756 #
757 #      The web-based toggle feature is disabled.
758 #
759 #  Notes:
760 #
761 #      When toggled off, Privoxy mostly acts like a normal,
762 #      content-neutral proxy, i.e. doesn't block ads or filter content.
763 #
764 #      Access to the toggle feature can not be controlled separately by
765 #      "ACLs" or HTTP authentication, so that everybody who can access
766 #      Privoxy (see "ACLs" and listen-address above) can toggle it
767 #      for all users. So this option is not recommended for multi-user
768 #      environments with untrusted users.
769 #
770 #      Note that malicious client side code (e.g Java) is also capable
771 #      of using this option.
772 #
773 #      As a lot of Privoxy users don't read documentation, this feature
774 #      is disabled by default.
775 #
776 #      Note that you must have compiled Privoxy with support for this
777 #      feature, otherwise this option has no effect.
778 #
779 enable-remote-toggle  0
780 #
781 #
782 #  4.4. enable-remote-http-toggle
783 #
784 #  Specifies:
785 #
786 #      Whether or not Privoxy recognizes special HTTP headers to change
787 #      its behaviour.
788 #
789 #  Type of value:
790 #
791 #      0 or 1
792 #
793 #  Default value:
794 #
795 #      0
796 #
797 #  Effect if unset:
798 #
799 #      Privoxy ignores special HTTP headers.
800 #
801 #  Notes:
802 #
803 #      When toggled on, the client can change Privoxy's behaviour by
804 #      setting special HTTP headers. Currently the only supported
805 #      special header is "X-Filter: No", to disable filtering for
806 #      the ongoing request, even if it is enabled in one of the
807 #      action files.
808 #
809 #      This feature is disabled by default. If you are using Privoxy in
810 #      a environment with trusted clients, you may enable this feature
811 #      at your discretion. Note that malicious client side code (e.g
812 #      Java) is also capable of using this feature.
813 #
814 #      This option will be removed in future releases as it has been
815 #      obsoleted by the more general header taggers.
816 #
817 enable-remote-http-toggle  0
818 #
819 #
820 #  4.5. enable-edit-actions
821 #
822 #  Specifies:
823 #
824 #      Whether or not the web-based actions file editor may be used
825 #
826 #  Type of value:
827 #
828 #      0 or 1
829 #
830 #  Default value:
831 #
832 #      0
833 #
834 #  Effect if unset:
835 #
836 #      The web-based actions file editor is disabled.
837 #
838 #  Notes:
839 #
840 #      Access to the editor can not be controlled separately by
841 #      "ACLs" or HTTP authentication, so that everybody who can access
842 #      Privoxy (see "ACLs" and listen-address above) can modify its
843 #      configuration for all users.
844 #
845 #      This option is not recommended for environments with untrusted
846 #      users and as a lot of Privoxy users don't read documentation,
847 #      this feature is disabled by default.
848 #
849 #      Note that malicious client side code (e.g Java) is also capable
850 #      of using the actions editor and you shouldn't enable this
851 #      options unless you understand the consequences and are sure
852 #      your browser is configured correctly.
853 #
854 #      Note that you must have compiled Privoxy with support for this
855 #      feature, otherwise this option has no effect.
856 #
857 enable-edit-actions 0
858 #
859 #
860 #  4.6. enforce-blocks
861 #
862 #  Specifies:
863 #
864 #      Whether the user is allowed to ignore blocks and can "go there
865 #      anyway".
866 #
867 #  Type of value:
868 #
869 #      0 or 1
870 #
871 #  Default value:
872 #
873 #      0
874 #
875 #  Effect if unset:
876 #
877 #      Blocks are not enforced.
878 #
879 #  Notes:
880 #
881 #      Privoxy is mainly used to block and filter requests as a service
882 #      to the user, for example to block ads and other junk that clogs
883 #      the pipes.  Privoxy's configuration isn't perfect and sometimes
884 #      innocent pages are blocked. In this situation it makes sense to
885 #      allow the user to enforce the request and have Privoxy ignore
886 #      the block.
887 #
888 #      In the default configuration Privoxy's "Blocked" page contains
889 #      a "go there anyway" link to adds a special string (the force
890 #      prefix) to the request URL. If that link is used, Privoxy
891 #      will detect the force prefix, remove it again and let the
892 #      request pass.
893 #
894 #      Of course Privoxy can also be used to enforce a network
895 #      policy. In that case the user obviously should not be able to
896 #      bypass any blocks, and that's what the "enforce-blocks" option
897 #      is for. If it's enabled, Privoxy hides the "go there anyway"
898 #      link. If the user adds the force prefix by hand, it will not
899 #      be accepted and the circumvention attempt is logged.
900 #
901 #  Examples:
902 #
903 #      enforce-blocks 1
904 #
905 enforce-blocks 0
906 #
907 #
908 #  4.7. ACLs: permit-access and deny-access
909 #
910 #  Specifies:
911 #
912 #      Who can access what.
913 #
914 #  Type of value:
915 #
916 #      src_addr[/src_masklen] [dst_addr[/dst_masklen]]
917 #
918 #      Where src_addr and dst_addr are IP addresses in dotted decimal
919 #      notation or valid DNS names, and src_masklen and dst_masklen are
920 #      subnet masks in CIDR notation, i.e. integer values from 2 to 30
921 #      representing the length (in bits) of the network address. The
922 #      masks and the whole destination part are optional.
923 #
924 #  Default value:
925 #
926 #      Unset
927 #
928 #  Effect if unset:
929 #
930 #      Don't restrict access further than implied by listen-address
931 #
932 #  Notes:
933 #
934 #      Access controls are included at the request of ISPs and systems
935 #      administrators, and are not usually needed by individual
936 #      users. For a typical home user, it will normally suffice to
937 #      ensure that Privoxy only listens on the localhost (127.0.0.1)
938 #      or internal (home) network address by means of the listen-address
939 #      option.
940 #
941 #      Please see the warnings in the FAQ that Privoxy is not intended
942 #      to be a substitute for a firewall or to encourage anyone to
943 #      defer addressing basic security weaknesses.
944 #
945 #      Multiple ACL lines are OK. If any ACLs are specified, Privoxy
946 #      only talks to IP addresses that match at least one permit-access
947 #      line and don't match any subsequent deny-access line. In other
948 #      words, the last match wins, with the default being deny-access.
949 #
950 #      If Privoxy is using a forwarder (see forward below) for a
951 #      particular destination URL, the dst_addr that is examined is
952 #      the address of the forwarder and NOT the address of the ultimate
953 #      target. This is necessary because it may be impossible for the
954 #      local Privoxy to determine the IP address of the ultimate target
955 #      (that's often what gateways are used for).
956 #
957 #      You should prefer using IP addresses over DNS names, because
958 #      the address lookups take time. All DNS names must resolve! You
959 #      can not use domain patterns like "*.org" or partial domain
960 #      names. If a DNS name resolves to multiple IP addresses, only
961 #      the first one is used.
962 #
963 #      Denying access to particular sites by ACL may have undesired
964 #      side effects if the site in question is hosted on a machine
965 #      which also hosts other sites (most sites are).
966 #
967 #  Examples:
968 #
969 #      Explicitly define the default behavior if no ACL and
970 #      listen-address are set: "localhost" is OK. The absence of a
971 #      dst_addr implies that all destination addresses are OK:
972 #
973 #        permit-access  localhost
974 #
975 #
976 #      Allow any host on the same class C subnet as www.privoxy.org
977 #      access to nothing but www.example.com (or other domains hosted
978 #      on the same system):
979 #
980 #        permit-access  www.privoxy.org/24 www.example.com/32
981 #
982 #
983 #      Allow access from any host on the 26-bit subnet 192.168.45.64 to
984 #      anywhere, with the exception that 192.168.45.73 may not access
985 #      the IP address behind www.dirty-stuff.example.com:
986 #
987 #        permit-access  192.168.45.64/26 
988 #        deny-access   192.168.45.73  www.dirty-stuff.example.com
989 #
990 #
991 #
992 #  4.8. buffer-limit
993 #
994 #  Specifies:
995 #
996 #      Maximum size of the buffer for content filtering.
997 #
998 #  Type of value:
999 #
1000 #      Size in Kbytes
1001 #
1002 #  Default value:
1003 #
1004 #      4096
1005 #
1006 #  Effect if unset:
1007 #
1008 #      Use a 4MB (4096 KB) limit.
1009 #
1010 #  Notes:
1011 #
1012 #      For content filtering, i.e. the +filter and +deanimate-gif
1013 #      actions, it is necessary that Privoxy buffers the entire document
1014 #      body. This can be potentially dangerous, since a server could
1015 #      just keep sending data indefinitely and wait for your RAM to
1016 #      exhaust -- with nasty consequences.  Hence this option.
1017 #
1018 #      When a document buffer size reaches the buffer-limit, it is
1019 #      flushed to the client unfiltered and no further attempt to filter
1020 #      the rest of the document is made. Remember that there may be
1021 #      multiple threads running, which might require up to buffer-limit
1022 #      Kbytes each, unless you have enabled "single-threaded" above.
1023 #
1024 buffer-limit 4096
1025 #
1026 #
1027 #  5. FORWARDING
1028 #
1029 #  This feature allows routing of HTTP requests through a chain of
1030 #  multiple proxies.
1031 #
1032 #  Forwarding can be used to chain Privoxy with a caching proxy to
1033 #  speed up browsing. Using a parent proxy may also be necessary if
1034 #  the machine that Privoxy runs on has no direct Internet access.
1035 #
1036 #  Note that parent proxies can severely decrease your privacy
1037 #  level. For example a parent proxy could add your IP address to the
1038 #  request headers and if it's a caching proxy it may add the "Etag"
1039 #  header to revalidation requests again, even though you configured
1040 #  Privoxy to remove it. It may also ignore Privoxy's header time
1041 #  randomization and use the original values which could be used by
1042 #  the server as cookie replacement to track your steps between visits.
1043 #
1044 #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
1045 #  4 and SOCKS 4A protocols.
1046 #
1047 #
1048 #
1049 #  5.1. forward
1050 #
1051 #  Specifies:
1052 #
1053 #      To which parent HTTP proxy specific requests should be routed.
1054 #
1055 #  Type of value:
1056 #
1057 #      target_pattern http_parent[:port]
1058 #
1059 #      where target_pattern is a URL pattern that specifies to which
1060 #      requests (i.e. URLs) this forward rule shall apply. Use /
1061 #      to denote "all URLs".  http_parent[:port] is the DNS name or
1062 #      IP address of the parent HTTP proxy through which the requests
1063 #      should be forwarded, optionally followed by its listening port
1064 #      (default: 8080). Use a single dot (.) to denote "no forwarding".
1065 #
1066 #  Default value:
1067 #
1068 #      Unset
1069 #
1070 #  Effect if unset:
1071 #
1072 #      Don't use parent HTTP proxies.
1073 #
1074 #  Notes:
1075 #
1076 #      If http_parent is ".", then requests are not forwarded to
1077 #      another HTTP proxy but are made directly to the web servers.
1078 #
1079 #      Multiple lines are OK, they are checked in sequence, and the
1080 #      last match wins.
1081 #
1082 #  Examples:
1083 #
1084 #      Everything goes to an example parent proxy, except SSL on port
1085 #      443 (which it doesn't handle):
1086 #
1087 #        forward   /      parent-proxy.example.org:8080 
1088 #        forward   :443   .
1089 #
1090 #
1091 #      Everything goes to our example ISP's caching proxy, except for
1092 #      requests to that ISP's sites:
1093 #
1094 #        forward   /                  caching-proxy.isp.example.net:8000
1095 #        forward   .isp.example.net   .
1096 #
1097 #
1098 #
1099 #
1100 #  5.2. forward-socks4 and forward-socks4a
1101 #
1102 #  Specifies:
1103 #
1104 #      Through which SOCKS proxy (and optionally to which parent HTTP
1105 #      proxy) specific requests should be routed.
1106 #
1107 #  Type of value:
1108 #
1109 #      target_pattern socks_proxy[:port] http_parent[:port]
1110 #
1111 #      where target_pattern is a URL pattern that specifies to which
1112 #      requests (i.e. URLs) this forward rule shall apply. Use / to
1113 #      denote "all URLs".  http_parent and socks_proxy are IP addresses
1114 #      in dotted decimal notation or valid DNS names (http_parent may
1115 #      be "." to denote "no HTTP forwarding"), and the optional port
1116 #      parameters are TCP ports, i.e. integer values from 1 to 64535
1117 #
1118 #  Default value:
1119 #
1120 #      Unset
1121 #
1122 #  Effect if unset:
1123 #
1124 #      Don't use SOCKS proxies.
1125 #
1126 #  Notes:
1127 #
1128 #      Multiple lines are OK, they are checked in sequence, and the
1129 #      last match wins.
1130 #
1131 #      The difference between forward-socks4 and forward-socks4a
1132 #      is that in the SOCKS 4A protocol, the DNS resolution of the
1133 #      target hostname happens on the SOCKS server, while in SOCKS 4
1134 #      it happens locally.
1135 #
1136 #      If http_parent is ".", then requests are not forwarded to another
1137 #      HTTP proxy but are made (HTTP-wise) directly to the web servers,
1138 #      albeit through a SOCKS proxy.
1139 #
1140 #  Examples:
1141 #
1142 #      From the company example.com, direct connections are made to all
1143 #      "internal" domains, but everything outbound goes through their
1144 #      ISP's proxy by way of example.com's corporate SOCKS 4A gateway
1145 #      to the Internet.
1146 #
1147 #        forward-socks4a   /       socks-gw.example.com:1080    www-cache.isp.example.net:8080 
1148 #        forward           .example.com        .
1149 #
1150 #
1151 #      A rule that uses a SOCKS 4 gateway for all destinations but no
1152 #      HTTP parent looks like this:
1153 #
1154 #        forward-socks4   /               socks-gw.example.com:1080  .
1155 #
1156 #
1157 #      To chain Privoxy and Tor, both running on the same system,
1158 #      you would use something like:
1159 #
1160 #        forward-socks4a   /               127.0.0.1:9050 .
1161 #
1162 #
1163 #      The public Tor network can't be used to reach your local network,
1164 #      if you need to access local servers you therefore might want
1165 #      to make some exceptions:
1166 #
1167 #        forward         192.168.*.*/     .  
1168 #        forward         10.*.*.*/        .  
1169 #        forward         127.*.*.*/       .
1170 #
1171 #
1172 #      Unencrypted connections to systems in these address ranges will
1173 #      be as (un) secure as the local network is, but the alternative
1174 #      is that you can't reach the local network through Privoxy at
1175 #      all. Of course this may actually be desired and there is no
1176 #      reason to make these exceptions if you aren't sure you need them.
1177 #
1178 #      If you also want to be able to reach servers in your local
1179 #      network by using their names, you will need additional exceptions
1180 #      that look like this:
1181 #
1182 #       forward           localhost/     .
1183 #
1184 #
1185 #
1186 #
1187 #  5.3. forwarded-connect-retries
1188 #
1189 #  Specifies:
1190 #
1191 #      How often Privoxy retries if a forwarded connection request
1192 #      fails.
1193 #
1194 #  Type of value:
1195 #
1196 #      Number of retries.
1197 #
1198 #  Default value:
1199 #
1200 #      0
1201 #
1202 #  Effect if unset:
1203 #
1204 #      Connections forwarded through other proxies are treated like
1205 #      direct connections and no retry attempts are made.
1206 #
1207 #  Notes:
1208 #
1209 #      forwarded-connect-retries is mainly interesting for socks4a
1210 #      connections, where Privoxy can't detect why the connections
1211 #      failed. The connection might have failed because of a DNS timeout
1212 #      in which case a retry makes sense, but it might also have failed
1213 #      because the server doesn't exist or isn't reachable. In this
1214 #      case the retry will just delay the appearance of Privoxy's
1215 #      error message.
1216 #
1217 #      Note that in the context of this option, "forwarded connections"
1218 #      includes all connections that Privoxy forwards through other
1219 #      proxies. This option is not limited to the HTTP CONNECT method.
1220 #
1221 #      Only use this option, if you are getting lots of
1222 #      forwarding-related error messages that go away when you try again
1223 #      manually. Start with a small value and check Privoxy's logfile
1224 #      from time to time, to see how many retries are usually needed.
1225 #
1226 #  Examples:
1227 #
1228 #      forwarded-connect-retries 1
1229 #
1230 forwarded-connect-retries  0
1231 #
1232 #
1233 #  5.4. accept-intercepted-requests
1234 #
1235 #  Specifies:
1236 #
1237 #      Whether intercepted requests should be treated as valid.
1238 #
1239 #  Type of value:
1240 #
1241 #      0 or 1
1242 #
1243 #  Default value:
1244 #
1245 #      0
1246 #
1247 #  Effect if unset:
1248 #
1249 #      Only proxy requests are accepted, intercepted requests are
1250 #      treated as invalid.
1251 #
1252 #  Notes:
1253 #
1254 #      If you don't trust your clients and want to force them to use
1255 #      Privoxy, enable this option and configure your packet filter
1256 #      to redirect outgoing HTTP connections into Privoxy.
1257 #
1258 #      Make sure that Privoxy's own requests aren't redirected as well.
1259 #      Additionally take care that Privoxy can't intentionally connect
1260 #      to itself, otherwise you could run into redirection loops if
1261 #      Privoxy's listening port is reachable by the outside or an
1262 #      attacker has access to the pages you visit.
1263 #
1264 #  Examples:
1265 #
1266 #      accept-intercepted-requests 1
1267 #
1268 accept-intercepted-requests 0
1269 #
1270 #
1271 #  5.5. allow-cgi-request-crunching
1272 #
1273 #  Specifies:
1274 #
1275 #      Whether requests to Privoxy's CGI pages can be blocked or
1276 #      redirected.
1277 #
1278 #  Type of value:
1279 #
1280 #      0 or 1
1281 #
1282 #  Default value:
1283 #
1284 #      0
1285 #
1286 #  Effect if unset:
1287 #
1288 #      Privoxy ignores block and redirect actions for its CGI pages.
1289 #
1290 #  Notes:
1291 #
1292 #      By default Privoxy ignores block or redirect actions for
1293 #      its CGI pages.  Intercepting these requests can be useful in
1294 #      multi-user setups to implement fine-grained access control,
1295 #      but it can also render the complete web interface useless and
1296 #      make debugging problems painful if done without care.
1297 #
1298 #      Don't enable this option unless you're sure that you really
1299 #      need it.
1300 #
1301 #  Examples:
1302 #
1303 #      allow-cgi-request-crunching 1
1304 #
1305 allow-cgi-request-crunching 0
1306 #
1307 #
1308 #  5.6. split-large-forms
1309 #
1310 #  Specifies:
1311 #
1312 #      Whether the CGI interface should stay compatible with broken
1313 #      HTTP clients.
1314 #
1315 #  Type of value:
1316 #
1317 #      0 or 1
1318 #
1319 #  Default value:
1320 #
1321 #      0
1322 #
1323 #  Effect if unset:
1324 #
1325 #      The CGI form generate long GET URLs.
1326 #
1327 #  Notes:
1328 #
1329 #      Privoxy's CGI forms can lead to rather long URLs. This isn't
1330 #      a problem as far as the HTTP standard is concerned, but it can
1331 #      confuse clients with arbitrary URL length limitations.
1332 #
1333 #      Enabling split-large-forms causes Privoxy to divide big forms
1334 #      into smaller ones to keep the URL length down. It makes editing
1335 #      a lot less convenient and you can no longer submit all changes
1336 #      at once, but at least it works around this browser bug.
1337 #
1338 #      If you don't notice any editing problems, there is no reason
1339 #      to enable this option, but if one of the submit buttons appears
1340 #      to be broken, you should give it a try.
1341 #
1342 #  Examples:
1343 #
1344 #      split-large-forms 1
1345 #
1346 split-large-forms 0
1347 #
1348 #
1349 #  6. WINDOWS GUI OPTIONS
1350 #
1351 #  Privoxy has a number of options specific to the Windows GUI
1352 #  interface:
1353 #
1354
1355 #  If "activity-animation" is set to 1, the Privoxy icon will animate
1356 #  when "Privoxy" is active. To turn off, set to 0.
1357 #
1358 #activity-animation   1
1359
1360 #  If "log-messages" is set to 1, Privoxy will log messages to the
1361 #  console window:
1362 #
1363 #log-messages   1
1364
1365 #  If "log-buffer-size" is set to 1, the size of the log buffer,
1366 #  i.e. the amount of memory used for the log messages displayed in
1367 #  the console window, will be limited to "log-max-lines" (see below).
1368 #
1369 #  Warning: Setting this to 0 will result in the buffer to grow
1370 #  infinitely and eat up all your memory!
1371 #
1372 #log-buffer-size 1
1373
1374 #  log-max-lines is the maximum number of lines held in the log
1375 #  buffer. See above.
1376 #
1377 #log-max-lines 200
1378
1379 #  If "log-highlight-messages" is set to 1, Privoxy will highlight
1380 #  portions of the log messages with a bold-faced font:
1381 #
1382 #log-highlight-messages 1
1383
1384 #  The font used in the console window:
1385 #
1386 #log-font-name Comic Sans MS
1387
1388 #  Font size used in the console window:
1389 #
1390 #log-font-size 8
1391
1392 #  "show-on-task-bar" controls whether or not Privoxy will appear as
1393 #  a button on the Task bar when minimized:
1394 #
1395 #show-on-task-bar 0
1396
1397 #  If "close-button-minimizes" is set to 1, the Windows close button
1398 #  will minimize Privoxy instead of closing the program (close with
1399 #  the exit option on the File menu).
1400 #
1401 #close-button-minimizes 1
1402
1403 #  The "hide-console" option is specific to the MS-Win console version
1404 #  of Privoxy.  If this option is used, Privoxy will disconnect from
1405 #  and hide the command console.
1406 #
1407 #hide-console
1408 #
1409 #