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