Bugfix: "Insert new section at top" did not work properly if first non-comment line...
[privoxy.git] / config
1 #     Sample Configuration file for Privoxy v2.9.15
2 #  
3 #  Copyright (C) 2001, 2002 Privoxy Developers http://privoxy.org
4 #  
5 #  $Id: config,v 1.39.2.2 2002/05/30 13:35:53 roro Exp $
6 #  
7 ##################################################################
8 #                                                                #
9 #                    Table of Contents                           #
10 #                                                                #
11 #      I. INTRODUCTION                                           #
12 #     II. FORMAT OF THE CONFIGURATION FILE                       #
13 #                                                                #
14 #      1. CONFIGURATION AND LOG FILE LOCATIONS                   #
15 #      2. LOCAL SET-UP DOCUMENTATION                             #
16 #      3. DEBUGGING                                              #
17 #      4. ACCESS CONTROL AND SECURITY                            #
18 #      5. FORWARDING                                             #
19 #      6. WINDOWS GUI OPTIONS                                    #
20 #                                                                #
21 ##################################################################
22   
23 #  
24 #  I. INTRODUCTION 
25 #  ===============
26 #  
27 #  This file holds the Privoxy configuration. If you modify this file,
28 #  you will need to send a couple of requests to the proxy before any
29 #  changes take effect.
30 #  
31 #  When starting Privoxy on Unix systems, give the name of this file as
32 #  an argument. On Windows systems, Privoxy will look for this file
33 #  with the name 'config.txt' in the same directory where Privoxy
34 #  is installed.
35 #  
36
37 #  II. FORMAT OF THE CONFIGURATION FILE
38 #  ====================================
39 #  
40 #  Configuration lines consist of an initial keyword followed by a
41 #  list of values, all separated by whitespace (any number of spaces
42 #  or tabs). For example,
43 #  
44 #  actionsfile default.action
45 #  
46 #  Indicates that the actionsfile is named 'default.action'.
47 #  
48 #  The '#' indicates a comment. Any part of a line following a '#'
49 #  is ignored, except if the '#' is preceded by a '\'.
50 #  
51 #  Thus, by placing a # at the start of an existing configuration line,
52 #  you can make it a comment and it will be treated as if it weren't
53 #  there. This is called "commenting out" an option and can be useful.
54 #  
55 #  Note that commenting out and option and leaving it at its default
56 #  are two completely different things! Most options behave very
57 #  differently when unset.  See the the "Effect if unset" explanation
58 #  in each option's description for details.
59 #  
60 #  Long lines can be continued on the next line by using a `\' as the
61 #  last character.
62
63
64 #  1. CONFIGURATION AND LOG FILE LOCATIONS
65 #  =======================================
66 #  
67 #  Privoxy can (and normally does) use a number of other files for
68 #  additional configuration, help and logging. This section of the
69 #  configuration file tells Privoxy where to find those other files.
70 #  
71 #  The user running Privoxy, must have read permission for all
72 #  configuration files, and write permission to any files that would
73 #  be modified, such as log files.
74 #  
75
76 #  1.1. confdir
77 #  ============
78 #  
79 #  Specifies:
80 #  
81 #      The directory where the other configuration files are located
82 #  
83 #  Type of value:
84 #  
85 #      Path name
86 #  
87 #  Default value:
88 #  
89 #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
90 #  
91 #  Effect if unset:
92 #  
93 #      Mandatory
94 #  
95 #  Notes:
96 #  
97 #      No trailing "/", please
98 #  
99 #      When development goes modular and multi-user, the blocker,
100 #      filter, and per-user config will be stored in subdirectories of
101 #      "confdir". For now, the configuration directory structure is
102 #      flat, except for confdir/templates, where the HTML templates
103 #      for CGI output reside (e.g. Privoxy's 404 error page).
104 #  
105 confdir .
106
107 #  1.2. logdir
108 #  ===========
109 #  
110 #  Specifies:
111 #  
112 #      The directory where all logging takes place (i.e. where logfile
113 #      and jarfile are located)
114 #  
115 #  Type of value:
116 #  
117 #      Path name
118 #  
119 #  Default value:
120 #  
121 #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
122 #  
123 #  Effect if unset:
124 #  
125 #      Mandatory
126 #  
127 #  Notes:
128 #  
129 #      No trailing "/", please
130 #  
131 logdir .
132
133 #  1.3. actionsfile
134 #  ================
135 #  
136 #  Specifies:
137 #  
138 #      The actions file(s) to use
139 #  
140 #  Type of value:
141 #  
142 #      File name, relative to confdir, without the .action suffix
143 #  
144 #  Default values:
145 #  
146 #        standard     # Internal purposes, no editing recommended
147 #        default      # Main actions file
148 #        user         # User customizations
149 #  
150 #  Effect if unset:
151 #  
152 #      No actions are taken at all. Simple neutral proxying.
153 #  
154 #  Notes:
155 #  
156 #      Multiple actionsfile lines are permitted, and are in fact
157 #      recommended!
158 #  
159 #      The default values include standard.action, which is used
160 #      for internal purposes and should be loaded, default.action,
161 #      which is the "main" actions file maintained by the developers,
162 #      and user.action, where you can make your personal additions.
163 #  
164 #      Actions files are where all the per site and per URL
165 #      configuration is done for ad blocking, cookie management,
166 #      privacy considerations, etc. There is no point in using Privoxy
167 #      without at least one actions file.
168 #  
169 actionsfile standard  # Internal purpose, recommended
170 actionsfile default   # Main actions file
171 actionsfile user      # User customizations
172
173 #  1.4. filterfile
174 #  ===============
175 #  
176 #  Specifies:
177 #  
178 #      The filter file to use
179 #  
180 #  Type of value:
181 #  
182 #      File name, relative to confdir
183 #  
184 #  Default value:
185 #  
186 #      default.filter (Unix) or default.filter.txt (Windows)
187 #  
188 #  Effect if unset:
189 #  
190 #      No textual content filtering takes place, i.e. all +filter{name}
191 #      actions in the actions files are turned neutral.
192 #  
193 #  Notes:
194 #  
195 #      The filter file contains content modification rules that use
196 #      regular expressions. These rules permit powerful changes on the
197 #      content of Web pages, e.g., you could disable your favorite
198 #      JavaScript annoyances, re-write the actual displayed text,
199 #      or just have some fun replacing "Microsoft" with "MicroSuck"
200 #      wherever it appears on a Web page.
201 #  
202 #      The +filter{name} actions rely on the relevant filter (name)
203 #      to be defined in the filter file!
204 #  
205 #      A pre-defined filter file called default.filter that contains
206 #      a bunch of handy filters for common problems is included in the
207 #      distribution. See the section on the filter action for a list.
208 #  
209 filterfile default.filter
210
211 #  1.5. logfile
212 #  ============
213 #  
214 #  Specifies:
215 #  
216 #      The log file to use
217 #  
218 #  Type of value:
219 #  
220 #      File name, relative to logdir
221 #  
222 #  Default value:
223 #  
224 #      logfile (Unix) or privoxy.log (Windows)
225 #  
226 #  Effect if unset:
227 #  
228 #      No log file is used, all log messages go to the console (STDERR).
229 #  
230 #  Notes:
231 #  
232 #      The windows version will additionally log to the console.
233 #  
234 #      The logfile is where all logging and error messages are
235 #      written. The level of detail and number of messages are set with
236 #      the debug option (see below).  The logfile can be useful for
237 #      tracking down a problem with Privoxy (e.g., it's not blocking
238 #      an ad you think it should block) but in most cases you probably
239 #      will never look at it.
240 #  
241 #      Your logfile will grow indefinitely, and you will probably
242 #      want to periodically remove it. On Unix systems, you can do
243 #      this with a cron job (see "man cron"). For Red Hat, a logrotate
244 #      script has been included.
245 #  
246 #      On SuSE Linux systems, you can place a line like
247 #      "/var/log/privoxy.* +1024k 644 nobody.nogroup" in /etc/logfiles,
248 #      with the effect that cron.daily will automatically archive,
249 #      gzip, and empty the log, when it exceeds 1M size.
250 #  
251 #      Any log files must be writable by whatever user Privoxy is
252 #      being run as (default on UNIX, user id is "privoxy").
253 #  
254 logfile logfile
255
256 #  1.6. jarfile
257 #  ============
258 #  
259 #  Specifies:
260 #  
261 #      The file to store intercepted cookies in
262 #  
263 #  Type of value:
264 #  
265 #      File name, relative to logdir
266 #  
267 #  Default value:
268 #  
269 #      jarfile (Unix) or privoxy.jar (Windows)
270 #  
271 #  Effect if unset:
272 #  
273 #      Intercepted cookies are not stored at all.
274 #  
275 #  Notes:
276 #  
277 #      The jarfile may grow to ridiculous sizes over time.
278 #  
279 jarfile jarfile
280
281 #  1.7. trustfile
282 #  ==============
283 #  
284 #  Specifies:
285 #  
286 #      The trust file to use
287 #  
288 #  Type of value:
289 #  
290 #      File name, relative to confdir
291 #  
292 #  Default value:
293 #  
294 #      Unset (commented out). When activated: trust (Unix) or trust.txt
295 #      (Windows)
296 #  
297 #  Effect if unset:
298 #  
299 #      The whole trust mechanism is turned off.
300 #  
301 #  Notes:
302 #  
303 #      The trust mechanism is an experimental feature for building
304 #      white-lists and should be used with care. It is NOT recommended
305 #      for the casual user.
306 #  
307 #      If you specify a trust file, Privoxy will only allow access to
308 #      sites that are named in the trustfile. You can also mark sites
309 #      as trusted referrers (with +), with the effect that access
310 #      to untrusted sites will be granted, if a link from a trusted
311 #      referrer was used. The link target will then be added to the
312 #      "trustfile". Possible applications include limiting Internet
313 #      access for children.
314 #  
315 #      If you use + operator in the trust file, it may grow considerably
316 #      over time.
317 #  
318 #trustfile trust
319
320
321 #  2. LOCAL SET-UP DOCUMENTATION
322 #  =============================
323 #  
324 #  If you intend to operate Privoxy for more users than just yourself,
325 #  it might be a good idea to let them know how to reach you, what
326 #  you block and why you do that, your policies, etc.
327
328 #  2.1. user-manual
329 #  ================
330 #  
331 #  Specifies:
332 #  
333 #      Location of the Privoxy User Manual.
334 #  
335 #  Type of value:
336 #  
337 #      A fully qualified URI
338 #  
339 #  Default value:
340 #  
341 #      Unset
342 #  
343 #  Effect if unset:
344 #  
345 #      http://www.privoxy.org/version/user-manual/ will be used,
346 #      where version is the Privoxy version.
347 #  
348 #  Notes:
349 #  
350 #      The User Manual URI is used for help links from some of the
351 #      internal CGI pages. The manual itself is normally packaged
352 #      with the binary distributions, so you probably want to set this
353 #      to a locally installed copy. For multi-user setups, you could
354 #      provide a copy on a local webserver for all your users and use
355 #      the corresponding URL here.
356 #  
357 #      Examples:
358 #  
359 #      Unix, in local filesystem:
360 #  
361 #      user-manual  file:///usr/share/doc/privoxy-2.9.15/user-manual/
362 #  
363 #      Any platform, on local webserver (called "local-webserver"):
364 #  
365 #      user-manual  http://local-webserver/privoxy-user-manual/
366 #  
367 #   +-----------------------------------------------------------------+
368 #   |                             Warning                             |
369 #   |-----------------------------------------------------------------|
370 #   |If this option is defined, it must come first! It is needed      |
371 #   |before the rest of config is read.                               |
372 #   +-----------------------------------------------------------------+
373 #  
374 #user-manual http://www.privoxy.org/user-manual/
375
376 #  2.2. trust-info-url
377 #  ===================
378 #  
379 #  Specifies:
380 #  
381 #      A URL to be displayed in the error page that users will see if
382 #      access to an untrusted page is denied.
383 #  
384 #  Type of value:
385 #  
386 #      URL
387 #  
388 #  Default value:
389 #  
390 #      Two example URL are provided
391 #  
392 #  Effect if unset:
393 #  
394 #      No links are displayed on the "untrusted" error page.
395 #  
396 #  Notes:
397 #  
398 #      The value of this option only matters if the experimental trust
399 #      mechanism has been activated. (See trustfile above.)
400 #  
401 #      If you use the trust mechanism, it is a good idea to write
402 #      up some on-line documentation about your trust policy and to
403 #      specify the URL(s) here. Use multiple times for multiple URLs.
404 #  
405 #      The URL(s) should be added to the trustfile as well, so users
406 #      don't end up locked out from the information on why they were
407 #      locked out in the first place!
408 #  
409 trust-info-url  http://www.example.com/why_we_block.html
410 trust-info-url  http://www.example.com/what_we_allow.html
411
412 #  2.3. admin-address
413 #  ==================
414 #  
415 #  Specifies:
416 #  
417 #      An email address to reach the proxy administrator.
418 #  
419 #  Type of value:
420 #  
421 #      Email address
422 #  
423 #  Default value:
424 #  
425 #      Unset
426 #  
427 #  Effect if unset:
428 #  
429 #      No email address is displayed on error pages and the CGI user
430 #      interface.
431 #  
432 #  Notes:
433 #  
434 #      If both admin-address and proxy-info-url are unset, the whole
435 #      "Local Privoxy Support" box on all generated pages will not
436 #      be shown.
437 #  
438 #admin-address privoxy-admin@example.com
439
440 #  2.4. proxy-info-url
441 #  ===================
442 #  
443 #  Specifies:
444 #  
445 #      A URL to documentation about the local Privoxy setup,
446 #      configuration or policies.
447 #  
448 #  Type of value:
449 #  
450 #      URL
451 #  
452 #  Default value:
453 #  
454 #      Unset
455 #  
456 #  Effect if unset:
457 #  
458 #      No link to local documentation is displayed on error pages and
459 #      the CGI user interface.
460 #  
461 #  Notes:
462 #  
463 #      If both admin-address and proxy-info-url are unset, the whole
464 #      "Local Privoxy Support" box on all generated pages will not
465 #      be shown.
466 #  
467 #      This URL shouldn't be blocked ;-)
468 #  
469 #proxy-info-url http://www.example.com/proxy-service.html
470
471
472 #  3. DEBUGGING
473 #  ============
474 #  
475 #  These options are mainly useful when tracing a problem. Note that
476 #  you might also want to invoke Privoxy with the --no-daemon command
477 #  line option when debugging.
478
479 #  3.1. debug
480 #  ==========
481 #  
482 #  Specifies:
483 #  
484 #      Key values that determine what information gets logged to
485 #      the logfile.
486 #  
487 #  Type of value:
488 #  
489 #      Integer values
490 #  
491 #  Default value:
492 #  
493 #      12289 (i.e.: URLs plus informational and warning messages)
494 #  
495 #  Effect if unset:
496 #  
497 #      Nothing gets logged.
498 #  
499 #  Notes:
500 #  
501 #      The available debug levels are:
502 #  
503 #        debug         1 # show each GET/POST/CONNECT request 
504 #        debug         2 # show each connection status 
505 #        debug         4 # show I/O status 
506 #        debug         8 # show header parsing 
507 #        debug        16 # log all data into the logfile 
508 #        debug        32 # debug force feature 
509 #        debug        64 # debug regular expression filter
510 #        debug       128 # debug fast redirects 
511 #        debug       256 # debug GIF de-animation 
512 #        debug       512 # Common Log Format
513 #        debug      1024 # debug kill pop-ups 
514 #        debug      2048 # CGI user interface
515 #        debug      4096 # Startup banner and warnings.  
516 #        debug      8192 # Non-fatal errors
517 #  
518 #      To select multiple debug levels, you can either add them or
519 #      use multiple debug lines.
520 #  
521 #      A debug level of 1 is informative because it will show you each
522 #      request as it happens. 1, 4096 and 8192 are highly recommended
523 #      so that you will notice when things go wrong. The other levels
524 #      are probably only of interest if you are hunting down a specific
525 #      problem. They can produce a hell of an output (especially 16).
526 #  
527 #      The reporting of fatal errors (i.e. ones which crash Privoxy)
528 #      is always on and cannot be disabled.
529 #  
530 #      If you want to use CLF (Common Log Format), you should set
531 #      "debug 512" ONLY and not enable anything else.
532 #  
533 debug   1    # show each GET/POST/CONNECT request
534 debug   4096 # Startup banner and warnings
535 debug   8192 # Errors - *we highly recommended enabling this*
536
537 #  3.2. single-threaded
538 #  ====================
539 #  
540 #  Specifies:
541 #  
542 #      Whether to run only one server thread
543 #  
544 #  Type of value:
545 #  
546 #      None
547 #  
548 #  Default value:
549 #  
550 #      Unset
551 #  
552 #  Effect if unset:
553 #  
554 #      Multi-threaded (or, where unavailable: forked) operation,
555 #      i.e. the ability to serve multiple requests simultaneously.
556 #  
557 #  Notes:
558 #  
559 #      This option is only there for debug purposes and you should
560 #      never need to use it. It will drastically reduce performance.
561 #  
562 #single-threaded
563
564
565 #  4. ACCESS CONTROL AND SECURITY
566 #  ==============================
567 #  
568 #  This section of the config file controls the security-relevant
569 #  aspects of Privoxy's configuration.
570
571 #  4.1. listen-address
572 #  ===================
573 #  
574 #  Specifies:
575 #  
576 #      The IP address and TCP port on which Privoxy will listen for
577 #      client requests.
578 #  
579 #  Type of value:
580 #  
581 #      [IP-Address]:Port
582 #  
583 #  Default value:
584 #  
585 #      127.0.0.1:8118
586 #  
587 #  Effect if unset:
588 #  
589 #      Bind to 127.0.0.1 (localhost), port 8118. This is suitable and
590 #      recommended for home users who run Privoxy on the same machine
591 #      as their browser.
592 #  
593 #  Notes:
594 #  
595 #      You will need to configure your browser(s) to this proxy address
596 #      and port.
597 #  
598 #      If you already have another service running on port 8118, or
599 #      if you want to serve requests from other machines (e.g. on your
600 #      local network) as well, you will need to override the default.
601 #  
602 #      If you leave out the IP address, Privoxy will bind to all
603 #      interfaces (addresses) on your machine and may become reachable
604 #      from the Internet. In that case, consider using access control
605 #      lists (ACL's, see below), and/or a firewall.
606 #  
607 #      If you open Privoxy to untrusted users, you will also want
608 #      to turn off the enable-edit-actions and enable-remote-toggle
609 #      options!
610 #  
611 #  Example:
612 #  
613 #      Suppose you are running Privoxy on a machine which has the
614 #      address 192.168.0.1 on your local private network (192.168.0.0)
615 #      and has another outside connection with a different address. You
616 #      want it to serve requests from inside only:
617 #  
618 #        listen-address  192.168.0.1:8118
619 #  
620 listen-address  127.0.0.1:8118
621
622 #  4.2. toggle
623 #  ===========
624 #  
625 #  Specifies:
626 #  
627 #      Initial state of "toggle" status
628 #  
629 #  Type of value:
630 #  
631 #      1 or 0
632 #  
633 #  Default value:
634 #  
635 #      1
636 #  
637 #  Effect if unset:
638 #  
639 #      Act as if toggled on
640 #  
641 #  Notes:
642 #  
643 #      If set to 0, Privoxy will start in "toggled off" mode,
644 #      i.e. behave like a normal, content-neutral proxy where all ad
645 #      blocking, filtering, etc are disabled. See enable-remote-toggle
646 #      below. This is not really useful anymore, since toggling is
647 #      much easier via the web interface than via editing the conf file.
648 #  
649 #      The windows version will only display the toggle icon in the
650 #      system tray if this option is present.
651 #  
652 toggle  1
653
654 #  4.3. enable-remote-toggle
655 #  =========================
656 #  
657 #  Specifies:
658 #  
659 #      Whether or not the web-based toggle feature may be used
660 #  
661 #  Type of value:
662 #  
663 #      0 or 1
664 #  
665 #  Default value:
666 #  
667 #      1
668 #  
669 #  Effect if unset:
670 #  
671 #      The web-based toggle feature is disabled.
672 #  
673 #  Notes:
674 #  
675 #      When toggled off, Privoxy acts like a normal, content-neutral
676 #      proxy, i.e.  it acts as if none of the actions applied to
677 #      any URL.
678 #  
679 #      For the time being, access to the toggle feature can not be
680 #      controlled separately by "ACLs" or HTTP authentication, so that
681 #      everybody who can access Privoxy (see "ACLs" and listen-address
682 #      above) can toggle it for all users. So this option is not
683 #      recommended for multi-user environments with untrusted users.
684 #  
685 #      Note that you must have compiled Privoxy with support for this
686 #      feature, otherwise this option has no effect.
687 #  
688 enable-remote-toggle  1
689
690 #  4.4. enable-edit-actions
691 #  ========================
692 #  
693 #  Specifies:
694 #  
695 #      Whether or not the web-based actions file editor may be used
696 #  
697 #  Type of value:
698 #  
699 #      0 or 1
700 #  
701 #  Default value:
702 #  
703 #      1
704 #  
705 #  Effect if unset:
706 #  
707 #      The web-based actions file editor is disabled.
708 #  
709 #  Notes:
710 #  
711 #      For the time being, access to the editor can not be controlled
712 #      separately by "ACLs" or HTTP authentication, so that everybody
713 #      who can access Privoxy (see "ACLs" and listen-address above)
714 #      can modify its configuration for all users. So this option is
715 #      not recommended for multi-user environments with untrusted users.
716 #  
717 #      Note that you must have compiled Privoxy with support for this
718 #      feature, otherwise this option has no effect.
719 #  
720 enable-edit-actions 1
721
722 #  4.5. ACLs: permit-access and deny-access
723 #  ========================================
724 #  
725 #  Specifies:
726 #  
727 #      Who can access what.
728 #  
729 #  Type of value:
730 #  
731 #      src_addr[/src_masklen] [dst_addr[/dst_masklen]]
732 #  
733 #      Where src_addr and dst_addr are IP addresses in dotted decimal
734 #      notation or valid DNS names, and src_masklen and dst_masklen are
735 #      subnet masks in CIDR notation, i.e. integer values from 2 to 30
736 #      representing the length (in bits) of the network address. The
737 #      masks and the whole destination part are optional.
738 #  
739 #  Default value:
740 #  
741 #      Unset
742 #  
743 #  Effect if unset:
744 #  
745 #      Don't restrict access further than implied by listen-address
746 #  
747 #  Notes:
748 #  
749 #      Access controls are included at the request of ISPs and systems
750 #      administrators, and are not usually needed by individual
751 #      users. For a typical home user, it will normally suffice to
752 #      ensure that Privoxy only listens on the localhost (127.0.0.1)
753 #      or internal (home) network address by means of the listen-address
754 #      option.
755 #  
756 #      Please see the warnings in the FAQ that this proxy is not
757 #      intended to be a substitute for a firewall or to encourage
758 #      anyone to defer addressing basic security weaknesses.
759 #  
760 #      Multiple ACL lines are OK. If any ACLs are specified, then
761 #      the Privoxy talks only to IP addresses that match at least one
762 #      permit-access line and don't match any subsequent deny-access
763 #      line. In other words, the last match wins, with the default
764 #      being deny-access.
765 #  
766 #      If Privoxy is using a forwarder (see forward below) for a
767 #      particular destination URL, the dst_addr that is examined is
768 #      the address of the forwarder and NOT the address of the ultimate
769 #      target. This is necessary because it may be impossible for the
770 #      local Privoxy to determine the IP address of the ultimate target
771 #      (that's often what gateways are used for).
772 #  
773 #      You should prefer using IP addresses over DNS names, because
774 #      the address lookups take time. All DNS names must resolve! You
775 #      can not use domain patterns like "*.org" or partial domain
776 #      names. If a DNS name resolves to multiple IP addresses, only
777 #      the first one is used.
778 #  
779 #      Denying access to particular sites by ACL may have undesired
780 #      side effects if the site in question is hosted on a machine
781 #      which also hosts other sites.
782 #  
783 #  Examples:
784 #  
785 #      Explicitly define the default behavior if no ACL and
786 #      listen-address are set: "localhost" is OK. The absence of a
787 #      dst_addr implies that all destination addresses are OK:
788 #  
789 #        permit-access  localhost
790 #  
791 #      Allow any host on the same class C subnet as www.privoxy.org
792 #      access to nothing but www.example.com:
793 #  
794 #        permit-access  www.privoxy.org/24 www.example.com/32
795 #  
796 #      Allow access from any host on the 26-bit subnet 192.168.45.64
797 #      to anywhere, with the exception that 192.168.45.73 may not
798 #      access www.dirty-stuff.example.com:
799 #  
800 #        permit-access  192.168.45.64/26 
801 #        deny-access    192.168.45.73     www.dirty-stuff.example.com
802 #  
803
804 #  4.6. buffer-limit
805 #  =================
806 #  
807 #  Specifies:
808 #  
809 #      Maximum size of the buffer for content filtering.
810 #  
811 #  Type of value:
812 #  
813 #      Size in Kbytes
814 #  
815 #  Default value:
816 #  
817 #      4096
818 #  
819 #  Effect if unset:
820 #  
821 #      Use a 4MB (4096 KB) limit.
822 #  
823 #  Notes:
824 #  
825 #      For content filtering, i.e. the +filter and +deanimate-gif
826 #      actions, it is necessary that Privoxy buffers the entire document
827 #      body. This can be potentially dangerous, since a server could
828 #      just keep sending data indefinitely and wait for your RAM to
829 #      exhaust -- with nasty consequences.  Hence this option.
830 #  
831 #      When a document buffer size reaches the buffer-limit, it is
832 #      flushed to the client unfiltered and no further attempt to filter
833 #      the rest of the document is made. Remember that there may be
834 #      multiple threads running, which might require up to buffer-limit
835 #      Kbytes each, unless you have enabled "single-threaded" above.
836 #  
837 buffer-limit 4096
838
839
840 #  5. FORWARDING
841 #  =============
842 #  
843 #  This feature allows routing of HTTP requests through a chain
844 #  of multiple proxies. It can be used to better protect privacy
845 #  and confidentiality when accessing specific domains by routing
846 #  requests to those domains through an anonymous public proxy (see
847 #  e.g. http://www.multiproxy.org/anon_list.htm) Or to use a caching
848 #  proxy to speed up browsing. Or chaining to a parent proxy may be
849 #  necessary because the machine that Privoxy runs on has no direct
850 #  Internet access.
851 #  
852 #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
853 #  4 and SOCKS 4A protocols.
854
855 #  5.1. forward
856 #  ============
857 #  
858 #  Specifies:
859 #  
860 #      To which parent HTTP proxy specific requests should be routed.
861 #  
862 #  Type of value:
863 #  
864 #      target_domain[:port] http_parent[/port]
865 #  
866 #      Where target_domain is a domain name pattern (see the chapter
867 #      on domain matching in the default.action file), http_parent
868 #      is the address of the parent HTTP proxy as an IP addresses in
869 #      dotted decimal notation or as a valid DNS name (or "." to denote
870 #      "no forwarding", and the optional port parameters are TCP ports,
871 #      i.e. integer values from 1 to 64535
872 #  
873 #  Default value:
874 #  
875 #      Unset
876 #  
877 #  Effect if unset:
878 #  
879 #      Don't use parent HTTP proxies.
880 #  
881 #  Notes:
882 #  
883 #      If http_parent is ".", then requests are not forwarded to
884 #      another HTTP proxy but are made directly to the web servers.
885 #  
886 #      Multiple lines are OK, they are checked in sequence, and the
887 #      last match wins.
888 #  
889 #  Examples:
890 #  
891 #      Everything goes to an example anonymizing proxy, except SSL on
892 #      port 443 (which it doesn't handle):
893 #  
894 #        forward   .*     anon-proxy.example.org:8080 
895 #        forward   :443   .
896 #  
897 #      Everything goes to our example ISP's caching proxy, except for
898 #      requests to that ISP's sites:
899 #  
900 #        forward   .*.                caching-proxy.example-isp.net:8000
901 #        forward   .example-isp.net   .
902 #  
903
904 #  5.2. forward-socks4 and forward-socks4a
905 #  =======================================
906 #  
907 #  Specifies:
908 #  
909 #      Through which SOCKS proxy (and to which parent HTTP proxy)
910 #      specific requests should be routed.
911 #  
912 #  Type of value:
913 #  
914 #      target_domain[:port] socks_proxy[/port] http_parent[/port]
915 #  
916 #      Where target_domain is a domain name pattern (see the chapter
917 #      on domain matching in the default.action file), http_parent
918 #      and socks_proxy are IP addresses in dotted decimal notation
919 #      or valid DNS names (http_parent may be "." to denote "no HTTP
920 #      forwarding"), and the optional port parameters are TCP ports,
921 #      i.e. integer values from 1 to 64535
922 #  
923 #  Default value:
924 #  
925 #      Unset
926 #  
927 #  Effect if unset:
928 #  
929 #      Don't use SOCKS proxies.
930 #  
931 #  Notes:
932 #  
933 #      Multiple lines are OK, they are checked in sequence, and the
934 #      last match wins.
935 #  
936 #      The difference between forward-socks4 and forward-socks4a
937 #      is that in the SOCKS 4A protocol, the DNS resolution of the
938 #      target hostname happens on the SOCKS server, while in SOCKS 4
939 #      it happens locally.
940 #  
941 #      If http_parent is ".", then requests are not forwarded to another
942 #      HTTP proxy but are made (HTTP-wise) directly to the web servers,
943 #      albeit through a SOCKS proxy.
944 #  
945 #  Examples:
946 #  
947 #      From the company example.com, direct connections are made to all
948 #      "internal" domains, but everything outbound goes through their
949 #      ISP's proxy by way of example.com's corporate SOCKS 4A gateway
950 #      to the Internet.
951 #  
952 #        forward-socks4a   .*.        socks-gw.example.com:1080     www-cache.example-isp.net:8080 
953 #        forward           .example.com   .
954 #  
955 #      A rule that uses a SOCKS 4 gateway for all destinations but no
956 #      HTTP parent looks like this:
957 #  
958 #        forward-socks4   .*.            socks-gw.example.com:1080  .
959
960
961 #  6. WINDOWS GUI OPTIONS
962 #  ======================
963 #  
964 #  Privoxy has a number of options specific to the Windows GUI
965 #  interface:
966
967 #  If "activity-animation" is set to 1, the Privoxy icon will animate
968 #  when "Privoxy" is active. To turn off, set to 0.
969 #  
970 #activity-animation   1
971 #  
972
973 #  If "log-messages" is set to 1, Privoxy will log messages to the
974 #  console window:
975 #  
976 #log-messages   1
977 #  
978
979 #  If "log-buffer-size" is set to 1, the size of the log buffer,
980 #  i.e. the amount of memory used for the log messages displayed in
981 #  the console window, will be limited to "log-max-lines" (see below).
982 #  
983 #  Warning: Setting this to 0 will result in the buffer to grow
984 #  infinitely and eat up all your memory!
985 #  
986 #log-buffer-size 1
987 #  
988
989 #  log-max-lines is the maximum number of lines held in the log
990 #  buffer. See above.
991 #  
992 #log-max-lines 200
993 #  
994
995 #  If "log-highlight-messages" is set to 1, Privoxy will highlight
996 #  portions of the log messages with a bold-faced font:
997 #  
998 #log-highlight-messages 1
999 #  
1000
1001 #  The font used in the console window:
1002 #  
1003 #log-font-name Comic Sans MS
1004 #  
1005
1006 #  Font size used in the console window:
1007 #  
1008 #log-font-size 8
1009 #  
1010
1011 #  "show-on-task-bar" controls whether or not Privoxy will appear as
1012 #  a button on the Task bar when minimized:
1013 #  
1014 #show-on-task-bar 0
1015 #  
1016
1017 #  If "close-button-minimizes" is set to 1, the Windows close button
1018 #  will minimize Privoxy instead of closing the program (close with
1019 #  the exit option on the File menu).
1020 #  
1021 #close-button-minimizes 1
1022 #  
1023
1024 #  The "hide-console" option is specific to the MS-Win console version
1025 #  of Privoxy.  If this option is used, Privoxy will disconnect from
1026 #  and hide the command console.
1027 #  
1028 #hide-console
1029 #