Unblock adaway.org/
[privoxy.git] / config
1 #        Sample Configuration File for Privoxy 3.0.29
2 #
3 # Copyright (C) 2001-2019 Privoxy Developers https://www.privoxy.org/
4 #
5 #####################################################################
6 #                                                                   #
7 #                      Table of Contents                            #
8 #                                                                   #
9 #        I. INTRODUCTION                                            #
10 #       II. FORMAT OF THE CONFIGURATION FILE                        #
11 #                                                                   #
12 #        1. LOCAL SET-UP DOCUMENTATION                              #
13 #        2. CONFIGURATION AND LOG FILE LOCATIONS                    #
14 #        3. DEBUGGING                                               #
15 #        4. ACCESS CONTROL AND SECURITY                             #
16 #        5. FORWARDING                                              #
17 #        6. MISCELLANEOUS                                           #
18 #        7. WINDOWS GUI OPTIONS                                     #
19 #                                                                   #
20 #####################################################################
21 #
22 #
23 #  I. INTRODUCTION
24 #   ===============
25 #
26 #  This file holds Privoxy's main configuration. Privoxy detects
27 #  configuration changes automatically, so you don't have to restart
28 #  it unless you want to load a different configuration file.
29 #
30 #  The configuration will be reloaded with the first request after
31 #  the change was done, this request itself will still use the old
32 #  configuration, though. In other words: it takes two requests
33 #  before you see the result of your changes. Requests that are
34 #  dropped due to ACL don't trigger reloads.
35 #
36 #  When starting Privoxy on Unix systems, give the location of this
37 #  file as last argument. On Windows systems, Privoxy will look for
38 #  this file with the name 'config.txt' in the current working
39 #  directory of the Privoxy process.
40 #
41 #
42 #  II. FORMAT OF THE CONFIGURATION FILE
43 #  ====================================
44 #
45 #  Configuration lines consist of an initial keyword followed by a
46 #  list of values, all separated by whitespace (any number of spaces
47 #  or tabs). For example,
48 #
49 #  actionsfile default.action
50 #
51 #  Indicates that the actionsfile is named 'default.action'.
52 #
53 #  The '#' indicates a comment. Any part of a line following a '#' is
54 #  ignored, except if the '#' is preceded by a '\'.
55 #
56 #  Thus, by placing a # at the start of an existing configuration
57 #  line, you can make it a comment and it will be treated as if it
58 #  weren't there. This is called "commenting out" an option and can
59 #  be useful. Removing the # again is called "uncommenting".
60 #
61 #  Note that commenting out an option and leaving it at its default
62 #  are two completely different things! Most options behave very
63 #  differently when unset. See the "Effect if unset" explanation in
64 #  each option's description for details.
65 #
66 #  Long lines can be continued on the next line by using a `\' as the
67 #  last character.
68 #
69 #
70 #  1. LOCAL SET-UP DOCUMENTATION
71 #  ==============================
72 #
73 #  If you intend to operate Privoxy for more users than just
74 #  yourself, it might be a good idea to let them know how to reach
75 #  you, what you block and why you do that, your policies, etc.
76 #
77 #
78 #  1.1. user-manual
79 #  =================
80 #
81 #  Specifies:
82 #
83 #      Location of the Privoxy User Manual.
84 #
85 #  Type of value:
86 #
87 #      A fully qualified URI
88 #
89 #  Default value:
90 #
91 #      Unset
92 #
93 #  Effect if unset:
94 #
95 #      https://www.privoxy.org/version/user-manual/ will be used,
96 #      where version is the Privoxy version.
97 #
98 #  Notes:
99 #
100 #      The User Manual URI is the single best source of information
101 #      on Privoxy, and is used for help links from some of the
102 #      internal CGI pages. The manual itself is normally packaged
103 #      with the binary distributions, so you probably want to set
104 #      this to a locally installed copy.
105 #
106 #      Examples:
107 #
108 #      The best all purpose solution is simply to put the full local
109 #      PATH to where the User Manual is located:
110 #
111 #        user-manual  /usr/share/doc/privoxy/user-manual
112 #
113 #      The User Manual is then available to anyone with access to
114 #      Privoxy, by following the built-in URL: http://
115 #      config.privoxy.org/user-manual/ (or the shortcut: http://p.p/
116 #      user-manual/).
117 #
118 #      If the documentation is not on the local system, it can be
119 #      accessed from a remote server, as:
120 #
121 #        user-manual  http://example.com/privoxy/user-manual/
122 #
123 #      WARNING!!!
124 #
125 #          If set, this option should be the first option in the
126 #          config file, because it is used while the config file is
127 #          being read.
128 #
129 #user-manual https://www.privoxy.org/user-manual/
130 #
131 #  1.2. trust-info-url
132 #  ====================
133 #
134 #  Specifies:
135 #
136 #      A URL to be displayed in the error page that users will see if
137 #      access to an untrusted page is denied.
138 #
139 #  Type of value:
140 #
141 #      URL
142 #
143 #  Default value:
144 #
145 #      Unset
146 #
147 #  Effect if unset:
148 #
149 #      No links are displayed on the "untrusted" error page.
150 #
151 #  Notes:
152 #
153 #      The value of this option only matters if the experimental
154 #      trust mechanism has been activated. (See trustfile below.)
155 #
156 #      If you use the trust mechanism, it is a good idea to write up
157 #      some on-line documentation about your trust policy and to
158 #      specify the URL(s) here. Use multiple times for multiple URLs.
159 #
160 #      The URL(s) should be added to the trustfile as well, so users
161 #      don't end up locked out from the information on why they were
162 #      locked out in the first place!
163 #
164 #trust-info-url  http://www.example.com/why_we_block.html
165 #trust-info-url  http://www.example.com/what_we_allow.html
166 #
167 #  1.3. admin-address
168 #  ===================
169 #
170 #  Specifies:
171 #
172 #      An email address to reach the Privoxy administrator.
173 #
174 #  Type of value:
175 #
176 #      Email address
177 #
178 #  Default value:
179 #
180 #      Unset
181 #
182 #  Effect if unset:
183 #
184 #      No email address is displayed on error pages and the CGI user
185 #      interface.
186 #
187 #  Notes:
188 #
189 #      If both admin-address and proxy-info-url are unset, the whole
190 #      "Local Privoxy Support" box on all generated pages will not be
191 #      shown.
192 #
193 #admin-address privoxy-admin@example.com
194 #
195 #  1.4. proxy-info-url
196 #  ====================
197 #
198 #  Specifies:
199 #
200 #      A URL to documentation about the local Privoxy setup,
201 #      configuration or policies.
202 #
203 #  Type of value:
204 #
205 #      URL
206 #
207 #  Default value:
208 #
209 #      Unset
210 #
211 #  Effect if unset:
212 #
213 #      No link to local documentation is displayed on error pages and
214 #      the CGI user interface.
215 #
216 #  Notes:
217 #
218 #      If both admin-address and proxy-info-url are unset, the whole
219 #      "Local Privoxy Support" box on all generated pages will not be
220 #      shown.
221 #
222 #      This URL shouldn't be blocked ;-)
223 #
224 #proxy-info-url http://www.example.com/proxy-service.html
225 #
226 #  2. CONFIGURATION AND LOG FILE LOCATIONS
227 #  ========================================
228 #
229 #  Privoxy can (and normally does) use a number of other files for
230 #  additional configuration, help and logging. This section of the
231 #  configuration file tells Privoxy where to find those other files.
232 #
233 #  The user running Privoxy, must have read permission for all
234 #  configuration files, and write permission to any files that would
235 #  be modified, such as log files and actions files.
236 #
237 #
238 #  2.1. confdir
239 #  =============
240 #
241 #  Specifies:
242 #
243 #      The directory where the other configuration files are located.
244 #
245 #  Type of value:
246 #
247 #      Path name
248 #
249 #  Default value:
250 #
251 #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
252 #
253 #  Effect if unset:
254 #
255 #      Mandatory
256 #
257 #  Notes:
258 #
259 #      No trailing "/", please.
260 #
261 confdir .
262 #
263 #  2.2. templdir
264 #  ==============
265 #
266 #  Specifies:
267 #
268 #      An alternative directory where the templates are loaded from.
269 #
270 #  Type of value:
271 #
272 #      Path name
273 #
274 #  Default value:
275 #
276 #      unset
277 #
278 #  Effect if unset:
279 #
280 #      The templates are assumed to be located in confdir/template.
281 #
282 #  Notes:
283 #
284 #      Privoxy's original templates are usually overwritten with each
285 #      update. Use this option to relocate customized templates that
286 #      should be kept. As template variables might change between
287 #      updates, you shouldn't expect templates to work with Privoxy
288 #      releases other than the one they were part of, though.
289 #
290 #templdir .
291 #
292 #  2.3. temporary-directory
293 #  =========================
294 #
295 #  Specifies:
296 #
297 #      A directory where Privoxy can create temporary files.
298 #
299 #  Type of value:
300 #
301 #      Path name
302 #
303 #  Default value:
304 #
305 #      unset
306 #
307 #  Effect if unset:
308 #
309 #      No temporary files are created, external filters don't work.
310 #
311 #  Notes:
312 #
313 #      To execute external filters, Privoxy has to create temporary
314 #      files. This directive specifies the directory the temporary
315 #      files should be written to.
316 #
317 #      It should be a directory only Privoxy (and trusted users) can
318 #      access.
319 #
320 #temporary-directory .
321 #
322 #  2.4. logdir
323 #  ============
324 #
325 #  Specifies:
326 #
327 #      The directory where all logging takes place (i.e. where the
328 #      logfile is located).
329 #
330 #  Type of value:
331 #
332 #      Path name
333 #
334 #  Default value:
335 #
336 #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
337 #
338 #  Effect if unset:
339 #
340 #      Mandatory
341 #
342 #  Notes:
343 #
344 #      No trailing "/", please.
345 #
346 logdir .
347 #
348 #  2.5. actionsfile
349 #  =================
350 #
351 #  Specifies:
352 #
353 #      The actions file(s) to use
354 #
355 #  Type of value:
356 #
357 #      Complete file name, relative to confdir
358 #
359 #  Default values:
360 #
361 #        match-all.action # Actions that are applied to all sites and maybe overruled later on.
362 #
363 #        default.action   # Main actions file
364 #
365 #        user.action      # User customizations
366 #
367 #  Effect if unset:
368 #
369 #      No actions are taken at all. More or less neutral proxying.
370 #
371 #  Notes:
372 #
373 #      Multiple actionsfile lines are permitted, and are in fact
374 #      recommended!
375 #
376 #      The default values are default.action, which is the "main"
377 #      actions file maintained by the developers, and user.action,
378 #      where you can make your personal additions.
379 #
380 #      Actions files contain all the per site and per URL
381 #      configuration for ad blocking, cookie management, privacy
382 #      considerations, etc.
383 #
384 actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
385 actionsfile default.action   # Main actions file
386 actionsfile user.action      # User customizations
387 #
388 #  2.6. filterfile
389 #  ================
390 #
391 #  Specifies:
392 #
393 #      The filter file(s) to use
394 #
395 #  Type of value:
396 #
397 #      File name, relative to confdir
398 #
399 #  Default value:
400 #
401 #      default.filter (Unix) or default.filter.txt (Windows)
402 #
403 #  Effect if unset:
404 #
405 #      No textual content filtering takes place, i.e. all +filter{name}
406 #      actions in the actions files are turned neutral.
407 #
408 #  Notes:
409 #
410 #      Multiple filterfile lines are permitted.
411 #
412 #      The filter files contain content modification rules that use
413 #      regular expressions. These rules permit powerful changes on
414 #      the content of Web pages, and optionally the headers as well,
415 #      e.g., you could try to disable your favorite JavaScript
416 #      annoyances, re-write the actual displayed text, or just have
417 #      some fun playing buzzword bingo with web pages.
418 #
419 #      The +filter{name} actions rely on the relevant filter (name)
420 #      to be defined in a filter file!
421 #
422 #      A pre-defined filter file called default.filter that contains
423 #      a number of useful filters for common problems is included in
424 #      the distribution. See the section on the filter action for a
425 #      list.
426 #
427 #      It is recommended to place any locally adapted filters into a
428 #      separate file, such as user.filter.
429 #
430 filterfile default.filter
431 filterfile user.filter      # User customizations
432 #
433 #  2.7. logfile
434 #  =============
435 #
436 #  Specifies:
437 #
438 #      The log file to use
439 #
440 #  Type of value:
441 #
442 #      File name, relative to logdir
443 #
444 #  Default value:
445 #
446 #      Unset (commented out). When activated: logfile (Unix) or
447 #      privoxy.log (Windows).
448 #
449 #  Effect if unset:
450 #
451 #      No logfile is written.
452 #
453 #  Notes:
454 #
455 #      The logfile is where all logging and error messages are
456 #      written. The level of detail and number of messages are set
457 #      with the debug option (see below). The logfile can be useful
458 #      for tracking down a problem with Privoxy (e.g., it's not
459 #      blocking an ad you think it should block) and it can help you
460 #      to monitor what your browser is doing.
461 #
462 #      Depending on the debug options below, the logfile may be a
463 #      privacy risk if third parties can get access to it. As most
464 #      users will never look at it, Privoxy only logs fatal errors by
465 #      default.
466 #
467 #      For most troubleshooting purposes, you will have to change
468 #      that, please refer to the debugging section for details.
469 #
470 #      Any log files must be writable by whatever user Privoxy is
471 #      being run as (on Unix, default user id is "privoxy").
472 #
473 #      To prevent the logfile from growing indefinitely, it is
474 #      recommended to periodically rotate or shorten it. Many
475 #      operating systems support log rotation out of the box, some
476 #      require additional software to do it. For details, please
477 #      refer to the documentation for your operating system.
478 #
479 logfile logfile
480 #
481 #  2.8. trustfile
482 #  ===============
483 #
484 #  Specifies:
485 #
486 #      The name of the trust file to use
487 #
488 #  Type of value:
489 #
490 #      File name, relative to confdir
491 #
492 #  Default value:
493 #
494 #      Unset (commented out). When activated: trust (Unix) or
495 #      trust.txt (Windows)
496 #
497 #  Effect if unset:
498 #
499 #      The entire trust mechanism is disabled.
500 #
501 #  Notes:
502 #
503 #      The trust mechanism is an experimental feature for building
504 #      white-lists and should be used with care. It is NOT
505 #      recommended for the casual user.
506 #
507 #      If you specify a trust file, Privoxy will only allow access to
508 #      sites that are specified in the trustfile. Sites can be listed
509 #      in one of two ways:
510 #
511 #      Prepending a ~ character limits access to this site only (and
512 #      any sub-paths within this site), e.g. ~www.example.com allows
513 #      access to ~www.example.com/features/news.html, etc.
514 #
515 #      Or, you can designate sites as trusted referrers, by
516 #      prepending the name with a + character. The effect is that
517 #      access to untrusted sites will be granted -- but only if a
518 #      link from this trusted referrer was used to get there. The
519 #      link target will then be added to the "trustfile" so that
520 #      future, direct accesses will be granted. Sites added via this
521 #      mechanism do not become trusted referrers themselves (i.e.
522 #      they are added with a ~ designation). There is a limit of 512
523 #      such entries, after which new entries will not be made.
524 #
525 #      If you use the + operator in the trust file, it may grow
526 #      considerably over time.
527 #
528 #      It is recommended that Privoxy be compiled with the
529 #      --disable-force, --disable-toggle and --disable-editor
530 #      options, if this feature is to be used.
531 #
532 #      Possible applications include limiting Internet access for
533 #      children.
534 #
535 #trustfile trust
536 #
537 #  3. DEBUGGING
538 #  =============
539 #
540 #  These options are mainly useful when tracing a problem. Note that
541 #  you might also want to invoke Privoxy with the --no-daemon command
542 #  line option when debugging.
543 #
544 #
545 #  3.1. debug
546 #  ===========
547 #
548 #  Specifies:
549 #
550 #      Key values that determine what information gets logged.
551 #
552 #  Type of value:
553 #
554 #      Integer values
555 #
556 #  Default value:
557 #
558 #      0 (i.e.: only fatal errors (that cause Privoxy to exit) are
559 #      logged)
560 #
561 #  Effect if unset:
562 #
563 #      Default value is used (see above).
564 #
565 #  Notes:
566 #
567 #      The available debug levels are:
568 #
569 #        debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
570 #        debug     2 # show each connection status
571 #        debug     4 # show I/O status
572 #        debug     8 # show header parsing
573 #        debug    16 # log all data written to the network
574 #        debug    32 # debug force feature
575 #        debug    64 # debug regular expression filters
576 #        debug   128 # debug redirects
577 #        debug   256 # debug GIF de-animation
578 #        debug   512 # Common Log Format
579 #        debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
580 #        debug  2048 # CGI user interface
581 #        debug  4096 # Startup banner and warnings.
582 #        debug  8192 # Non-fatal errors
583 #        debug 32768 # log all data read from the network
584 #        debug 65536 # Log the applying actions
585 #
586 #      To select multiple debug levels, you can either add them or
587 #      use multiple debug lines.
588 #
589 #      A debug level of 1 is informative because it will show you
590 #      each request as it happens. 1, 1024, 4096 and 8192 are
591 #      recommended so that you will notice when things go wrong. The
592 #      other levels are probably only of interest if you are hunting
593 #      down a specific problem. They can produce a hell of an output
594 #      (especially 16).
595 #
596 #      If you are used to the more verbose settings, simply enable
597 #      the debug lines below again.
598 #
599 #      If you want to use pure CLF (Common Log Format), you should
600 #      set "debug 512" ONLY and not enable anything else.
601 #
602 #      Privoxy has a hard-coded limit for the length of log messages.
603 #      If it's reached, messages are logged truncated and marked with
604 #      "... [too long, truncated]".
605 #
606 #      Please don't file any support requests without trying to
607 #      reproduce the problem with increased debug level first. Once
608 #      you read the log messages, you may even be able to solve the
609 #      problem on your own.
610 #
611 #debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
612 #debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
613 #debug  4096 # Startup banner and warnings
614 #debug  8192 # Non-fatal errors
615 #
616 #  3.2. single-threaded
617 #  =====================
618 #
619 #  Specifies:
620 #
621 #      Whether to run only one server thread.
622 #
623 #  Type of value:
624 #
625 #      1 or 0
626 #
627 #  Default value:
628 #
629 #      0
630 #
631 #  Effect if unset:
632 #
633 #      Multi-threaded (or, where unavailable: forked) operation, i.e.
634 #      the ability to serve multiple requests simultaneously.
635 #
636 #  Notes:
637 #
638 #      This option is only there for debugging purposes. It will
639 #      drastically reduce performance.
640 #
641 #single-threaded 1
642 #
643 #  3.3. hostname
644 #  ==============
645 #
646 #  Specifies:
647 #
648 #      The hostname shown on the CGI pages.
649 #
650 #  Type of value:
651 #
652 #      Text
653 #
654 #  Default value:
655 #
656 #      Unset
657 #
658 #  Effect if unset:
659 #
660 #      The hostname provided by the operating system is used.
661 #
662 #  Notes:
663 #
664 #      On some misconfigured systems resolving the hostname fails or
665 #      takes too much time and slows Privoxy down. Setting a fixed
666 #      hostname works around the problem.
667 #
668 #      In other circumstances it might be desirable to show a
669 #      hostname other than the one returned by the operating system.
670 #      For example if the system has several different hostnames and
671 #      you don't want to use the first one.
672 #
673 #      Note that Privoxy does not validate the specified hostname
674 #      value.
675 #
676 #hostname hostname.example.org
677 #
678 #  4. ACCESS CONTROL AND SECURITY
679 #  ===============================
680 #
681 #  This section of the config file controls the security-relevant
682 #  aspects of Privoxy's configuration.
683 #
684 #
685 #  4.1. listen-address
686 #  ====================
687 #
688 #  Specifies:
689 #
690 #      The address and TCP port on which Privoxy will listen for
691 #      client requests.
692 #
693 #  Type of value:
694 #
695 #      [IP-Address]:Port
696 #
697 #      [Hostname]:Port
698 #
699 #  Default value:
700 #
701 #      127.0.0.1:8118
702 #
703 #  Effect if unset:
704 #
705 #      Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is
706 #      suitable and recommended for home users who run Privoxy on the
707 #      same machine as their browser.
708 #
709 #  Notes:
710 #
711 #      You will need to configure your browser(s) to this proxy
712 #      address and port.
713 #
714 #      If you already have another service running on port 8118, or
715 #      if you want to serve requests from other machines (e.g. on
716 #      your local network) as well, you will need to override the
717 #      default.
718 #
719 #      You can use this statement multiple times to make Privoxy
720 #      listen on more ports or more IP addresses. Suitable if your
721 #      operating system does not support sharing IPv6 and IPv4
722 #      protocols on the same socket.
723 #
724 #      If a hostname is used instead of an IP address, Privoxy will
725 #      try to resolve it to an IP address and if there are multiple,
726 #      use the first one returned.
727 #
728 #      If the address for the hostname isn't already known on the
729 #      system (for example because it's in /etc/hostname), this may
730 #      result in DNS traffic.
731 #
732 #      If the specified address isn't available on the system, or if
733 #      the hostname can't be resolved, Privoxy will fail to start.
734 #
735 #      IPv6 addresses containing colons have to be quoted by
736 #      brackets. They can only be used if Privoxy has been compiled
737 #      with IPv6 support. If you aren't sure if your version supports
738 #      it, have a look at http://config.privoxy.org/show-status.
739 #
740 #      Some operating systems will prefer IPv6 to IPv4 addresses even
741 #      if the system has no IPv6 connectivity which is usually not
742 #      expected by the user. Some even rely on DNS to resolve
743 #      localhost which mean the "localhost" address used may not
744 #      actually be local.
745 #
746 #      It is therefore recommended to explicitly configure the
747 #      intended IP address instead of relying on the operating
748 #      system, unless there's a strong reason not to.
749 #
750 #      If you leave out the address, Privoxy will bind to all IPv4
751 #      interfaces (addresses) on your machine and may become
752 #      reachable from the Internet and/or the local network. Be aware
753 #      that some GNU/Linux distributions modify that behaviour
754 #      without updating the documentation. Check for non-standard
755 #      patches if your Privoxy version behaves differently.
756 #
757 #      If you configure Privoxy to be reachable from the network,
758 #      consider using access control lists (ACL's, see below), and/or
759 #      a firewall.
760 #
761 #      If you open Privoxy to untrusted users, you will also want to
762 #      make sure that the following actions are disabled:
763 #      enable-edit-actions and enable-remote-toggle
764 #
765 #  Example:
766 #
767 #      Suppose you are running Privoxy on a machine which has the
768 #      address 192.168.0.1 on your local private network
769 #      (192.168.0.0) and has another outside connection with a
770 #      different address. You want it to serve requests from inside
771 #      only:
772 #
773 #        listen-address  192.168.0.1:8118
774 #
775 #      Suppose you are running Privoxy on an IPv6-capable machine and
776 #      you want it to listen on the IPv6 address of the loopback
777 #      device:
778 #
779 #        listen-address [::1]:8118
780 #
781 listen-address  127.0.0.1:8118
782 #
783 #  4.2. toggle
784 #  ============
785 #
786 #  Specifies:
787 #
788 #      Initial state of "toggle" status
789 #
790 #  Type of value:
791 #
792 #      1 or 0
793 #
794 #  Default value:
795 #
796 #      1
797 #
798 #  Effect if unset:
799 #
800 #      Act as if toggled on
801 #
802 #  Notes:
803 #
804 #      If set to 0, Privoxy will start in "toggled off" mode, i.e.
805 #      mostly behave like a normal, content-neutral proxy with both
806 #      ad blocking and content filtering disabled. See
807 #      enable-remote-toggle below.
808 #
809 toggle  1
810 #
811 #  4.3. enable-remote-toggle
812 #  ==========================
813 #
814 #  Specifies:
815 #
816 #      Whether or not the web-based toggle feature may be used
817 #
818 #  Type of value:
819 #
820 #      0 or 1
821 #
822 #  Default value:
823 #
824 #      0
825 #
826 #  Effect if unset:
827 #
828 #      The web-based toggle feature is disabled.
829 #
830 #  Notes:
831 #
832 #      When toggled off, Privoxy mostly acts like a normal,
833 #      content-neutral proxy, i.e. doesn't block ads or filter
834 #      content.
835 #
836 #      Access to the toggle feature can not be controlled separately
837 #      by "ACLs" or HTTP authentication, so that everybody who can
838 #      access Privoxy (see "ACLs" and listen-address above) can
839 #      toggle it for all users. So this option is not recommended for
840 #      multi-user environments with untrusted users.
841 #
842 #      Note that malicious client side code (e.g Java) is also
843 #      capable of using this option.
844 #
845 #      As a lot of Privoxy users don't read documentation, this
846 #      feature is disabled by default.
847 #
848 #      Note that you must have compiled Privoxy with support for this
849 #      feature, otherwise this option has no effect.
850 #
851 enable-remote-toggle  0
852 #
853 #  4.4. enable-remote-http-toggle
854 #  ===============================
855 #
856 #  Specifies:
857 #
858 #      Whether or not Privoxy recognizes special HTTP headers to
859 #      change its behaviour.
860 #
861 #  Type of value:
862 #
863 #      0 or 1
864 #
865 #  Default value:
866 #
867 #      0
868 #
869 #  Effect if unset:
870 #
871 #      Privoxy ignores special HTTP headers.
872 #
873 #  Notes:
874 #
875 #      When toggled on, the client can change Privoxy's behaviour by
876 #      setting special HTTP headers. Currently the only supported
877 #      special header is "X-Filter: No", to disable filtering for the
878 #      ongoing request, even if it is enabled in one of the action
879 #      files.
880 #
881 #      This feature is disabled by default. If you are using Privoxy
882 #      in a environment with trusted clients, you may enable this
883 #      feature at your discretion. Note that malicious client side
884 #      code (e.g Java) is also capable of using this feature.
885 #
886 #      This option will be removed in future releases as it has been
887 #      obsoleted by the more general header taggers.
888 #
889 enable-remote-http-toggle  0
890 #
891 #  4.5. enable-edit-actions
892 #  =========================
893 #
894 #  Specifies:
895 #
896 #      Whether or not the web-based actions file editor may be used
897 #
898 #  Type of value:
899 #
900 #      0 or 1
901 #
902 #  Default value:
903 #
904 #      0
905 #
906 #  Effect if unset:
907 #
908 #      The web-based actions file editor is disabled.
909 #
910 #  Notes:
911 #
912 #      Access to the editor can not be controlled separately by
913 #      "ACLs" or HTTP authentication, so that everybody who can
914 #      access Privoxy (see "ACLs" and listen-address above) can
915 #      modify its configuration for all users.
916 #
917 #      This option is not recommended for environments with untrusted
918 #      users and as a lot of Privoxy users don't read documentation,
919 #      this feature is disabled by default.
920 #
921 #      Note that malicious client side code (e.g Java) is also
922 #      capable of using the actions editor and you shouldn't enable
923 #      this options unless you understand the consequences and are
924 #      sure your browser is configured correctly.
925 #
926 #      Note that you must have compiled Privoxy with support for this
927 #      feature, otherwise this option has no effect.
928 #
929 enable-edit-actions 0
930 #
931 #  4.6. enforce-blocks
932 #  ====================
933 #
934 #  Specifies:
935 #
936 #      Whether the user is allowed to ignore blocks and can "go there
937 #      anyway".
938 #
939 #  Type of value:
940 #
941 #      0 or 1
942 #
943 #  Default value:
944 #
945 #      0
946 #
947 #  Effect if unset:
948 #
949 #      Blocks are not enforced.
950 #
951 #  Notes:
952 #
953 #      Privoxy is mainly used to block and filter requests as a
954 #      service to the user, for example to block ads and other junk
955 #      that clogs the pipes. Privoxy's configuration isn't perfect
956 #      and sometimes innocent pages are blocked. In this situation it
957 #      makes sense to allow the user to enforce the request and have
958 #      Privoxy ignore the block.
959 #
960 #      In the default configuration Privoxy's "Blocked" page contains
961 #      a "go there anyway" link to adds a special string (the force
962 #      prefix) to the request URL. If that link is used, Privoxy will
963 #      detect the force prefix, remove it again and let the request
964 #      pass.
965 #
966 #      Of course Privoxy can also be used to enforce a network
967 #      policy. In that case the user obviously should not be able to
968 #      bypass any blocks, and that's what the "enforce-blocks" option
969 #      is for. If it's enabled, Privoxy hides the "go there anyway"
970 #      link. If the user adds the force prefix by hand, it will not
971 #      be accepted and the circumvention attempt is logged.
972 #
973 #  Examples:
974 #
975 #      enforce-blocks 1
976 #
977 enforce-blocks 0
978 #
979 #  4.7. ACLs: permit-access and deny-access
980 #  =========================================
981 #
982 #  Specifies:
983 #
984 #      Who can access what.
985 #
986 #  Type of value:
987 #
988 #      src_addr[:port][/src_masklen] [dst_addr[:port][/dst_masklen]]
989 #
990 #      Where src_addr and dst_addr are IPv4 addresses in dotted
991 #      decimal notation or valid DNS names, port is a port number,
992 #      and src_masklen and dst_masklen are subnet masks in CIDR
993 #      notation, i.e. integer values from 2 to 30 representing the
994 #      length (in bits) of the network address. The masks and the
995 #      whole destination part are optional.
996 #
997 #      If your system implements RFC 3493, then src_addr and dst_addr
998 #      can be IPv6 addresses delimeted by brackets, port can be a
999 #      number or a service name, and src_masklen and dst_masklen can
1000 #      be a number from 0 to 128.
1001 #
1002 #  Default value:
1003 #
1004 #      Unset
1005 #
1006 #      If no port is specified, any port will match. If no
1007 #      src_masklen or src_masklen is given, the complete IP address
1008 #      has to match (i.e. 32 bits for IPv4 and 128 bits for IPv6).
1009 #
1010 #  Effect if unset:
1011 #
1012 #      Don't restrict access further than implied by listen-address
1013 #
1014 #  Notes:
1015 #
1016 #      Access controls are included at the request of ISPs and
1017 #      systems administrators, and are not usually needed by
1018 #      individual users. For a typical home user, it will normally
1019 #      suffice to ensure that Privoxy only listens on the localhost
1020 #      (127.0.0.1) or internal (home) network address by means of the
1021 #      listen-address option.
1022 #
1023 #      Please see the warnings in the FAQ that Privoxy is not
1024 #      intended to be a substitute for a firewall or to encourage
1025 #      anyone to defer addressing basic security weaknesses.
1026 #
1027 #      Multiple ACL lines are OK. If any ACLs are specified, Privoxy
1028 #      only talks to IP addresses that match at least one
1029 #      permit-access line and don't match any subsequent deny-access
1030 #      line. In other words, the last match wins, with the default
1031 #      being deny-access.
1032 #
1033 #      If Privoxy is using a forwarder (see forward below) for a
1034 #      particular destination URL, the dst_addr that is examined is
1035 #      the address of the forwarder and NOT the address of the
1036 #      ultimate target. This is necessary because it may be
1037 #      impossible for the local Privoxy to determine the IP address
1038 #      of the ultimate target (that's often what gateways are used
1039 #      for).
1040 #
1041 #      You should prefer using IP addresses over DNS names, because
1042 #      the address lookups take time. All DNS names must resolve! You
1043 #      can not use domain patterns like "*.org" or partial domain
1044 #      names. If a DNS name resolves to multiple IP addresses, only
1045 #      the first one is used.
1046 #
1047 #      Some systems allow IPv4 clients to connect to IPv6 server
1048 #      sockets. Then the client's IPv4 address will be translated by
1049 #      the system into IPv6 address space with special prefix
1050 #      ::ffff:0:0/96 (so called IPv4 mapped IPv6 address). Privoxy
1051 #      can handle it and maps such ACL addresses automatically.
1052 #
1053 #      Denying access to particular sites by ACL may have undesired
1054 #      side effects if the site in question is hosted on a machine
1055 #      which also hosts other sites (most sites are).
1056 #
1057 #  Examples:
1058 #
1059 #      Explicitly define the default behavior if no ACL and
1060 #      listen-address are set: "localhost" is OK. The absence of a
1061 #      dst_addr implies that all destination addresses are OK:
1062 #
1063 #        permit-access  localhost
1064 #
1065 #      Allow any host on the same class C subnet as www.privoxy.org
1066 #      access to nothing but www.example.com (or other domains hosted
1067 #      on the same system):
1068 #
1069 #        permit-access  www.privoxy.org/24 www.example.com/32
1070 #
1071 #      Allow access from any host on the 26-bit subnet 192.168.45.64
1072 #      to anywhere, with the exception that 192.168.45.73 may not
1073 #      access the IP address behind www.dirty-stuff.example.com:
1074 #
1075 #        permit-access  192.168.45.64/26
1076 #        deny-access    192.168.45.73    www.dirty-stuff.example.com
1077 #
1078 #      Allow access from the IPv4 network 192.0.2.0/24 even if
1079 #      listening on an IPv6 wild card address (not supported on all
1080 #      platforms):
1081 #
1082 #        permit-access  192.0.2.0/24
1083 #
1084 #      This is equivalent to the following line even if listening on
1085 #      an IPv4 address (not supported on all platforms):
1086 #
1087 #        permit-access  [::ffff:192.0.2.0]/120
1088 #
1089 #
1090 #  4.8. buffer-limit
1091 #  ==================
1092 #
1093 #  Specifies:
1094 #
1095 #      Maximum size of the buffer for content filtering.
1096 #
1097 #  Type of value:
1098 #
1099 #      Size in Kbytes
1100 #
1101 #  Default value:
1102 #
1103 #      4096
1104 #
1105 #  Effect if unset:
1106 #
1107 #      Use a 4MB (4096 KB) limit.
1108 #
1109 #  Notes:
1110 #
1111 #      For content filtering, i.e. the +filter and +deanimate-gif
1112 #      actions, it is necessary that Privoxy buffers the entire
1113 #      document body. This can be potentially dangerous, since a
1114 #      server could just keep sending data indefinitely and wait for
1115 #      your RAM to exhaust -- with nasty consequences. Hence this
1116 #      option.
1117 #
1118 #      When a document buffer size reaches the buffer-limit, it is
1119 #      flushed to the client unfiltered and no further attempt to
1120 #      filter the rest of the document is made. Remember that there
1121 #      may be multiple threads running, which might require up to
1122 #      buffer-limit Kbytes each, unless you have enabled
1123 #      "single-threaded" above.
1124 #
1125 buffer-limit 4096
1126 #
1127 #  4.9. enable-proxy-authentication-forwarding
1128 #  ============================================
1129 #
1130 #  Specifies:
1131 #
1132 #      Whether or not proxy authentication through Privoxy should
1133 #      work.
1134 #
1135 #  Type of value:
1136 #
1137 #      0 or 1
1138 #
1139 #  Default value:
1140 #
1141 #      0
1142 #
1143 #  Effect if unset:
1144 #
1145 #      Proxy authentication headers are removed.
1146 #
1147 #  Notes:
1148 #
1149 #      Privoxy itself does not support proxy authentication, but can
1150 #      allow clients to authenticate against Privoxy's parent proxy.
1151 #
1152 #      By default Privoxy (3.0.21 and later) don't do that and remove
1153 #      Proxy-Authorization headers in requests and Proxy-Authenticate
1154 #      headers in responses to make it harder for malicious sites to
1155 #      trick inexperienced users into providing login information.
1156 #
1157 #      If this option is enabled the headers are forwarded.
1158 #
1159 #      Enabling this option is not recommended if there is no parent
1160 #      proxy that requires authentication or if the local network
1161 #      between Privoxy and the parent proxy isn't trustworthy. If
1162 #      proxy authentication is only required for some requests, it is
1163 #      recommended to use a client header filter to remove the
1164 #      authentication headers for requests where they aren't needed.
1165 #
1166 enable-proxy-authentication-forwarding 0
1167 #
1168 #  4.10. trusted-cgi-referer
1169 #  ==========================
1170 #
1171 #  Specifies:
1172 #
1173 #      A trusted website or webpage whose links can be followed to
1174 #      reach sensitive CGI pages
1175 #
1176 #  Type of value:
1177 #
1178 #      URL or URL prefix
1179 #
1180 #  Default value:
1181 #
1182 #      Unset
1183 #
1184 #  Effect if unset:
1185 #
1186 #      No external pages are considered trusted referers.
1187 #
1188 #  Notes:
1189 #
1190 #      Before Privoxy accepts configuration changes through CGI pages
1191 #      like client-tags or the remote toggle, it checks the Referer
1192 #      header to see if the request comes from a trusted source.
1193 #
1194 #      By default only the webinterface domains config.privoxy.org
1195 #      and p.p are considered trustworthy. Requests originating from
1196 #      other domains are rejected to prevent third-parties from
1197 #      modifiying Privoxy's state by e.g. embedding images that
1198 #      result in CGI requests.
1199 #
1200 #      In some environments it may be desirable to embed links to CGI
1201 #      pages on external pages, for example on an Intranet homepage
1202 #      the Privoxy admin controls.
1203 #
1204 #      The "trusted-cgi-referer" option can be used to add that page,
1205 #      or the whole domain, as trusted source so the resulting
1206 #      requests aren't rejected. Requests are accepted if the
1207 #      specified trusted-cgi-refer is the prefix of the Referer.
1208 #
1209 #      If the trusted source is supposed to access the CGI pages via
1210 #      JavaScript the cors-allowed-origin option can be used.
1211 #
1212 #      +-----------------------------------------------------+
1213 #      |                       Warning                       |
1214 #      |-----------------------------------------------------|
1215 #      |Declaring pages the admin doesn't control trustworthy|
1216 #      |may allow malicious third parties to modify Privoxy's|
1217 #      |internal state against the user's wishes and without |
1218 #      |the user's knowledge.                                |
1219 #      +-----------------------------------------------------+
1220 #
1221 #trusted-cgi-referer http://www.example.org/local-privoxy-control-page
1222 #
1223 #  4.11. cors-allowed-origin
1224 #  ==========================
1225 #
1226 #  Specifies:
1227 #
1228 #      A trusted website which can access Privoxy's CGI pages through
1229 #      JavaScript.
1230 #
1231 #  Type of value:
1232 #
1233 #      URL
1234 #
1235 #  Default value:
1236 #
1237 #      Unset
1238 #
1239 #  Effect if unset:
1240 #
1241 #      No external sites get access via cross-origin resource
1242 #      sharing.
1243 #
1244 #  Notes:
1245 #
1246 #      Modern browsers by default prevent cross-origin requests made
1247 #      via JavaScript to Privoxy's CGI interface even if Privoxy
1248 #      would trust the referer because it's white listed via the
1249 #      trusted-cgi-referer directive.
1250 #
1251 #      Cross-origin resource sharing (CORS) is a mechanism to allow
1252 #      cross-origin requests.
1253 #
1254 #      The "cors-allowed-origin" option can be used to specify a
1255 #      domain that is allowed to make requests to Privoxy CGI
1256 #      interface via JavaScript. It is used in combination with the
1257 #      trusted-cgi-referer directive.
1258 #
1259 #      +-----------------------------------------------------+
1260 #      |                       Warning                       |
1261 #      |-----------------------------------------------------|
1262 #      |Declaring domains the admin doesn't control          |
1263 #      |trustworthy may allow malicious third parties to     |
1264 #      |modify Privoxy's internal state against the user's   |
1265 #      |wishes and without the user's knowledge.             |
1266 #      +-----------------------------------------------------+
1267 #
1268 #cors-allowed-origin http://www.example.org/
1269 #
1270 #  5. FORWARDING
1271 #  ==============
1272 #
1273 #  This feature allows routing of HTTP requests through a chain of
1274 #  multiple proxies.
1275 #
1276 #  Forwarding can be used to chain Privoxy with a caching proxy to
1277 #  speed up browsing. Using a parent proxy may also be necessary if
1278 #  the machine that Privoxy runs on has no direct Internet access.
1279 #
1280 #  Note that parent proxies can severely decrease your privacy level.
1281 #  For example a parent proxy could add your IP address to the
1282 #  request headers and if it's a caching proxy it may add the "Etag"
1283 #  header to revalidation requests again, even though you configured
1284 #  Privoxy to remove it. It may also ignore Privoxy's header time
1285 #  randomization and use the original values which could be used by
1286 #  the server as cookie replacement to track your steps between
1287 #  visits.
1288 #
1289 #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
1290 #  4 and SOCKS 4A protocols.
1291 #
1292 #
1293 #  5.1. forward
1294 #  =============
1295 #
1296 #  Specifies:
1297 #
1298 #      To which parent HTTP proxy specific requests should be routed.
1299 #
1300 #  Type of value:
1301 #
1302 #      target_pattern http_parent[:port]
1303 #
1304 #      where target_pattern is a URL pattern that specifies to which
1305 #      requests (i.e. URLs) this forward rule shall apply. Use / to
1306 #      denote "all URLs". http_parent[:port] is the DNS name or IP
1307 #      address of the parent HTTP proxy through which the requests
1308 #      should be forwarded, optionally followed by its listening port
1309 #      (default: 8000). Use a single dot (.) to denote "no
1310 #      forwarding".
1311 #
1312 #  Default value:
1313 #
1314 #      Unset
1315 #
1316 #  Effect if unset:
1317 #
1318 #      Don't use parent HTTP proxies.
1319 #
1320 #  Notes:
1321 #
1322 #      If http_parent is ".", then requests are not forwarded to
1323 #      another HTTP proxy but are made directly to the web servers.
1324 #
1325 #      http_parent can be a numerical IPv6 address (if RFC 3493 is
1326 #      implemented). To prevent clashes with the port delimiter, the
1327 #      whole IP address has to be put into brackets. On the other
1328 #      hand a target_pattern containing an IPv6 address has to be put
1329 #      into angle brackets (normal brackets are reserved for regular
1330 #      expressions already).
1331 #
1332 #      Multiple lines are OK, they are checked in sequence, and the
1333 #      last match wins.
1334 #
1335 #  Examples:
1336 #
1337 #      Everything goes to an example parent proxy, except SSL on port
1338 #      443 (which it doesn't handle):
1339 #
1340 #        forward   /      parent-proxy.example.org:8080
1341 #        forward   :443   .
1342 #
1343 #      Everything goes to our example ISP's caching proxy, except for
1344 #      requests to that ISP's sites:
1345 #
1346 #        forward   /                  caching-proxy.isp.example.net:8000
1347 #        forward   .isp.example.net   .
1348 #
1349 #      Parent proxy specified by an IPv6 address:
1350 #
1351 #        forward   /                   [2001:DB8::1]:8000
1352 #
1353 #      Suppose your parent proxy doesn't support IPv6:
1354 #
1355 #        forward  /                        parent-proxy.example.org:8000
1356 #        forward  ipv6-server.example.org  .
1357 #        forward  <[2-3][0-9a-f][0-9a-f][0-9a-f]:*>   .
1358 #
1359 #
1360 #  5.2. forward-socks4, forward-socks4a, forward-socks5 and forward-socks5t
1361 #  =========================================================================
1362 #
1363 #  Specifies:
1364 #
1365 #      Through which SOCKS proxy (and optionally to which parent HTTP
1366 #      proxy) specific requests should be routed.
1367 #
1368 #  Type of value:
1369 #
1370 #      target_pattern socks_proxy[:port] http_parent[:port]
1371 #
1372 #      where target_pattern is a URL pattern that specifies to which
1373 #      requests (i.e. URLs) this forward rule shall apply. Use / to
1374 #      denote "all URLs". http_parent and socks_proxy are IP
1375 #      addresses in dotted decimal notation or valid DNS names (
1376 #      http_parent may be "." to denote "no HTTP forwarding"), and
1377 #      the optional port parameters are TCP ports, i.e. integer
1378 #      values from 1 to 65535
1379 #
1380 #  Default value:
1381 #
1382 #      Unset
1383 #
1384 #  Effect if unset:
1385 #
1386 #      Don't use SOCKS proxies.
1387 #
1388 #  Notes:
1389 #
1390 #      Multiple lines are OK, they are checked in sequence, and the
1391 #      last match wins.
1392 #
1393 #      The difference between forward-socks4 and forward-socks4a is
1394 #      that in the SOCKS 4A protocol, the DNS resolution of the
1395 #      target hostname happens on the SOCKS server, while in SOCKS 4
1396 #      it happens locally.
1397 #
1398 #      With forward-socks5 the DNS resolution will happen on the
1399 #      remote server as well.
1400 #
1401 #      forward-socks5t works like vanilla forward-socks5 but lets
1402 #      Privoxy additionally use Tor-specific SOCKS extensions.
1403 #      Currently the only supported SOCKS extension is optimistic
1404 #      data which can reduce the latency for the first request made
1405 #      on a newly created connection.
1406 #
1407 #      socks_proxy and http_parent can be a numerical IPv6 address
1408 #      (if RFC 3493 is implemented). To prevent clashes with the port
1409 #      delimiter, the whole IP address has to be put into brackets.
1410 #      On the other hand a target_pattern containing an IPv6 address
1411 #      has to be put into angle brackets (normal brackets are
1412 #      reserved for regular expressions already).
1413 #
1414 #      If http_parent is ".", then requests are not forwarded to
1415 #      another HTTP proxy but are made (HTTP-wise) directly to the
1416 #      web servers, albeit through a SOCKS proxy.
1417 #
1418 #  Examples:
1419 #
1420 #      From the company example.com, direct connections are made to
1421 #      all "internal" domains, but everything outbound goes through
1422 #      their ISP's proxy by way of example.com's corporate SOCKS 4A
1423 #      gateway to the Internet.
1424 #
1425 #        forward-socks4a   /              socks-gw.example.com:1080  www-cache.isp.example.net:8080
1426 #        forward           .example.com   .
1427 #
1428 #      A rule that uses a SOCKS 4 gateway for all destinations but no
1429 #      HTTP parent looks like this:
1430 #
1431 #        forward-socks4   /               socks-gw.example.com:1080  .
1432 #
1433 #      To chain Privoxy and Tor, both running on the same system, you
1434 #      would use something like:
1435 #
1436 #        forward-socks5t   /               127.0.0.1:9050 .
1437 #
1438 #      Note that if you got Tor through one of the bundles, you may
1439 #      have to change the port from 9050 to 9150 (or even another
1440 #      one). For details, please check the documentation on the Tor
1441 #      website.
1442 #
1443 #      The public Tor network can't be used to reach your local
1444 #      network, if you need to access local servers you therefore
1445 #      might want to make some exceptions:
1446 #
1447 #        forward         192.168.*.*/     .
1448 #        forward            10.*.*.*/     .
1449 #        forward           127.*.*.*/     .
1450 #
1451 #      Unencrypted connections to systems in these address ranges
1452 #      will be as (un)secure as the local network is, but the
1453 #      alternative is that you can't reach the local network through
1454 #      Privoxy at all. Of course this may actually be desired and
1455 #      there is no reason to make these exceptions if you aren't sure
1456 #      you need them.
1457 #
1458 #      If you also want to be able to reach servers in your local
1459 #      network by using their names, you will need additional
1460 #      exceptions that look like this:
1461 #
1462 #       forward           localhost/     .
1463 #
1464 #
1465 #  5.3. forwarded-connect-retries
1466 #  ===============================
1467 #
1468 #  Specifies:
1469 #
1470 #      How often Privoxy retries if a forwarded connection request
1471 #      fails.
1472 #
1473 #  Type of value:
1474 #
1475 #      Number of retries.
1476 #
1477 #  Default value:
1478 #
1479 #      0
1480 #
1481 #  Effect if unset:
1482 #
1483 #      Connections forwarded through other proxies are treated like
1484 #      direct connections and no retry attempts are made.
1485 #
1486 #  Notes:
1487 #
1488 #      forwarded-connect-retries is mainly interesting for socks4a
1489 #      connections, where Privoxy can't detect why the connections
1490 #      failed. The connection might have failed because of a DNS
1491 #      timeout in which case a retry makes sense, but it might also
1492 #      have failed because the server doesn't exist or isn't
1493 #      reachable. In this case the retry will just delay the
1494 #      appearance of Privoxy's error message.
1495 #
1496 #      Note that in the context of this option, "forwarded
1497 #      connections" includes all connections that Privoxy forwards
1498 #      through other proxies. This option is not limited to the HTTP
1499 #      CONNECT method.
1500 #
1501 #      Only use this option, if you are getting lots of
1502 #      forwarding-related error messages that go away when you try
1503 #      again manually. Start with a small value and check Privoxy's
1504 #      logfile from time to time, to see how many retries are usually
1505 #      needed.
1506 #
1507 #  Examples:
1508 #
1509 #      forwarded-connect-retries 1
1510 #
1511 forwarded-connect-retries  0
1512 #
1513 #  6. MISCELLANEOUS
1514 #  =================
1515 #
1516 #  6.1. accept-intercepted-requests
1517 #  =================================
1518 #
1519 #  Specifies:
1520 #
1521 #      Whether intercepted requests should be treated as valid.
1522 #
1523 #  Type of value:
1524 #
1525 #      0 or 1
1526 #
1527 #  Default value:
1528 #
1529 #      0
1530 #
1531 #  Effect if unset:
1532 #
1533 #      Only proxy requests are accepted, intercepted requests are
1534 #      treated as invalid.
1535 #
1536 #  Notes:
1537 #
1538 #      If you don't trust your clients and want to force them to use
1539 #      Privoxy, enable this option and configure your packet filter
1540 #      to redirect outgoing HTTP connections into Privoxy.
1541 #
1542 #      Note that intercepting encrypted connections (HTTPS) isn't
1543 #      supported.
1544 #
1545 #      Make sure that Privoxy's own requests aren't redirected as
1546 #      well. Additionally take care that Privoxy can't intentionally
1547 #      connect to itself, otherwise you could run into redirection
1548 #      loops if Privoxy's listening port is reachable by the outside
1549 #      or an attacker has access to the pages you visit.
1550 #
1551 #      If you are running Privoxy as intercepting proxy without being
1552 #      able to intercept all client requests you may want to adjust
1553 #      the CGI templates to make sure they don't reference content
1554 #      from config.privoxy.org.
1555 #
1556 #  Examples:
1557 #
1558 #      accept-intercepted-requests 1
1559 #
1560 accept-intercepted-requests 0
1561 #
1562 #  6.2. allow-cgi-request-crunching
1563 #  =================================
1564 #
1565 #  Specifies:
1566 #
1567 #      Whether requests to Privoxy's CGI pages can be blocked or
1568 #      redirected.
1569 #
1570 #  Type of value:
1571 #
1572 #      0 or 1
1573 #
1574 #  Default value:
1575 #
1576 #      0
1577 #
1578 #  Effect if unset:
1579 #
1580 #      Privoxy ignores block and redirect actions for its CGI pages.
1581 #
1582 #  Notes:
1583 #
1584 #      By default Privoxy ignores block or redirect actions for its
1585 #      CGI pages. Intercepting these requests can be useful in
1586 #      multi-user setups to implement fine-grained access control,
1587 #      but it can also render the complete web interface useless and
1588 #      make debugging problems painful if done without care.
1589 #
1590 #      Don't enable this option unless you're sure that you really
1591 #      need it.
1592 #
1593 #  Examples:
1594 #
1595 #      allow-cgi-request-crunching 1
1596 #
1597 allow-cgi-request-crunching 0
1598 #
1599 #  6.3. split-large-forms
1600 #  =======================
1601 #
1602 #  Specifies:
1603 #
1604 #      Whether the CGI interface should stay compatible with broken
1605 #      HTTP clients.
1606 #
1607 #  Type of value:
1608 #
1609 #      0 or 1
1610 #
1611 #  Default value:
1612 #
1613 #      0
1614 #
1615 #  Effect if unset:
1616 #
1617 #      The CGI form generate long GET URLs.
1618 #
1619 #  Notes:
1620 #
1621 #      Privoxy's CGI forms can lead to rather long URLs. This isn't a
1622 #      problem as far as the HTTP standard is concerned, but it can
1623 #      confuse clients with arbitrary URL length limitations.
1624 #
1625 #      Enabling split-large-forms causes Privoxy to divide big forms
1626 #      into smaller ones to keep the URL length down. It makes
1627 #      editing a lot less convenient and you can no longer submit all
1628 #      changes at once, but at least it works around this browser
1629 #      bug.
1630 #
1631 #      If you don't notice any editing problems, there is no reason
1632 #      to enable this option, but if one of the submit buttons
1633 #      appears to be broken, you should give it a try.
1634 #
1635 #  Examples:
1636 #
1637 #      split-large-forms 1
1638 #
1639 split-large-forms 0
1640 #
1641 #  6.4. keep-alive-timeout
1642 #  ========================
1643 #
1644 #  Specifies:
1645 #
1646 #      Number of seconds after which an open connection will no
1647 #      longer be reused.
1648 #
1649 #  Type of value:
1650 #
1651 #      Time in seconds.
1652 #
1653 #  Default value:
1654 #
1655 #      None
1656 #
1657 #  Effect if unset:
1658 #
1659 #      Connections are not kept alive.
1660 #
1661 #  Notes:
1662 #
1663 #      This option allows clients to keep the connection to Privoxy
1664 #      alive. If the server supports it, Privoxy will keep the
1665 #      connection to the server alive as well. Under certain
1666 #      circumstances this may result in speed-ups.
1667 #
1668 #      By default, Privoxy will close the connection to the server if
1669 #      the client connection gets closed, or if the specified timeout
1670 #      has been reached without a new request coming in. This
1671 #      behaviour can be changed with the connection-sharing option.
1672 #
1673 #      This option has no effect if Privoxy has been compiled without
1674 #      keep-alive support.
1675 #
1676 #      Note that a timeout of five seconds as used in the default
1677 #      configuration file significantly decreases the number of
1678 #      connections that will be reused. The value is used because
1679 #      some browsers limit the number of connections they open to a
1680 #      single host and apply the same limit to proxies. This can
1681 #      result in a single website "grabbing" all the connections the
1682 #      browser allows, which means connections to other websites
1683 #      can't be opened until the connections currently in use time
1684 #      out.
1685 #
1686 #      Several users have reported this as a Privoxy bug, so the
1687 #      default value has been reduced. Consider increasing it to 300
1688 #      seconds or even more if you think your browser can handle it.
1689 #      If your browser appears to be hanging, it probably can't.
1690 #
1691 #  Examples:
1692 #
1693 #      keep-alive-timeout 300
1694 #
1695 keep-alive-timeout 5
1696 #
1697 #  6.5. tolerate-pipelining
1698 #  =========================
1699 #
1700 #  Specifies:
1701 #
1702 #      Whether or not pipelined requests should be served.
1703 #
1704 #  Type of value:
1705 #
1706 #      0 or 1.
1707 #
1708 #  Default value:
1709 #
1710 #      None
1711 #
1712 #  Effect if unset:
1713 #
1714 #      If Privoxy receives more than one request at once, it
1715 #      terminates the client connection after serving the first one.
1716 #
1717 #  Notes:
1718 #
1719 #      Privoxy currently doesn't pipeline outgoing requests, thus
1720 #      allowing pipelining on the client connection is not guaranteed
1721 #      to improve the performance.
1722 #
1723 #      By default Privoxy tries to discourage clients from pipelining
1724 #      by discarding aggressively pipelined requests, which forces
1725 #      the client to resend them through a new connection.
1726 #
1727 #      This option lets Privoxy tolerate pipelining. Whether or not
1728 #      that improves performance mainly depends on the client
1729 #      configuration.
1730 #
1731 #      If you are seeing problems with pages not properly loading,
1732 #      disabling this option could work around the problem.
1733 #
1734 #  Examples:
1735 #
1736 #      tolerate-pipelining 1
1737 #
1738 tolerate-pipelining 1
1739 #
1740 #  6.6. default-server-timeout
1741 #  ============================
1742 #
1743 #  Specifies:
1744 #
1745 #      Assumed server-side keep-alive timeout if not specified by the
1746 #      server.
1747 #
1748 #  Type of value:
1749 #
1750 #      Time in seconds.
1751 #
1752 #  Default value:
1753 #
1754 #      None
1755 #
1756 #  Effect if unset:
1757 #
1758 #      Connections for which the server didn't specify the keep-alive
1759 #      timeout are not reused.
1760 #
1761 #  Notes:
1762 #
1763 #      Enabling this option significantly increases the number of
1764 #      connections that are reused, provided the keep-alive-timeout
1765 #      option is also enabled.
1766 #
1767 #      While it also increases the number of connections problems
1768 #      when Privoxy tries to reuse a connection that already has been
1769 #      closed on the server side, or is closed while Privoxy is
1770 #      trying to reuse it, this should only be a problem if it
1771 #      happens for the first request sent by the client. If it
1772 #      happens for requests on reused client connections, Privoxy
1773 #      will simply close the connection and the client is supposed to
1774 #      retry the request without bothering the user.
1775 #
1776 #      Enabling this option is therefore only recommended if the
1777 #      connection-sharing option is disabled.
1778 #
1779 #      It is an error to specify a value larger than the
1780 #      keep-alive-timeout value.
1781 #
1782 #      This option has no effect if Privoxy has been compiled without
1783 #      keep-alive support.
1784 #
1785 #  Examples:
1786 #
1787 #      default-server-timeout 60
1788 #
1789 #default-server-timeout 60
1790 #
1791 #  6.7. connection-sharing
1792 #  ========================
1793 #
1794 #  Specifies:
1795 #
1796 #      Whether or not outgoing connections that have been kept alive
1797 #      should be shared between different incoming connections.
1798 #
1799 #  Type of value:
1800 #
1801 #      0 or 1
1802 #
1803 #  Default value:
1804 #
1805 #      None
1806 #
1807 #  Effect if unset:
1808 #
1809 #      Connections are not shared.
1810 #
1811 #  Notes:
1812 #
1813 #      This option has no effect if Privoxy has been compiled without
1814 #      keep-alive support, or if it's disabled.
1815 #
1816 #  Notes:
1817 #
1818 #      Note that reusing connections doesn't necessary cause
1819 #      speedups. There are also a few privacy implications you should
1820 #      be aware of.
1821 #
1822 #      If this option is effective, outgoing connections are shared
1823 #      between clients (if there are more than one) and closing the
1824 #      browser that initiated the outgoing connection does no longer
1825 #      affect the connection between Privoxy and the server unless
1826 #      the client's request hasn't been completed yet.
1827 #
1828 #      If the outgoing connection is idle, it will not be closed
1829 #      until either Privoxy's or the server's timeout is reached.
1830 #      While it's open, the server knows that the system running
1831 #      Privoxy is still there.
1832 #
1833 #      If there are more than one client (maybe even belonging to
1834 #      multiple users), they will be able to reuse each others
1835 #      connections. This is potentially dangerous in case of
1836 #      authentication schemes like NTLM where only the connection is
1837 #      authenticated, instead of requiring authentication for each
1838 #      request.
1839 #
1840 #      If there is only a single client, and if said client can keep
1841 #      connections alive on its own, enabling this option has next to
1842 #      no effect. If the client doesn't support connection
1843 #      keep-alive, enabling this option may make sense as it allows
1844 #      Privoxy to keep outgoing connections alive even if the client
1845 #      itself doesn't support it.
1846 #
1847 #      You should also be aware that enabling this option increases
1848 #      the likelihood of getting the "No server or forwarder data"
1849 #      error message, especially if you are using a slow connection
1850 #      to the Internet.
1851 #
1852 #      This option should only be used by experienced users who
1853 #      understand the risks and can weight them against the benefits.
1854 #
1855 #  Examples:
1856 #
1857 #      connection-sharing 1
1858 #
1859 #connection-sharing 1
1860 #
1861 #  6.8. socket-timeout
1862 #  ====================
1863 #
1864 #  Specifies:
1865 #
1866 #      Number of seconds after which a socket times out if no data is
1867 #      received.
1868 #
1869 #  Type of value:
1870 #
1871 #      Time in seconds.
1872 #
1873 #  Default value:
1874 #
1875 #      None
1876 #
1877 #  Effect if unset:
1878 #
1879 #      A default value of 300 seconds is used.
1880 #
1881 #  Notes:
1882 #
1883 #      The default is quite high and you probably want to reduce it.
1884 #      If you aren't using an occasionally slow proxy like Tor,
1885 #      reducing it to a few seconds should be fine.
1886 #
1887 #  Examples:
1888 #
1889 #      socket-timeout 300
1890 #
1891 socket-timeout 300
1892 #
1893 #  6.9. max-client-connections
1894 #  ============================
1895 #
1896 #  Specifies:
1897 #
1898 #      Maximum number of client connections that will be served.
1899 #
1900 #  Type of value:
1901 #
1902 #      Positive number.
1903 #
1904 #  Default value:
1905 #
1906 #      128
1907 #
1908 #  Effect if unset:
1909 #
1910 #      Connections are served until a resource limit is reached.
1911 #
1912 #  Notes:
1913 #
1914 #      Privoxy creates one thread (or process) for every incoming
1915 #      client connection that isn't rejected based on the access
1916 #      control settings.
1917 #
1918 #      If the system is powerful enough, Privoxy can theoretically
1919 #      deal with several hundred (or thousand) connections at the
1920 #      same time, but some operating systems enforce resource limits
1921 #      by shutting down offending processes and their default limits
1922 #      may be below the ones Privoxy would require under heavy load.
1923 #
1924 #      Configuring Privoxy to enforce a connection limit below the
1925 #      thread or process limit used by the operating system makes
1926 #      sure this doesn't happen. Simply increasing the operating
1927 #      system's limit would work too, but if Privoxy isn't the only
1928 #      application running on the system, you may actually want to
1929 #      limit the resources used by Privoxy.
1930 #
1931 #      If Privoxy is only used by a single trusted user, limiting the
1932 #      number of client connections is probably unnecessary. If there
1933 #      are multiple possibly untrusted users you probably still want
1934 #      to additionally use a packet filter to limit the maximal
1935 #      number of incoming connections per client. Otherwise a
1936 #      malicious user could intentionally create a high number of
1937 #      connections to prevent other users from using Privoxy.
1938 #
1939 #      Obviously using this option only makes sense if you choose a
1940 #      limit below the one enforced by the operating system.
1941 #
1942 #      One most POSIX-compliant systems Privoxy can't properly deal
1943 #      with more than FD_SETSIZE file descriptors at the same time
1944 #      and has to reject connections if the limit is reached. This
1945 #      will likely change in a future version, but currently this
1946 #      limit can't be increased without recompiling Privoxy with a
1947 #      different FD_SETSIZE limit.
1948 #
1949 #  Examples:
1950 #
1951 #      max-client-connections 256
1952 #
1953 #max-client-connections 256
1954 #
1955 #  6.10. listen-backlog
1956 #  =====================
1957 #
1958 #  Specifies:
1959 #
1960 #      Connection queue length requested from the operating system.
1961 #
1962 #  Type of value:
1963 #
1964 #      Number.
1965 #
1966 #  Default value:
1967 #
1968 #      128
1969 #
1970 #  Effect if unset:
1971 #
1972 #      A connection queue length of 128 is requested from the
1973 #      operating system.
1974 #
1975 #  Notes:
1976 #
1977 #      Under high load incoming connection may queue up before
1978 #      Privoxy gets around to serve them. The queue length is
1979 #      limitted by the operating system. Once the queue is full,
1980 #      additional connections are dropped before Privoxy can accept
1981 #      and serve them.
1982 #
1983 #      Increasing the queue length allows Privoxy to accept more
1984 #      incomming connections that arrive roughly at the same time.
1985 #
1986 #      Note that Privoxy can only request a certain queue length,
1987 #      whether or not the requested length is actually used depends
1988 #      on the operating system which may use a different length
1989 #      instead.
1990 #
1991 #      On many operating systems a limit of -1 can be specified to
1992 #      instruct the operating system to use the maximum queue length
1993 #      allowed. Check the listen man page to see if your platform
1994 #      allows this.
1995 #
1996 #      On some platforms you can use "netstat -Lan -p tcp" to see the
1997 #      effective queue length.
1998 #
1999 #      Effectively using a value above 128 usually requires changing
2000 #      the system configuration as well. On FreeBSD-based system the
2001 #      limit is controlled by the kern.ipc.soacceptqueue sysctl.
2002 #
2003 #  Examples:
2004 #
2005 #      listen-backlog 4096
2006 #
2007 #listen-backlog -1
2008 #
2009 #  6.11. enable-accept-filter
2010 #  ===========================
2011 #
2012 #  Specifies:
2013 #
2014 #      Whether or not Privoxy should use an accept filter
2015 #
2016 #  Type of value:
2017 #
2018 #      0 or 1
2019 #
2020 #  Default value:
2021 #
2022 #      0
2023 #
2024 #  Effect if unset:
2025 #
2026 #      No accept filter is enabled.
2027 #
2028 #  Notes:
2029 #
2030 #      Accept filters reduce the number of context switches by not
2031 #      passing sockets for new connections to Privoxy until a
2032 #      complete HTTP request is available.
2033 #
2034 #      As a result, Privoxy can process the whole request right away
2035 #      without having to wait for additional data first.
2036 #
2037 #      For this option to work, Privoxy has to be compiled with
2038 #      FEATURE_ACCEPT_FILTER and the operating system has to support
2039 #      it (which may require loading a kernel module).
2040 #
2041 #      Currently accept filters are only supported on FreeBSD-based
2042 #      systems. Check the accf_http(9) man page to learn how to
2043 #      enable the support in the operating system.
2044 #
2045 #  Examples:
2046 #
2047 #      enable-accept-filter 1
2048 #
2049 #enable-accept-filter 1
2050 #
2051 #  6.12. handle-as-empty-doc-returns-ok
2052 #  =====================================
2053 #
2054 #  Specifies:
2055 #
2056 #      The status code Privoxy returns for pages blocked with
2057 #      +handle-as-empty-document.
2058 #
2059 #  Type of value:
2060 #
2061 #      0 or 1
2062 #
2063 #  Default value:
2064 #
2065 #      0
2066 #
2067 #  Effect if unset:
2068 #
2069 #      Privoxy returns a status 403(forbidden) for all blocked pages.
2070 #
2071 #  Effect if set:
2072 #
2073 #      Privoxy returns a status 200(OK) for pages blocked with
2074 #      +handle-as-empty-document and a status 403(Forbidden) for all
2075 #      other blocked pages.
2076 #
2077 #  Notes:
2078 #
2079 #      This directive was added as a work-around for Firefox bug
2080 #      492459: "Websites are no longer rendered if SSL requests for
2081 #      JavaScripts are blocked by a proxy."
2082 #      (https://bugzilla.mozilla.org/show_bug.cgi?id=492459), the bug
2083 #      has been fixed for quite some time, but this directive is also
2084 #      useful to make it harder for websites to detect whether or not
2085 #      resources are being blocked.
2086 #
2087 #handle-as-empty-doc-returns-ok 1
2088 #
2089 #  6.13. enable-compression
2090 #  =========================
2091 #
2092 #  Specifies:
2093 #
2094 #      Whether or not buffered content is compressed before delivery.
2095 #
2096 #  Type of value:
2097 #
2098 #      0 or 1
2099 #
2100 #  Default value:
2101 #
2102 #      0
2103 #
2104 #  Effect if unset:
2105 #
2106 #      Privoxy does not compress buffered content.
2107 #
2108 #  Effect if set:
2109 #
2110 #      Privoxy compresses buffered content before delivering it to
2111 #      the client, provided the client supports it.
2112 #
2113 #  Notes:
2114 #
2115 #      This directive is only supported if Privoxy has been compiled
2116 #      with FEATURE_COMPRESSION, which should not to be confused with
2117 #      FEATURE_ZLIB.
2118 #
2119 #      Compressing buffered content is mainly useful if Privoxy and
2120 #      the client are running on different systems. If they are
2121 #      running on the same system, enabling compression is likely to
2122 #      slow things down. If you didn't measure otherwise, you should
2123 #      assume that it does and keep this option disabled.
2124 #
2125 #      Privoxy will not compress buffered content below a certain
2126 #      length.
2127 #
2128 #enable-compression 1
2129 #
2130 #  6.14. compression-level
2131 #  ========================
2132 #
2133 #  Specifies:
2134 #
2135 #      The compression level that is passed to the zlib library when
2136 #      compressing buffered content.
2137 #
2138 #  Type of value:
2139 #
2140 #      Positive number ranging from 0 to 9.
2141 #
2142 #  Default value:
2143 #
2144 #      1
2145 #
2146 #  Notes:
2147 #
2148 #      Compressing the data more takes usually longer than
2149 #      compressing it less or not compressing it at all. Which level
2150 #      is best depends on the connection between Privoxy and the
2151 #      client. If you can't be bothered to benchmark it for yourself,
2152 #      you should stick with the default and keep compression
2153 #      disabled.
2154 #
2155 #      If compression is disabled, the compression level is
2156 #      irrelevant.
2157 #
2158 #  Examples:
2159 #
2160 #          # Best speed (compared to the other levels)
2161 #          compression-level 1
2162 #
2163 #          # Best compression
2164 #          compression-level 9
2165 #
2166 #          # No compression. Only useful for testing as the added header
2167 #          # slightly increases the amount of data that has to be sent.
2168 #          # If your benchmark shows that using this compression level
2169 #          # is superior to using no compression at all, the benchmark
2170 #          # is likely to be flawed.
2171 #          compression-level 0
2172 #
2173 #
2174 #compression-level 1
2175 #
2176 #  6.15. client-header-order
2177 #  ==========================
2178 #
2179 #  Specifies:
2180 #
2181 #      The order in which client headers are sorted before forwarding
2182 #      them.
2183 #
2184 #  Type of value:
2185 #
2186 #      Client header names delimited by spaces or tabs
2187 #
2188 #  Default value:
2189 #
2190 #      None
2191 #
2192 #  Notes:
2193 #
2194 #      By default Privoxy leaves the client headers in the order they
2195 #      were sent by the client. Headers are modified in-place, new
2196 #      headers are added at the end of the already existing headers.
2197 #
2198 #      The header order can be used to fingerprint client requests
2199 #      independently of other headers like the User-Agent.
2200 #
2201 #      This directive allows to sort the headers differently to
2202 #      better mimic a different User-Agent. Client headers will be
2203 #      emitted in the order given, headers whose name isn't
2204 #      explicitly specified are added at the end.
2205 #
2206 #      Note that sorting headers in an uncommon way will make
2207 #      fingerprinting actually easier. Encrypted headers are not
2208 #      affected by this directive.
2209 #
2210 #client-header-order Host \
2211 #   User-Agent \
2212 #   Accept \
2213 #   Accept-Language \
2214 #   Accept-Encoding \
2215 #   Proxy-Connection \
2216 #   Referer \
2217 #   Cookie \
2218 #   DNT \
2219 #   If-Modified-Since \
2220 #   Cache-Control \
2221 #   Content-Length \
2222 #   Content-Type
2223 #
2224 #
2225 #  6.16. client-specific-tag
2226 #  ==========================
2227 #
2228 #  Specifies:
2229 #
2230 #      The name of a tag that will always be set for clients that
2231 #      requested it through the webinterface.
2232 #
2233 #  Type of value:
2234 #
2235 #      Tag name followed by a description that will be shown in the
2236 #      webinterface
2237 #
2238 #  Default value:
2239 #
2240 #      None
2241 #
2242 #  Notes:
2243 #
2244 #      +-----------------------------------------------------+
2245 #      |                       Warning                       |
2246 #      |-----------------------------------------------------|
2247 #      |This is an experimental feature. The syntax is likely|
2248 #      |to change in future versions.                        |
2249 #      +-----------------------------------------------------+
2250 #
2251 #      Client-specific tags allow Privoxy admins to create different
2252 #      profiles and let the users chose which one they want without
2253 #      impacting other users.
2254 #
2255 #      One use case is allowing users to circumvent certain blocks
2256 #      without having to allow them to circumvent all blocks. This is
2257 #      not possible with the enable-remote-toggle feature because it
2258 #      would bluntly disable all blocks for all users and also affect
2259 #      other actions like filters. It also is set globally which
2260 #      renders it useless in most multi-user setups.
2261 #
2262 #      After a client-specific tag has been defined with the
2263 #      client-specific-tag directive, action sections can be
2264 #      activated based on the tag by using a CLIENT-TAG pattern. The
2265 #      CLIENT-TAG pattern is evaluated at the same priority as URL
2266 #      patterns, as a result the last matching pattern wins. Tags
2267 #      that are created based on client or server headers are
2268 #      evaluated later on and can overrule CLIENT-TAG and URL
2269 #      patterns!
2270 #
2271 #      The tag is set for all requests that come from clients that
2272 #      requested it to be set. Note that "clients" are differentiated
2273 #      by IP address, if the IP address changes the tag has to be
2274 #      requested again.
2275 #
2276 #      Clients can request tags to be set by using the CGI interface
2277 #      http://config.privoxy.org/client-tags. The specific tag
2278 #      description is only used on the web page and should be phrased
2279 #      in away that the user understand the effect of the tag.
2280 #
2281 #  Examples:
2282 #
2283 #          # Define a couple of tags, the described effect requires action sections
2284 #          # that are enabled based on CLIENT-TAG patterns.
2285 #          client-specific-tag circumvent-blocks Overrule blocks but do not affect other actions
2286 #          disable-content-filters Disable content-filters but do not affect other actions
2287 #
2288 #
2289 #
2290 #  6.17. client-tag-lifetime
2291 #  ==========================
2292 #
2293 #  Specifies:
2294 #
2295 #      How long a temporarily enabled tag remains enabled.
2296 #
2297 #  Type of value:
2298 #
2299 #      Time in seconds.
2300 #
2301 #  Default value:
2302 #
2303 #      60
2304 #
2305 #  Notes:
2306 #
2307 #      +-----------------------------------------------------+
2308 #      |                       Warning                       |
2309 #      |-----------------------------------------------------|
2310 #      |This is an experimental feature. The syntax is likely|
2311 #      |to change in future versions.                        |
2312 #      +-----------------------------------------------------+
2313 #
2314 #      In case of some tags users may not want to enable them
2315 #      permanently, but only for a short amount of time, for example
2316 #      to circumvent a block that is the result of an overly-broad
2317 #      URL pattern.
2318 #
2319 #      The CGI interface http://config.privoxy.org/client-tags
2320 #      therefore provides a "enable this tag temporarily" option. If
2321 #      it is used, the tag will be set until the client-tag-lifetime
2322 #      is over.
2323 #
2324 #  Examples:
2325 #
2326 #            # Increase the time to life for temporarily enabled tags to 3 minutes
2327 #            client-tag-lifetime 180
2328 #
2329 #
2330 #
2331 #  6.18. trust-x-forwarded-for
2332 #  ============================
2333 #
2334 #  Specifies:
2335 #
2336 #      Whether or not Privoxy should use IP addresses specified with
2337 #      the X-Forwarded-For header
2338 #
2339 #  Type of value:
2340 #
2341 #      0 or one
2342 #
2343 #  Default value:
2344 #
2345 #      0
2346 #
2347 #  Notes:
2348 #
2349 #      +-----------------------------------------------------+
2350 #      |                       Warning                       |
2351 #      |-----------------------------------------------------|
2352 #      |This is an experimental feature. The syntax is likely|
2353 #      |to change in future versions.                        |
2354 #      +-----------------------------------------------------+
2355 #
2356 #      If clients reach Privoxy through another proxy, for example a
2357 #      load balancer, Privoxy can't tell the client's IP address from
2358 #      the connection. If multiple clients use the same proxy, they
2359 #      will share the same client tag settings which is usually not
2360 #      desired.
2361 #
2362 #      This option lets Privoxy use the X-Forwarded-For header value
2363 #      as client IP address. If the proxy sets the header, multiple
2364 #      clients using the same proxy do not share the same client tag
2365 #      settings.
2366 #
2367 #      This option should only be enabled if Privoxy can only be
2368 #      reached through a proxy and if the proxy can be trusted to set
2369 #      the header correctly. It is recommended that ACL are used to
2370 #      make sure only trusted systems can reach Privoxy.
2371 #
2372 #      If access to Privoxy isn't limited to trusted systems, this
2373 #      option would allow malicious clients to change the client tags
2374 #      for other clients or increase Privoxy's memory requirements by
2375 #      registering lots of client tag settings for clients that don't
2376 #      exist.
2377 #
2378 #  Examples:
2379 #
2380 #            # Allow systems that can reach Privoxy to provide the client
2381 #            # IP address with a X-Forwarded-For header.
2382 #            trust-x-forwarded-for 1
2383 #
2384 #
2385 #
2386 #  6.19. receive-buffer-size
2387 #  ==========================
2388 #
2389 #  Specifies:
2390 #
2391 #      The size of the buffer Privoxy uses to receive data from the
2392 #      server.
2393 #
2394 #  Type of value:
2395 #
2396 #      Size in bytes
2397 #
2398 #  Default value:
2399 #
2400 #      5000
2401 #
2402 #  Notes:
2403 #
2404 #      Increasing the receive-buffer-size increases Privoxy's memory
2405 #      usage but can lower the number of context switches and thereby
2406 #      reduce the cpu usage and potentially increase the throughput.
2407 #
2408 #      This is mostly relevant for fast network connections and large
2409 #      downloads that don't require filtering.
2410 #
2411 #      Reducing the buffer size reduces the amount of memory Privoxy
2412 #      needs to handle the request but increases the number of
2413 #      systemcalls and may reduce the throughput.
2414 #
2415 #      A dtrace command like: "sudo dtrace -n 'syscall::read:return /
2416 #      execname == "privoxy"/ { @[execname] = llquantize(arg0, 10, 0,
2417 #      5, 20); @m = max(arg0)}'" can be used to properly tune the
2418 #      receive-buffer-size. On systems without dtrace, strace or
2419 #      truss may be used as less convenient alternatives.
2420 #
2421 #      If the buffer is too large it will increase Privoxy's memory
2422 #      footprint without any benefit. As the memory is (currently)
2423 #      cleared before using it, a buffer that is too large can
2424 #      actually reduce the throughput.
2425 #
2426 #  Examples:
2427 #
2428 #            # Increase the receive buffer size
2429 #            receive-buffer-size 32768
2430 #
2431 #
2432 #
2433 #  7. WINDOWS GUI OPTIONS
2434 #  =======================
2435 #
2436 #  Privoxy has a number of options specific to the Windows GUI
2437 #  interface:
2438 #
2439 #
2440 #
2441 #  If "activity-animation" is set to 1, the Privoxy icon will animate
2442 #  when "Privoxy" is active. To turn off, set to 0.
2443 #
2444 #activity-animation   1
2445 #
2446 #
2447 #
2448 #  If "log-messages" is set to 1, Privoxy copies log messages to the
2449 #  console window. The log detail depends on the debug directive.
2450 #
2451 #log-messages   1
2452 #
2453 #
2454 #
2455 #  If "log-buffer-size" is set to 1, the size of the log buffer, i.e.
2456 #  the amount of memory used for the log messages displayed in the
2457 #  console window, will be limited to "log-max-lines" (see below).
2458 #
2459 #  Warning: Setting this to 0 will result in the buffer to grow
2460 #  infinitely and eat up all your memory!
2461 #
2462 #log-buffer-size 1
2463 #
2464 #
2465 #
2466 #  log-max-lines is the maximum number of lines held in the log
2467 #  buffer. See above.
2468 #
2469 #log-max-lines 200
2470 #
2471 #
2472 #
2473 #  If "log-highlight-messages" is set to 1, Privoxy will highlight
2474 #  portions of the log messages with a bold-faced font:
2475 #
2476 #log-highlight-messages 1
2477 #
2478 #
2479 #
2480 #  The font used in the console window:
2481 #
2482 #log-font-name Comic Sans MS
2483 #
2484 #
2485 #
2486 #  Font size used in the console window:
2487 #
2488 #log-font-size 8
2489 #
2490 #
2491 #
2492 #  "show-on-task-bar" controls whether or not Privoxy will appear as
2493 #  a button on the Task bar when minimized:
2494 #
2495 #show-on-task-bar 0
2496 #
2497 #
2498 #
2499 #  If "close-button-minimizes" is set to 1, the Windows close button
2500 #  will minimize Privoxy instead of closing the program (close with
2501 #  the exit option on the File menu).
2502 #
2503 #close-button-minimizes 1
2504 #
2505 #
2506 #
2507 #  The "hide-console" option is specific to the MS-Win console
2508 #  version of Privoxy. If this option is used, Privoxy will
2509 #  disconnect from and hide the command console.
2510 #
2511 #hide-console
2512 #
2513 #
2514 #