2 File : $Source: /cvsroot/ijbswa/current/doc/source/privoxy-man-page.sgml,v $
6 ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
8 $Id: privoxy-man-page.sgml,v 1.11 2002/05/05 20:26:02 hal9 Exp $
10 Copyright (C) 2001, 2002 Privoxy Developers <developers@privoxy.org>
13 ========================================================================
14 NOTE: Please read developer-manual/documentation.html before touching
15 anything in this, or other Privoxy documentation.
16 ========================================================================
18 Doc NOTES: This is some tricky markup! There are some quirks
19 to how this markup is handled. It is not always so co-operative.
20 Please don't change the markup unless you can verify the changes
21 will improve finished output!
23 literallayout tags are particularly sensitive to where they are placed.
24 The 'replaceable' and 'command' tags are used here somewhat unconventionally,
25 since it seems to generate the proper formatting (at least for me :).
27 Create man page: 'make man'
29 Requires docbook2man (short perl script), see CVS
30 http://sources.redhat.com/docbook-tools/. Also requires openjade and SGMLSpm
33 For man page references, see:
34 http://www.linuxdoc.org/HOWTO/mini/DocBook-Install/using.html
35 http://docbook.org/tdg/en/html/ch02.html#making-refentry
38 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"[
39 <!entity % dummy "IGNORE">
40 <!entity p-intro SYSTEM "privoxy.sgml">
41 <!entity seealso SYSTEM "seealso.sgml">
42 <!entity copyright SYSTEM "copyright.sgml">
43 <!entity license SYSTEM "license.sgml">
44 <!entity authors SYSTEM "p-authors.sgml">
45 <!entity p-version "2.9.15">
46 <!entity p-status "beta">
47 <!entity % p-not-stable "INCLUDE">
48 <!entity % p-stable "IGNORE">
49 <!entity % p-text "IGNORE"> <!-- define we are not a text only doc -->
50 <!entity % p-authors-formal "IGNORE"> <!-- exclude additional formating -->
51 <!entity my-copy "(C)"> <!-- db2man barfs on copyright symbol -->
54 <refentry id="privoxy">
56 <date>2002-04-11</date>
59 <refentrytitle>privoxy</refentrytitle>
60 <manvolnum>1</manvolnum>
62 Privoxy &p-version;<![%p-not-stable;[ &p-status;]]>
67 <refname><application>privoxy</application></refname>
68 <refpurpose>Privacy Enhancing Proxy</refpurpose>
73 <command>privoxy</command>
74 <arg><option>--help</option></arg>
75 <arg><option>--version</option></arg>
76 <arg><option>--no-daemon</option></arg>
77 <arg><option>--pidfile </option><replaceable class="parameter">pidfile</replaceable></arg>
78 <arg><option>--user </option><replaceable class="parameter">user[.group]</replaceable></arg>
79 <arg><replaceable class="parameter">configfile</replaceable></arg>
80 <command>(UNIX)</command>
84 <command>privoxy.exe</command>
85 <arg><replaceable class="parameter">configfile</replaceable></arg>
86 <command>(Windows)</command>
91 <!-- ~~~~~ New section ~~~~~ -->
92 <refsect1><title>Options</title>
94 <command>Privoxy</command> may be invoked with the following command line
103 Print brief usage info and exit.
109 <term>--version</term>
112 Print version info and exit.
118 <term>--no-daemon</term>
121 Don't become a daemon, i.e. don't fork and become process group
122 leader, don't detach from controlling tty, and do all logging there.
128 <term>--pidfile <replaceable class="parameter">pidfile</replaceable></term>
131 On startup, write the process ID to <replaceable class="parameter">pidfile</replaceable>.
132 Delete the <replaceable class="parameter">pidfile</replaceable> on exit.
133 Failiure to create or delete the <replaceable class="parameter">pidfile</replaceable>
134 is non-fatal. If no <command>--pidfile</command> option is given, no PID file will be used.
140 <term>--user <replaceable class="parameter">user[.group]</replaceable></term>
143 <!-- Note: replaceable is maybe the wrong tag, but generates -->
144 <!-- correct looking man output. -->
145 After (optionally) writing the PID file, assume the user ID of
146 <replaceable class="parameter">user</replaceable> and the GID of
147 <replaceable class="parameter">group</replaceable>, or, if the optional
148 <replaceable class="parameter">group</replaceable> was not given, the default group of
149 <replaceable class="parameter">user</replaceable>. Exit if the privileges are not
157 If the <filename>configfile</filename> is not specified on the command line,
158 <command>Privoxy</command> will look for a file named
159 <filename>config</filename> in the current directory (except on Win32 where
160 it will try <filename>config.txt</filename>). If no
161 <filename>configfile</filename> is found, <command>Privoxy</command> will
168 <!-- ~~~~~ New section ~~~~~ -->
169 <refsect1><title>Description</title>
170 <!-- Include privoxy.sgml boilerplate: -->
172 <!-- end boilerplate -->
176 <!-- ~~~~~ New section ~~~~~ -->
177 <refsect1><title>Installation and Usage</title>
179 Browsers must be individually configured to use <command>Privoxy</command> as
180 a HTTP proxy. The default setting is for localhost, on port 8118
181 (configurable in the main config file). To set the HTTP proxy in Netscape
182 and Mozilla, go through: <command>Edit</command>;
183 <command>Preferences</command>; <command>Advanced</command>;
184 <command>Proxies</command>; <command>Manual Proxy Configuration</command>;
185 <command>View</command>.
188 For Internet Explorer, go through: <command>Tools</command>;
189 <command>Internet Properties</command>; <command>Connections</command>;
190 <command>LAN Settings</command>.
193 The Secure (SSL) Proxy should also be set to the same values, otherwise
194 https: URLs will not be proxied.
197 For other browsers, check the documentation.
202 <!-- ~~~~~ New section ~~~~~ -->
203 <refsect1><title>Configuration</title>
205 <command>Privoxy</command> can be configured with the various configuration
206 files. The default configuration files are: <filename>config</filename>,
207 <filename>default.filter</filename>, and
208 <filename>default.action</filename>. <filename>user.action</filename> should
209 be used for locally defined exceptions to the default rules of
210 <filename>default.action</filename> These are all well commented. On Unix
211 and Unix-like systems, these are located in
212 <filename>/etc/privoxy/</filename> by default. On Windows, OS/2 and AmigaOS,
213 these files are in the same directory as the <command>Privoxy</command>
217 The name and number of configuration files has changed from previous
218 versions, and is subject to change as development progresses. In fact, the
219 configuration itself is changed and much more sophisticated. See the
220 <ulink url="http://www.privoxy.org/user-manual/">user-manual</ulink> for a
221 brief explanation of all configuration options.
224 The actions list (ad blocks, etc) can also be configured with your
225 web browser at <ulink url="http://ijbswa.sourceforge.net/config">http://ijbswa.sourceforge.net/config</ulink>.
226 <command>Privoxy's</command> configuration parameters can also be viewed at
227 the same page. In addition, <command>Privoxy</command> can be toggled on/off.
228 This is an internal page.
233 <!-- ~~~~~ New section ~~~~~ -->
234 <refsect1><title>Sample Configuration</title>
236 A brief example of what a simple <filename>default.action</filename>
237 configuration might look like:
241 # Define a few useful custom aliases for later use
245 +prevent-cookies = +prevent-setting-cookies +prevent-reading-cookies
246 -prevent-cookies = -prevent-setting-cookies -prevent-reading-cookies
247 +imageblock = +block +handle-as-image
249 # Fragile sites should have the minimum changes
250 fragile = -block -deanimate-gifs -fast-redirects -filter \
251 -hide-referer -prevent-cookies -kill-popups
253 ## Turn some actions on ################################
257 +deanimate-gifs{last} \
258 -downgrade-http-version \
260 +filter{html-annoyances} \
261 +filter{js-annoyances} \
262 +filter{content-cookies} \
264 +filter{banners-by-size} \
265 +hide-forwarded-for-headers \
266 +hide-from-header{block} \
267 +hide-referrer{forge} \
270 +set-image-blocker{pattern} \
272 +prevent-compression \
273 +session-cookies-only \
274 +prevent-reading-cookies \
275 +prevent-setting-cookies \
280 # Block, and treat these URL patterns as if they were 'images'.
283 .a[0-9].yimg.com/(?:(?!/i/).)*$
286 # Block any URLs that match these patterns
291 /.*count(er)?\.(pl|cgi|exe|dll|asp|php[34]?)
292 /(?:.*/)?(publicite|werbung|rekla(ma|me|am)|maino(kset|nta|s)?)/
295 # Make exceptions for these harmless ones that would be
296 # caught by +block above.
305 Then for a <filename>user.action</filename>, we would put local,
306 narrowly defined exceptions:
310 # Set personal exceptions to the policies in default.action #######
312 # Sites where we want persistant cookies
313 {-prevent-reading-cookies -prevent-setting-cookies -session-cookies-only}
318 {-block -fast-redirects}
324 See the comments in the configuration files themselves, or the
325 <citetitle>user-manual</citetitle>
326 for explanations of the above syntax, and other <command>Privoxy</command>
327 configuration options.
333 <!-- ~~~~~ New section ~~~~~ -->
334 <refsect1><title>Files</title>
335 <!-- this is a cheesy way to do this, but WTF. -->
337 <filename>/usr/sbin/privoxy</filename>
338 <filename>/etc/privoxy/config</filename>
339 <filename>/etc/privoxy/default.action</filename>
340 <filename>/etc/privoxy/standard.action</filename>
341 <filename>/etc/privoxy/user.action</filename>
342 <filename>/etc/privoxy/default.filter</filename>
343 <filename>/etc/privoxy/trust</filename>
344 <filename>/etc/privoxy/templates/*</filename>
345 <filename>/var/log/privoxy/logfile</filename>
349 Various other files should be included, but may vary depending on platform
350 and build configuration. More documentation should be included in the local
351 documentation directory, though is not complete at this time.
357 <!-- ~~~~~ New section ~~~~~ -->
358 <refsect1><title>Signals</title>
360 <!-- command tag is used here to get proper looking format -->
361 <command>Privoxy</command> terminates on the <command>SIGINT</command>,
362 <command>SIGTERM</command> and <command>SIGABRT</command> signals. Log
363 rotation scripts may cause a re-opening of the logfile by sending a
364 <command>SIGHUP</command> to <command>Privoxy</command>. Note that unlike
365 other daemons, <command>Privoxy</command> does not need to be made aware of
366 config file changes by <command>SIGHUP</command> -- it will detect them
372 <!-- ~~~~~ New section ~~~~~ -->
373 <refsect1><title>Notes</title>
376 This is a &p-status; version of <command>Privoxy</command>. Not
377 all features are well tested.
380 Please see the <citetitle>user-manual</citetitle> on how to contact the
381 developers for feature requests, reporting problems, and other questions.
386 <!-- ~~~~~ New section ~~~~~ -->
387 <refsect1><title>See Also</title>
388 <!-- Include seealso.sgml boilerplate: -->
390 <!-- end boilerplate -->
393 <!-- ~~~~~ New section ~~~~~ -->
394 <refsect1><title>Development Team</title>
395 <!-- Include p-authors.sgml boilerplate: -->
397 <!-- end boilerplate -->
400 <!-- ~~~~~ New section ~~~~~ -->
401 <refsect1><title>Copyright and License</title>
403 <refsect2><title>Copyright</title>
404 <!-- Include copyright.sgml boilerplate: -->
406 <!-- end boilerplate -->
409 <refsect2><title>License</title>
410 <!-- Include license.sgml boilerplate: -->
412 <!-- end boilerplate -->