1 # Sample Configuration File for Privoxy v3.0.17
3 # $Id: config,v 1.92 2010/11/06 12:58:42 fabiankeil Exp $
5 # Copyright (C) 2001-2010 Privoxy Developers http://www.privoxy.org/
7 ####################################################################
12 # II. FORMAT OF THE CONFIGURATION FILE #
14 # 1. LOCAL SET-UP DOCUMENTATION #
15 # 2. CONFIGURATION AND LOG FILE LOCATIONS #
17 # 4. ACCESS CONTROL AND SECURITY #
19 # 6. WINDOWS GUI OPTIONS #
21 ####################################################################
27 # This file holds Privoxy's main configuration. Privoxy detects
28 # configuration changes automatically, so you don't have to restart
29 # it unless you want to load a different configuration file.
31 # The configuration will be reloaded with the first request after
32 # the change was done, this request itself will still use the old
33 # configuration, though. In other words: it takes two requests before
34 # you see the result of your changes. Requests that are dropped due
35 # to ACL don't trigger reloads.
37 # When starting Privoxy on Unix systems, give the location of this
38 # file as last argument. On Windows systems, Privoxy will look for
39 # this file with the name 'config.txt' in the current working directory
40 # of the Privoxy process.
43 # II. FORMAT OF THE CONFIGURATION FILE
44 # ====================================
46 # Configuration lines consist of an initial keyword followed by a
47 # list of values, all separated by whitespace (any number of spaces
48 # or tabs). For example,
50 # actionsfile default.action
52 # Indicates that the actionsfile is named 'default.action'.
54 # The '#' indicates a comment. Any part of a line following a '#'
55 # is ignored, except if the '#' is preceded by a '\'.
57 # Thus, by placing a # at the start of an existing configuration
58 # line, you can make it a comment and it will be treated as if it
59 # weren't there. This is called "commenting out" an option and can
60 # be useful. Removing the # again is called "uncommenting".
62 # Note that commenting out an option and leaving it at its default
63 # are two completely different things! Most options behave very
64 # differently when unset. See the "Effect if unset" explanation in
65 # each option's description for details.
67 # Long lines can be continued on the next line by using a `\' as the
72 # 1. LOCAL SET-UP DOCUMENTATION
73 # ==============================
75 # If you intend to operate Privoxy for more users than just yourself,
76 # it might be a good idea to let them know how to reach you, what
77 # you block and why you do that, your policies, etc.
86 # Location of the Privoxy User Manual.
90 # A fully qualified URI
98 # http://www.privoxy.org/version/user-manual/ will be used,
99 # where version is the Privoxy version.
103 # The User Manual URI is the single best source of information on
104 # Privoxy, and is used for help links from some of the internal
105 # CGI pages. The manual itself is normally packaged with the
106 # binary distributions, so you probably want to set this to a
107 # locally installed copy.
111 # The best all purpose solution is simply to put the full local
112 # PATH to where the User Manual is located:
114 # user-manual /usr/share/doc/privoxy/user-manual
116 # The User Manual is then available to anyone with
117 # access to Privoxy, by following the built-in URL:
118 # http://config.privoxy.org/user-manual/ (or the shortcut:
119 # http://p.p/user-manual/).
121 # If the documentation is not on the local system, it can be
122 # accessed from a remote server, as:
124 # user-manual http://example.com/privoxy/user-manual/
128 # If set, this option should be the first option in the config
129 # file, because it is used while the config file is being read.
131 #user-manual http://www.privoxy.org/user-manual/
134 # 1.2. trust-info-url
135 # ====================
139 # A URL to be displayed in the error page that users will see if
140 # access to an untrusted page is denied.
152 # No links are displayed on the "untrusted" error page.
156 # The value of this option only matters if the experimental trust
157 # mechanism has been activated. (See trustfile below.)
159 # If you use the trust mechanism, it is a good idea to write
160 # up some on-line documentation about your trust policy and to
161 # specify the URL(s) here. Use multiple times for multiple URLs.
163 # The URL(s) should be added to the trustfile as well, so users
164 # don't end up locked out from the information on why they were
165 # locked out in the first place!
167 #trust-info-url http://www.example.com/why_we_block.html
168 #trust-info-url http://www.example.com/what_we_allow.html
172 # ===================
176 # An email address to reach the Privoxy administrator.
188 # No email address is displayed on error pages and the CGI user
193 # If both admin-address and proxy-info-url are unset, the whole
194 # "Local Privoxy Support" box on all generated pages will not
197 #admin-address privoxy-admin@example.com
200 # 1.4. proxy-info-url
201 # ====================
205 # A URL to documentation about the local Privoxy setup,
206 # configuration or policies.
218 # No link to local documentation is displayed on error pages and
219 # the CGI user interface.
223 # If both admin-address and proxy-info-url are unset, the whole
224 # "Local Privoxy Support" box on all generated pages will not
227 # This URL shouldn't be blocked ;-)
229 #proxy-info-url http://www.example.com/proxy-service.html
232 # 2. CONFIGURATION AND LOG FILE LOCATIONS
233 # ========================================
235 # Privoxy can (and normally does) use a number of other files for
236 # additional configuration, help and logging. This section of the
237 # configuration file tells Privoxy where to find those other files.
239 # The user running Privoxy, must have read permission for all
240 # configuration files, and write permission to any files that would
241 # be modified, such as log files and actions files.
250 # The directory where the other configuration files are located.
258 # /etc/privoxy (Unix) or Privoxy installation dir (Windows)
266 # No trailing "/", please.
276 # An alternative directory where the templates are loaded from.
288 # The templates are assumed to be located in confdir/template.
292 # Privoxy's original templates are usually overwritten with each
293 # update. Use this option to relocate customized templates that
294 # should be kept. As template variables might change between
295 # updates, you shouldn't expect templates to work with Privoxy
296 # releases other than the one they were part of, though.
306 # The directory where all logging takes place (i.e. where the
307 # logfile is located).
315 # /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
323 # No trailing "/", please.
333 # The actions file(s) to use
337 # Complete file name, relative to confdir
341 # match-all.action # Actions that are applied to all sites and maybe overruled later on.
343 # default.action # Main actions file
345 # user.action # User customizations
349 # No actions are taken at all. More or less neutral proxying.
353 # Multiple actionsfile lines are permitted, and are in fact
356 # The default values are default.action, which is the "main"
357 # actions file maintained by the developers, and user.action,
358 # where you can make your personal additions.
360 # Actions files contain all the per site and per URL configuration
361 # for ad blocking, cookie management, privacy considerations,
362 # etc. There is no point in using Privoxy without at least one
365 # Note that since Privoxy 3.0.7, the complete filename, including
366 # the ".action" extension has to be specified. The syntax change
367 # was necessary to be consistent with the other file options and
368 # to allow previously forbidden characters.
370 actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
371 actionsfile default.action # Main actions file
372 actionsfile user.action # User customizations
380 # The filter file(s) to use
384 # File name, relative to confdir
388 # default.filter (Unix) or default.filter.txt (Windows)
392 # No textual content filtering takes place, i.e. all +filter{name}
393 # actions in the actions files are turned neutral.
397 # Multiple filterfile lines are permitted.
399 # The filter files contain content modification rules that use
400 # regular expressions. These rules permit powerful changes on the
401 # content of Web pages, and optionally the headers as well, e.g.,
402 # you could try to disable your favorite JavaScript annoyances,
403 # re-write the actual displayed text, or just have some fun
404 # playing buzzword bingo with web pages.
406 # The +filter{name} actions rely on the relevant filter (name)
407 # to be defined in a filter file!
409 # A pre-defined filter file called default.filter that contains a
410 # number of useful filters for common problems is included in the
411 # distribution. See the section on the filter action for a list.
413 # It is recommended to place any locally adapted filters into a
414 # separate file, such as user.filter.
416 filterfile default.filter
417 filterfile user.filter # User customizations
425 # The log file to use
429 # File name, relative to logdir
433 # Unset (commented out). When activated: logfile (Unix) or
434 # privoxy.log (Windows).
438 # No logfile is written.
442 # The logfile is where all logging and error messages are
443 # written. The level of detail and number of messages are set with
444 # the debug option (see below). The logfile can be useful for
445 # tracking down a problem with Privoxy (e.g., it's not blocking
446 # an ad you think it should block) and it can help you to monitor
447 # what your browser is doing.
449 # Depending on the debug options below, the logfile may be a
450 # privacy risk if third parties can get access to it. As most
451 # users will never look at it, Privoxy 3.0.7 and later only log
452 # fatal errors by default.
454 # For most troubleshooting purposes, you will have to change that,
455 # please refer to the debugging section for details.
457 # Your logfile will grow indefinitely, and you will probably
458 # want to periodically remove it. On Unix systems, you can do
459 # this with a cron job (see "man cron"). For Red Hat based Linux
460 # distributions, a logrotate script has been included.
462 # Any log files must be writable by whatever user Privoxy is
463 # being run as (on Unix, default user id is "privoxy").
473 # The name of the trust file to use
477 # File name, relative to confdir
481 # Unset (commented out). When activated: trust (Unix) or trust.txt
486 # The entire trust mechanism is disabled.
490 # The trust mechanism is an experimental feature for building
491 # white-lists and should be used with care. It is NOT recommended
492 # for the casual user.
494 # If you specify a trust file, Privoxy will only allow access to
495 # sites that are specified in the trustfile. Sites can be listed
496 # in one of two ways:
498 # Prepending a ~ character limits access to this site only (and
499 # any sub-paths within this site), e.g. ~www.example.com allows
500 # access to ~www.example.com/ features/news.html, etc.
502 # Or, you can designate sites as trusted referrers, by prepending
503 # the name with a + character. The effect is that access to
504 # untrusted sites will be granted -- but only if a link from
505 # this trusted referrer was used to get there. The link target
506 # will then be added to the "trustfile" so that future, direct
507 # accesses will be granted. Sites added via this mechanism do
508 # not become trusted referrers themselves (i.e. they are added
509 # with a ~ designation). There is a limit of 512 such entries,
510 # after which new entries will not be made.
512 # If you use the + operator in the trust file, it may grow
513 # considerably over time.
515 # It is recommended that Privoxy be compiled with the
516 # --disable-force, --disable-toggle and --disable-editor options,
517 # if this feature is to be used.
519 # Possible applications include limiting Internet access for
528 # These options are mainly useful when tracing a problem. Note that
529 # you might also want to invoke Privoxy with the --no-daemon command
530 # line option when debugging.
539 # Key values that determine what information gets logged.
547 # 0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)
551 # Default value is used (see above).
555 # The available debug levels are:
557 # debug 1 # Log the destination for each request Privoxy let through. See also debug 1024.
558 # debug 2 # show each connection status
559 # debug 4 # show I/O status
560 # debug 8 # show header parsing
561 # debug 16 # log all data written to the network
562 # debug 32 # debug force feature
563 # debug 64 # debug regular expression filters
564 # debug 128 # debug redirects
565 # debug 256 # debug GIF de-animation
566 # debug 512 # Common Log Format
567 # debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
568 # debug 2048 # CGI user interface
569 # debug 4096 # Startup banner and warnings.
570 # debug 8192 # Non-fatal errors
571 # debug 32768 # log all data read from the network
574 # To select multiple debug levels, you can either add them or
575 # use multiple debug lines.
577 # A debug level of 1 is informative because it will show you each
578 # request as it happens. 1, 1024, 4096 and 8192 are recommended
579 # so that you will notice when things go wrong. The other levels
580 # are probably only of interest if you are hunting down a specific
581 # problem. They can produce a hell of an output (especially 16).
583 # Privoxy used to ship with the debug levels recommended above
584 # enabled by default, but due to privacy concerns 3.0.7 and later
585 # are configured to only log fatal errors.
587 # If you are used to the more verbose settings, simply enable
588 # the debug lines below again.
590 # If you want to use pure CLF (Common Log Format), you should set
591 # "debug 512" ONLY and not enable anything else.
593 # Privoxy has a hard-coded limit for the length of log messages. If
594 # it's reached, messages are logged truncated and marked with
595 # "... [too long, truncated]".
597 # Please don't file any support requests without trying to
598 # reproduce the problem with increased debug level first. Once
599 # you read the log messages, you may even be able to solve the
600 # problem on your own.
602 #debug 1 # Log the destination for each request Privoxy let through.
603 #debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
604 #debug 4096 # Startup banner and warnings
605 #debug 8192 # Non-fatal errors
608 # 3.2. single-threaded
609 # =====================
613 # Whether to run only one server thread.
625 # Multi-threaded (or, where unavailable: forked) operation,
626 # i.e. the ability to serve multiple requests simultaneously.
630 # This option is only there for debugging purposes. It will
631 # drastically reduce performance.
641 # The hostname shown on the CGI pages.
653 # The hostname provided by the operating system is used.
657 # On some misconfigured systems resolving the hostname fails or
658 # takes too much time and slows Privoxy down. Setting a fixed
659 # hostname works around the problem.
661 # In other circumstances it might be desirable to show a hostname
662 # other than the one returned by the operating system. For example
663 # if the system has several different hostnames and you don't
664 # want to use the first one.
666 # Note that Privoxy does not validate the specified hostname value.
668 #hostname hostname.example.org
671 # 4. ACCESS CONTROL AND SECURITY
672 # ===============================
674 # This section of the config file controls the security-relevant
675 # aspects of Privoxy's configuration.
679 # 4.1. listen-address
680 # ====================
684 # The IP address and TCP port on which Privoxy will listen for
697 # Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is suitable
698 # and recommended for home users who run Privoxy on the same
699 # machine as their browser.
703 # You will need to configure your browser(s) to this proxy address
706 # If you already have another service running on port 8118, or
707 # if you want to serve requests from other machines (e.g. on your
708 # local network) as well, you will need to override the default.
710 # IPv6 addresses containing colons have to be quoted by brackets.
712 # If you leave out the IP address, Privoxy will bind to all IPv4
713 # interfaces (addresses) on your machine and may become reachable
714 # from the Internet. In that case, consider using access control
715 # lists (ACL's, see below), and/or a firewall.
717 # If you open Privoxy to untrusted users, you will also
718 # want to make sure that the following actions are disabled:
719 # enable-edit-actions and enable-remote-toggle
723 # Suppose you are running Privoxy on a machine which has the
724 # address 192.168.0.1 on your local private network (192.168.0.0)
725 # and has another outside connection with a different address. You
726 # want it to serve requests from inside only:
728 # listen-address 192.168.0.1:8118
730 # Suppose you are running Privoxy on an IPv6-capable machine and
731 # you want it to listen on the IPv6 address of the loopback device:
733 # listen-address [::1]:8118
735 listen-address 127.0.0.1:8118
743 # Initial state of "toggle" status
755 # Act as if toggled on
759 # If set to 0, Privoxy will start in "toggled off" mode,
760 # i.e. mostly behave like a normal, content-neutral proxy
761 # with both ad blocking and content filtering disabled. See
762 # enable-remote-toggle below.
764 # The windows version will only display the toggle icon in the
765 # system tray if this option is present.
770 # 4.3. enable-remote-toggle
771 # ==========================
775 # Whether or not the web-based toggle feature may be used
787 # The web-based toggle feature is disabled.
791 # When toggled off, Privoxy mostly acts like a normal,
792 # content-neutral proxy, i.e. doesn't block ads or filter content.
794 # Access to the toggle feature can not be controlled separately by
795 # "ACLs" or HTTP authentication, so that everybody who can access
796 # Privoxy (see "ACLs" and listen-address above) can toggle it
797 # for all users. So this option is not recommended for multi-user
798 # environments with untrusted users.
800 # Note that malicious client side code (e.g Java) is also capable
801 # of using this option.
803 # As a lot of Privoxy users don't read documentation, this feature
804 # is disabled by default.
806 # Note that you must have compiled Privoxy with support for this
807 # feature, otherwise this option has no effect.
809 enable-remote-toggle 0
812 # 4.4. enable-remote-http-toggle
813 # ===============================
817 # Whether or not Privoxy recognizes special HTTP headers to change
830 # Privoxy ignores special HTTP headers.
834 # When toggled on, the client can change Privoxy's behaviour by
835 # setting special HTTP headers. Currently the only supported
836 # special header is "X-Filter: No", to disable filtering for
837 # the ongoing request, even if it is enabled in one of the
840 # This feature is disabled by default. If you are using Privoxy in
841 # a environment with trusted clients, you may enable this feature
842 # at your discretion. Note that malicious client side code (e.g
843 # Java) is also capable of using this feature.
845 # This option will be removed in future releases as it has been
846 # obsoleted by the more general header taggers.
848 enable-remote-http-toggle 0
851 # 4.5. enable-edit-actions
852 # =========================
856 # Whether or not the web-based actions file editor may be used
868 # The web-based actions file editor is disabled.
872 # Access to the editor can not be controlled separately by
873 # "ACLs" or HTTP authentication, so that everybody who can access
874 # Privoxy (see "ACLs" and listen-address above) can modify its
875 # configuration for all users.
877 # This option is not recommended for environments with untrusted
878 # users and as a lot of Privoxy users don't read documentation,
879 # this feature is disabled by default.
881 # Note that malicious client side code (e.g Java) is also capable
882 # of using the actions editor and you shouldn't enable this
883 # options unless you understand the consequences and are sure
884 # your browser is configured correctly.
886 # Note that you must have compiled Privoxy with support for this
887 # feature, otherwise this option has no effect.
889 enable-edit-actions 0
892 # 4.6. enforce-blocks
893 # ====================
897 # Whether the user is allowed to ignore blocks and can "go there
910 # Blocks are not enforced.
914 # Privoxy is mainly used to block and filter requests as a service
915 # to the user, for example to block ads and other junk that clogs
916 # the pipes. Privoxy's configuration isn't perfect and sometimes
917 # innocent pages are blocked. In this situation it makes sense to
918 # allow the user to enforce the request and have Privoxy ignore
921 # In the default configuration Privoxy's "Blocked" page contains
922 # a "go there anyway" link to adds a special string (the force
923 # prefix) to the request URL. If that link is used, Privoxy
924 # will detect the force prefix, remove it again and let the
927 # Of course Privoxy can also be used to enforce a network
928 # policy. In that case the user obviously should not be able to
929 # bypass any blocks, and that's what the "enforce-blocks" option
930 # is for. If it's enabled, Privoxy hides the "go there anyway"
931 # link. If the user adds the force prefix by hand, it will not
932 # be accepted and the circumvention attempt is logged.
941 # 4.7. ACLs: permit-access and deny-access
942 # =========================================
946 # Who can access what.
950 # src_addr[:port][/src_masklen] [dst_addr[:port][/dst_masklen]]
952 # Where src_addr and dst_addr are IPv4 addresses in dotted
953 # decimal notation or valid DNS names, port is a port number, and
954 # src_masklen and dst_masklen are subnet masks in CIDR notation,
955 # i.e. integer values from 2 to 30 representing the length
956 # (in bits) of the network address. The masks and the whole
957 # destination part are optional.
959 # If your system implements RFC 3493, then src_addr and dst_addr
960 # can be IPv6 addresses delimeted by brackets, port can be a
961 # number or a service name, and src_masklen and dst_masklen can
962 # be a number from 0 to 128.
968 # If no port is specified, any port will match. If no src_masklen
969 # or src_masklen is given, the complete IP address has to match
970 # (i.e. 32 bits for IPv4 and 128 bits for IPv6).
974 # Don't restrict access further than implied by listen-address
978 # Access controls are included at the request of ISPs and systems
979 # administrators, and are not usually needed by individual
980 # users. For a typical home user, it will normally suffice to
981 # ensure that Privoxy only listens on the localhost (127.0.0.1)
982 # or internal (home) network address by means of the listen-address
985 # Please see the warnings in the FAQ that Privoxy is not intended
986 # to be a substitute for a firewall or to encourage anyone to
987 # defer addressing basic security weaknesses.
989 # Multiple ACL lines are OK. If any ACLs are specified, Privoxy
990 # only talks to IP addresses that match at least one permit-access
991 # line and don't match any subsequent deny-access line. In other
992 # words, the last match wins, with the default being deny-access.
994 # If Privoxy is using a forwarder (see forward below) for a
995 # particular destination URL, the dst_addr that is examined is
996 # the address of the forwarder and NOT the address of the ultimate
997 # target. This is necessary because it may be impossible for the
998 # local Privoxy to determine the IP address of the ultimate target
999 # (that's often what gateways are used for).
1001 # You should prefer using IP addresses over DNS names, because
1002 # the address lookups take time. All DNS names must resolve! You
1003 # can not use domain patterns like "*.org" or partial domain
1004 # names. If a DNS name resolves to multiple IP addresses, only
1005 # the first one is used.
1007 # Some systems allow IPv4 clients to connect to IPv6 server
1008 # sockets. Then the client's IPv4 address will be translated by the
1009 # system into IPv6 address space with special prefix ::ffff:0:0/96
1010 # (so called IPv4 mapped IPv6 address). Privoxy can handle it
1011 # and maps such ACL addresses automatically.
1013 # Denying access to particular sites by ACL may have undesired
1014 # side effects if the site in question is hosted on a machine
1015 # which also hosts other sites (most sites are).
1019 # Explicitly define the default behavior if no ACL and
1020 # listen-address are set: "localhost" is OK. The absence of a
1021 # dst_addr implies that all destination addresses are OK:
1023 # permit-access localhost
1026 # Allow any host on the same class C subnet as www.privoxy.org
1027 # access to nothing but www.example.com (or other domains hosted
1028 # on the same system):
1030 # permit-access www.privoxy.org/24 www.example.com/32
1033 # Allow access from any host on the 26-bit subnet 192.168.45.64 to
1034 # anywhere, with the exception that 192.168.45.73 may not access
1035 # the IP address behind www.dirty-stuff.example.com:
1037 # permit-access 192.168.45.64/26
1038 # deny-access 192.168.45.73 www.dirty-stuff.example.com
1040 # Allow access from the IPv4 network 192.0.2.0/24 even if listening
1041 # on an IPv6 wild card address (not supported on all platforms):
1043 # permit-access 192.0.2.0/24
1046 # This is equivalent to the following line even if listening on
1047 # an IPv4 address (not supported on all platforms):
1049 # permit-access [::ffff:192.0.2.0]/120
1053 # ==================
1057 # Maximum size of the buffer for content filtering.
1069 # Use a 4MB (4096 KB) limit.
1073 # For content filtering, i.e. the +filter and +deanimate-gif
1074 # actions, it is necessary that Privoxy buffers the entire document
1075 # body. This can be potentially dangerous, since a server could
1076 # just keep sending data indefinitely and wait for your RAM to
1077 # exhaust -- with nasty consequences. Hence this option.
1079 # When a document buffer size reaches the buffer-limit, it is
1080 # flushed to the client unfiltered and no further attempt to filter
1081 # the rest of the document is made. Remember that there may be
1082 # multiple threads running, which might require up to buffer-limit
1083 # Kbytes each, unless you have enabled "single-threaded" above.
1091 # This feature allows routing of HTTP requests through a chain of
1094 # Forwarding can be used to chain Privoxy with a caching proxy to
1095 # speed up browsing. Using a parent proxy may also be necessary if
1096 # the machine that Privoxy runs on has no direct Internet access.
1098 # Note that parent proxies can severely decrease your privacy
1099 # level. For example a parent proxy could add your IP address to the
1100 # request headers and if it's a caching proxy it may add the "Etag"
1101 # header to revalidation requests again, even though you configured
1102 # Privoxy to remove it. It may also ignore Privoxy's header time
1103 # randomization and use the original values which could be used by
1104 # the server as cookie replacement to track your steps between visits.
1106 # Also specified here are SOCKS proxies. Privoxy supports the SOCKS
1107 # 4 and SOCKS 4A protocols.
1116 # To which parent HTTP proxy specific requests should be routed.
1120 # target_pattern http_parent[:port]
1122 # where target_pattern is a URL pattern that specifies to which
1123 # requests (i.e. URLs) this forward rule shall apply. Use /
1124 # to denote "all URLs". http_parent[:port] is the DNS name or
1125 # IP address of the parent HTTP proxy through which the requests
1126 # should be forwarded, optionally followed by its listening port
1127 # (default: 8000). Use a single dot (.) to denote "no forwarding".
1135 # Don't use parent HTTP proxies.
1139 # If http_parent is ".", then requests are not forwarded to
1140 # another HTTP proxy but are made directly to the web servers.
1142 # http_parent can be a numerical IPv6 address (if RFC 3493 is
1143 # implemented). To prevent clashes with the port delimiter,
1144 # the whole IP address has to be put into brackets. On the other
1145 # hand a target_pattern containing an IPv6 address has to be put
1146 # into angle brackets (normal brackets are reserved for regular
1147 # expressions already).
1149 # Multiple lines are OK, they are checked in sequence, and the
1154 # Everything goes to an example parent proxy, except SSL on port
1155 # 443 (which it doesn't handle):
1157 # forward / parent-proxy.example.org:8080
1161 # Everything goes to our example ISP's caching proxy, except for
1162 # requests to that ISP's sites:
1164 # forward / caching-proxy.isp.example.net:8000
1165 # forward .isp.example.net .
1168 # Parent proxy specified by an IPv6 address:
1170 # foward / [2001:DB8::1]:8000
1173 # Suppose your parent proxy doesn't support IPv6:
1175 # forward / parent-proxy.example.org:8000
1176 # forward ipv6-server.example.org .
1177 # forward <[2-3][0-9a-f][0-9a-f][0-9a-f]:*> .
1180 # 5.2. forward-socks4, forward-socks4a and forward-socks5
1181 # ========================================================
1185 # Through which SOCKS proxy (and optionally to which parent HTTP
1186 # proxy) specific requests should be routed.
1190 # target_pattern socks_proxy[:port] http_parent[:port]
1192 # where target_pattern is a URL pattern that specifies to which
1193 # requests (i.e. URLs) this forward rule shall apply. Use / to
1194 # denote "all URLs". http_parent and socks_proxy are IP addresses
1195 # in dotted decimal notation or valid DNS names (http_parent may
1196 # be "." to denote "no HTTP forwarding"), and the optional port
1197 # parameters are TCP ports, i.e. integer values from 1 to 65535
1205 # Don't use SOCKS proxies.
1209 # Multiple lines are OK, they are checked in sequence, and the
1212 # The difference between forward-socks4 and forward-socks4a
1213 # is that in the SOCKS 4A protocol, the DNS resolution of the
1214 # target hostname happens on the SOCKS server, while in SOCKS 4
1215 # it happens locally.
1217 # With forward-socks5 the DNS resolution will happen on the remote
1220 # socks_proxy and http_parent can be a numerical IPv6 address
1221 # (if RFC 3493 is implemented). To prevent clashes with the port
1222 # delimiter, the whole IP address has to be put into brackets. On
1223 # the other hand a target_pattern containing an IPv6 address has
1224 # to be put into angle brackets (normal brackets are reserved
1225 # for regular expressions already).
1227 # If http_parent is ".", then requests are not forwarded to another
1228 # HTTP proxy but are made (HTTP-wise) directly to the web servers,
1229 # albeit through a SOCKS proxy.
1233 # From the company example.com, direct connections are made to all
1234 # "internal" domains, but everything outbound goes through their
1235 # ISP's proxy by way of example.com's corporate SOCKS 4A gateway
1238 # forward-socks4a / socks-gw.example.com:1080 www-cache.isp.example.net:8080
1239 # forward .example.com .
1242 # A rule that uses a SOCKS 4 gateway for all destinations but no
1243 # HTTP parent looks like this:
1245 # forward-socks4 / socks-gw.example.com:1080 .
1248 # To chain Privoxy and Tor, both running on the same system,
1249 # you would use something like:
1251 # forward-socks5 / 127.0.0.1:9050 .
1254 # The public Tor network can't be used to reach your local network,
1255 # if you need to access local servers you therefore might want
1256 # to make some exceptions:
1258 # forward 192.168.*.*/ .
1259 # forward 10.*.*.*/ .
1260 # forward 127.*.*.*/ .
1263 # Unencrypted connections to systems in these address ranges will
1264 # be as (un) secure as the local network is, but the alternative
1265 # is that you can't reach the local network through Privoxy at
1266 # all. Of course this may actually be desired and there is no
1267 # reason to make these exceptions if you aren't sure you need them.
1269 # If you also want to be able to reach servers in your local
1270 # network by using their names, you will need additional exceptions
1271 # that look like this:
1273 # forward localhost/ .
1277 # 5.3. forwarded-connect-retries
1278 # ===============================
1282 # How often Privoxy retries if a forwarded connection request
1287 # Number of retries.
1295 # Connections forwarded through other proxies are treated like
1296 # direct connections and no retry attempts are made.
1300 # forwarded-connect-retries is mainly interesting for socks4a
1301 # connections, where Privoxy can't detect why the connections
1302 # failed. The connection might have failed because of a DNS timeout
1303 # in which case a retry makes sense, but it might also have failed
1304 # because the server doesn't exist or isn't reachable. In this
1305 # case the retry will just delay the appearance of Privoxy's
1308 # Note that in the context of this option, "forwarded connections"
1309 # includes all connections that Privoxy forwards through other
1310 # proxies. This option is not limited to the HTTP CONNECT method.
1312 # Only use this option, if you are getting lots of
1313 # forwarding-related error messages that go away when you try again
1314 # manually. Start with a small value and check Privoxy's logfile
1315 # from time to time, to see how many retries are usually needed.
1317 # Due to a bug, this option currently also causes Privoxy to
1318 # retry in case of certain problems with direct connections.
1322 # forwarded-connect-retries 1
1324 forwarded-connect-retries 0
1330 # 6.1. accept-intercepted-requests
1331 # =================================
1335 # Whether intercepted requests should be treated as valid.
1347 # Only proxy requests are accepted, intercepted requests are
1348 # treated as invalid.
1352 # If you don't trust your clients and want to force them to use
1353 # Privoxy, enable this option and configure your packet filter
1354 # to redirect outgoing HTTP connections into Privoxy.
1356 # Make sure that Privoxy's own requests aren't redirected as well.
1357 # Additionally take care that Privoxy can't intentionally connect
1358 # to itself, otherwise you could run into redirection loops if
1359 # Privoxy's listening port is reachable by the outside or an
1360 # attacker has access to the pages you visit.
1364 # accept-intercepted-requests 1
1366 accept-intercepted-requests 0
1369 # 6.2. allow-cgi-request-crunching
1370 # =================================
1374 # Whether requests to Privoxy's CGI pages can be blocked or
1387 # Privoxy ignores block and redirect actions for its CGI pages.
1391 # By default Privoxy ignores block or redirect actions for
1392 # its CGI pages. Intercepting these requests can be useful in
1393 # multi-user setups to implement fine-grained access control,
1394 # but it can also render the complete web interface useless and
1395 # make debugging problems painful if done without care.
1397 # Don't enable this option unless you're sure that you really
1402 # allow-cgi-request-crunching 1
1404 allow-cgi-request-crunching 0
1407 # 6.3. split-large-forms
1408 # =======================
1412 # Whether the CGI interface should stay compatible with broken
1425 # The CGI form generate long GET URLs.
1429 # Privoxy's CGI forms can lead to rather long URLs. This isn't
1430 # a problem as far as the HTTP standard is concerned, but it can
1431 # confuse clients with arbitrary URL length limitations.
1433 # Enabling split-large-forms causes Privoxy to divide big forms
1434 # into smaller ones to keep the URL length down. It makes editing
1435 # a lot less convenient and you can no longer submit all changes
1436 # at once, but at least it works around this browser bug.
1438 # If you don't notice any editing problems, there is no reason
1439 # to enable this option, but if one of the submit buttons appears
1440 # to be broken, you should give it a try.
1444 # split-large-forms 1
1449 # 6.4. keep-alive-timeout
1450 # ========================
1454 # Number of seconds after which an open connection will no longer
1467 # Connections are not kept alive.
1471 # This option allows clients to keep the connection to Privoxy
1472 # alive. If the server supports it, Privoxy will keep the
1473 # connection to the server alive as well. Under certain
1474 # circumstances this may result in speed-ups.
1476 # By default, Privoxy will close the connection to the server if
1477 # the client connection gets closed, or if the specified timeout
1478 # has been reached without a new request coming in. This behaviour
1479 # can be changed with the connection-sharing option.
1481 # This option has no effect if Privoxy has been compiled without
1482 # keep-alive support.
1484 # Note that a timeout of five seconds as used in the default
1485 # configuration file significantly decreases the number of
1486 # connections that will be reused. The value is used because some
1487 # browsers limit the number of connections they open to a single
1488 # host and apply the same limit to proxies. This can result in a
1489 # single website "grabbing" all the connections the browser allows,
1490 # which means connections to other websites can't be opened until
1491 # the connections currently in use time out.
1493 # Several users have reported this as a Privoxy bug, so the default
1494 # value has been reduced. Consider increasing it to 300 seconds
1495 # or even more if you think your browser can handle it. If your
1496 # browser appears to be hanging it can't.
1500 # keep-alive-timeout 300
1502 keep-alive-timeout 5
1505 # 6.5. default-server-timeout
1506 # ============================
1510 # Assumed server-side keep-alive timeout if not specified by
1523 # Connections for which the server didn't specify the keep-alive
1524 # timeout are not reused.
1528 # Enabling this option significantly increases the number of
1529 # connections that are reused, provided the keep-alive-timeout
1530 # option is also enabled.
1532 # While it also increases the number of connections problems when
1533 # Privoxy tries to reuse a connection that already has been closed
1534 # on the server side, or is closed while Privoxy is trying to
1535 # reuse it, this should only be a problem if it happens for the
1536 # first request sent by the client. If it happens for requests
1537 # on reused client connections, Privoxy will simply close the
1538 # connection and the client is supposed to retry the request
1539 # without bothering the user.
1541 # Enabling this option is therefore only recommended if the
1542 # connection-sharing option is disabled.
1544 # It is an error to specify a value larger than the
1545 # keep-alive-timeout value.
1547 # This option has no effect if Privoxy has been compiled without
1548 # keep-alive support.
1552 # default-server-timeout 60
1554 #default-server-timeout 60
1557 # 6.6. connection-sharing
1558 # ========================
1562 # Whether or not outgoing connections that have been kept alive
1563 # should be shared between different incoming connections.
1575 # Connections are not shared.
1579 # This option has no effect if Privoxy has been compiled without
1580 # keep-alive support, or if it's disabled.
1584 # Note that reusing connections doesn't necessary cause
1585 # speedups. There are also a few privacy implications you should
1588 # If this option is effective, outgoing connections are shared
1589 # between clients (if there are more than one) and closing the
1590 # browser that initiated the outgoing connection does no longer
1591 # affect the connection between Privoxy and the server unless
1592 # the client's request hasn't been completed yet.
1594 # If the outgoing connection is idle, it will not be closed until
1595 # either Privoxy's or the server's timeout is reached. While
1596 # it's open, the server knows that the system running Privoxy is
1599 # If there are more than one client (maybe even belonging to
1600 # multiple users), they will be able to reuse each others
1601 # connections. This is potentially dangerous in case of
1602 # authentication schemes like NTLM where only the connection
1603 # is authenticated, instead of requiring authentication for
1606 # If there is only a single client, and if said client can keep
1607 # connections alive on its own, enabling this option has next to
1608 # no effect. If the client doesn't support connection keep-alive,
1609 # enabling this option may make sense as it allows Privoxy to keep
1610 # outgoing connections alive even if the client itself doesn't
1613 # You should also be aware that enabling this option increases
1614 # the likelihood of getting the "No server or forwarder data"
1615 # error message, especially if you are using a slow connection
1618 # This option should only be used by experienced users who
1619 # understand the risks and can weight them against the benefits.
1623 # connection-sharing 1
1625 #connection-sharing 1
1628 # 6.7. socket-timeout
1629 # ====================
1633 # Number of seconds after which a socket times out if no data
1646 # A default value of 300 seconds is used.
1650 # For SOCKS requests the timeout currently doesn't start until
1651 # the SOCKS server accepted the request. This will be fixed in
1656 # socket-timeout 300
1661 # 6.8. max-client-connections
1662 # ============================
1666 # Maximum number of client connections that will be served.
1678 # Connections are served until a resource limit is reached.
1682 # Privoxy creates one thread (or process) for every incoming
1683 # client connection that isn't rejected based on the access
1686 # If the system is powerful enough, Privoxy can theoretically deal
1687 # with several hundred (or thousand) connections at the same time,
1688 # but some operating systems enforce resource limits by shutting
1689 # down offending processes and their default limits may be below
1690 # the ones Privoxy would require under heavy load.
1692 # Configuring Privoxy to enforce a connection limit below the
1693 # thread or process limit used by the operating system makes
1694 # sure this doesn't happen. Simply increasing the operating
1695 # system's limit would work too, but if Privoxy isn't the only
1696 # application running on the system, you may actually want to
1697 # limit the resources used by Privoxy.
1699 # If Privoxy is only used by a single trusted user, limiting the
1700 # number of client connections is probably unnecessary. If there
1701 # are multiple possibly untrusted users you probably still want
1702 # to additionally use a packet filter to limit the maximal number
1703 # of incoming connections per client. Otherwise a malicious user
1704 # could intentionally create a high number of connections to
1705 # prevent other users from using Privoxy.
1707 # Obviously using this option only makes sense if you choose a
1708 # limit below the one enforced by the operating system.
1712 # max-client-connections 256
1714 #max-client-connections 256
1717 # 6.9. handle-as-empty-doc-returns-ok
1718 # ====================================
1722 # This is a work-around for Firefox bug 492459: " Websites are no
1723 # longer rendered if SSL requests for JavaScripts are blocked by
1724 # a proxy. " (https:/ /bugzilla.mozilla.org/show_bug.cgi?id=492459)
1728 # The status code Privoxy returns for pages blocked with
1729 # +handle-as-empty-document.
1741 # Privoxy returns a status 403(forbidden) for all blocked pages.
1745 # Privoxy returns a status 200(OK) for pages blocked with
1746 # +handle-as-empty-document and a status 403(Forbidden) for all
1747 # other blocked pages.
1749 handle-as-empty-doc-returns-ok 1
1752 # 7. WINDOWS GUI OPTIONS
1753 # =======================
1755 # Privoxy has a number of options specific to the Windows GUI
1759 # If "activity-animation" is set to 1, the Privoxy icon will animate
1760 # when "Privoxy" is active. To turn off, set to 0.
1762 #activity-animation 1
1764 # If "log-messages" is set to 1, Privoxy will log messages to the
1769 # If "log-buffer-size" is set to 1, the size of the log buffer,
1770 # i.e. the amount of memory used for the log messages displayed in
1771 # the console window, will be limited to "log-max-lines" (see below).
1773 # Warning: Setting this to 0 will result in the buffer to grow
1774 # infinitely and eat up all your memory!
1778 # log-max-lines is the maximum number of lines held in the log
1779 # buffer. See above.
1783 # If "log-highlight-messages" is set to 1, Privoxy will highlight
1784 # portions of the log messages with a bold-faced font:
1786 #log-highlight-messages 1
1788 # The font used in the console window:
1790 #log-font-name Comic Sans MS
1792 # Font size used in the console window:
1796 # "show-on-task-bar" controls whether or not Privoxy will appear as
1797 # a button on the Task bar when minimized:
1801 # If "close-button-minimizes" is set to 1, the Windows close button
1802 # will minimize Privoxy instead of closing the program (close with
1803 # the exit option on the File menu).
1805 #close-button-minimizes 1
1807 # The "hide-console" option is specific to the MS-Win console version
1808 # of Privoxy. If this option is used, Privoxy will disconnect from
1809 # and hide the command console.