1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
5 >The Main Configuration File</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10 TITLE="Privoxy 3.0.10 User Manual"
11 HREF="index.html"><LINK
13 TITLE="Privoxy Configuration"
14 HREF="configuration.html"><LINK
17 HREF="actions-file.html"><LINK
20 HREF="../p_doc.css"><META
21 HTTP-EQUIV="Content-Type"
24 <LINK REL="STYLESHEET" TYPE="text/css" HREF="p_doc.css">
36 SUMMARY="Header navigation table"
45 >Privoxy 3.0.10 User Manual</TH
53 HREF="configuration.html"
67 HREF="actions-file.html"
82 >7. The Main Configuration File</A
85 > Again, the main configuration file is named <TT
89 Linux/Unix/BSD and OS/2, and <TT
93 Configuration lines consist of an initial keyword followed by a list of
94 values, all separated by whitespace (any number of spaces or tabs). For
100 CLASS="LITERALLAYOUT"
105 >confdir /etc/privoxy</I
112 > Assigns the value <TT
119 > and thus indicates that the configuration
120 directory is named <SPAN
122 >"/etc/privoxy/"</SPAN
125 > All options in the config file except for <TT
132 > are optional. Watch out in the below description
133 for what happens if you leave them unset.</P
135 > The main config file controls all aspects of <SPAN
139 operation that are not location dependent (i.e. they apply universally, no matter
140 where you may be surfing).</P
147 >7.1. Local Set-up Documentation</A
150 > If you intend to operate <SPAN
154 than just yourself, it might be a good idea to let them know how to reach
155 you, what you block and why you do that, your policies, etc.
163 >7.1.1. user-manual</A
174 > Location of the <SPAN
184 >A fully qualified URI</P
199 >Effect if unset:</DT
203 HREF="http://www.privoxy.org/user-manual/"
205 >http://www.privoxy.org/<TT
212 will be used, where <TT
227 > The User Manual URI is the single best source of information on
231 >, and is used for help links from some
232 of the internal CGI pages. The manual itself is normally packaged with the
233 binary distributions, so you probably want to set this to a locally
240 > The best all purpose solution is simply to put the full local
259 > user-manual /usr/share/doc/privoxy/user-manual</PRE
266 > The User Manual is then available to anyone with access to
270 >, by following the built-in URL:
273 >http://config.privoxy.org/user-manual/</TT
275 (or the shortcut: <TT
277 >http://p.p/user-manual/</TT
281 > If the documentation is not on the local system, it can be accessed
282 from a remote server, as:
293 > user-manual http://example.com/privoxy/user-manual/</PRE
318 > If set, this option should be <SPAN
322 >the first option in the config
325 >, because it is used while the config file is being read
341 NAME="TRUST-INFO-URL"
342 >7.1.2. trust-info-url</A
353 > A URL to be displayed in the error page that users will see if access to an untrusted page is denied.
366 >Two example URLs are provided</P
369 >Effect if unset:</DT
372 > No links are displayed on the "untrusted" error page.
379 > The value of this option only matters if the experimental trust mechanism has been
381 HREF="config.html#TRUSTFILE"
392 > If you use the trust mechanism, it is a good idea to write up some on-line
393 documentation about your trust policy and to specify the URL(s) here.
394 Use multiple times for multiple URLs.
397 > The URL(s) should be added to the trustfile as well, so users don't end up
398 locked out from the information on why they were locked out in the first place!
410 >7.1.3. admin-address</A
421 > An email address to reach the <SPAN
446 >Effect if unset:</DT
449 > No email address is displayed on error pages and the CGI user interface.
463 are unset, the whole "Local Privoxy Support" box on all generated pages will
475 NAME="PROXY-INFO-URL"
476 >7.1.4. proxy-info-url</A
487 > A URL to documentation about the local <SPAN
491 configuration or policies.
513 >Effect if unset:</DT
516 > No link to local documentation is displayed on error pages and the CGI user interface.
530 are unset, the whole "Local Privoxy Support" box on all generated pages will
534 > This URL shouldn't be blocked ;-)
547 >7.2. Configuration and Log File Locations</A
553 > can (and normally does) use a number of
554 other files for additional configuration, help and logging.
555 This section of the configuration file tells <SPAN
559 where to find those other files. </P
561 > The user running <SPAN
565 permission for all configuration files, and write permission to any files
566 that would be modified, such as log files and actions files.</P
584 >The directory where the other configuration files are located.</P
596 >/etc/privoxy (Unix) <SPAN
605 > installation dir (Windows) </P
608 >Effect if unset:</DT
652 >An alternative directory where the templates are loaded from.</P
667 >Effect if unset:</DT
670 >The templates are assumed to be located in confdir/template.</P
679 > original templates are usually
680 overwritten with each update. Use this option to relocate customized
681 templates that should be kept. As template variables might change
682 between updates, you shouldn't expect templates to work with
686 > releases other than the one
687 they were part of, though.
710 > The directory where all logging takes place
731 >/var/log/privoxy (Unix) <SPAN
740 > installation dir (Windows) </P
743 >Effect if unset:</DT
776 >7.2.4. actionsfile</A
779 NAME="DEFAULT.ACTION"
782 NAME="STANDARD.ACTION"
797 HREF="actions-file.html"
806 >Complete file name, relative to <TT
822 CLASS="LITERALLAYOUT"
823 > standard.action # Internal purposes, no editing recommended</P
830 CLASS="LITERALLAYOUT"
831 > default.action # Main actions file</P
838 CLASS="LITERALLAYOUT"
839 > user.action # User customizations</P
849 >Effect if unset:</DT
852 > No actions are taken at all. More or less neutral proxying.
862 > lines are permitted, and are in fact recommended!
866 The default values include <TT
870 for internal purposes and should be loaded, <TT
877 > actions file maintained by the developers, and
881 >, where you can make your personal additions.
885 Actions files contain all the per site and per URL configuration for
886 ad blocking, cookie management, privacy considerations, etc.
887 There is no point in using <SPAN
891 least one actions file.
894 > Note that since Privoxy 3.0.7, the complete filename, including the <SPAN
898 extension has to be specified. The syntax change was necessary to be consistent
899 with the other file options and to allow previously forbidden characters.
911 >7.2.5. filterfile</A
914 NAME="DEFAULT.FILTER"
926 HREF="filter-file.html"
935 >File name, relative to <TT
944 >default.filter (Unix) <SPAN
950 > default.filter.txt (Windows)</P
953 >Effect if unset:</DT
956 > No textual content filtering takes place, i.e. all
960 HREF="actions-file.html#FILTER"
969 actions in the actions files are turned neutral.
979 > lines are permitted.
983 HREF="filter-file.html"
985 > contain content modification
987 HREF="appendix.html#REGEX"
988 >regular expressions</A
989 >. These rules permit
990 powerful changes on the content of Web pages, and optionally the headers
991 as well, e.g., you could try to disable your favorite JavaScript annoyances,
992 re-write the actual displayed text, or just have some fun
993 playing buzzword bingo with web pages.
1000 HREF="actions-file.html#FILTER"
1009 actions rely on the relevant filter (<TT
1015 to be defined in a filter file!
1018 > A pre-defined filter file called <TT
1022 a number of useful filters for common problems is included in the distribution.
1023 See the section on the <TT
1026 HREF="actions-file.html#FILTER"
1033 > It is recommended to place any locally adapted filters into a separate
1054 CLASS="VARIABLELIST"
1060 > The log file to use
1067 >File name, relative to <TT
1080 >Unset (commented out)</I
1082 >. When activated: logfile (Unix) <SPAN
1088 > privoxy.log (Windows).</P
1091 >Effect if unset:</DT
1094 > No logfile is written.
1101 > The logfile is where all logging and error messages are written. The level
1102 of detail and number of messages are set with the <TT
1106 option (see below). The logfile can be useful for tracking down a problem with
1110 > (e.g., it's not blocking an ad you
1111 think it should block) and it can help you to monitor what your browser
1115 > Depending on the debug options below, the logfile may be a privacy risk
1116 if third parties can get access to it. As most users will never look
1120 > 3.0.7 and later only log fatal
1124 > For most troubleshooting purposes, you will have to change that,
1125 please refer to the debugging section for details.
1128 > Your logfile will grow indefinitely, and you will probably want to
1129 periodically remove it. On Unix systems, you can do this with a cron job
1133 >). For Red Hat based Linux distributions, a
1137 > script has been included.
1140 > Any log files must be writable by whatever user <SPAN
1144 is being run as (on Unix, default user id is <SPAN
1164 CLASS="VARIABLELIST"
1170 > The file to store intercepted cookies in
1177 >File name, relative to <TT
1190 >Unset (commented out)</I
1192 >. When activated: jarfile (Unix) <SPAN
1198 > privoxy.jar (Windows).</P
1201 >Effect if unset:</DT
1204 > Intercepted cookies are not stored in a dedicated log file.
1211 > The jarfile may grow to ridiculous sizes over time.
1214 > If debug 8 (show header parsing) is enabled, cookies are
1215 also written to the logfile with the rest of the headers.
1216 Therefore this option isn't very useful and may be removed
1217 in future releases. Please report to the developers if you
1230 >7.2.8. trustfile</A
1235 CLASS="VARIABLELIST"
1241 > The name of the trust file to use
1248 >File name, relative to <TT
1261 >Unset (commented out)</I
1263 >. When activated: trust (Unix) <SPAN
1269 > trust.txt (Windows)</P
1272 >Effect if unset:</DT
1275 > The entire trust mechanism is disabled.
1282 > The trust mechanism is an experimental feature for building white-lists and should
1283 be used with care. It is <SPAN
1289 > recommended for the casual user.
1292 > If you specify a trust file, <SPAN
1296 access to sites that are specified in the trustfile. Sites can be listed
1303 > character limits access to this site
1304 only (and any sub-paths within this site), e.g.
1307 >~www.example.com</TT
1311 >~www.example.com/features/news.html</TT
1315 > Or, you can designate sites as <SPAN
1319 >trusted referrers</I
1322 prepending the name with a <TT
1325 > character. The effect is that
1326 access to untrusted sites will be granted -- but only if a link from this
1327 trusted referrer was used to get there. The link target will then be added
1331 > so that future, direct accesses will be
1332 granted. Sites added via this mechanism do not become trusted referrers
1333 themselves (i.e. they are added with a <TT
1337 There is a limit of 512 such entries, after which new entries will not be
1341 > If you use the <TT
1344 > operator in the trust file, it may grow
1345 considerably over time.
1348 > It is recommended that <SPAN
1354 >--disable-force</TT
1357 >--disable-toggle</TT
1361 > --disable-editor</TT
1362 > options, if this feature is to be
1366 > Possible applications include limiting Internet access for children.
1382 > These options are mainly useful when tracing a problem.
1383 Note that you might also want to invoke
1391 command line option when debugging.
1404 CLASS="VARIABLELIST"
1410 > Key values that determine what information gets logged.
1423 >0 (i.e.: only fatal errors (that cause Privoxy to exit) are logged)</P
1426 >Effect if unset:</DT
1429 > Default value is used (see above).
1436 > The available debug levels are:
1446 CLASS="PROGRAMLISTING"
1447 > debug 1 # log each request destination (and the crunch reason if <SPAN
1450 > intercepted the request)
1451 debug 2 # show each connection status
1452 debug 4 # show I/O status
1453 debug 8 # show header parsing
1454 debug 16 # log all data written to the network into the logfile
1455 debug 32 # debug force feature
1456 debug 64 # debug regular expression filters
1457 debug 128 # debug redirects
1458 debug 256 # debug GIF de-animation
1459 debug 512 # Common Log Format
1460 debug 2048 # CGI user interface
1461 debug 4096 # Startup banner and warnings.
1462 debug 8192 # Non-fatal errors</PRE
1469 > To select multiple debug levels, you can either add them or use
1476 > A debug level of 1 is informative because it will show you each request
1477 as it happens. <SPAN
1481 >1, 4096 and 8192 are recommended</I
1484 so that you will notice when things go wrong. The other levels are
1485 probably only of interest if you are hunting down a specific problem.
1486 They can produce a hell of an output (especially 16).
1493 > used to ship with the debug levels recommended above enabled by
1494 default, but due to privacy concerns 3.0.7 and later are configured to
1495 only log fatal errors.
1498 > If you are used to the more verbose settings, simply enable the debug lines
1502 > If you want to use pure CLF (Common Log Format), you should set <SPAN
1512 > and not enable anything else.
1518 > has a hard-coded limit for the
1519 length of log messages. If it's reached, messages are logged truncated
1520 and marked with <SPAN
1522 >"... [too long, truncated]"</SPAN
1526 > Please don't file any support requests without trying to reproduce
1527 the problem with increased debug level first. Once you read the log
1528 messages, you may even be able to solve the problem on your own.
1539 NAME="SINGLE-THREADED"
1540 >7.3.2. single-threaded</A
1545 CLASS="VARIABLELIST"
1551 > Whether to run only one server thread.
1579 >Effect if unset:</DT
1582 > Multi-threaded (or, where unavailable: forked) operation, i.e. the ability to
1583 serve multiple requests simultaneously.
1590 > This option is only there for debugging purposes.
1595 >It will drastically reduce performance.</I
1614 CLASS="VARIABLELIST"
1620 > The hostname shown on the CGI pages.
1642 >Effect if unset:</DT
1645 > The hostname provided by the operating system is used.
1652 > On some misconfigured systems resolving the hostname fails or
1653 takes too much time and slows Privoxy down. Setting a fixed hostname
1654 works around the problem.
1657 > In other circumstances it might be desirable to show a hostname
1658 other than the one returned by the operating system. For example
1659 if the system has several different hostnames and you don't want
1660 to use the first one.
1663 > Note that Privoxy does not validate the specified hostname value.
1675 NAME="ACCESS-CONTROL"
1676 >7.4. Access Control and Security</A
1679 > This section of the config file controls the security-relevant aspects
1690 NAME="LISTEN-ADDRESS"
1691 >7.4.1. listen-address</A
1696 CLASS="VARIABLELIST"
1702 > The IP address and TCP port on which <SPAN
1706 listen for client requests.
1732 >Effect if unset:</DT
1735 > Bind to 127.0.0.1 (localhost), port 8118. This is suitable and recommended for
1736 home users who run <SPAN
1739 > on the same machine as
1747 > You will need to configure your browser(s) to this proxy address and port.
1750 > If you already have another service running on port 8118, or if you want to
1751 serve requests from other machines (e.g. on your local network) as well, you
1752 will need to override the default.
1755 > If you leave out the IP address, <SPAN
1759 bind to all interfaces (addresses) on your machine and may become reachable
1760 from the Internet. In that case, consider using <A
1761 HREF="config.html#ACLS"
1762 >access control lists</A
1763 > (ACL's, see below), and/or
1770 > to untrusted users, you will
1771 also want to make sure that the following actions are disabled: <TT
1774 HREF="config.html#ENABLE-EDIT-ACTIONS"
1775 >enable-edit-actions</A
1781 HREF="config.html#ENABLE-REMOTE-TOGGLE"
1782 >enable-remote-toggle</A
1791 > Suppose you are running <SPAN
1795 a machine which has the address 192.168.0.1 on your local private network
1796 (192.168.0.0) and has another outside connection with a different address.
1797 You want it to serve requests from inside only:
1807 CLASS="PROGRAMLISTING"
1808 > listen-address 192.168.0.1:8118</PRE
1829 CLASS="VARIABLELIST"
1835 > Initial state of "toggle" status
1851 >Effect if unset:</DT
1854 > Act as if toggled on
1861 > If set to 0, <SPAN
1867 >"toggled off"</SPAN
1868 > mode, i.e. mostly behave like a normal,
1869 content-neutral proxy with both ad blocking and content filtering
1872 >enable-remote-toggle</TT
1876 > The windows version will only display the toggle icon in the system tray
1877 if this option is present.
1888 NAME="ENABLE-REMOTE-TOGGLE"
1889 >7.4.3. enable-remote-toggle</A
1894 CLASS="VARIABLELIST"
1900 > Whether or not the <A
1901 HREF="http://config.privoxy.org/toggle"
1921 >Effect if unset:</DT
1924 > The web-based toggle feature is disabled.
1931 > When toggled off, <SPAN
1934 > mostly acts like a normal,
1935 content-neutral proxy, i.e. doesn't block ads or filter content.
1938 > Access to the toggle feature can <SPAN
1945 controlled separately by <SPAN
1948 > or HTTP authentication,
1949 so that everybody who can access <SPAN
1960 toggle it for all users. So this option is <SPAN
1967 for multi-user environments with untrusted users.
1970 > Note that malicious client side code (e.g Java) is also
1971 capable of using this option.
1978 documentation, this feature is disabled by default.
1981 > Note that you must have compiled <SPAN
1985 support for this feature, otherwise this option has no effect.
1996 NAME="ENABLE-REMOTE-HTTP-TOGGLE"
1997 >7.4.4. enable-remote-http-toggle</A
2002 CLASS="VARIABLELIST"
2008 > Whether or not Privoxy recognizes special HTTP headers to change its behaviour.
2024 >Effect if unset:</DT
2027 > Privoxy ignores special HTTP headers.
2034 > When toggled on, the client can change <SPAN
2038 behaviour by setting special HTTP headers. Currently the only supported
2039 special header is <SPAN
2041 >"X-Filter: No"</SPAN
2042 >, to disable filtering for
2043 the ongoing request, even if it is enabled in one of the action files.
2046 > This feature is disabled by default. If you are using
2050 > in a environment with trusted clients,
2051 you may enable this feature at your discretion. Note that malicious client
2052 side code (e.g Java) is also capable of using this feature.
2055 > This option will be removed in future releases as it has been obsoleted
2056 by the more general header taggers.
2067 NAME="ENABLE-EDIT-ACTIONS"
2068 >7.4.5. enable-edit-actions</A
2073 CLASS="VARIABLELIST"
2079 > Whether or not the <A
2080 HREF="http://config.privoxy.org/show-status"
2100 >Effect if unset:</DT
2103 > The web-based actions file editor is disabled.
2110 > Access to the editor can <SPAN
2117 controlled separately by <SPAN
2120 > or HTTP authentication,
2121 so that everybody who can access <SPAN
2132 modify its configuration for all users.
2135 > This option is <SPAN
2142 with untrusted users and as a lot of <SPAN
2146 users don't read documentation, this feature is disabled by default.
2149 > Note that malicious client side code (e.g Java) is also
2150 capable of using the actions editor and you shouldn't enable
2151 this options unless you understand the consequences and are
2152 sure your browser is configured correctly.
2155 > Note that you must have compiled <SPAN
2159 support for this feature, otherwise this option has no effect.
2170 NAME="ENFORCE-BLOCKS"
2171 >7.4.6. enforce-blocks</A
2176 CLASS="VARIABLELIST"
2182 > Whether the user is allowed to ignore blocks and can <SPAN
2184 >"go there anyway"</SPAN
2213 >Effect if unset:</DT
2216 > Blocks are not enforced.
2226 > is mainly used to block and filter
2227 requests as a service to the user, for example to block ads and other
2228 junk that clogs the pipes. <SPAN
2232 isn't perfect and sometimes innocent pages are blocked. In this situation it
2233 makes sense to allow the user to enforce the request and have
2240 > In the default configuration <SPAN
2247 > page contains a <SPAN
2249 >"go there anyway"</SPAN
2251 link to adds a special string (the force prefix) to the request URL.
2252 If that link is used, <SPAN
2256 detect the force prefix, remove it again and let the request pass.
2262 > can also be used to enforce
2263 a network policy. In that case the user obviously should not be able to
2264 bypass any blocks, and that's what the <SPAN
2266 >"enforce-blocks"</SPAN
2268 option is for. If it's enabled, <SPAN
2274 >"go there anyway"</SPAN
2275 > link. If the user adds the force
2276 prefix by hand, it will not be accepted and the circumvention attempt
2296 >7.4.7. ACLs: permit-access and deny-access</A
2299 NAME="PERMIT-ACCESS"
2307 CLASS="VARIABLELIST"
2313 > Who can access what.
2355 > are IP addresses in dotted decimal notation or valid
2367 > are subnet masks in CIDR notation, i.e. integer
2368 values from 2 to 30 representing the length (in bits) of the network address. The masks and the whole
2369 destination part are optional.
2385 >Effect if unset:</DT
2388 > Don't restrict access further than implied by <TT
2398 > Access controls are included at the request of ISPs and systems
2399 administrators, and <SPAN
2403 >are not usually needed by individual users</I
2406 For a typical home user, it will normally suffice to ensure that
2410 > only listens on the localhost
2411 (127.0.0.1) or internal (home) network address by means of the
2413 HREF="config.html#LISTEN-ADDRESS"
2425 > Please see the warnings in the FAQ that <SPAN
2429 is not intended to be a substitute for a firewall or to encourage anyone
2430 to defer addressing basic security weaknesses.
2433 > Multiple ACL lines are OK.
2434 If any ACLs are specified, <SPAN
2438 to IP addresses that match at least one <TT
2442 and don't match any subsequent <TT
2445 > line. In other words, the
2446 last match wins, with the default being <TT
2455 > is using a forwarder (see <TT
2459 for a particular destination URL, the <TT
2465 that is examined is the address of the forwarder and <SPAN
2472 of the ultimate target. This is necessary because it may be impossible for the local
2476 > to determine the IP address of the
2477 ultimate target (that's often what gateways are used for).
2480 > You should prefer using IP addresses over DNS names, because the address lookups take
2481 time. All DNS names must resolve! You can <SPAN
2487 > use domain patterns
2491 > or partial domain names. If a DNS name resolves to multiple
2492 IP addresses, only the first one is used.
2495 > Denying access to particular sites by ACL may have undesired side effects
2496 if the site in question is hosted on a machine which also hosts other sites
2504 > Explicitly define the default behavior if no ACL and
2512 is OK. The absence of a <TT
2524 > destination addresses are OK:
2535 > permit-access localhost</PRE
2542 > Allow any host on the same class C subnet as www.privoxy.org access to
2543 nothing but www.example.com (or other domains hosted on the same system):
2554 > permit-access www.privoxy.org/24 www.example.com/32</PRE
2561 > Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere,
2562 with the exception that 192.168.45.73 may not access the IP address behind
2563 www.dirty-stuff.example.com:
2574 > permit-access 192.168.45.64/26
2575 deny-access 192.168.45.73 www.dirty-stuff.example.com</PRE
2591 >7.4.8. buffer-limit</A
2596 CLASS="VARIABLELIST"
2602 > Maximum size of the buffer for content filtering.
2618 >Effect if unset:</DT
2621 > Use a 4MB (4096 KB) limit.
2628 > For content filtering, i.e. the <TT
2635 > actions, it is necessary that
2639 > buffers the entire document body.
2640 This can be potentially dangerous, since a server could just keep sending
2641 data indefinitely and wait for your RAM to exhaust -- with nasty consequences.
2645 > When a document buffer size reaches the <TT
2649 flushed to the client unfiltered and no further attempt to
2650 filter the rest of the document is made. Remember that there may be multiple threads
2651 running, which might require up to <TT
2661 >, unless you have enabled <SPAN
2663 >"single-threaded"</SPAN
2681 > This feature allows routing of HTTP requests through a chain of
2682 multiple proxies.</P
2684 > Forwarding can be used to chain Privoxy with a caching proxy to speed
2685 up browsing. Using a parent proxy may also be necessary if the machine
2689 > runs on has no direct Internet access.</P
2691 > Note that parent proxies can severely decrease your privacy level.
2692 For example a parent proxy could add your IP address to the request
2693 headers and if it's a caching proxy it may add the <SPAN
2697 header to revalidation requests again, even though you configured Privoxy
2698 to remove it. It may also ignore Privoxy's header time randomization and use the
2699 original values which could be used by the server as cookie replacement
2700 to track your steps between visits.</P
2702 > Also specified here are SOCKS proxies. <SPAN
2706 supports the SOCKS 4 and SOCKS 4A protocols.</P
2718 CLASS="VARIABLELIST"
2724 > To which parent HTTP proxy specific requests should be routed.
2756 HREF="actions-file.html#AF-PATTERNS"
2759 that specifies to which requests (i.e. URLs) this forward rule shall apply. Use <TT
2778 is the DNS name or IP address of the parent HTTP proxy through which the requests should be forwarded,
2779 optionally followed by its listening port (default: 8080).
2780 Use a single dot (<TT
2785 >"no forwarding"</SPAN
2802 >Effect if unset:</DT
2805 > Don't use parent HTTP proxies.
2820 >, then requests are not
2821 forwarded to another HTTP proxy but are made directly to the web servers.
2824 > Multiple lines are OK, they are checked in sequence, and the last match wins.
2831 > Everything goes to an example parent proxy, except SSL on port 443 (which it doesn't handle):
2842 > forward / parent-proxy.example.org:8080
2850 > Everything goes to our example ISP's caching proxy, except for requests
2851 to that ISP's sites:
2862 > forward / caching-proxy.isp.example.net:8000
2863 forward .isp.example.net .</PRE
2879 >7.5.2. forward-socks4, forward-socks4a and forward-socks5</A
2882 NAME="FORWARD-SOCKS4"
2885 NAME="FORWARD-SOCKS4A"
2890 CLASS="VARIABLELIST"
2896 > Through which SOCKS proxy (and optionally to which parent HTTP proxy) specific requests should be routed.
2940 HREF="actions-file.html#AF-PATTERNS"
2942 > that specifies to which
2943 requests (i.e. URLs) this forward rule shall apply. Use <TT
2962 are IP addresses in dotted decimal notation or valid DNS names
2974 >"no HTTP forwarding"</SPAN
2975 >), and the optional
2981 > parameters are TCP ports,
2982 i.e. integer values from 1 to 65535
2998 >Effect if unset:</DT
3001 > Don't use SOCKS proxies.
3008 > Multiple lines are OK, they are checked in sequence, and the last match wins.
3011 > The difference between <TT
3016 >forward-socks4a</TT
3018 is that in the SOCKS 4A protocol, the DNS resolution of the target hostname happens on the SOCKS
3019 server, while in SOCKS 4 it happens locally.
3025 > the DNS resolution will happen on the remote server as well.
3036 >, then requests are not
3037 forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit through
3045 > From the company example.com, direct connections are made to all
3049 > domains, but everything outbound goes through
3050 their ISP's proxy by way of example.com's corporate SOCKS 4A gateway to
3062 > forward-socks4a / socks-gw.example.com:1080 www-cache.isp.example.net:8080
3063 forward .example.com .</PRE
3070 > A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent looks like this:
3081 > forward-socks4 / socks-gw.example.com:1080 .</PRE
3088 > To chain Privoxy and Tor, both running on the same system, you would use
3100 > forward-socks4a / 127.0.0.1:9050 .</PRE
3110 > network can't be used to
3111 reach your local network, if you need to access local servers you
3112 therefore might want to make some exceptions:
3123 > forward 192.168.*.*/ .
3125 forward 127.*.*.*/ .</PRE
3132 > Unencrypted connections to systems in these address ranges will
3133 be as (un)secure as the local network is, but the alternative is that you
3134 can't reach the local network through <SPAN
3138 at all. Of course this may actually be desired and there is no reason
3139 to make these exceptions if you aren't sure you need them.
3142 > If you also want to be able to reach servers in your local network by
3143 using their names, you will need additional exceptions that look like
3155 > forward localhost/ .</PRE
3170 NAME="ADVANCED-FORWARDING-EXAMPLES"
3171 >7.5.3. Advanced Forwarding Examples</A
3174 > If you have links to multiple ISPs that provide various special content
3175 only to their subscribers, you can configure multiple <SPAN
3179 which have connections to the respective ISPs to act as forwarders to each other, so that
3186 > users can see the internal content of all ISPs.</P
3188 > Assume that host-a has a PPP connection to isp-a.example.net. And host-b has a PPP connection to
3189 isp-b.example.org. Both run <SPAN
3193 configuration can look like this:</P
3206 forward .isp-b.example.net host-b:8118</PRE
3223 forward .isp-a.example.org host-a:8118</PRE
3229 > Now, your users can set their browser's proxy to use either
3230 host-a or host-b and be able to browse the internal content
3231 of both isp-a and isp-b.</P
3233 > If you intend to chain <SPAN
3240 > locally, then chaining as
3243 >browser -> squid -> privoxy</TT
3244 > is the recommended way. </P
3246 > Assuming that <SPAN
3253 run on the same box, your <SPAN
3256 > configuration could then look like this:</P
3266 > # Define Privoxy as parent proxy (without ICP)
3267 cache_peer 127.0.0.1 parent 8118 7 no-query
3269 # Define ACL for protocol FTP
3272 # Do not forward FTP requests to Privoxy
3273 always_direct allow ftp
3275 # Forward all the rest to Privoxy
3276 never_direct allow all</PRE
3282 > You would then need to change your browser's proxy settings to <SPAN
3285 >'s address and port.
3286 Squid normally uses port 3128. If unsure consult <TT
3294 > You could just as well decide to only forward requests you suspect
3295 of leading to Windows executables through a virus-scanning parent proxy,
3298 >antivir.example.com</TT
3310 forward /.*\.(exe|com|dll|zip)$ antivir.example.com:8010</PRE
3321 NAME="FORWARDED-CONNECT-RETRIES"
3322 >7.5.4. forwarded-connect-retries</A
3327 CLASS="VARIABLELIST"
3333 > How often Privoxy retries if a forwarded connection request fails.
3343 >Number of retries.</I
3361 >Effect if unset:</DT
3364 > Connections forwarded through other proxies are treated like direct connections and no retry attempts are made.
3374 >forwarded-connect-retries</I
3376 > is mainly interesting
3377 for socks4a connections, where <SPAN
3380 > can't detect why the connections failed.
3381 The connection might have failed because of a DNS timeout in which case a retry makes sense,
3382 but it might also have failed because the server doesn't exist or isn't reachable. In this
3383 case the retry will just delay the appearance of Privoxy's error message.
3386 > Note that in the context of this option, <SPAN
3388 >"forwarded connections"</SPAN
3389 > includes all connections
3390 that Privoxy forwards through other proxies. This option is not limited to the HTTP CONNECT method.
3393 > Only use this option, if you are getting lots of forwarding-related error messages
3394 that go away when you try again manually. Start with a small value and check Privoxy's
3395 logfile from time to time, to see how many retries are usually needed.
3402 > forwarded-connect-retries 1
3413 NAME="ACCEPT-INTERCEPTED-REQUESTS"
3414 >7.5.5. accept-intercepted-requests</A
3419 CLASS="VARIABLELIST"
3425 > Whether intercepted requests should be treated as valid.
3453 >Effect if unset:</DT
3456 > Only proxy requests are accepted, intercepted requests are treated as invalid.
3463 > If you don't trust your clients and want to force them
3468 option and configure your packet filter to redirect outgoing
3469 HTTP connections into <SPAN
3475 > Make sure that <SPAN
3479 aren't redirected as well. Additionally take care that
3483 > can't intentionally connect
3484 to itself, otherwise you could run into redirection loops if
3488 > listening port is reachable
3489 by the outside or an attacker has access to the pages you visit.
3496 > accept-intercepted-requests 1
3507 NAME="ALLOW-CGI-REQUEST-CRUNCHING"
3508 >7.5.6. allow-cgi-request-crunching</A
3513 CLASS="VARIABLELIST"
3519 > Whether requests to <SPAN
3522 > CGI pages can be blocked or redirected.
3550 >Effect if unset:</DT
3556 > ignores block and redirect actions for its CGI pages.
3566 > ignores block or redirect actions
3567 for its CGI pages. Intercepting these requests can be useful in multi-user
3568 setups to implement fine-grained access control, but it can also render the complete
3569 web interface useless and make debugging problems painful if done without care.
3572 > Don't enable this option unless you're sure that you really need it.
3579 > allow-cgi-request-crunching 1
3590 NAME="SPLIT-LARGE-FORMS"
3591 >7.5.7. split-large-forms</A
3596 CLASS="VARIABLELIST"
3602 > Whether the CGI interface should stay compatible with broken HTTP clients.
3630 >Effect if unset:</DT
3633 > The CGI form generate long GET URLs.
3643 > CGI forms can lead to
3644 rather long URLs. This isn't a problem as far as the HTTP
3645 standard is concerned, but it can confuse clients with arbitrary
3646 URL length limitations.
3649 > Enabling split-large-forms causes <SPAN
3653 to divide big forms into smaller ones to keep the URL length down.
3654 It makes editing a lot less convenient and you can no longer
3655 submit all changes at once, but at least it works around this
3659 > If you don't notice any editing problems, there is no reason
3660 to enable this option, but if one of the submit buttons appears
3661 to be broken, you should give it a try.
3668 > split-large-forms 1
3681 >7.6. Windows GUI Options</A
3687 > has a number of options specific to the
3688 Windows GUI interface:</P
3690 NAME="ACTIVITY-ANIMATION"
3695 >"activity-animation"</SPAN
3700 > icon will animate when
3704 > is active. To turn off, set to 0.</P
3709 CLASS="LITERALLAYOUT"
3714 >activity-animation 1</I
3717 </P
3727 >"log-messages"</SPAN
3732 > will log messages to the console
3738 CLASS="LITERALLAYOUT"
3746 </P
3751 NAME="LOG-BUFFER-SIZE"
3757 >"log-buffer-size"</SPAN
3758 > is set to 1, the size of the log buffer,
3759 i.e. the amount of memory used for the log messages displayed in the
3760 console window, will be limited to <SPAN
3762 >"log-max-lines"</SPAN
3765 > Warning: Setting this to 0 will result in the buffer to grow infinitely and
3766 eat up all your memory!</P
3771 CLASS="LITERALLAYOUT"
3776 >log-buffer-size 1</I
3779 </P
3784 NAME="LOG-MAX-LINES"
3789 >log-max-lines</SPAN
3790 > is the maximum number of lines held
3791 in the log buffer. See above.</P
3796 CLASS="LITERALLAYOUT"
3801 >log-max-lines 200</I
3804 </P
3809 NAME="LOG-HIGHLIGHT-MESSAGES"
3814 >"log-highlight-messages"</SPAN
3819 > will highlight portions of the log
3820 messages with a bold-faced font:</P
3825 CLASS="LITERALLAYOUT"
3830 >log-highlight-messages 1</I
3833 </P
3838 NAME="LOG-FONT-NAME"
3841 > The font used in the console window:</P
3846 CLASS="LITERALLAYOUT"
3851 >log-font-name Comic Sans MS</I
3854 </P
3859 NAME="LOG-FONT-SIZE"
3862 > Font size used in the console window:</P
3867 CLASS="LITERALLAYOUT"
3875 </P
3880 NAME="SHOW-ON-TASK-BAR"
3886 >"show-on-task-bar"</SPAN
3887 > controls whether or not
3891 > will appear as a button on the Task bar
3897 CLASS="LITERALLAYOUT"
3902 >show-on-task-bar 0</I
3905 </P
3910 NAME="CLOSE-BUTTON-MINIMIZES"
3915 >"close-button-minimizes"</SPAN
3916 > is set to 1, the Windows close
3917 button will minimize <SPAN
3920 > instead of closing
3921 the program (close with the exit option on the File menu).</P
3926 CLASS="LITERALLAYOUT"
3931 >close-button-minimizes 1</I
3934 </P
3944 >"hide-console"</SPAN
3945 > option is specific to the MS-Win console
3949 >. If this option is used,
3953 > will disconnect from and hide the
3959 CLASS="LITERALLAYOUT"
3967 </P
3978 SUMMARY="Footer navigation table"
3989 HREF="configuration.html"
4007 HREF="actions-file.html"
4017 >Privoxy Configuration</TD