Current Project Developers:
- Stefan Waldherr
- Andreas Oesterhelt
Jon Foster
+ Andreas Oesterhelt
+ Stefan Waldherr
- Markus Breitenbach
Thomas Steudten
+ Rodney Stromlund
Current Project Contributors:
- David Schmidt (OS/2, Mac OSX ports)
- Gabriel L. Somlo
+ Rodrigo Barbosa (RPM specfiles)
Hal Burgiss (docs)
+ Alexander Lazic
+ Gábor Lipták
+ Guy
Haroon Rafique
- John Venvertloh
+ David Schmidt (OS/2, Mac OSX ports)
Joerg Strohmayer
- Rodney Stromlund
- Rodrigo Barbosa (RPM specfiles)
Sarantis Paskalis
- Shamim Mohamed
- Gábor Lipták
- Alexander Lazic
Originally developed by:
Thanks to the many people who have tested Privoxy, reported bugs, or made
suggestions. These include (in alphabetical order):
- Aaron Hamid
+ Ken Arromdee
+ Reiner Buehl
Andrew J. Caines
- Bart Schelstraete
Clifford Caoile
- Darren Wiebe
- Guy
- Ken Arromdee
+ Peter E
+ Aaron Hamid
Magnus Holmgren
Paul Lieverse
- Peter E
- Reiner Buehl
+ Roberto Ragusa
+ Bart Schelstraete
+ Darren Wiebe
If we've missed you off this list, please let us know!
If you have gnu make, you can have the first four steps automatically done for
-you by just typing:
+you by just typing
make
CONFIGURATION
--------------
-See: 'config', 'default.action', 'user.action', and 'default.filter'.
-'user.action' is for personal configuration. These are all well commented. Most
-of the magic is in '*.action' files. 'user.action' should be used for any
-actions customizations. On Unix-like systems, these files are installed in /etc
-/privoxy. On Windows, then wherever the executable itself is installed. There
-are many significant changes and advances since Junkbuster v2.0.x. The
-user-manual has a run down of configuration options, and examples: http://
-www.privoxy.org/user-manual/.
+See: 'config', 'default.action', 'standard.action', 'user.action', and
+'default.filter'. 'user.action' is for personal configuration. These are all
+well commented. Most of the magic is in '*.action' files. On Unix-like systems,
+these files are installed in /etc/privoxy. On Windows, then wherever the
+executable itself is installed. There are many significant changes and advances
+since Junkbuster v2.0.x. The user-manual has a run down of configuration
+options, and examples: http://www.privoxy.org/user-manual/.
Be sure to set your browser(s) for HTTP/HTTPS Proxy at <IP>:<Port>, or whatever
you specify in the config file under 'listen-address'. DEFAULT is localhost:
Purpose : AUTHORS file for Privoxy
- $Id: authors.sgml,v 1.3 2002/04/08 22:59:26 hal9 Exp $
+ $Id: authors.sgml,v 1.4 2002/04/10 18:45:14 swa Exp $
Written by and Copyright (C) 2001 the SourceForge
Privoxy team. http://www.privoxy.org/
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
<!entity % dummy "INCLUDE">
<!entity authors SYSTEM "p-authors.sgml">
-<!entity p-version "2.9.13">
+<!entity p-version "2.9.14">
<!entity p-status "beta">
<!entity % p-not-stable "INCLUDE">
<!entity % p-stable "IGNORE">
By: Privoxy Developers
-$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $
+$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $
The developer manual gives the users information on how to help the developer
team. It provides guidance on coding, testing, documentation and other issues.
-Privoxy is a web proxy with advanced filtering capabilities for protecting
-privacy, filtering web page content, managing cookies, controlling access, and
-removing ads, banners, pop-ups and other obnoxious Internet junk. Privoxy has a
-very flexible configuration and can be customized to suit individual needs and
-tastes. Privoxy has application for both stand-alone systems and multi-user
-networks.
-
-Privoxy is based on the code of the Internet Junkbuster (tm). Junkbuster was
-originally written by Junkbusters Corporation, and was released as free
-open-source software under the GNU GPL. Stefan Waldherr made many improvements,
-and started the SourceForge project to continue development.
-
-Privoxy continues the Junkbuster tradition, but adds many refinements,
-enhancements and new features.
-
You can find the latest version of the this manual at http://www.privoxy.org/
developer-manual/. Please see the Contact section on how to contact the
developers.
1. Introduction
3. Quickstart to Privoxy Development
-4. Documentation Guidelines
+4. The CVS Repository
+
+ 4.1. Access to CVS
+ 4.2. CVS Commit Guideline
+ 4.3. Discussing Changes First
- 4.1. Quickstart to Docbook and SGML
- 4.2. Privoxy Documentation Style
- 4.3. Privoxy Custom Entities
+5. Documentation Guidelines
-5. Coding Guidelines
+ 5.1. Quickstart to Docbook and SGML
+ 5.2. Privoxy Documentation Style
+ 5.3. Privoxy Custom Entities
- 5.1. Introduction
- 5.2. Using Comments
+6. Coding Guidelines
+
+ 6.1. Introduction
+ 6.2. Using Comments
- 5.2.1. Comment, Comment, Comment
- 5.2.2. Use blocks for comments
- 5.2.3. Keep Comments on their own line
- 5.2.4. Comment each logical step
- 5.2.5. Comment All Functions Thoroughly
- 5.2.6. Comment at the end of braces if the content is more than one
+ 6.2.1. Comment, Comment, Comment
+ 6.2.2. Use blocks for comments
+ 6.2.3. Keep Comments on their own line
+ 6.2.4. Comment each logical step
+ 6.2.5. Comment All Functions Thoroughly
+ 6.2.6. Comment at the end of braces if the content is more than one
screen length
- 5.3. Naming Conventions
+ 6.3. Naming Conventions
- 5.3.1. Variable Names
- 5.3.2. Function Names
- 5.3.3. Header file prototypes
- 5.3.4. Enumerations, and #defines
- 5.3.5. Constants
+ 6.3.1. Variable Names
+ 6.3.2. Function Names
+ 6.3.3. Header file prototypes
+ 6.3.4. Enumerations, and #defines
+ 6.3.5. Constants
- 5.4. Using Space
+ 6.4. Using Space
- 5.4.1. Put braces on a line by themselves.
- 5.4.2. ALL control statements should have a block
- 5.4.3. Do not belabor/blow-up boolean expressions
- 5.4.4. Use white space freely because it is free
- 5.4.5. Don't use white space around structure operators
- 5.4.6. Make the last brace of a function stand out
- 5.4.7. Use 3 character indentions
+ 6.4.1. Put braces on a line by themselves.
+ 6.4.2. ALL control statements should have a block
+ 6.4.3. Do not belabor/blow-up boolean expressions
+ 6.4.4. Use white space freely because it is free
+ 6.4.5. Don't use white space around structure operators
+ 6.4.6. Make the last brace of a function stand out
+ 6.4.7. Use 3 character indentions
- 5.5. Initializing
+ 6.5. Initializing
- 5.5.1. Initialize all variables
+ 6.5.1. Initialize all variables
- 5.6. Functions
+ 6.6. Functions
- 5.6.1. Name functions that return a boolean as a question.
- 5.6.2. Always specify a return type for a function.
- 5.6.3. Minimize function calls when iterating by using variables
- 5.6.4. Pass and Return by Const Reference
- 5.6.5. Pass and Return by Value
- 5.6.6. Names of include files
- 5.6.7. Provide multiple inclusion protection
- 5.6.8. Use `extern "C"` when appropriate
- 5.6.9. Where Possible, Use Forward Struct Declaration Instead of
+ 6.6.1. Name functions that return a boolean as a question.
+ 6.6.2. Always specify a return type for a function.
+ 6.6.3. Minimize function calls when iterating by using variables
+ 6.6.4. Pass and Return by Const Reference
+ 6.6.5. Pass and Return by Value
+ 6.6.6. Names of include files
+ 6.6.7. Provide multiple inclusion protection
+ 6.6.8. Use `extern "C"` when appropriate
+ 6.6.9. Where Possible, Use Forward Struct Declaration Instead of
Includes
- 5.7. General Coding Practices
+ 6.7. General Coding Practices
- 5.7.1. Turn on warnings
- 5.7.2. Provide a default case for all switch statements
- 5.7.3. Try to avoid falling through cases in a switch statement.
- 5.7.4. Use 'long' or 'short' Instead of 'int'
- 5.7.5. Don't mix size_t and other types
- 5.7.6. Declare each variable and struct on its own line.
- 5.7.7. Use malloc/zalloc sparingly
- 5.7.8. The Programmer Who Uses 'malloc' is Responsible for Ensuring
+ 6.7.1. Turn on warnings
+ 6.7.2. Provide a default case for all switch statements
+ 6.7.3. Try to avoid falling through cases in a switch statement.
+ 6.7.4. Use 'long' or 'short' Instead of 'int'
+ 6.7.5. Don't mix size_t and other types
+ 6.7.6. Declare each variable and struct on its own line.
+ 6.7.7. Use malloc/zalloc sparingly
+ 6.7.8. The Programmer Who Uses 'malloc' is Responsible for Ensuring
'free'
- 5.7.9. Add loaders to the `file_list' structure and in order
- 5.7.10. "Uncertain" new code and/or changes to existing code, use FIXME
+ 6.7.9. Add loaders to the `file_list' structure and in order
+ 6.7.10. "Uncertain" new code and/or changes to existing code, use FIXME
- 5.8. Addendum: Template for files and function comment blocks:
+ 6.8. Addendum: Template for files and function comment blocks:
-6. Version Control Guidelines
7. Testing Guidelines
7.1. Testplan for releases
7.2. Test reports
-8. Releasing a new version
+8. Releasing a New Version
8.1. Before the Release
- 8.2. Update the webserver
- 8.3. SuSE or Red Hat
- 8.4. OS/2
- 8.5. Solaris
- 8.6. Windows
- 8.7. Debian
- 8.8. Mac OSX
- 8.9. FreeBSD
- 8.10. Tarball
- 8.11. HP-UX 11
- 8.12. Amiga OS
- 8.13. AIX
+ 8.2. Building and Releasing the Packages
+
+ 8.2.1. Source Tarball
+ 8.2.2. SuSE or Red Hat
+ 8.2.3. OS/2
+ 8.2.4. Solaris
+ 8.2.5. Windows
+ 8.2.6. Debian
+ 8.2.7. Mac OSX
+ 8.2.8. FreeBSD
+ 8.2.9. HP-UX 11
+ 8.2.10. Amiga OS
+ 8.2.11. AIX
+
+ 8.3. After the Release
-9. Contacting the developers, Bug Reporting and Feature Requests
-10. Copyright and History
+9. Update the Webserver
+10. Contacting the developers, Bug Reporting and Feature Requests
+11. Copyright and History
- 10.1. Copyright
- 10.2. History
+ 11.1. Copyright
+ 11.2. History
-11. See also
+12. See also
-------------------------------------------------------------------------------
You'll need an account on Sourceforge to support our development. Mail your ID
to the list and wait until a project manager has added you.
-For the time being (read, this section is under construction), please note the
-following guidelines for changing stuff in the code. If it is
+For the time being (read, this section is under construction), please refer to
+the extensive comments in the source code.
+
+-------------------------------------------------------------------------------
+
+4. The CVS Repository
+
+If you intend to help us with programming, documentation or packaging you will
+need write access to our holy grail, the CVS repository. Please read this
+chapter completely before accessing via CVS.
+
+-------------------------------------------------------------------------------
+
+4.1. Access to CVS
+
+The project's CVS repository is hosted on SourceForge. Please refer to the
+chapters 6 and 7 in SF's site documentation for the technical access details
+for your operating system. For historical reasons, the CVS server is called
+cvs.ijbswa.sourceforge.net, the repository is called ijbswa, and the source
+tree module is called current.
+
+-------------------------------------------------------------------------------
+
+4.2. CVS Commit Guideline
+
+The source tree is the heart of every software project. Every effort must be
+made to ensure that it is readable, compilable and consistent at all times. We
+therefore ask anyone with CVS access to strictly adhere to the following
+guidelines:
+
+ * Never (read: never, ever) be tempted to commit that small change without
+ testing it thoroughly first. When we're close to a public release, ask a
+ fellow developer to review your changes.
+
+ * Your commit message should give a concise overview of what you changed (no
+ big details) and why you changed it Just check previous messages for good
+ examples.
+
+ * Don't use the same message on multiple files, unless it equally applies to
+ all those files.
+
+ * If your changes span multiple files, and the code won't recompile unless
+ all changes are commited (e.g. when changing the signature of a function),
+ then commit all files one after another, without long delays in beween. If
+ necessary, prepare the commit messages in advance.
+
+ * Before changing things on CVS, make sure that your changes are in line with
+ the team's general consensus on what should be done (see below).
+
+-------------------------------------------------------------------------------
+
+4.3. Discussing Changes First
+
+We don't have a too formal policy on this, just use common sense. Hints: If it
+is..
- 1. A bugfix / clean-up / cosmetic thing: shoot
+ 1. ..a bugfix / clean-up / cosmetic thing: shoot
- 2. A new feature that can be turned off: shoot
+ 2. ..a new feature that can be turned off: shoot
- 3. A clear improvement w/o side effects on other parts of the code: shoot
+ 3. ..a clear improvement w/o side effects on other parts of the code: shoot
- 4. A matter of taste: ask the list
+ 4. ..a matter of taste: ask the list
- 5. A major redesign of some part of the code: ask the list
+ 5. ..a major redesign of some part of the code: ask the list
Note that near a major public release, we get a bit more cautious - if unsure,
-it doesn't hurt to ask first.
+it doesn't hurt to ask first. There is always the possibility to submit a patch
+to the patches tracker instead.
-------------------------------------------------------------------------------
-4. Documentation Guidelines
+5. Documentation Guidelines
All formal documents are maintained in Docbook SGML and located in the doc/
source/* directory. You will need Docbook, the Docbook DTD's and the Docbook
-------------------------------------------------------------------------------
-4.1. Quickstart to Docbook and SGML
+5.1. Quickstart to Docbook and SGML
If you are not familiar with SGML, it is a markup language similar to HTML.
Actually, not a mark up language per se, but a language used to define markup
Look at any of the existing docs for examples of all these and more.
+You might also find "Writing Documentation Using DocBook - A Crash Course"
+useful.
+
-------------------------------------------------------------------------------
-4.2. Privoxy Documentation Style
+5.2. Privoxy Documentation Style
It will be easier if everyone follows a similar writing style. This just makes
it easier to read what someone else has written if it is all done in a similar
-------------------------------------------------------------------------------
-4.3. Privoxy Custom Entities
+5.3. Privoxy Custom Entities
Privoxy documentation is using a number of customized "entities" to facilitate
documentation maintenance.
-------------------------------------------------------------------------------
-5. Coding Guidelines
+6. Coding Guidelines
-5.1. Introduction
+6.1. Introduction
This set of standards is designed to make our lives easier. It is developed
with the simple goal of helping us keep the "new and improved Privoxy"
-------------------------------------------------------------------------------
-5.2. Using Comments
+6.2. Using Comments
-5.2.1. Comment, Comment, Comment
+6.2.1. Comment, Comment, Comment
Explanation:
-------------------------------------------------------------------------------
-5.2.2. Use blocks for comments
+6.2.2. Use blocks for comments
Explanation:
-------------------------------------------------------------------------------
-5.2.3. Keep Comments on their own line
+6.2.3. Keep Comments on their own line
Explanation:
-------------------------------------------------------------------------------
-5.2.4. Comment each logical step
+6.2.4. Comment each logical step
Explanation:
-------------------------------------------------------------------------------
-5.2.5. Comment All Functions Thoroughly
+6.2.5. Comment All Functions Thoroughly
Explanation:
-------------------------------------------------------------------------------
-5.2.6. Comment at the end of braces if the content is more than one screen
+6.2.6. Comment at the end of braces if the content is more than one screen
length
Explanation:
-------------------------------------------------------------------------------
-5.3. Naming Conventions
+6.3. Naming Conventions
-5.3.1. Variable Names
+6.3.1. Variable Names
Explanation:
-------------------------------------------------------------------------------
-5.3.2. Function Names
+6.3.2. Function Names
Explanation:
-------------------------------------------------------------------------------
-5.3.3. Header file prototypes
+6.3.3. Header file prototypes
Explanation:
-------------------------------------------------------------------------------
-5.3.4. Enumerations, and #defines
+6.3.4. Enumerations, and #defines
Explanation:
-------------------------------------------------------------------------------
-5.3.5. Constants
+6.3.5. Constants
Explanation:
-------------------------------------------------------------------------------
-5.4. Using Space
+6.4. Using Space
-5.4.1. Put braces on a line by themselves.
+6.4.1. Put braces on a line by themselves.
Explanation:
-------------------------------------------------------------------------------
-5.4.2. ALL control statements should have a block
+6.4.2. ALL control statements should have a block
Explanation:
-------------------------------------------------------------------------------
-5.4.3. Do not belabor/blow-up boolean expressions
+6.4.3. Do not belabor/blow-up boolean expressions
Example:
-------------------------------------------------------------------------------
-5.4.4. Use white space freely because it is free
+6.4.4. Use white space freely because it is free
Explanation:
-------------------------------------------------------------------------------
-5.4.5. Don't use white space around structure operators
+6.4.5. Don't use white space around structure operators
Explanation:
-------------------------------------------------------------------------------
-5.4.6. Make the last brace of a function stand out
+6.4.6. Make the last brace of a function stand out
Example:
-------------------------------------------------------------------------------
-5.4.7. Use 3 character indentions
+6.4.7. Use 3 character indentions
Explanation:
-------------------------------------------------------------------------------
-5.5. Initializing
+6.5. Initializing
-5.5.1. Initialize all variables
+6.5.1. Initialize all variables
Explanation:
-------------------------------------------------------------------------------
-5.6. Functions
+6.6. Functions
-5.6.1. Name functions that return a boolean as a question.
+6.6.1. Name functions that return a boolean as a question.
Explanation:
-------------------------------------------------------------------------------
-5.6.2. Always specify a return type for a function.
+6.6.2. Always specify a return type for a function.
Explanation:
-------------------------------------------------------------------------------
-5.6.3. Minimize function calls when iterating by using variables
+6.6.3. Minimize function calls when iterating by using variables
Explanation:
-------------------------------------------------------------------------------
-5.6.4. Pass and Return by Const Reference
+6.6.4. Pass and Return by Const Reference
Explanation:
-------------------------------------------------------------------------------
-5.6.5. Pass and Return by Value
+6.6.5. Pass and Return by Value
Explanation:
-------------------------------------------------------------------------------
-5.6.6. Names of include files
+6.6.6. Names of include files
Explanation:
-------------------------------------------------------------------------------
-5.6.7. Provide multiple inclusion protection
+6.6.7. Provide multiple inclusion protection
Explanation:
-------------------------------------------------------------------------------
-5.6.8. Use `extern "C"` when appropriate
+6.6.8. Use `extern "C"` when appropriate
Explanation:
-------------------------------------------------------------------------------
-5.6.9. Where Possible, Use Forward Struct Declaration Instead of Includes
+6.6.9. Where Possible, Use Forward Struct Declaration Instead of Includes
Explanation:
-------------------------------------------------------------------------------
-5.7. General Coding Practices
+6.7. General Coding Practices
-5.7.1. Turn on warnings
+6.7.1. Turn on warnings
Explanation
-------------------------------------------------------------------------------
-5.7.2. Provide a default case for all switch statements
+6.7.2. Provide a default case for all switch statements
Explanation:
-------------------------------------------------------------------------------
-5.7.3. Try to avoid falling through cases in a switch statement.
+6.7.3. Try to avoid falling through cases in a switch statement.
Explanation:
-------------------------------------------------------------------------------
-5.7.4. Use 'long' or 'short' Instead of 'int'
+6.7.4. Use 'long' or 'short' Instead of 'int'
Explanation:
-------------------------------------------------------------------------------
-5.7.5. Don't mix size_t and other types
+6.7.5. Don't mix size_t and other types
Explanation:
-------------------------------------------------------------------------------
-5.7.6. Declare each variable and struct on its own line.
+6.7.6. Declare each variable and struct on its own line.
Explanation:
-------------------------------------------------------------------------------
-5.7.7. Use malloc/zalloc sparingly
+6.7.7. Use malloc/zalloc sparingly
Explanation:
-------------------------------------------------------------------------------
-5.7.8. The Programmer Who Uses 'malloc' is Responsible for Ensuring 'free'
+6.7.8. The Programmer Who Uses 'malloc' is Responsible for Ensuring 'free'
Explanation:
-------------------------------------------------------------------------------
-5.7.9. Add loaders to the `file_list' structure and in order
+6.7.9. Add loaders to the `file_list' structure and in order
Explanation:
-------------------------------------------------------------------------------
-5.7.10. "Uncertain" new code and/or changes to existing code, use FIXME
+6.7.10. "Uncertain" new code and/or changes to existing code, use FIXME
Explanation:
-------------------------------------------------------------------------------
-5.8. Addendum: Template for files and function comment blocks:
+6.8. Addendum: Template for files and function comment blocks:
Example for file comments:
-const char FILENAME_rcs[] = "$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $";
-/*********************************************************************
- *
- * File : $Source$
- *
- * Purpose : (Fill me in with a good description!)
- *
- * Copyright : Written by and Copyright (C) 2001 the SourceForge
- * Privoxy team. http://www.privoxy.org/
- *
- * Based on the Internet Junkbuster originally written
- * by and Copyright (C) 1997 Anonymous Coders and
- * Junkbusters Corporation. http://www.junkbusters.com
- *
- * This program is free software; you can redistribute it
- * and/or modify it under the terms of the GNU General
- * Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at
- * your option) any later version.
- *
- * This program is distributed in the hope that it will
- * be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public
- * License for more details.
- *
- * The GNU General Public License should be included with
- * this file. If not, you can view it at
- * http://www.gnu.org/copyleft/gpl.html
- * or write to the Free Software Foundation, Inc., 59
- * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * Revisions :
- * $Log$
- *
- *********************************************************************/
-
-
-#include "config.h"
-
- ...necessary include files for us to do our work...
-
-const char FILENAME_h_rcs[] = FILENAME_H_VERSION;
+const char FILENAME_rcs[] = "$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $";
+/*********************************************************************
+ *
+ * File : $Source$
+ *
+ * Purpose : (Fill me in with a good description!)
+ *
+ * Copyright : Written by and Copyright (C) 2001 the SourceForge
+ * Privoxy team. http://www.privoxy.org/
+ *
+ * Based on the Internet Junkbuster originally written
+ * by and Copyright (C) 1997 Anonymous Coders and
+ * Junkbusters Corporation. http://www.junkbusters.com
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will
+ * be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ *
+ * The GNU General Public License should be included with
+ * this file. If not, you can view it at
+ * http://www.gnu.org/copyleft/gpl.html
+ * or write to the Free Software Foundation, Inc., 59
+ * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Revisions :
+ * $Log$
+ *
+ *********************************************************************/
+
+
+#include "config.h"
+
+ ...necessary include files for us to do our work...
+
+const char FILENAME_h_rcs[] = FILENAME_H_VERSION;
Note: This declares the rcs variables that should be added to the
"show-proxy-args" page. If this is a brand new creation by you, you are free to
Example for file header comments:
-#ifndef _FILENAME_H
-#define _FILENAME_H
-#define FILENAME_H_VERSION "$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $"
-/*********************************************************************
- *
- * File : $Source$
- *
- * Purpose : (Fill me in with a good description!)
- *
- * Copyright : Written by and Copyright (C) 2001 the SourceForge
- * Privoxy team. http://www.privoxy.org/
- *
- * Based on the Internet Junkbuster originally written
- * by and Copyright (C) 1997 Anonymous Coders and
- * Junkbusters Corporation. http://www.junkbusters.com
- *
- * This program is free software; you can redistribute it
- * and/or modify it under the terms of the GNU General
- * Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at
- * your option) any later version.
- *
- * This program is distributed in the hope that it will
- * be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public
- * License for more details.
- *
- * The GNU General Public License should be included with
- * this file. If not, you can view it at
- * http://www.gnu.org/copyleft/gpl.html
- * or write to the Free Software Foundation, Inc., 59
- * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * Revisions :
- * $Log$
- *
- *********************************************************************/
-
-
-#include "project.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- ... function headers here ...
-
-
-/* Revision control strings from this header and associated .c file */
-extern const char FILENAME_rcs[];
-extern const char FILENAME_h_rcs[];
-
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /* ndef _FILENAME_H */
-
-/*
- Local Variables:
- tab-width: 3
- end:
-*/
+#ifndef _FILENAME_H
+#define _FILENAME_H
+#define FILENAME_H_VERSION "$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $"
+/*********************************************************************
+ *
+ * File : $Source$
+ *
+ * Purpose : (Fill me in with a good description!)
+ *
+ * Copyright : Written by and Copyright (C) 2001 the SourceForge
+ * Privoxy team. http://www.privoxy.org/
+ *
+ * Based on the Internet Junkbuster originally written
+ * by and Copyright (C) 1997 Anonymous Coders and
+ * Junkbusters Corporation. http://www.junkbusters.com
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will
+ * be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ *
+ * The GNU General Public License should be included with
+ * this file. If not, you can view it at
+ * http://www.gnu.org/copyleft/gpl.html
+ * or write to the Free Software Foundation, Inc., 59
+ * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Revisions :
+ * $Log$
+ *
+ *********************************************************************/
+
+
+#include "project.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ ... function headers here ...
+
+
+/* Revision control strings from this header and associated .c file */
+extern const char FILENAME_rcs[];
+extern const char FILENAME_h_rcs[];
+
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* ndef _FILENAME_H */
+
+/*
+ Local Variables:
+ tab-width: 3
+ end:
+*/
Example for function comments:
-------------------------------------------------------------------------------
-6. Version Control Guidelines
-
-To be filled. note on cvs comments. Don't only comment what you did, but also
-why you did it!
-
--------------------------------------------------------------------------------
-
7. Testing Guidelines
To be filled.
-------------------------------------------------------------------------------
-8. Releasing a new version
+8. Releasing a New Version
+
+When we release versions of Privoxy, our work leaves our cozy secret lab and
+has to work in the cold RealWorld[tm]. Once it is released, there is no way to
+call it back, so it is very important that great care is taken to ensure that
+everything runs fine, and not to introduce problems in the very last minute.
-To minimize trouble with distribution contents, web-page errors and the like,
-we strongly encourage you to follow this section if you prepare a new release
-of code or new pages on the webserver.
+So when releasing a new version, please adhere exactly to the procedure
+outlined in this chapter.
The following programs are required to follow this process: ncftpput (ncftp),
-scp (ssh), gmake (GNU's version of make), autoconf, cvs, ???.
+scp, ssh (ssh), gmake (GNU's version of make), autoconf, cvs.
-Replace X, Y and Z with the actual version number (X = major, Y = minor, Z =
-point):
+In the following text, replace X, Y and Z with the actual version number (X =
+major, Y = minor, Z = point):
-------------------------------------------------------------------------------
days has had a chance to yell "no!" in case they have pending changes/fixes
in their pipelines.
- * Increment the version number in configure.in in CVS. Also, increase or
- reset the RPM release number in configure.in as appropriate. Do NOT touch
- version information after export from CVS. All packages will use the
- version and release data from configure.in. Local files should not be
- changed, except prior to a CVS commit!!! This way we are all on the same
- page!
+ * Increment the version number and increase or reset the RPM release number
+ in configure.in as appropriate.
* If the default actionsfile has changed since last release, bump up its
version info in this line:
Then change the version info in doc/webserver/actions/index.php, line:
'$required_actions_file_version = "A.B";'
+ * If the HTML documentation is not in sync with the SGML sources you need to
+ regenerate it. (If in doubt, just do it.) See the Section "Updating the
+ webserver" in this manual for details.
+
* Commit all files that were changed in the above steps!
* Tag all files in CVS with the version number with "cvs tag v_X_Y_Z". Don't
use vX_Y_Z, ver_X_Y_Z, v_X.Y.Z (won't work) etc.
- * The first package uploaded should be the official "tarball" release, as
- required by the GPL. This is built with the "make tarball-dist" Makefile
- target, and then can be uploaded with "make tarball-upload" (see below).
-
-------------------------------------------------------------------------------
-8.2. Update the webserver
-
-All files must be group-readable and group-writable (or no one else will be
-able to change them)! To update the webserver, create any pages locally in the
-doc/webserver/* directory (or create new directories under doc/webserver), then
-do
+8.2. Building and Releasing the Packages
- make webserver
-
+Now the individual packages can be built and released. Note that for GPL
+reasons the first package to be released is always the source tarball.
-This will do the upload to the webserver (www.privoxy.org).
+For all types of packages, including the source tarball, you must make sure
+that you build from clean sources by exporting the right version from CVS into
+an empty directory:.
-Note that "make dok" (or "make redhat-dok") creates doc/webserver/user-manual,
-doc/webserver/developer-manual, doc/webserver/faq and doc/webserver/index.html
-automatically. (doc/webserver/man-page/privoxy-man-page.html is created by a
-separate Makefile target, "make man", due to dependencies on some obscure perl
-scripts. See comments in GNUmakefile.)
+ mkdir dist # delete or choose different name if it already exists
+ cd dist
+ cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
+
-Someone should also commit these to CVS so that packagers without the ability
-to build docs locally, have access to them. This is a separate step, and should
-also be done before each official release.
+Do NOT change a single bit, including, but not limited to version information
+after export from CVS. This is to make sure that all release packages, and with
+them, all future bug reports, are based on exactly the same code.
-Please do NOT use any other means of transferring files to the webserver. "make
-webserver" not only uploads, but will make sure that the appropriate
-permissions are preserved for shared group access.
+Please find additional instructions for the source tarball and the individual
+platform dependent binary packages below.
-------------------------------------------------------------------------------
-8.3. SuSE or Red Hat
+8.2.1. Source Tarball
-Ensure that you have the latest code version. Hence run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then run:
+
+ cd current
+ autoheader && autoconf && ./configure
+
+
+Then do:
+
+ make tarball-dist
+
+
+To upload the package to Sourceforge, simply issue
+
+ make tarball-upload
+
+
+Go to the displayed URL and release the file publicly on Sourceforge. For the
+change log field, use the relevant section of the ChangeLog file.
+
+-------------------------------------------------------------------------------
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
+8.2.2. SuSE or Red Hat
-first.
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
Then do
- make suse-dist or make redhat-dist
+ make suse-dist (or make redhat-dist)
To upload the package to Sourceforge, simply issue
make suse-upload (or make redhat-upload)
-Go to the displayed URL and release the file publicly on Sourceforge.
+Go to the displayed URL and release the file publicly on Sourceforge. Use the
+release notes and çhange log from the source tarball package.
-------------------------------------------------------------------------------
-8.4. OS/2
+8.2.3. OS/2
-Ensure that you have the latest code version. Hence run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then get the OS/2
+Setup module:
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd ..
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co os2setup
-
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co os2setup
+
You will need a mix of development tools. The main compilation takes place with
IBM Visual Age C++. Some ancillary work takes place with GNU tools, available
os2build
-And in the ./files directory you will have the WarpIN-installable executable.
+You will find the WarpIN-installable executable in the ./files directory.
Upload this anonymously to uploads.sourceforge.net/incoming, create a release
-for it, and you're done.
+for it, and you're done. Use the release notes and Change Log from the source
+tarball package.
-------------------------------------------------------------------------------
-8.5. Solaris
+8.2.4. Solaris
-Login to Sourceforge's compilefarm via ssh
+Login to Sourceforge's compilefarm via ssh:
ssh cf.sourceforge.net
-Choose the right operating system (not the Debian one). If you have downloaded
-Privoxy before,
-
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
-
-If not, please checkout Privoxy via CVS first. Run:
+Choose the right operating system (not the Debian one). When logged in, make
+sure that you have freshly exported the right version into an empty directory.
+(See "Building and releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
which creates a gzip'ed tar archive. Sadly, you cannot use make solaris-upload
on the Sourceforge machine (no ncftpput). You now have to manually upload the
-archive to Sourceforge's ftp server and release the file publicly.
+archive to Sourceforge's ftp server and release the file publicly. Use the
+release notes and Change Log from the source tarball package.
-------------------------------------------------------------------------------
-8.6. Windows
+8.2.5. Windows
You should ensure you have the latest version of Cygwin (from http://
www.cygwin.com/). Run the following commands from within a Cygwin bash shell.
-First check out a clean copy of the correct code version, by running:
-
- mkdir dist
- cd dist
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z .
-
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then get the Windows
+setup module:
-(Note: It is important that this is a clean copy of the code, do not re-use a
-working directory after you have manually compiled there).
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co winsetup
+
Then you can build the package. This is fully automated, and is controlled by
winsetup/GNUmakefile. All you need to do is:
Now you can manually rename privoxy_setup.exe to privoxy_setup_X_Y_Z.exe, and
-upload it to SourceForge.
+upload it to SourceForge. When releasing the package on SourceForge, use the
+release notes and Change Log from the source tarball package.
-------------------------------------------------------------------------------
-8.7. Debian
+8.2.6. Debian
-Ensure that you have the latest code version. Hence run:
-
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
-
-first. Run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then, run:
+ cd current
autoheader && autoconf && ./configure
-------------------------------------------------------------------------------
-8.8. Mac OSX
+8.2.7. Mac OSX
-Ensure that you have the latest code version. Hence run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then get the Mac OSX
+setup module:
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd ..
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co osxsetup
-
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co osxsetup
+
-From the osxsetup directory, run:
+Then run:
+ cd osxsetup
build
You can then upload privoxyosx_setup_x.y.z.zip anonymously to
-uploads.sourceforge.net/incoming, create a release for it, and you're done.
+uploads.sourceforge.net/incoming, create a release for it, and you're done. Use
+the release notes and Change Log from the source tarball package.
-------------------------------------------------------------------------------
-8.9. FreeBSD
-
-Change the version number of Privoxy in the configure.in file. Run:
-
- autoheader && autoconf && ./configure
-
-
-Then ...
+8.2.8. FreeBSD
Login to Sourceforge's compilefarm via ssh:
ssh cf.sourceforge.net
-Choose the right operating system.
-
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
-
-Run:
+Choose the right operating system. When logged in, make sure that you have
+freshly exported the right version into an empty directory. (See "Building and
+releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
which creates a gzip'ed tar archive. Sadly, you cannot use make freebsd-upload
on the Sourceforge machine (no ncftpput). You now have to manually upload the
-archive to Sourceforge's ftp server and release the file publicly.
+archive to Sourceforge's ftp server and release the file publicly. Use the
+release notes and Change Log from the source tarball package.
-------------------------------------------------------------------------------
-8.10. Tarball
+8.2.9. HP-UX 11
-Ensure that you have the right code version. Hence run:
-
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
-
-first. Run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
-Then do:
-
- make tarball-dist
-
-
-To upload the package to Sourceforge, simply issue
-
- make tarball-upload
-
-
-Goto the displayed URL and release the file publicly on Sourceforge.
+Then do FIXME.
-------------------------------------------------------------------------------
-8.11. HP-UX 11
+8.2.10. Amiga OS
-Ensure that you have the latest code version. Hence run:
-
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
-
-first. Run:
+First, make sure that you have freshly exported the right version into an empty
+directory. (See "Building and releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
-------------------------------------------------------------------------------
-8.12. Amiga OS
+8.2.11. AIX
-Ensure that you have the latest code version. Hence run:
+Login to Sourceforge's compilefarm via ssh:
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
+ ssh cf.sourceforge.net
+
-first. Run:
+Choose the right operating system. When logged in, make sure that you have
+freshly exported the right version into an empty directory. (See "Building and
+releasing packages" above). Then run:
+ cd current
autoheader && autoconf && ./configure
-Then do FIXME.
+Then run:
+
+ make aix-dist
+
+
+which creates a gzip'ed tar archive. Sadly, you cannot use make aix-upload on
+the Sourceforge machine (no ncftpput). You now have to manually upload the
+archive to Sourceforge's ftp server and release the file publicly. Use the
+release notes and Change Log from the source tarball package.
-------------------------------------------------------------------------------
-8.13. AIX
+8.3. After the Release
-Login to Sourceforge's compilefarm via ssh:
+When all (or: most of the) packages have been uploaded and made available, send
+an email to the announce mailing list, Subject: "Version X.Y.Z available for
+download". Be sure to include the download location, the release notes and the
+change log.
- ssh cf.sourceforge.net
-
+-------------------------------------------------------------------------------
-Choose the right operating system. If you have downloaded Privoxy before:
+9. Update the Webserver
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
-
+When updating the webserver, please follow these steps to make sure that no
+broken links, incosistent contents or permission problems will occur:
-If not, please checkout Privoxy via CVS first. Run:
+If you have changed anything in the documentation source SGML files, do:
- autoheader && autoconf && ./configure
+ make dok # (or make redkat-dok if make dok doesn't work for you)
-Then run:
+That will generate doc/webserver/user-manual, doc/webserver/developer-manual,
+doc/webserver/faq and doc/webserver/index.html automatically.
- make aix-dist
+If you changed the manual page source, generate doc/webserver/man-page/
+privoxy-man-page.html by running "make man". (This is a separate target due to
+dependencies on some obscure perl scripts. See comments in GNUmakefile.)
+
+If you want to add new files to the webserver, create them locally in the doc/
+webserver/* directory (or create new directories under doc/webserver).
+
+Next, commit any changes from the above steps to CVS. All set? Then do
+
+ make webserver
-which creates a gzip'ed tar archive. Sadly, you cannot use make aix-upload on
-the Sourceforge machine (no ncftpput). You now have to manually upload the
-archive to Sourceforge's ftp server and release the file publicly.
+This will do the upload to the webserver (www.privoxy.org) and ensure all files
+and directories there are group writable.
+
+Please do NOT use any other means of transferring files to the webserver to
+avoid permission problems.
-------------------------------------------------------------------------------
-9. Contacting the developers, Bug Reporting and Feature Requests
+10. Contacting the developers, Bug Reporting and Feature Requests
We value your feedback. However, to provide you with the best support, please
note:
-------------------------------------------------------------------------------
-10. Copyright and History
+11. Copyright and History
-10.1. Copyright
+11.1. Copyright
Privoxy is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
-------------------------------------------------------------------------------
-10.2. History
+11.2. History
Privoxy is evolved, and derived from, the Internet Junkbuster, with many
improvments and enhancements over the original.
-------------------------------------------------------------------------------
-11. See also
+12. See also
Other references and sites of interest to Privoxy users:
tastes. Privoxy has application for both stand-alone systems and multi-user
networks.
-Privoxy is based on the code of the Internet Junkbuster (tm). Junkbuster was
-originally written by Junkbusters Corporation, and was released as free
-open-source software under the GNU GPL. Stefan Waldherr made many improvements,
-and started the SourceForge project to continue development.
-
-Privoxy continues the Junkbuster tradition, but adds many refinements,
-enhancements and new features.
+Privoxy is based on Internet Junkbuster (tm).
You can find the latest version of the document at http://www.privoxy.org/faq/.
Please see the Contact section if you want to contact the developers.
1.4. What are some of the new features?
- * Integrated browser based configuration and control utility (http://p.p).
- Browser-based tracing of rule and filter effects.
+ * Integrated browser based configuration and control utility at http://
+ config.privoxy.org/ (shortcut: http://p.p/). Browser-based tracing of rule
+ and filter effects. Remote toggling.
* Blocking of annoying pop-up browser windows.
- * HTTP/1.1 compliant (most, but not all 1.1 features are supported).
+ * HTTP/1.1 compliant (but not all optional 1.1 features are supported).
* Support for Perl Compatible Regular Expressions in the configuration files,
and generally a more sophisticated and flexible configuration syntax over
* GIF de-animation.
* Web page content filtering (removes banners based on size, invisible
- "web-bugs", JavaScript, pop-ups, status bar abuse, etc.)
+ "web-bugs", JavaScript and HTML annoyances, pop-ups, etc.)
* Bypass many click-tracking scripts (avoids script redirection).
* Improved signal handling, and a true daemon mode (Unix).
* Builds from source on most UNIX-like systems. Packages available for: Linux
- (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11
- and AmigaOS.
+ (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11,
+ NetBSD and AmigaOS.
+
+ * Every feature now controllable on a per-site or per-location basis,
+ configuration more powerful and versatile over-all.
- * In addition, the configuration is much more powerful and versatile
- over-all.
+ * Many smaller new features added, limitations and bugs removed, and security
+ holes fixed.
-------------------------------------------------------------------------------
2.2. Which operating systems are supported?
At present, Privoxy is known to run on Win32, Mac OSX, OS/2, AmigaOS, Linux
-(RedHat, Suse, Debian), FreeBSD, and many flavors of Unix. There are source and
-binary releases for these available for download at http://sourceforge.net/
-project/showfiles.php?group_id=11118.
+(RedHat, Suse, Debian), FreeBSD, NetBSD, BeOS, and many flavors of Unix.
But any operating system that runs TCP/IP, can conceivably take advantage of
Privoxy in a networked situation where Privoxy would run as a server on a LAN
By: Privoxy Developers
-$Id: user-manual.sgml,v 1.75 2002/04/12 02:08:48 david__schmidt Exp $
+$Id: user-manual.sgml,v 1.91 2002/04/24 02:39:31 hal9 Exp $
-The user manual gives users information on how to install, configure and use
+The user manual gives users information on how to install, configure and use
Privoxy.
Privoxy is a web proxy with advanced filtering capabilities for protecting
tastes. Privoxy has application for both stand-alone systems and multi-user
networks.
-Privoxy is based on the code of the Internet Junkbuster (tm). Junkbuster was
-originally written by Junkbusters Corporation, and was released as free
-open-source software under the GNU GPL. Stefan Waldherr made many improvements,
-and started the SourceForge project to continue development.
-
-Privoxy continues the Junkbuster tradition, but adds many refinements,
-enhancements and new features.
+Privoxy is based on Internet Junkbuster (tm).
You can find the latest version of the user manual at http://www.privoxy.org/
user-manual/. Please see the Contact section on how to contact the developers.
3. Installation
- 3.1. Source
+ 3.1. Binary Packages
- 3.1.1. Red Hat
- 3.1.2. SuSE
- 3.1.3. OS/2
- 3.1.4. Windows
- 3.1.5. Other
+ 3.1.1. Red Hat and SuSE RPMs
+ 3.1.2. Debian
+ 3.1.3. Windows
+ 3.1.4. Solaris, NetBSD, FreeBSD, HP-UX
+ 3.1.5. OS/2
+ 3.1.6. Max OSX
+ 3.1.7. AmigaOS
+ 3.2. Building from Source
+
4. Quickstart to Using Privoxy
- 4.1. Command Line Options
+ 4.1. Note to Upgraders
+ 4.2. Starting Privoxy
+ 4.3. Command Line Options
5. Privoxy Configuration
5.2. Configuration Files Overview
5.3. The Main Configuration File
- 5.3.1. Defining Other Configuration Files
- 5.3.2. Other Configuration Options
- 5.3.3. Access Control List (ACL)
- 5.3.4. Forwarding
- 5.3.5. Windows GUI Options
+ 5.3.1. Configuration and Log File Locations
+ 5.3.2. Local Set-up Documentation
+ 5.3.3. Debugging
+ 5.3.4. Access Control and Security
+ 5.3.5. Forwarding
+ 5.3.6. Windows GUI Options
5.4. The Actions File
- 5.4.1. URL Domain and Path Syntax
- 5.4.2. Actions
- 5.4.3. Aliases
+ 5.4.1. Finding the Right Mix
+ 5.4.2. How to Edit
+ 5.4.3. How Actions are Applied to URLs
+ 5.4.4. Patterns
+ 5.4.5. Actions
+ 5.4.6. Aliases
5.5. The Filter File
5.6. Templates
9.2.1. Bookmarklets
- 9.3. Anatomy of an Action
+ 9.3. Chain of Events
+ 9.4. Anatomy of an Action
-------------------------------------------------------------------------------
1.1. New Features
-In addition to Internet Junkbuster's traditional feature of ad and banner
+In addition to Internet Junkbuster's traditional features of ad and banner
blocking and cookie management, Privoxy provides new features, some of them
currently under development:
- * Integrated browser based configuration and control utility (http://p.p).
- Browser-based tracing of rule and filter effects.
+ * Integrated browser based configuration and control utility at http://
+ config.privoxy.org/ (shortcut: http://p.p/). Browser-based tracing of rule
+ and filter effects. Remote toggling.
* Blocking of annoying pop-up browser windows.
- * HTTP/1.1 compliant (most, but not all 1.1 features are supported).
+ * HTTP/1.1 compliant (but not all optional 1.1 features are supported).
* Support for Perl Compatible Regular Expressions in the configuration files,
and generally a more sophisticated and flexible configuration syntax over
* GIF de-animation.
* Web page content filtering (removes banners based on size, invisible
- "web-bugs", JavaScript, pop-ups, status bar abuse, etc.)
+ "web-bugs", JavaScript and HTML annoyances, pop-ups, etc.)
* Bypass many click-tracking scripts (avoids script redirection).
* Improved signal handling, and a true daemon mode (Unix).
* Builds from source on most UNIX-like systems. Packages available for: Linux
- (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11
- and AmigaOS.
+ (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11,
+ NetBSD and AmigaOS.
- * In addition, the configuration is much more powerful and versatile
- over-all.
+ * Every feature now controllable on a per-site or per-location basis,
+ configuration more powerful and versatile over-all.
+
+ * Many smaller new features added, limitations and bugs removed, and security
+ holes fixed.
-------------------------------------------------------------------------------
3. Installation
-Privoxy is available as raw source code (tarball or via CVS), or pre-compiled
-binaries for various platforms. See the Privoxy Project Page for the most up to
-date release information. Privoxy is also available via CVS. This is the
-recommended approach at this time. But please be aware that CVS is constantly
-changing, and it may break in mysterious ways.
+Privoxy is available both in convenient pre-compiled packages for a wide range
+of operating systems, and as raw source code. For most users, we recommend
+using the packages, which can be downloaded from our Privoxy Project Page.
+
+If you like to live on the bleeding edge and are not afraid of using possibly
+unstable development versions, you can check out the up-to-the-minute version
+directly from the CVS repository or simply download the nightly CVS tarball.
At present, Privoxy is known to run on Win32, Mac OSX, OS/2, AmigaOS, Linux
-(RedHat, Suse, Debian), FreeBSD, and many flavors of Unix. There are source and
-binary releases for these available for download at http://sourceforge.net/
-project/showfiles.php?group_id=11118.
+(RedHat, Suse, Debian), FreeBSD, NetBSD, BeOS, and many flavors of Unix.
-------------------------------------------------------------------------------
-3.1. Source
+3.1. Binary Packages
-There are several ways to install Privoxy.
+Note: If you have a previous Junkbuster or Privoxy installation on your system,
+you will need to remove it. Some platforms do this for you as part of their
+installation procedure. (See below for your platform).
-To build Privoxy from source, autoconf and GNU make (gmake) are required.
-Source is available as gzipped tar archives. For this, first unpack the source:
+In any case be sure to backup your old configuration if it is valuable to you.
+See the note to upgraders.
- tar xzvf privoxy-2.9.14-beta-src* [.tgz or .tar.gz]
- cd privoxy-2.9.14-beta
-
+How to install the binary packages depends on your operating system:
-For retrieving the current CVS sources, you'll need the CVS package installed
-first. Note CVS source is development quality, and may not be stable, or well
-tested. To download CVS source:
+-------------------------------------------------------------------------------
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co current
- cd current
-
+3.1.1. Red Hat and SuSE RPMs
-This will create a directory named current/, which will contain the source
-tree.
+RPMs can be installed with rpm -Uvh privoxy-2.9.14-1.rpm, and will use /etc/
+privoxy for the location of configuration files.
-Then, in either case, to build from unpacked tarball or CVS source:
+Note that on Red Hat, Privoxy will not be automatically started on system boot.
+You will need to enable that using chkconfig, ntsysv, or similar method.
- autoheader
- autoconf
- ./configure (--help to see options)
- make (the make from gnu, gmake for *BSD)
- su
- make -n install (to see where all the files will go)
- make install (to really install)
-
+If you have problems with failed dependencies, try rebuilding the SRC RPM: rpm
+--rebuild privoxy-2.9.14-1.src.rpm;. This will use your locally installed
+libraries and RPM version.
-Redhat and SuSE src and binary RPMs can be built with "make redhat-dist" or "
-make suse-dist" from unpacked sources. You will need to run "autoconf;
-autoheader; ./configure" beforehand. *BSD will require gmake (from http://
-www.gnu.org).
+Also note that if you have a Junkbuster RPM installed on your system, you need
+to remove it first, because the packages conflict. Otherwise, RPM will try to
+remove Junkbuster automatically, before installing Privoxy.
-For Redhat and SuSE Linux RPM packages, see below.
+-------------------------------------------------------------------------------
+
+3.1.2. Debian
+
+FIXME.
-------------------------------------------------------------------------------
-3.1.1. Red Hat
+3.1.3. Windows
-To build Redhat RPM packages from source, install source as above. Then:
+Just double-click the installer, which will guide you through the installation
+process.
- autoheader
- autoconf
- ./configure
- make redhat-dist
-
+-------------------------------------------------------------------------------
+
+3.1.4. Solaris, NetBSD, FreeBSD, HP-UX
-This will create both binary and src RPMs in the usual places. Example:
+Create a new directory, cd to it, then unzip and untar the archive. For the
+most part, you'll have to figure out where things go. FIXME.
- /usr/src/redhat/RPMS/i686/privoxy-2.9.14-1.i686.rpm
+-------------------------------------------------------------------------------
- /usr/src/redhat/SRPMS/privoxy-2.9.14-1.src.rpm
+3.1.5. OS/2
-To install, of course:
+First, make sure that no previous installations of Junkbuster and / or Privoxy
+are left on your system. You can do this by
- rpm -Uvv /usr/src/redhat/RPMS/i686/privoxy-2.9.14-1.i686.rpm
-
+Then, just double-click the WarpIN self-installing archive, which will guide
+you through the installation process. A shadow of the Privoxy executable will
+be placed in your startup folder so it will start automatically whenever OS/2
+starts.
+
+The directory you choose to install Privoxy into will contain all of the
+configuration files.
+
+-------------------------------------------------------------------------------
+
+3.1.6. Max OSX
-This will place the Privoxy configuration files in /etc/privoxy/, and log files
-in /var/log/privoxy/. Run "chkconfig privoxy on" to have Privoxy start
-automatically during init.
+Unzip the downloaded package (you can either double-click on the file in the
+finder, or on the desktop if you downloaded it there). Then, double-click on
+the package installer icon and follow the installation process. Privoxy will be
+installed in the subdirectory /Applications/Privoxy.app. Privoxy will set
+itself up to start automatically on system bringup via /System/Library/
+StartupItems/Privoxy.
-------------------------------------------------------------------------------
-3.1.2. SuSE
+3.1.7. AmigaOS
-To build SuSE RPM packages, install source as above. Then:
+Copy and then unpack the lha archive to a suitable location. All necessary
+files will be installed into Privoxy directory, including all configuration and
+log files. To uninstall, just remove this directory.
- autoheader
- autoconf
- ./configure
- make suse-dist
-
+Start Privoxy (with RUN <>NIL:) in your startnet script (AmiTCP), in s:
+user-startup (RoadShow), as startup program in your startup script (Genesis),
+or as startup action (Miami and MiamiDx). Privoxy will automatically quit when
+you quit your TCP/IP stack (just ignore the harmless warning your TCP/IP stack
+may display that Privoxy is still running).
-This will create both binary and src RPMs in the usual places. Example:
+-------------------------------------------------------------------------------
- /usr/src/packages/RPMS/i686/privoxy-2.9.14-1.i686.rpm
+3.2. Building from Source
- /usr/src/packages/SRPMS/privoxy-2.9.14-1.src.rpm
+To build Privoxy from source, autoheader, autoconf, GNU make (gmake), and, of
+course, a C compiler are required.
-To install, of course:
+When building from a source tarball (either release version or nightly CVS
+tarball), first unpack the source:
- rpm -Uvv /usr/src/packages/RPMS/i686/privoxy-2.9.14-1.i686.rpm
+ tar xzvf privoxy-2.9.14-beta-src* [.tgz or .tar.gz]
+ cd privoxy-2.9.14-beta
-This will place the Privoxy configuration files in /etc/privoxy/, and log files
-in /var/log/privoxy/.
+For retrieving the current CVS sources, you'll need CVS installed. Note that
+sources from CVS are development quality, and may not be stable, or well
+tested. To download CVS source:
--------------------------------------------------------------------------------
+ cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co current
+ cd current
+
-3.1.3. OS/2
+This will create a directory named current/, which will contain the source
+tree.
-Privoxy is packaged in a WarpIN self- installing archive. The self-installing
-program will be named depending on the release version, something like:
-privoxyos2_setup_2.9.14.exe. In order to install it, simply run this executable
-or double-click on its icon and follow the WarpIN installation panels. A shadow
-of the Privoxy executable will be placed in your startup folder so it will
-start automatically whenever OS/2 starts.
+Then, in either case, to build from unpacked tarball or CVS source:
-The directory you choose to install Privoxy into will contain all of the
-configuration files.
+ autoheader
+ autoconf
+ ./configure # (--help to see options)
+ make # (the make from gnu, gmake for *BSD)
+ su
+ make -n install # (to see where all the files will go)
+ make install # (to really install)
+
--------------------------------------------------------------------------------
+If you have gnu make, you can have the first four steps automatically done for
+you by just typing
+
+ make
+
-3.1.4. Windows
+in the freshly downloaded or unpacked source directory.
-Click-click. (I need help on this. Not a clue here. Also for configuration
-section below. HB.)
+For more detailed instructions on how to build Redhat and SuSE RPMs, Windows
+self-extracting installers, building on platforms with special requirements
+etc, please consult the developer manual.
-------------------------------------------------------------------------------
-3.1.5. Other
+4. Quickstart to Using Privoxy
+
+4.1. Note to Upgraders
+
+There are very significant changes from older versions of Junkbuster to the
+current Privoxy. Configuration is substantially changed. Junkbuster 2.0.x and
+earlier configuration files will not migrate. The functionality of the old
+blockfile, cookiefile and imagelist, are now combined into the "actions file"
+(default.action for most installations).
+
+A "filter file" (typically default.filter) is new as of Privoxy 2.9.x, and
+provides some of the new sophistication (explained below). config is much the
+same as before.
-Some quick notes on other Operating Systems.
+If upgrading from a 2.0.x version, you will have to use the new config files,
+and possibly adapt any personal rules from your older files. When porting
+personal rules over from the old blockfile to the new actions file, please note
+that even the pattern syntax has changed. If upgrading from 2.9.x development
+versions, it is still recommended to use the new configuration files.
-For FreeBSD (and other *BSDs?), the build will require gmake instead of the
-included make. gmake is available from http://www.gnu.org. The rest should be
-the same as above for Linux/Unix.
+A quick list of things to be aware of before upgrading:
+ * The default listening port is now 8118 due to a conflict with another
+ service (NAS).
+
+ * Some installers may remove earlier versions completely. Save any important
+ configuration files!
+
+ * Privoxy is controllable with a web browser at the special URL: http://
+ config.privoxy.org/ (Shortcut: http://p.p/). Many aspects of configuration
+ can be done here, including temporarily disabling Privoxy.
+
+ * The primary configuration file for cookie management, ad and banner
+ blocking, and many other aspects of Privoxy configuration is
+ default.action. It is strongly recommended to become familiar with the new
+ actions concept below, before modifying this file.
+
+ * Some installers may not automatically start Privoxy after installation.
+
-------------------------------------------------------------------------------
-4. Quickstart to Using Privoxy
+4.2. Starting Privoxy
Before launching Privoxy for the first time, you will want to configure your
browser(s) to use Privoxy as a HTTP and HTTPS proxy. The default is localhost
-for the proxy address, and port 8118 (earlier versions used port 800). This is
-the one required configuration that must be done!
+for the proxy address, and port 8118 (earlier versions used port 8000). This is
+the one configuration step that must be done!
With Netscape (and Mozilla), this can be set under Edit -> Preferences ->
Advanced -> Proxies -> HTTP Proxy. For Internet Explorer: Tools -> Internet
support too.
After doing this, flush your browser's disk and memory caches to force a
-re-reading of all pages and get rid of any ads that may be cached. You are now
-ready to start enjoying the benefits of using Privoxy.
+re-reading of all pages and to get rid of any ads that may be cached. You are
+now ready to start enjoying the benefits of using Privoxy!
Privoxy is typically started by specifying the main configuration file to be
used on the command line. Example Unix startup command:
-An init script is provided for SuSE and Redhat.
+See below for other command line options.
-For for SuSE: /etc/rc.d/privoxy start
+An init script is provided for SuSE and Red Hat.
-For RedHat: /etc/rc.d/init.d/privoxy start
+For for SuSE: rcprivoxy start
+
+For Red Hat and Debian: /etc/rc.d/init.d/privoxy start
If no configuration file is specified on the command line, Privoxy will look
for a file named config in the current directory. Except on Win32 where it will
configuration file can be found, Privoxy will fail to start.
The included default configuration files should give a reasonable starting
-point, though may be somewhat aggressive in blocking junk. Most of the per site
-configuration is done in the "actions" files. These are where various cookie
-actions are defined, ad and banner blocking, and other aspects of Privoxy
-configuration. There are several such files included, with varying levels of
-aggressiveness.
+point. Most of the per site configuration is done in the "actions" files. These
+are where various cookie actions are defined, ad and banner blocking, and other
+aspects of Privoxy configuration. There are several such files included, with
+varying levels of aggressiveness.
You will probably want to keep an eye out for sites that require persistent
cookies, and add these to default.action as needed. By default, most of these
-will be accepted only during the current browser session, until you add them to
-the configuration. If you want the browser to handle this instead, you will
-need to edit default.action and disable this feature. If you use more than one
-browser, it would make more sense to let Privoxy handle this. In which case,
-the browser(s) should be set to accept all cookies.
-
-Privoxy is HTTP/1.1 compliant, but not all 1.1 features are as yet implemented.
-If browsers that support HTTP/1.1 (like Mozilla or recent versions of I.E.)
-experience problems, you might try to force HTTP/1.0 compatibility. For
-Mozilla, look under Edit -> Preferences -> Debug -> Networking. Or set the
-"+downgrade" config option in default.action.
+will be accepted only during the current browser session (aka "session
+cookies"), until you add them to the configuration. If you want the browser to
+handle this instead, you will need to edit default.action and disable this
+feature. If you use more than one browser, it would make more sense to let
+Privoxy handle this. In which case, the browser(s) should be set to accept all
+cookies.
+
+Another feature where you will probably want to define exceptions for trusted
+sites is the popup-killing (through the +popup and +filter{popups} actions),
+because your favorite shopping, banking, or leisure site may need popups.
+
+Privoxy is HTTP/1.1 compliant, but not all of the optional 1.1 features are as
+yet supported. In the unlikely event that you experience inexplicable problems
+with browsers that use HTTP/1.1 per default (like Mozilla or recent versions of
+I.E.), you might try to force HTTP/1.0 compatibility. For Mozilla, look under
+Edit -> Preferences -> Debug -> Networking. Alternatively, set the "+downgrade"
+config option in default.action which will downgrade your browser's HTTP
+requests from HTTP/1.1 to HTTP/1.0 before processing them.
After running Privoxy for a while, you can start to fine tune the configuration
to suit your personal, or site, preferences and requirements. There are many,
many aspects that can be customized. "Actions" (as specified in default.action)
-can be adjusted by pointing your browser to http://p.p/, and then follow the
-link to "edit the actions list". (This is an internal page and does not require
-Internet access.)
+can be adjusted by pointing your browser to http://config.privoxy.org/
+(shortcut: http://p.p/), and then follow the link to "edit the actions list".
+(This is an internal page and does not require Internet access.)
In fact, various aspects of Privoxy configuration can be viewed from this page,
including current configuration parameters, source code version numbers, the
browser's request headers, and "actions" that apply to a given URL. In addition
to the default.action file editor mentioned above, Privoxy can also be turned
-"on" and "off" from this page.
+"on" and "off" (toggled) from this page.
+
+If you encounter problems, try loading the page without Privoxy. If that helps,
+enter the URL where you have the problems into the browser based rule tracing
+utility. See which rules apply and why, and then try turning them off for that
+site one after the other, until the problem is gone. When you have found the
+culprit, you might want to turn the rest on again.
-If you encounter problems, please verify it is a Privoxy bug, by disabling
-Privoxy, and then trying the same page. Also, try another browser if possible
-to eliminate browser or site problems. Before reporting it as a bug, see if
-there is not a configuration option that is enabled that is causing the page
-not to load. You can then add an exception for that page or site. For instance,
-try adding it to the {fragile} section of default.action. This will turn off
-most actions for this site. For more on troubleshooting problem sites, see the
-Appendix. If a bug, please report it to the developers (see below).
+If the above paragraph sounds gibberish to you, you might want to read more
+about the actions concept or even dive deep into the Appendix on actions.
+
+If you can't get rid of the problem at all, think you've found a bug in
+Privoxy, want to propose a new feature or smarter rules, please see the chapter
+"Contacting the Developers, .." below.
-------------------------------------------------------------------------------
-4.1. Command Line Options
+4.3. Command Line Options
Privoxy may be invoked with the following command-line options:
* --version
- Print version info and exit, Unix only.
+ Print version info and exit. Unix only.
* --help
- Print a short usage info and exit, Unix only.
+ Print short usage info and exit. Unix only.
* --no-daemon
- Don't become a daemon, i.e. don't fork and become process group leader,
+ Don't become a daemon, i.e. don't fork and become process group leader, and
don't detach from controlling tty. Unix only.
* --pidfile FILE
- On startup, write the process ID to FILE. Delete the FILE on exit. Failiure
+ On startup, write the process ID to FILE. Delete the FILE on exit. Failure
to create or delete the FILE is non-fatal. If no FILE option is given, no
PID file will be used. Unix only.
If no configfile is included on the command line, Privoxy will look for a
file named "config" in the current directory (except on Win32 where it will
- look for "config.txt" instead). Specify full path to avoid confusion.
+ look for "config.txt" instead). Specify full path to avoid confusion. If no
+ config file is found, Privoxy will fail to start.
-------------------------------------------------------------------------------
5.1. Controlling Privoxy with Your Web Browser
-Privoxy can be reached by the special URL http://p.p/ (or alternately http://
-config.privoxy.org/), which is an internal page. You will see the following
-section:
+Privoxy's user interface can be reached through the special URL http://
+config.privoxy.org/ (shortcut: http://p.p/), which is a built-in page and works
+without Internet access. You will see the following section:
Please choose from the following options:
+ * Privoxy main page
* Show information about the current configuration
* Show the source code version numbers
- * Show the client's request headers.
+ * Show the request headers.
* Show which actions apply to a URL and why
* Toggle Privoxy on or off
* Edit the actions list
"actions list", which is where much of the ad, banner, cookie, and URL blocking
magic is configured as well as other advanced features of Privoxy. This is an
easy way to adjust various aspects of Privoxy configuration. The actions file,
-and other configuration files, are explained in detail below. Privoxy will
-automatically detect any changes to these files.
+and other configuration files, are explained in detail below.
"Toggle Privoxy On or Off" is handy for sites that might have problems with
-your current actions and filters, or just to test if a site misbehaves, whether
-it is Privoxy causing the problem or not. Privoxy continues to run as a proxy
-in this case, but all filtering is disabled.
+your current actions and filters. You can in fact use it as a test to see
+whether it is Privoxy causing the problem or not. Privoxy continues to run as a
+proxy in this case, but all filtering is disabled. There is even a toggle
+Bookmarklet offered, so that you can toggle Privoxy with one click from your
+browser.
-------------------------------------------------------------------------------
* The main configuration file is named config on Linux, Unix, BSD, OS/2, and
AmigaOS and config.txt on Windows.
- * The default.action file is used to define various "actions" relating to
- images, banners, pop-ups, access restrictions, banners and cookies. There
- is a CGI based editor for this file that can be accessed via http://p.p.
+ * default.action (the actions file) is used to define which of a set of
+ various "actions" relating to images, banners, pop-ups, access
+ restrictions, banners and cookies are to be applied, and where. There is a
+ web based editor for this file that can be accessed at http://
+ config.privoxy.org/edit-actions/ (Shortcut: http://p.p/edit-actions/).
(Other actions files are included as well with differing levels of
filtering and blocking, e.g. basic.action.)
- * The default.filter file can be used to re-write the raw page content,
- including viewable text as well as embedded HTML and JavaScript, and
- whatever else lurks on any given web page.
+ * default.filter (the filter file) can be used to re-write the raw page
+ content, including viewable text as well as embedded HTML and JavaScript,
+ and whatever else lurks on any given web page. The filtering jobs are only
+ pre-defined here; whether to apply them or not is up to the actions file.
+All files use the "#" character to denote a comment (the rest of the line will
+be ignored) and understand line continuation through placing a backslash ("\")
+as the very last character in a line. If the # is preceded by a backslash, it
+looses its special function. Placing a # in front of an otherwise valid
+configuration line to prevent it from being interpreted is called "commenting
+out" that line.
+
default.action and default.filter can use Perl style regular expressions for
-maximum flexibility. All files use the "#" character to denote a comment. Such
-lines are not processed by Privoxy. After making any changes, there is no need
-to restart Privoxy in order for the changes to take effect. Privoxy should
-detect such changes automatically.
+maximum flexibility.
+
+After making any changes, there is no need to restart Privoxy in order for the
+changes to take effect. Privoxy detects such changes automatically. Note,
+however, that it may take one or two additional requests for the change to take
+effect. When changing the listening address of Privoxy, these "wake up"
+requests must obviously be sent to the old listening address.
While under development, the configuration content is subject to change. The
below documentation may not be accurate by the time you read this. Also, what
followed by a list of values, all separated by whitespace (any number of spaces
or tabs). For example:
- blockfile blocklist.ini
+ confdir /etc/privoxy
-Indicates that the blockfile is named "blocklist.ini". (A default installation
-does not use this.)
-
-A "#" indicates a comment. Any part of a line following a "#" is ignored,
-except if the "#" is preceded by a "\".
+Assigns the value /etc/privoxy to the option confdir and thus indicates that
+the configuration directory is named "/etc/privoxy/".
-Thus, by placing a "#" at the start of an existing configuration line, you can
-make it a comment and it will be treated as if it weren't there. This is called
-"commenting out" an option and can be useful to turn off features: If you
-comment out the "logfile" line, Privoxy will not log to a file at all. Watch
-for the "default:" section in each explanation to see what happens if the
-option is left unset (or commented out).
+All options in the config file except for confdir and logdir are optional.
+Watch out in the below description for what happens if you leave them unset.
-Long lines can be continued on the next line by using a "\" as the very last
-character.
-
-There are various aspects of Privoxy behavior that can be tuned.
+The main config file controls all aspects of Privoxy's operation that are not
+location dependent (i.e. they apply universally, no matter where you may be
+surfing).
-------------------------------------------------------------------------------
-5.3.1. Defining Other Configuration Files
-
-Privoxy can use a number of other files to tell it what ads to block, what
-cookies to accept, and perform other functions. This section of the
-configuration file tells Privoxy where to find all those other files.
+5.3.1. Configuration and Log File Locations
-On Windows and AmigaOS, Privoxy looks for these files in the same directory as
-the executable. On Unix and OS/2, Privoxy looks for these files in the current
-working directory. In either case, an absolute path name can be used to avoid
-problems.
+Privoxy can (and normally does) use a number of other files for additional
+configuration and logging. This section of the configuration file tells Privoxy
+where to find those other files.
-When development goes modular and multi-user, the blocker, filter, and per-user
-config will be stored in subdirectories of "confdir". For now, only confdir/
-templates is used for storing HTML templates for CGI results.
+-------------------------------------------------------------------------------
-The location of the configuration files:
+5.3.1.1. confdir
- confdir /etc/privoxy # No trailing /, please.
+Specifies:
-
-The directory where all logging (i.e. logfile and jarfile) takes place. No
-trailing "/", please:
-
- logdir /var/log/privoxy
+ The directory where the other configuration files are located
-
-Note that all file specifications below are relative to the above two
-directories!
-
-The "default.action" file contains patterns to specify the actions to apply to
-requests for each site. Default: Cookies to and from all destinations are kept
-only during the current browser session (i.e. they are not saved to disk).
-Pop-ups are disabled for all sites. All sites are filtered through selected
-sections of "default.filter". No sites are blocked. Privoxy displays a
-checkboard type pattern for filtered ads and other images. The syntax of this
-file is explained in detail below. Other "actions" files are included, and you
-are free to use any of them. They have varying degrees of aggressiveness.
-
- actionsfile default.action
+Type of value:
-
-The "default.filter" file contains content modification rules that use "regular
-expressions". These rules permit powerful changes on the content of Web pages,
-e.g., you could disable your favorite JavaScript annoyances, re-write the
-actual displayed text, or just have some fun replacing "Microsoft" with
-"MicroSuck" wherever it appears on a Web page. Default: whatever the developers
-are playing with :-/
-
-Filtering requires buffering the page content, which may appear to slow down
-page rendering since nothing is displayed until all content has passed the
-filters. (It does not really take longer, but seems that way since the page is
-not incrementally displayed.) This effect will be more noticeable on slower
-connections.
-
- filterfile default.filter
+ Path name
-
-The logfile is where all logging and error messages are written. The logfile
-can be useful for tracking down a problem with Privoxy (e.g., it's not blocking
-an ad you think it should block) but in most cases you probably will never look
-at it.
-
-Your logfile will grow indefinitely, and you will probably want to periodically
-remove it. On Unix systems, you can do this with a cron job (see "man cron").
-For Redhat, a logrotate script has been included.
-
-On SuSE Linux systems, you can place a line like "/var/log/privoxy.* +1024k 644
-nobody.nogroup" in /etc/logfiles, with the effect that cron.daily will
-automatically archive, gzip, and empty the log, when it exceeds 1M size.
-
-Default: Log to the a file named logfile. Comment out to disable logging.
-
- logfile logfile
+Default value:
-
-The "jarfile" defines where Privoxy stores the cookies it intercepts. Note that
-if you use a "jarfile", it may grow quite large. Default: Don't store
-intercepted cookies.
-
- #jarfile jarfile
+ /etc/privoxy (Unix) or Privoxy installation dir (Windows)
-
-If you specify a "trustfile", Privoxy will only allow access to sites that are
-named in the trustfile. You can also mark sites as trusted referrers, with the
-effect that access to untrusted sites will be granted, if a link from a trusted
-referrer was used. The link target will then be added to the "trustfile". This
-is a very restrictive feature that typical users most probably want to leave
-disabled. Default: Disabled, don't use the trust mechanism.
-
- #trustfile trust
+Effect if unset:
-
-If you use the trust mechanism, it is a good idea to write up some on-line
-documentation about your blocking policy and to specify the URL(s) here. They
-will appear on the page that your users receive when they try to access
-untrusted content. Use multiple times for multiple URLs. Default: Don't display
-links on the "untrusted" info page.
-
- trust-info-url http://www.example.com/why_we_block.html
- trust-info-url http://www.example.com/what_we_allow.html
+ Mandatory
+
+Notes:
+
+ No trailing "/", please
+
+ When development goes modular and multi-user, the blocker, filter, and
+ per-user config will be stored in subdirectories of "confdir". For now, the
+ configuration directory structure is flat, except for confdir/templates,
+ where the HTML templates for CGI output reside (e.g. Privoxy's 404 error
+ page).
-
-------------------------------------------------------------------------------
-5.3.2. Other Configuration Options
-
-This part of the configuration file contains options that control how Privoxy
-operates.
-
-"Admin-address" should be set to the email address of the proxy administrator.
-It is used in many of the proxy-generated pages. Default: fill@me.in.please.
+5.3.1.2. logdir
- #admin-address fill@me.in.please
+Specifies:
+
+ The directory where all logging takes place (i.e. where logfile and jarfile
+ are located)
+
+Type of value:
+
+ Path name
+
+Default value:
+
+ /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
+
+Effect if unset:
+
+ Mandatory
+
+Notes:
+ No trailing "/", please
+
+-------------------------------------------------------------------------------
-"Proxy-info-url" can be set to a URL that contains more info about this Privoxy
-installation, it's configuration and policies. It is used in many of the
-proxy-generated pages and its use is highly recommended in multi-user
-installations, since your users will want to know why certain content is
-blocked or modified. Default: Don't show a link to on-line documentation.
+5.3.1.3. actionsfile
- proxy-info-url http://www.example.com/proxy.html
+Specifies:
+
+ The actions file to use
+
+Type of value:
+
+ File name, relative to confdir
+
+Default value:
+
+ default.action (Unix) or default.action.txt (Windows)
+
+Effect if unset:
+ No action is taken at all. Simple neutral proxying.
+
+Notes:
+
+ There is no point in using Privoxy without an actions file. There are three
+ different actions files included in the distribution, with varying degrees
+ of aggressiveness: default.action, intermediate.action and advanced.action.
+
+-------------------------------------------------------------------------------
-"Listen-address" specifies the address and port where Privoxy will listen for
-connections from your Web browser. The default is to listen on the localhost
-port 8118, and this is suitable for most users. (In your web browser, under
-proxy configuration, list the proxy server as "localhost" and the port as
-"8118").
+5.3.1.4. filterfile
-If you already have another service running on port 8118, or if you want to
-serve requests from other machines (e.g. on your local network) as well, you
-will need to override the default. The syntax is "listen-address
-[<ip-address>]:<port>". If you leave out the IP address, Privoxy will bind to
-all interfaces (addresses) on your machine and may become reachable from the
-Internet. In that case, consider using access control lists (acl's) (see
-"aclfile" above), or a firewall.
+Specifies:
+
+ The filter file to use
+
+Type of value:
+
+ File name, relative to confdir
+
+Default value:
+
+ default.filter (Unix) or default.filter.txt (Windows)
+
+Effect if unset:
+
+ No textual content filtering takes place, i.e. all +filter{name} actions in
+ the actions file are turned off
+
+Notes:
+
+ The "default.filter" file contains content modification rules that use
+ "regular expressions". These rules permit powerful changes on the content
+ of Web pages, e.g., you could disable your favorite JavaScript annoyances,
+ re-write the actual displayed text, or just have some fun replacing
+ "Microsoft" with "MicroSuck" wherever it appears on a Web page.
+
+-------------------------------------------------------------------------------
-For example, suppose you are running Privoxy on a machine which has the address
-192.168.0.1 on your local private network (192.168.0.0) and has another outside
-connection with a different address. You want it to serve requests from inside
-only:
+5.3.1.5. logfile
- listen-address 192.168.0.1:8118
+Specifies:
+
+ The log file to use
+
+Type of value:
+
+ File name, relative to logdir
+
+Default value:
+
+ logfile (Unix) or privoxy.log (Windows)
+
+Effect if unset:
+
+ No log file is used, all log messages go to the console (stderr).
+
+Notes:
+
+ The windows version will additionally log to the console.
+ The logfile is where all logging and error messages are written. The level
+ of detail and number of messages are set with the debug option (see below).
+ The logfile can be useful for tracking down a problem with Privoxy (e.g.,
+ it's not blocking an ad you think it should block) but in most cases you
+ probably will never look at it.
+
+ Your logfile will grow indefinitely, and you will probably want to
+ periodically remove it. On Unix systems, you can do this with a cron job
+ (see "man cron"). For Red Hat, a logrotate script has been included.
+
+ On SuSE Linux systems, you can place a line like "/var/log/privoxy.* +1024k
+ 644 nobody.nogroup" in /etc/logfiles, with the effect that cron.daily will
+ automatically archive, gzip, and empty the log, when it exceeds 1M size.
+
+-------------------------------------------------------------------------------
-If you want it to listen on all addresses (including the outside connection):
+5.3.1.6. jarfile
- listen-address :8118
+Specifies:
+ The file to store intercepted cookies in
+
+Type of value:
+
+ File name, relative to logdir
+
+Default value:
+
+ jarfile (Unix) or privoxy.jar (Windows)
+
+Effect if unset:
+
+ Intercepted cookies are not stored at all.
+
+Notes:
+
+ The jarfile may grow to ridiculous sizes over time.
+
+-------------------------------------------------------------------------------
-If you do this, consider using ACLs (see "aclfile" above). Note: you will need
-to point your browser(s) to the address and port that you have configured here.
-Default: localhost:8118 (127.0.0.1:8118).
-
-The debug option sets the level of debugging information to log in the logfile
-(and to the console in the Windows version). A debug level of 1 is informative
-because it will show you each request as it happens. Higher levels of debug are
-probably only of interest to developers.
+5.3.1.7. trustfile
- debug 1 # GPC = show each GET/POST/CONNECT request
- debug 2 # CONN = show each connection status
- debug 4 # IO = show I/O status
- debug 8 # HDR = show header parsing
- debug 16 # LOG = log all data into the logfile
- debug 32 # FRC = debug force feature
- debug 64 # REF = debug regular expression filter
- debug 128 # = debug fast redirects
- debug 256 # = debug GIF de-animation
- debug 512 # CLF = Common Log Format
- debug 1024 # = debug kill pop-ups
- debug 4096 # INFO = Startup banner and warnings.
- debug 8192 # ERROR = Non-fatal errors
-
+Specifies:
+
+ The trust file to use
+
+Type of value:
+
+ File name, relative to confdir
+
+Default value:
+
+ Unset (commented out). When activated: trust (Unix) or trust.txt (Windows)
+
+Effect if unset:
+
+ The whole trust mechanism is turned off.
+
+Notes:
+
+ The trust mechanism is an experimental feature for building white-lists and
+ should be used with care. It is NOT recommended for the casual user.
+
+ If you specify a trust file, Privoxy will only allow access to sites that
+ are named in the trustfile. You can also mark sites as trusted referrers
+ (with +), with the effect that access to untrusted sites will be granted,
+ if a link from a trusted referrer was used. The link target will then be
+ added to the "trustfile". Possible applications include limiting Internet
+ access for children.
+
+ If you use + operator in the trust file, it may grow considerably over
+ time.
+
+-------------------------------------------------------------------------------
-It is highly recommended that you enable ERROR reporting (debug 8192), at least
-until v3.0 is released.
+5.3.2. Local Set-up Documentation
-The reporting of FATAL errors (i.e. ones which crash Privoxy) is always on and
-cannot be disabled.
+If you intend to operate Privoxy for more users that just yourself, it might be
+a good idea to let them know how to reach you, what you block and why you do
+that, your policies etc.
-If you want to use CLF (Common Log Format), you should set "debug 512" ONLY, do
-not enable anything else.
+-------------------------------------------------------------------------------
-Multiple "debug" directives, are OK - they're logical-OR'd together.
+5.3.2.1. trust-info-url
- debug 15 # same as setting the first 4 listed above
+Specifies:
-
-Default:
-
- debug 1 # URLs
- debug 4096 # Info
- debug 8192 # Errors - *we highly recommended enabling this*
+ A URL to be displayed in the error page that users will see if access to an
+ untrusted page is denied.
-
-Privoxy normally uses "multi-threading", a software technique that permits it
-to handle many different requests simultaneously. In some cases you may wish to
-disable this -- particularly if you're trying to debug a problem. The
-"single-threaded" option forces Privoxy to handle requests sequentially.
-Default: Multi-threaded mode.
-
- #single-threaded
+Type of value:
-
-"toggle" allows you to temporarily disable all Privoxy's filtering. Just set
-"toggle 0".
-
-The Windows version of Privoxy puts an icon in the system tray, which also
-allows you to change this option. If you right-click on that icon (or select
-the "Options" menu), one choice is "Enable". Clicking on enable toggles Privoxy
-on and off. This is useful if you want to temporarily disable Privoxy, e.g., to
-access a site that requires cookies which you would otherwise have blocked.
-This can also be toggled via a web browser at the Privoxy internal address of
-http://p.p on any platform.
-
-"toggle 1" means Privoxy runs normally, "toggle 0" means that Privoxy becomes a
-non-anonymizing non-blocking proxy. Default: 1 (on).
-
- toggle 1
+ URL
-
-For content filtering, i.e. the "+filter" and "+deanimate-gif" actions, it is
-necessary that Privoxy buffers the entire document body. This can be
-potentially dangerous, since a server could just keep sending data indefinitely
-and wait for your RAM to exhaust. With nasty consequences.
-
-The buffer-limit option lets you set the maximum size in Kbytes that each
-buffer may use. When the documents buffer exceeds this size, it is flushed to
-the client unfiltered and no further attempt to filter the rest of it is made.
-Remember that there may multiple threads running, which might require
-increasing the "buffer-limit" Kbytes each, unless you have enabled
-"single-threaded" above.
-
- buffer-limit 4069
+Default value:
-
-To enable the web-based default.action file editor set enable-edit-actions to
-1, or 0 to disable. Note that you must have compiled Privoxy with support for
-this feature, otherwise this option has no effect. This internal page can be
-reached at http://p.p.
-
-Security note: If this is enabled, anyone who can use the proxy can edit the
-actions file, and their changes will affect all users. For shared proxies, you
-probably want to disable this. Default: enabled.
-
- enable-edit-actions 1
+ Two example URL are provided
-
-Allow Privoxy to be toggled on and off remotely, using your web browser. Set
-"enable-remote-toggle"to 1 to enable, and 0 to disable. Note that you must have
-compiled Privoxy with support for this feature, otherwise this option has no
-effect.
-
-Security note: If this is enabled, anyone who can use the proxy can toggle it
-on or off (see http://p.p), and their changes will affect all users. For shared
-proxies, you probably want to disable this. Default: enabled.
-
- enable-remote-toggle 1
+Effect if unset:
+
+ No links are displayed on the "untrusted" error page.
+
+Notes:
+
+ The value of this option only matters if the experimental trust mechanism
+ has been activated. (See trustfile above.)
+
+ If you use the trust mechanism, it is a good idea to write up some on-line
+ documentation about your trust policy and to specify the URL(s) here. Use
+ multiple times for multiple URLs.
+
+ The URL(s) should be added to the trustfile as well, so users don't end up
+ locked out from the information on why they were locked out in the first
+ place!
-
-------------------------------------------------------------------------------
-5.3.3. Access Control List (ACL)
+5.3.2.2. admin-address
-Access controls are included at the request of some ISPs and systems
-administrators, and are not usually needed by individual users. Please note the
-warnings in the FAQ that this proxy is not intended to be a substitute for a
-firewall or to encourage anyone to defer addressing basic security weaknesses.
+Specifies:
+
+ An email address to reach the proxy administrator.
+
+Type of value:
+
+ Email address
+
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ No email address is displayed on error pages and the CGI user interface.
+
+Notes:
+
+ If both admin-address and proxy-info-url are unset, the whole "Local
+ Privoxy Support" box on all generated pages will not be shown.
+
+-------------------------------------------------------------------------------
-If no access settings are specified, the proxy talks to anyone that connects.
-If any access settings file are specified, then the proxy talks only to IP
-addresses permitted somewhere in this file and not denied later in this file.
+5.3.2.3. proxy-info-url
-Summary -- if using an ACL:
+Specifies:
+
+ A URL to documentation about the local Privoxy setup, configuration or
+ policies.
+
+Type of value:
+
+ URL
+
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ No link to local documentation is displayed on error pages and the CGI user
+ interface.
+
+Notes:
+
+ If both admin-address and proxy-info-url are unset, the whole "Local
+ Privoxy Support" box on all generated pages will not be shown.
+
+ This URL shouldn't be blocked ;-)
+
+-------------------------------------------------------------------------------
-Client must have permission to receive service.
+5.3.3. Debugging
-LAST match in ACL wins.
+These options are mainly useful when tracing a problem. Note that you might
+also want to invoke Privoxy with the --no-daemon command line option when
+debugging.
-Default behavior is to deny service.
+-------------------------------------------------------------------------------
-The syntax for an entry in the Access Control List is:
+5.3.3.1. debug
- ACTION SRC_ADDR[/SRC_MASKLEN] [ DST_ADDR[/DST_MASKLEN] ]
+Specifies:
+ Key values that determine what information gets logged.
+
+Type of value:
+
+ Integer values
+
+Default value:
+
+ 12289 (i.e.: URLs plus informational and warning messages)
+
+Effect if unset:
+
+ Nothing gets logged.
+
+Notes:
+
+ The available debug levels are:
+
+ debug 1 # show each GET/POST/CONNECT request
+ debug 2 # show each connection status
+ debug 4 # show I/O status
+ debug 8 # show header parsing
+ debug 16 # log all data into the logfile
+ debug 32 # debug force feature
+ debug 64 # debug regular expression filter
+ debug 128 # debug fast redirects
+ debug 256 # debug GIF de-animation
+ debug 512 # Common Log Format
+ debug 1024 # debug kill pop-ups
+ debug 4096 # Startup banner and warnings.
+ debug 8192 # Non-fatal errors
+
+
+ To select multiple debug levels, you can either add them or use multiple
+ debug lines.
+
+ A debug level of 1 is informative because it will show you each request as
+ it happens. 1, 4096 and 8192 are highly recommended so that you will notice
+ when things go wrong. The other levels are probably only of interest if you
+ are hunting down a specific problem. They can produce a hell of an output
+ (especially 16).
+
+ The reporting of fatal errors (i.e. ones which crash Privoxy) is always on
+ and cannot be disabled.
+
+ If you want to use CLF (Common Log Format), you should set "debug 512" ONLY
+ and not enable anything else.
+
+-------------------------------------------------------------------------------
-Where the individual fields are:
-
- ACTION = "permit-access" or "deny-access"
-
- SRC_ADDR = client hostname or dotted IP address
- SRC_MASKLEN = number of bits in the subnet mask for the source
+5.3.3.2. single-threaded
- DST_ADDR = server or forwarder hostname or dotted IP address
- DST_MASKLEN = number of bits in the subnet mask for the target
+Specifies:
+
+ Whether to run only one server thread
+
+Type of value:
+
+ None
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ Multi-threaded (or, where unavailable: forked) operation, i.e. the ability
+ to serve multiple requests simultaneously.
+
+Notes:
+
+ This option is only there for debug purposes and you should never need to
+ use it. It will drastically reduce performance.
+
+-------------------------------------------------------------------------------
-The field separator (FS) is whitespace (space or tab).
+5.3.4. Access Control and Security
-IMPORTANT NOTE: If Privoxy is using a forwarder (see below) or a gateway for a
-particular destination URL, the DST_ADDR that is examined is the address of the
-forwarder or the gateway and NOT the address of the ultimate target. This is
-necessary because it may be impossible for the local Privoxy to determine the
-address of the ultimate target (that's often what gateways are used for).
+This section of the config file controls the security-relevant aspects of
+Privoxy's configuration.
-Here are a few examples to show how the ACL features work:
+-------------------------------------------------------------------------------
-"localhost" is OK -- no DST_ADDR implies that ALL destination addresses are OK:
+5.3.4.1. listen-address
- permit-access localhost
+Specifies:
-
-A silly example to illustrate permitting any host on the class-C subnet with
-Privoxy to go anywhere:
-
- permit-access www.privoxy.com/24
+ The IP address and TCP port on which Privoxy will listen for client
+ requests.
-
-Except deny one particular IP address from using it at all:
-
- deny-access ident.privoxy.com
+Type of value:
-
-You can also specify an explicit network address and subnet mask. Explicit
-addresses do not have to be resolved to be used.
-
- permit-access 207.153.200.0/24
+ [IP-Address]:Port
-
-A subnet mask of 0 matches anything, so the next line permits everyone.
-
- permit-access 0.0.0.0/0
+Default value:
+ localhost:8118
+
+Effect if unset:
+
+ Bind to localhost (127.0.0.1), port 8118. This is suitable and recommended
+ for home users who run Privoxy on the same machine as their browser.
+
+Notes:
+
+ You will need to configure your browser(s) to this proxy address and port.
+
+ If you already have another service running on port 8118, or if you want to
+ serve requests from other machines (e.g. on your local network) as well,
+ you will need to override the default.
+
+ If you leave out the IP address, Privoxy will bind to all interfaces
+ (addresses) on your machine and may become reachable from the Internet. In
+ that case, consider using access control lists (acl's) (see "ACLs" below),
+ or a firewall.
+
+Example:
+
+ Suppose you are running Privoxy on a machine which has the address
+ 192.168.0.1 on your local private network (192.168.0.0) and has another
+ outside connection with a different address. You want it to serve requests
+ from inside only:
+
+ listen-address 192.168.0.1:8118
+
+
+-------------------------------------------------------------------------------
+
+5.3.4.2. toggle
+
+Specifies:
+
+ Initial state of "toggle" status
+
+Type of value:
+
+ 1 or 0
+
+Default value:
+
+ 1
+
+Effect if unset:
+
+ Act as if toggled on
+
+Notes:
+
+ If set to 0, Privoxy will start in "toggled off" mode, i.e. behave like a
+ normal, content-neutral proxy. See enable-remote-toggle below. This is not
+ really useful anymore, since toggling is much easier via the web interface
+ then via editing the conf file.
+
+ The windows version will only display the toggle icon in the system tray if
+ this option is present.
+
+-------------------------------------------------------------------------------
+
+5.3.4.3. enable-remote-toggle
+
+Specifies:
+
+ Whether or not the web-based toggle feature may be used
+
+Type of value:
+
+ 0 or 1
+
+Default value:
+
+ 1
+
+Effect if unset:
+
+ The web-based toggle feature is disabled.
+
+Notes:
+
+ When toggled off, Privoxy acts like a normal, content-neutral proxy, i.e.
+ it acts as if none of the actions applied to any URL.
+
+ For the time being, access to the toggle feature can not be controlled
+ separately by "ACLs" or HTTP authentication, so that everybody who can
+ access Privoxy (see "ACLs" and listen-address above) can toggle it for all
+ users. So this option is not recommended for multi-user environments with
+ untrusted users.
+
+ Note that you must have compiled Privoxy with support for this feature,
+ otherwise this option has no effect.
+
+-------------------------------------------------------------------------------
+
+5.3.4.4. enable-edit-actions
+
+Specifies:
+
+ Whether or not the web-based actions file editor may be used
+
+Type of value:
+
+ 0 or 1
+
+Default value:
+
+ 1
+
+Effect if unset:
+
+ The web-based actions file editor is disabled.
+
+Notes:
+
+ For the time being, access to the editor can not be controlled separately
+ by "ACLs" or HTTP authentication, so that everybody who can access Privoxy
+ (see "ACLs" and listen-address above) can modify its configuration for all
+ users. So this option is not recommended for multi-user environments with
+ untrusted users.
+
+ Note that you must have compiled Privoxy with support for this feature,
+ otherwise this option has no effect.
+
+-------------------------------------------------------------------------------
+
+5.3.4.5. ACLs: permit-access and deny-access
+
+Specifies:
+
+ Who can access what.
+
+Type of value:
+
+ src_addr[/src_masklen] [dst_addr[/dst_masklen]]
+
+ Where src_addr and dst_addr are IP addresses in dotted decimal notation or
+ valid DNS names, and src_masklen and dst_masklen are subnet masks in CIDR
+ notation, i.e. integer values from 2 to 30 representing the length (in
+ bits) of the network address. The masks and the whole destination part are
+ optional.
+
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ Don't restrict access further than implied by listen-address
+
+Notes:
+
+ Access controls are included at the request of ISPs and systems
+ administrators, and are not usually needed by individual users. For a
+ typical home user, it will normally suffice to ensure that Privoxy only
+ listens on the localhost or internal (home) network address by means of the
+ listen-address option.
+
+ Please see the warnings in the FAQ that this proxy is not intended to be a
+ substitute for a firewall or to encourage anyone to defer addressing basic
+ security weaknesses.
+
+ Multiple ACL lines are OK. If any ACLs are specified, then the Privoxy
+ talks only to IP addresses that match at least one permit-access line and
+ don't match any subsequent deny-access line. In other words, the last match
+ wins, with the default being deny-access.
+
+ If Privoxy is using a forwarder (see forward below) for a particular
+ destination URL, the dst_addr that is examined is the address of the
+ forwarder and NOT the address of the ultimate target. This is necessary
+ because it may be impossible for the local Privoxy to determine the IP
+ address of the ultimate target (that's often what gateways are used for).
+
+ You should prefer using IP addresses over DNS names, because the address
+ lookups take time. All DNS names must resolve! You can not use domain
+ patterns like "*.org" or partial domain names. If a DNS name resolves to
+ multiple IP addresses, only the first one is used.
+
+ Denying access to particular sites by ACL may have undesired side effects
+ if the site in question is hosted on a machine which also hosts other
+ sites.
+
+Examples:
+
+ Explicitly define the default behavior if no ACL and listen-address are
+ set: "localhost" is OK. The absence of a dst_addr implies that all
+ destination addresses are OK:
+
+ permit-access localhost
+
+
+ Allow any host on the same class C subnet as www.privoxy.org access to
+ nothing but www.example.com:
+
+ permit-access www.privoxy.org/24 www.example.com/32
+
+
+ Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere,
+ with the exception that 192.168.45.73 may not access
+ www.dirty-stuff.example.com:
+
+ permit-access 192.168.45.64/26
+ deny-access 192.168.45.73 www.dirty-stuff.example.com
+
+
+-------------------------------------------------------------------------------
+
+5.3.4.6. buffer-limit
+
+Specifies:
+
+ Maximum size of the buffer for content filtering.
+
+Type of value:
+
+ Size in Kbytes
+
+Default value:
+
+ 4096
+
+Effect if unset:
+
+ Use a 4MB (4096 KB) limit.
+
+Notes:
+
+ For content filtering, i.e. the +filter and +deanimate-gif actions, it is
+ necessary that Privoxy buffers the entire document body. This can be
+ potentially dangerous, since a server could just keep sending data
+ indefinitely and wait for your RAM to exhaust -- with nasty consequences.
+ Hence this option.
+
+ When a document buffer size reaches the buffer-limit, it is flushed to the
+ client unfiltered and no further attempt to filter the rest of the document
+ is made. Remember that there may be multiple threads running, which might
+ require up to buffer-limit Kbytes each, unless you have enabled
+ "single-threaded" above.
+
+-------------------------------------------------------------------------------
+
+5.3.5. Forwarding
+
+This feature allows routing of HTTP requests through a chain of multiple
+proxies. It can be used to better protect privacy and confidentiality when
+accessing specific domains by routing requests to those domains through an
+anonymous public proxy (see e.g. http://www.multiproxy.org/anon_list.htm) Or to
+use a caching proxy to speed up browsing. Or chaining to a parent proxy may be
+necessary because the machine that Privoxy runs on has no direct Internet
+access.
+
+Also specified here are SOCKS proxies. Privoxy supports the SOCKS 4 and SOCKS
+4A protocols.
+
+-------------------------------------------------------------------------------
+
+5.3.5.1. forward
+
+Specifies:
+
+ To which parent HTTP proxy specific requests should be routed.
+
+Type of value:
+
+ target_domain[:port] http_parent[/port]
+
+ Where target_domain is a domain name pattern (see the chapter on domain
+ matching in the actions file), http_parent is the address of the parent
+ HTTP proxy as an IP addresses in dotted decimal notation or as a valid DNS
+ name (or "." to denote "no forwarding", and the optional port parameters
+ are TCP ports, i.e. integer values from 1 to 64535
+
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ Don't use parent HTTP proxies.
+
+Notes:
+
+ If http_parent is ".", then requests are not forwarded to another HTTP
+ proxy but are made directly to the web servers.
+
+ Multiple lines are OK, they are checked in sequence, and the last match
+ wins.
+
+Examples:
+
+ Everything goes to an example anonymizing proxy, except SSL on port 443
+ (which it doesn't handle):
+
+ forward .* anon-proxy.example.org:8080
+ forward :443 .
+
+
+ Everything goes to our example ISP's caching proxy, except for requests to
+ that ISP's sites:
+
+ forward .*. caching-proxy.example-isp.net:8000
+ forward .example-isp.net .
+
+
+-------------------------------------------------------------------------------
+
+5.3.5.2. forward-socks4 and forward-socks4a
+
+Specifies:
+
+ Through which SOCKS proxy (and to which parent HTTP proxy) specific
+ requests should be routed.
+
+Type of value:
+
+ target_domain[:port] socks_proxy[/port] http_parent[/port]
+
+ Where target_domain is a domain name pattern (see the chapter on domain
+ matching in the actions file), http_parent and socks_proxy are IP addresses
+ in dotted decimal notation or valid DNS names (http_parent may be "." to
+ denote "no HTTP forwarding"), and the optional port parameters are TCP
+ ports, i.e. integer values from 1 to 64535
+
+Default value:
+
+ Unset
+
+Effect if unset:
+
+ Don't use SOCKS proxies.
+
+Notes:
+
+ Multiple lines are OK, they are checked in sequence, and the last match
+ wins.
+
+ The difference between forward-socks4 and forward-socks4a is that in the
+ SOCKS 4A protocol, the DNS resolution of the target hostname happens on the
+ SOCKS server, while in SOCKS 4 it happens locally.
+
+ If http_parent is ".", then requests are not forwarded to another HTTP
+ proxy but are made (HTTP-wise) directly to the web servers, albeit through
+ a SOCKS proxy.
+
+Examples:
+
+ From the company example.com, direct connections are made to all "internal"
+ domains, but everything outbound goes through their ISP's proxy by way of
+ example.com's corporate SOCKS 4A gateway to the Internet.
+
+ forward-socks4a .*. socks-gw.example.com:1080 www-cache.example-isp.net:8080
+ forward .example.com .
+
+
+ A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent
+ looks like this:
+
+ forward-socks4 .*. socks-gw.example.com:1080 .
+
+
+-------------------------------------------------------------------------------
+
+5.3.5.3. Advanced Forwarding Examples
+
+If you have links to multiple ISPs that provide various special content only to
+their subscribers, you can configure multiple Privoxies which have connections
+to the respective ISPs to act as forwarders to each other, so that your users
+can see the internal content of all ISPs.
+
+Assume that host-a has a PPP connection to isp-a.net. And host-b has a PPP
+connection to isp-b.net. Both run Privoxy. Their forwarding configuration can
+look like this:
+
+host-a:
+
+ forward .*. .
+ forward .isp-b.net host-b:8118
+
+
+host-b:
+
+ forward .*. .
+ forward .isp-a.net host-a:8118
+
+
+Now, your users can set their browser's proxy to use either host-a or host-b
+and be able to browse the internal content of both isp-a and isp-b.
+
+If you intend to chain Privoxy and squid locally, then chain as browser ->
+squid -> privoxy is the recommended way.
+
+Assuming that Privoxy and squid run on the same box, your squid configuration
+could then look like this:
+
+ # Define Privoxy as parent proxy (without ICP)
+ cache_peer 127.0.0.1 parent 8118 7 no-query
+
+ # Define ACL for protocol FTP
+ acl ftp proto FTP
+
+ # Do not forward FTP requests to Privoxy
+ always_direct allow ftp
+
+ # Forward all the rest to Privoxy
+ never_direct allow all
+
+
+You would then need to change your browser's proxy settings to squid's address
+and port. Squid normally uses port 3128. If unsure consult http_port in
+squid.conf.
+
+-------------------------------------------------------------------------------
+
+5.3.6. Windows GUI Options
+
+Privoxy has a number of options specific to the Windows GUI interface:
+
+If "activity-animation" is set to 1, the Privoxy icon will animate when
+"Privoxy" is active. To turn off, set to 0.
+
+ activity-animation 1
+
+
+If "log-messages" is set to 1, Privoxy will log messages to the console window:
+
+ log-messages 1
+
+
+If "log-buffer-size" is set to 1, the size of the log buffer, i.e. the amount
+of memory used for the log messages displayed in the console window, will be
+limited to "log-max-lines" (see below).
+
+Warning: Setting this to 0 will result in the buffer to grow infinitely and eat
+up all your memory!
+
+ log-buffer-size 1
+
+
+log-max-lines is the maximum number of lines held in the log buffer. See above.
+
+ log-max-lines 200
+
+
+If "log-highlight-messages" is set to 1, Privoxy will highlight portions of the
+log messages with a bold-faced font:
+
+ log-highlight-messages 1
+
+
+The font used in the console window:
+
+ log-font-name Comic Sans MS
+
+
+Font size used in the console window:
+
+ log-font-size 8
+
+
+"show-on-task-bar" controls whether or not Privoxy will appear as a button on
+the Task bar when minimized:
+
+ show-on-task-bar 0
+
+
+If "close-button-minimizes" is set to 1, the Windows close button will minimize
+Privoxy instead of closing the program (close with the exit option on the File
+menu).
+
+ close-button-minimizes 1
+
+
+The "hide-console" option is specific to the MS-Win console version of Privoxy.
+If this option is used, Privoxy will disconnect from and hide the command
+console.
+
+ #hide-console
+
+
+-------------------------------------------------------------------------------
+
+5.4. The Actions File
+
+The actions file (default.action, formerly: actionsfile or ijb.action) is used
+to define what actions Privoxy takes for which URLs, and thus determines how ad
+images, cookies and various other aspects of HTTP content and transactions are
+handled on which sites (or even parts thereof).
+
+Anything you want can blocked, including ads, banners, or just some obnoxious
+URL that you would rather not see. Cookies can be accepted or rejected, or
+accepted only during the current browser session (i.e. not written to disk),
+content can be modified, JavaScripts tamed, user-tracking fooled, and much
+more. See below for a complete list of available actions.
+
+An actions file typically has sections. At the top, "aliases" are defined
+(discussed below), then the default set of rules which will apply universally
+to all sites and pages. And then below that is generally a lengthy set of
+exceptions to the defined universal policies.
+
+-------------------------------------------------------------------------------
+
+5.4.1. Finding the Right Mix
+
+Note that some actions like cookie suppression or script disabling may render
+some sites unusable, which rely on these techniques to work properly. Finding
+the right mix of actions is not easy and certainly a matter of personal taste.
+In general, it can be said that the more "aggressive" your default settings (in
+the top section of the actions file) are, the more exceptions for "trusted"
+sites you will have to make later. If, for example, you want to kill popup
+windows per default, you'll have to make exceptions from that rule for sites
+that you regularly use and that require popups for actually useful content,
+like maybe your bank, favorite shop, or newspaper.
+
+We have tried to provide you with reasonable rules to start from in the
+distribution actions file. But there is no general rule of thumb on these
+things. There just are too many variables, and sites are constantly changing.
+Sooner or later you will want to change the rules (and read this chapter).
+
+-------------------------------------------------------------------------------
+
+5.4.2. How to Edit
+
+The easiest way to edit the "actions" file is with a browser by using our
+browser-based editor, which is available at http://config.privoxy.org/
+edit-actions.
+
+If you prefer plain text editing to GUIs, you can of course also directly edit
+the default.action file.
+
+-------------------------------------------------------------------------------
+
+5.4.3. How Actions are Applied to URLs
+
+The actions file is divided into sections. There are special sections, like the
+"alias" sections which will be discussed later. For now let's concentrate on
+regular sections: They have a heading line (often split up to multiple lines
+for readability) which consist of a list of actions, separated by whitespace
+and enclosed in curly braces. Below that, there is a list of URL patterns, each
+on a separate line.
+
+To determine which actions apply to a request, the URL of the request is
+compared to all patterns in this file. Every time it matches, the list of
+applicable actions for the URL is incrementally updated, using the heading of
+the section in which the pattern is located. If multiple matches for the same
+URL set the same action differently, the last match wins.
+
+You can trace this process by visiting http://config.privoxy.org/show-url-info.
+
+More detail on this is provided in the Appendix, Anatomy of an Action.
+
+-------------------------------------------------------------------------------
+
+5.4.4. Patterns
+
+Generally, a pattern has the form <domain>/<path>, where both the <domain> and
+<path> are optional. (This is why the pattern / matches all URLs).
+
+www.example.com/
+
+ is a domain-only pattern and will match any request to www.example.com,
+ regardless of which document on that server is requested.
+
+www.example.com
+
+ means exactly the same. For domain-only patterns, the trailing / may be
+ omitted.
+
+www.example.com/index.html
+
+ matches only the single document /index.html on www.example.com.
+
+/index.html
+
+ matches the document /index.html, regardless of the domain, i.e. on any web
+ server.
+
+index.html
+
+ matches nothing, since it would be interpreted as a domain name and there
+ is no top-level domain called .html.
+
+-------------------------------------------------------------------------------
+
+5.4.4.1. The Domain Pattern
+
+The matching of the domain part offers some flexible options: if the domain
+starts or ends with a dot, it becomes unanchored at that end. For example:
+
+.example.com
+
+ matches any domain that ENDS in .example.com
+
+www.
+
+ matches any domain that STARTS with www.
+
+.example.
+
+ matches any domain that CONTAINS .example. (Correctly speaking: It matches
+ any FQDN that contains example as a domain.)
+
+Additionally, there are wild-cards that you can use in the domain names
+themselves. They work pretty similar to shell wild-cards: "*" stands for zero
+or more arbitrary characters, "?" stands for any single character, you can
+define character classes in square brackets and all of that can be freely
+mixed:
+
+ad*.example.com
+
+ matches "adserver.example.com", "ads.example.com", etc but not
+ "sfads.example.com"
+
+*ad*.example.com
+
+ matches all of the above, and then some.
+
+.?pix.com
+
+ matches www.ipix.com, pictures.epix.com, a.b.c.d.e.upix.com etc.
+
+www[1-9a-ez].example.c*
+
+ matches www1.example.com, www4.example.cc, wwwd.example.cy,
+ wwwz.example.com etc., but not wwww.example.com.
+
+-------------------------------------------------------------------------------
+
+5.4.4.2. The Path Pattern
+
+Privoxy uses Perl compatible regular expressions (through the PCRE library) for
+matching the path.
-Note, you cannot say:
+There is an Appendix with a brief quick-start into regular expressions, and
+full (very technical) documentation on PCRE regex syntax is available on-line
+at http://www.pcre.org/man.txt. You might also find the Perl man page on
+regular expressions (man perlre) useful, which is available on-line at http://
+www.perldoc.com/perl5.6/pod/perlre.html.
- permit-access .org
+Note that the path pattern is automatically left-anchored at the "/", i.e. it
+matches as if it would start with a "^".
+
+Please also note that matching in the path is case INSENSITIVE by default, but
+you can switch to case sensitive at any point in the pattern by using the "(?
+-i)" switch: www.example.com/(?-i)PaTtErN.* will match only documents whose
+path starts with PaTtErN in exactly this capitalization.
+
+-------------------------------------------------------------------------------
+
+5.4.5. Actions
+
+Actions are enabled if preceded with a "+", and disabled if preceded with a
+"-". So a "+action" means "do that action", e.g. "+block" means please "block
+the following URLs and/or patterns". All actions are disabled by default, until
+they are explicitly enabled somewhere in an actions file.
+
+Actions are invoked by enclosing the action name in curly braces (e.g.
+{+some_action}), followed by a list of URLs (or patterns that match URLs) to
+which the action applies. There are three classes of actions:
+
+ * Boolean, i.e the action can only be "on" or "off". Examples:
+
+ {+name} # enable this action
+ {-name} # disable this action
+
+
+ * Parameterized, e.g. "+/-hide-user-agent{ Mozilla 1.0 }", where some value
+ is required in order to enable this type of action. Examples:
+
+ {+name{param}} # enable action and set parameter to "param"
+ {-name} # disable action ("parameter") can be omitted
+
+ * Multi-value, e.g. "{+/-add-header{Name: value}}" ot "{+/-wafer{name=value}}
+ "), where some value needs to be defined in addition to simply enabling the
+ actino. Examples:
+
+ {+name{param=value}} # enable action and set "param" to "value"
+ {-name{param=value}} # remove the parameter "param" completely
+ {-name} # disable this action totally and remove param too
+
+
+If nothing is specified in this file, no "actions" are taken. So in this case
+Privoxy would just be a normal, non-blocking, non-anonymizing proxy. You must
+specifically enable the privacy and blocking features you need (although the
+provided default default.action file will give a good starting point).
+
+Later defined actions always over-ride earlier ones. So exceptions to any rules
+you make, should come in the latter part of the file. For multi-valued actions,
+the actions are applied in the order they are specified.
+
+The list of valid Privoxy "actions" are:
-to allow all *.org domains. Every IP address listed must resolve fully.
+-------------------------------------------------------------------------------
-An ISP may want to provide a Privoxy that is accessible by "the world" and yet
-restrict use of some of their private content to hosts on its internal network
-(i.e. its own subscribers). Say, for instance the ISP owns the Class-B IP
-address block 123.124.0.0 (a 16 bit netmask). This is how they could do it:
+5.4.5.1. +add-header{Name: value}
- permit-access 0.0.0.0/0 0.0.0.0/0 # other clients can go anywhere
- # with the following exceptions:
-
- deny-access 0.0.0.0/0 123.124.0.0/16 # block all external requests for
- # sites on the ISP's network
+Type:
+
+ Multi-value.
+
+Typical uses:
+
+ Send a user defined HTTP header to the web server.
+
+Possible values:
+
+ Any value is possible. Validity of the defined HTTP headers is not checked.
+
+Example usage:
+
+ {+add-header{X-User-Tracking: sucks}}
+ .example.com
+
+
+Notes:
+
+ This action may be specified multiple times, in order to define multiple
+ headers. This is rarely needed for the typical user. If you don't know what
+ "HTTP headers" are, you definitely don't need to worry about this one.
+
+-------------------------------------------------------------------------------
+
+5.4.5.2. +block
+
+Type:
+
+ Boolean.
+
+Typical uses:
+
+ Used to block a URL from reaching your browser. The URL may be anything,
+ but is typically used to block ads or other obnoxious content.
+
+Possible values:
+
+ N/A
+
+Example usage:
+
+ {+block}
+ .example.com
+ .ads.r.us
+
+
+Notes:
+
+ Privoxy will display its special "BLOCKED" page if a URL matches one of the
+ blocked patterns. If there is sufficient space, a large red banner will
+ appear with a friendly message about why the page was blocked, and a way to
+ go there anyway. If there is insufficient space a smaller blocked page will
+ appear without the red banner. One exception is if the URL matches both
+ "+block" and "+image", then it can be handled by "+image-blocker" (see
+ below).
+
+ The "+filter" action can also perform some of the same functionality as
+ "+block", but by virtue of very different programming techniques, and is
+ typically used for different reasons.
+
+-------------------------------------------------------------------------------
+
+5.4.5.3. +deanimate-gifs
+
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ To stop those annoying, distracting animated GIF images.
+
+Possible values:
+
+ "last" or "first"
+
+Example usage:
+
+ {+deanimate-gifs{last}}
+ .example.com
+
+
+Notes:
+
+ De-animate all animated GIF images, i.e. reduce them to their last frame.
+ This will also shrink the images considerably (in bytes, not pixels!). If
+ the option "first" is given, the first frame of the animation is used as
+ the replacement. If "last" is given, the last frame of the animation is
+ used instead, which probably makes more sense for most banner animations,
+ but also has the risk of not showing the entire last frame (if it is only a
+ delta to an earlier frame).
+
+-------------------------------------------------------------------------------
+
+5.4.5.4. +downgrade
+
+Type:
+
+ Boolean.
+
+Typical uses:
+
+ "+downgrade" will downgrade HTTP/1.1 client requests to HTTP/1.0 and
+ downgrade the responses as well.
+
+Possible values:
+
+ N/A
+
+Example usage:
+
+ {+downgrade}
+ .example.com
+
+
+Notes:
+
+ Use this action for servers that use HTTP/1.1 protocol features that
+ Privoxy doesn't handle well yet. HTTP/1.1 is only partially implemented.
+ Default is not to downgrade requests. This is an infrequently needed
+ action, and is used to help with problem sites only.
+
+-------------------------------------------------------------------------------
+
+5.4.5.5. +fast-redirects
+
+Type:
+
+ Boolean.
+
+Typical uses:
+
+ The "+fast-redirects" action enables interception of "redirect" requests
+ from one server to another, which are used to track users.Privoxy can cut
+ off all but the last valid URL in redirect request and send a local
+ redirect back to your browser without contacting the intermediate site(s).
+
+Possible values:
+
+ N/A
+
+Example usage:
+
+ {+fast-redirects}
+ .example.com
+
+
+Notes:
+
+ Many sites, like yahoo.com, don't just link to other sites. Instead, they
+ will link to some script on their own server, giving the destination as a
+ parameter, which will then redirect you to the final target. URLs resulting
+ from this scheme typically look like: http://some.place/some_script?http://
+ some.where-else.
+
+ Sometimes, there are even multiple consecutive redirects encoded in the
+ URL. These redirections via scripts make your web browsing more traceable,
+ since the server from which you follow such a link can see where you go to.
+ Apart from that, valuable bandwidth and time is wasted, while your browser
+ ask the server for one redirect after the other. Plus, it feeds the
+ advertisers.
+
+ This is a normally on feature, and often requires exceptions for sites that
+ are sensitive to defeating this mechanism.
+
+-------------------------------------------------------------------------------
+
+5.4.5.6. +filter
+
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ Apply page filtering as defined by named sections of the default.filter
+ file to the specified site(s). "Filtering" can be any modification of the
+ raw page content, including re-writing or deletion of content.
+
+Possible values:
+
+ "+filter" must include the name of one of the section identifiers from
+ default.filter (or whatever filterfile is specified in config).
+
+Example usage (from the current default.filter):
+
+ +filter{html-annoyances}: Get rid of particularly annoying HTML abuse.
+
+ +filter{js-annoyances}: Get rid of particularly annoying JavaScript abuse
+
+ +filter{content-cookies}: Kill cookies that come in the HTML or JS content
+
+ +filter{popups}: Kill all popups in JS and HTML
+
+ +filter{frameset-borders}: Give frames a border and make them resizable
+
+ +filter{webbugs}: Squish WebBugs (1x1 invisible GIFs used for user
+ tracking)
+
+ +filter{refresh-tags}: Kill automatic refresh tags (for dial-on-demand
+ setups)
+
+ +filter{fun}: Text replacements for subversive browsing fun!
+
+ +filter{nimda}: Remove Nimda (virus) code.
+
+ +filter{banners-by-size}: Kill banners by size (very efficient!)
+
+ +filter{shockwave-flash}: Kill embedded Shockwave Flash objects
+
+ +filter{crude-parental}: Kill all web pages that contain the words "sex" or
+ "warez"
+
+Notes:
+
+ This is potentially a very powerful feature! And requires a knowledge of
+ regular expressions if you want to "roll your own". Filtering operates on a
+ line by line basis.
+
+ Filtering requires buffering the page content, which may appear to slow
+ down page rendering since nothing is displayed until all content has passed
+ the filters. (It does not really take longer, but seems that way since the
+ page is not incrementally displayed.) This effect will be more noticeable
+ on slower connections.
+
+ Filtering can achieve some of the effects as the "+block" action, i.e. it
+ can be used to block ads and banners. In the overall scheme of things,
+ filtering is one of the last things "Privoxy" does with a web page. So
+ other actions are applied first.
+
+-------------------------------------------------------------------------------
- permit 0.0.0.0/0 www.my_isp.com # except for the ISP's main
- # web site
+5.4.5.7. +hide-forwarded
- permit 123.124.0.0/16 0.0.0.0/0 # the ISP's clients can go
- # anywhere
+Type:
+
+ Boolean.
+
+Typical uses:
+
+ Block any existing X-Forwarded-for HTTP header, and do not add a new one.
+
+Possible values:
+
+ N/A
+
+Example usage:
+
+ {+hide-forwarded}
+ .example.com
+
+
+Notes:
+
+ It is fairly safe to leave this on. It does not seem to break many sites.
+
+-------------------------------------------------------------------------------
+
+5.4.5.8. +hide-from
+
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ To block the browser from sending your email address in a "From:" header.
+
+Possible values:
+
+ Keyword: "block", or any user defined value.
+
+Example usage:
+
+ {+hide-from{block}}
+ .example.com
+
+
+Notes:
+
+ The keyword "block" will completely remove the header. Alternately, you can
+ specify any value you prefer to send to the web server.
+
+-------------------------------------------------------------------------------
+
+5.4.5.9. +hide-referer
+
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ Don't send the "Referer:" (sic) HTTP header to the web site. Or,
+ alternately send a forged header instead.
+
+Possible values:
+ Prevent the header from being sent with the keyword, "block". Or, "forge" a
+ URL to one from the same server as the request. Or, set to user defined
+ value of your choice.
+
+Example usage:
+
+ {+hide-referer{forge}}
+ .example.com
+
+
+Notes:
+
+ "forge" is the preferred option here, since some servers will not send
+ images back otherwise.
+
+ "+hide-referrer" is an alternate spelling of "+hide-referer". It has the
+ exact same parameters, and can be freely mixed with, "+hide-referer".
+ ("referrer" is the correct English spelling, however the HTTP specification
+ has a bug - it requires it to be spelled as "referer".)
+
+-------------------------------------------------------------------------------
-Note that if some hostnames are listed with multiple IP addresses, the primary
-value returned by DNS (via gethostbyname()) is used. Default: Anyone can access
-the proxy.
+5.4.5.10. +hide-user-agent
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ To change the "User-Agent:" header so web servers can't tell your browser
+ type. Who's business is it anyway?
+
+Possible values:
+
+ Any user defined string.
+
+Example usage:
+
+ {+hide-user-agent{Netscape 6.1 (X11; I; Linux 2.4.18 i686)}}
+ .msn.com
+
+
+Notes:
+
+ Warning! This breaks many web sites that depend on this in order to
+ determine how the target browser will respond to various requests. Use with
+ caution.
+
-------------------------------------------------------------------------------
-5.3.4. Forwarding
+5.4.5.11. +image
-This feature allows chaining of HTTP requests via multiple proxies. It can be
-used to better protect privacy and confidentiality when accessing specific
-domains by routing requests to those domains to a special purpose filtering
-proxy such as lpwa.com. Or to use a caching proxy to speed up browsing.
+Type:
+
+ Boolean.
+
+Typical uses:
+
+ To define what Privoxy should treat automatically as an image.
+
+Possible values:
+
+ N/A
+
+Example usage:
+
+ {+image}
+ /.*\.(gif|jpg|jpeg|png|bmp|ico)
+
+
+Notes:
+
+ This only has meaning if the URL (or pattern) also is "+block"ed, in which
+ case a "blocked" image can be sent rather than a HTML page. (See
+ "+image-blocker{}" below for the control over what is actually sent.)
+
+ There is little reason to change the default definition for this.
+
+-------------------------------------------------------------------------------
-It can also be used in an environment with multiple networks to route requests
-via multiple gateways allowing transparent access to multiple networks without
-having to modify browser configurations.
+5.4.5.12. +image-blocker
-Also specified here are SOCKS proxies. Privoxy SOCKS 4 and SOCKS 4A. The
-difference is that SOCKS 4A will resolve the target hostname using DNS on the
-SOCKS server, not our local DNS client.
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ Decide what to do with URLs that end up tagged with both "{+block}" and "
+ {+image}", e.g an advertisement.
+
+Possible values:
+
+ There are four available options: "-image-blocker" will send a HTML
+ "blocked" page, usually resulting in a "broken image" icon. "+image-blocker
+ {blank}" will send a 1x1 transparent GIF image. "+image-blocker{pattern}"
+ will send a checkerboard type pattern (the default). And finally,
+ "+image-blocker{http://xyz.com}" will send a HTTP temporary redirect to the
+ specified image. This has the advantage of the icon being being cached by
+ the browser, which will speed up the display.
+
+Example usage:
+
+ {+image-blocker{blank}}
+ .example.com
+
+
+Notes:
+
+ If you want invisible ads, they need to be both defined as images and
+ blocked. And then, "image-blocker" should be set to "blank" for
+ invisibility. Note you cannot treat HTML pages as images in most cases. For
+ instance, frames require an HTML page to display. So a frame that is an ad,
+ cannot be treated as an image. Forcing an "image" in this situation just
+ will not work.
+
+-------------------------------------------------------------------------------
-The syntax of each line is:
+5.4.5.13. +limit-connect
- forward target_domain[:port] http_proxy_host[:port]
- forward-socks4 target_domain[:port] socks_proxy_host[:port] http_proxy_host[:
-port]
- forward-socks4a target_domain[:port] socks_proxy_host[:port] http_proxy_host[:
-port]
+Type:
+
+ Parameterized.
+
+Typical uses:
+
+ By default, Privoxy only allows HTTP CONNECT requests to port 443 (the
+ standard, secure HTTPS port). Use "+limit-connect" to disable this
+ altogether, or to allow more ports.
+
+Possible values:
+
+ Any valid port number, or port number range.
+
+Example usages:
+
+ +limit-connect{443} #
+ This is the default and need not be specified.
+ +limit-connect{80,443} # Ports 80 and 443 are OK.
+ +limit-connect{-3, 7, 20-100, 500-} #
+ Port less than 3, 7, 20 to 100 and above 500 are OK.
+
+
+Notes:
+
+ The CONNECT methods exists in HTTP to allow access to secure websites
+ (https:// URLs) through proxies. It works very simply: the proxy connects
+ to the server on the specified port, and then short-circuits its
+ connections to the client and to the remote proxy. This can be a big
+ security hole, since CONNECT-enabled proxies can be abused as TCP relays
+ very easily.
+
+ If you want to allow CONNECT for more ports than this, or want to forbid
+ CONNECT altogether, you can specify a comma separated list of ports and
+ port ranges (the latter using dashes, with the minimum defaulting to 0 and
+ max to 65K).
-
-If http_proxy_host is ".", then requests are not forwarded to a HTTP proxy but
-are made directly to the web servers.
-
-Lines are checked in sequence, and the last match wins.
-
-There is an implicit line equivalent to the following, which specifies that
-anything not finding a match on the list is to go out without forwarding or
-gateway protocol, like so:
-
- forward .* . # implicit
+ If you don't know what any of this means, there probably is no reason to
+ change this one.
+-------------------------------------------------------------------------------
-In the following common configuration, everything goes to Lucent's LPWA, except
-SSL on port 443 (which it doesn't handle):
+5.4.5.14. +no-compression
- forward .* lpwa.com:8000
- forward :443 .
+Type:
-
-Some users have reported difficulties related to LPWA's use of "." as the last
-element of the domain, and have said that this can be fixed with this:
-
- forward lpwa. lpwa.com:8000
+ Boolean.
-
-(NOTE: the syntax for specifying target_domain has changed since the previous
-paragraph was written -- it will not work now. More information is welcome.)
-
-In this fictitious example, everything goes via an ISP's caching proxy, except
-requests to that ISP:
-
- forward .* caching.myisp.net:8000
- forward myisp.net .
+Typical uses:
-
-For the @home network, we're told the forwarding configuration is this:
-
- forward .* proxy:8080
+ Prevent the specified websites from compressing HTTP data.
-
-Also, we're told they insist on getting cookies and JavaScript, so you should
-allow cookies from home.com. We consider JavaScript a potential security risk.
-Java need not be enabled.
-
-In this example direct connections are made to all "internal" domains, but
-everything else goes through Lucent's LPWA by way of the company's SOCKS
-gateway to the Internet.
-
- forward-socks4 .* lpwa.com:8000 firewall.my_company.com:1080
- forward my_company.com .
+Possible values:
-
-This is how you could set up a site that always uses SOCKS but no forwarders:
-
- forward-socks4a .* . firewall.my_company.com:1080
+ N/A
-
-An advanced example for network administrators:
-
-If you have links to multiple ISPs that provide various special content to
-their subscribers, you can configure forwarding to pass requests to the
-specific host that's connected to that ISP so that everybody can see all of the
-content on all of the ISPs.
-
-This is a bit tricky, but here's an example:
-
-host-a has a PPP connection to isp-a.com. And host-b has a PPP connection to
-isp-b.com. host-a can run a Privoxy proxy with forwarding like this:
-
- forward .* .
- forward isp-b.com host-b:8118
+Example usage:
-
-host-b can run a Privoxy proxy with forwarding like this:
-
- forward .* .
- forward isp-a.com host-a:8118
+ {+no-compression}
+ .example.com
+
-
-Now, anyone on the Internet (including users on host-a and host-b) can set
-their browser's proxy to either host-a or host-b and be able to browse the
-content on isp-a or isp-b.
-
-Here's another practical example, for University of Kent at Canterbury students
-with a network connection in their room, who need to use the University's Squid
-web cache.
-
- forward *. ssbcache.ukc.ac.uk:3128 # Use the proxy, except for:
- forward .ukc.ac.uk . # Anything on the same domain as us
- forward * . # Host with no domain specified
- forward 129.12.*.* . # A dotted IP on our /16 network.
- forward 127.*.*.* . # Loopback address
- forward localhost.localdomain . # Loopback address
- forward www.ukc.mirror.ac.uk . # Specific host
+Notes:
-
-If you intend to chain Privoxy and squid locally, then chain as browser ->
-squid -> privoxy is the recommended way.
-
-Your squid configuration could then look like this (assuming that the IP
-address of the box is 192.168.0.1 ):
-
- # Define Privoxy as parent cache
-
- cache_peer 192.168.0.1 parent 8118 0 no-query
-
- # don't listen to the whole world
- http_port 192.168.0.1:3128
-
- # define the local lan
- acl mylocallan src 192.168.0.1-192.168.0.5/255.255.255.255
-
- # grant access for http to local lan
- http_access allow mylocallan
-
- # Define ACL for protocol FTP
- acl FTP proto FTP
-
- # Do not forward ACL FTP to privoxy
- always_direct allow FTP
-
- # Do not forward ACL CONNECT (https) to privoxy
- always_direct allow CONNECT
-
- # Forward the rest to privoxy
- never_direct allow all
+ Some websites do this, which can be a problem for Privoxy, since "+filter",
+ "+no-popup" and "+gif-deanimate" will not work on compressed data. This
+ will slow down connections to those websites, though. Default typically is
+ to turn "no-compression" on.
-
-------------------------------------------------------------------------------
-5.3.5. Windows GUI Options
-
-Privoxy has a number of options specific to the Windows GUI interface:
-
-If "activity-animation" is set to 1, the Privoxy icon will animate when
-"Privoxy" is active. To turn off, set to 0.
+5.4.5.15. +no-cookies-keep
- activity-animation 1
+Type:
-
-If "log-messages" is set to 1, Privoxy will log messages to the console window:
-
- log-messages 1
+ Boolean.
-
-If "log-buffer-size" is set to 1, the size of the log buffer, i.e. the amount
-of memory used for the log messages displayed in the console window, will be
-limited to "log-max-lines" (see below).
-
-Warning: Setting this to 0 will result in the buffer to grow infinitely and eat
-up all your memory!
-
- log-buffer-size 1
+Typical uses:
-
-log-max-lines is the maximum number of lines held in the log buffer. See above.
-
- log-max-lines 200
+ Allow cookies for the current browser session only.
-
-If "log-highlight-messages" is set to 1, Privoxy will highlight portions of the
-log messages with a bold-faced font:
-
- log-highlight-messages 1
+Possible values:
-
-The font used in the console window:
-
- log-font-name Comic Sans MS
+ N/A
-
-Font size used in the console window:
-
- log-font-size 8
+Example usage:
-
-"show-on-task-bar" controls whether or not Privoxy will appear as a button on
-the Task bar when minimized:
-
- show-on-task-bar 0
+ {+no-cookies-keep}
+ .example.com
+
-
-If "close-button-minimizes" is set to 1, the Windows close button will minimize
-Privoxy instead of closing the program (close with the exit option on the File
-menu).
-
- close-button-minimizes 1
+Notes:
-
-The "hide-console" option is specific to the MS-Win console version of Privoxy.
-If this option is used, Privoxy will disconnect from and hide the command
-console.
-
- #hide-console
+ If websites set cookies, "no-cookies-keep" will make sure they are erased
+ when you exit and restart your web browser. This makes profiling cookies
+ useless, but won't break sites which require cookies so that you can log in
+ for transactions. This is generally turned on for all sites. Sometimes
+ referred to as "session cookies".
-
--------------------------------------------------------------------------------
-
-5.4. The Actions File
-
-The "default.action" file (formerly actionsfile or ijb.action) is used to
-define what actions Privoxy takes, and thus determines how ad images, cookies
-and various other aspects of HTTP content and transactions are handled. These
-can be accepted or rejected for all sites, or just those sites you choose. See
-below for a complete list of actions.
-
-Anything you want can blocked, including ads, banners, or just some obnoxious
-URL that you would rather not see. Cookies can be accepted or rejected, or
-accepted only during the current browser session (i.e. not written to disk).
-Changes to default.action should be immediately visible to Privoxy without the
-need to restart.
-
-Note that some sites may misbehave, or possibly not work at all with some
-actions. This may require some tinkering with the rules to get the most mileage
-of Privoxy's features, and still be able to see and enjoy just what you want
-to. There is no general rule of thumb on these things. There just are too many
-variables, and sites are always changing.
-
-The easiest way to edit the "actions" file is with a browser by loading http://
-p.p/, and then select "Edit Actions List". A text editor can also be used.
-
-To determine which actions apply to a request, the URL of the request is
-compared to all patterns in this file. Every time it matches, the list of
-applicable actions for the URL is incrementally updated. You can trace this
-process by visiting http://p.p/show-url-info.
-
-There are four types of lines in this file: comments (begin with a "#"
-character), actions, aliases and patterns, all of which are explained below, as
-well as the configuration file syntax that Privoxy understands.
-
--------------------------------------------------------------------------------
-
-5.4.1. URL Domain and Path Syntax
-
-Generally, a pattern has the form <domain>/<path>, where both the <domain> and
-<path> part are optional. If you only specify a domain part, the "/" can be
-left out:
-
-www.example.com - is a domain only pattern and will match any request to
-"www.example.com".
-
-www.example.com/ - means exactly the same.
-
-www.example.com/index.html - matches only the single document "/index.html" on
-"www.example.com".
-
-/index.html - matches the document "/index.html", regardless of the domain. So
-would match any page named "index.html" on any site.
-
-index.html - matches nothing, since it would be interpreted as a domain name
-and there is no top-level domain called ".html".
-
-The matching of the domain part offers some flexible options: if the domain
-starts or ends with a dot, it becomes unanchored at that end. For example:
-
-.example.com - matches any domain or sub-domain that ENDS in ".example.com".
-
-www. - matches any domain that STARTS with "www".
-
-Additionally, there are wild-cards that you can use in the domain names
-themselves. They work pretty similar to shell wild-cards: "*" stands for zero
-or more arbitrary characters, "?" stands for any single character. And you can
-define character classes in square brackets and they can be freely mixed:
-
-ad*.example.com - matches "adserver.example.com", "ads.example.com", etc but
-not "sfads.example.com".
-
-*ad*.example.com - matches all of the above, and then some.
-
-.?pix.com - matches "www.ipix.com", "pictures.epix.com", "a.b.c.d.e.upix.com",
-etc.
-
-www[1-9a-ez].example.com - matches "www1.example.com", "www4.example.com",
-"wwwd.example.com", "wwwz.example.com", etc., but not "wwww.example.com".
-
-If Privoxy was compiled with "pcre" support (the default), Perl compatible
-regular expressions can be used. These are more flexible and powerful than
-other types of "regular expressions". See the pcre/docs/ directory or "man
-perlre" (also available on http://www.perldoc.com/perl5.6/pod/perlre.html) for
-details. A brief discussion of regular expressions is in the Appendix. For
-instance:
-
-/.*/advert[0-9]+\.jpe?g - would match a URL from any domain, with any path that
-includes "advert" followed immediately by one or more digits, then a "." and
-ending in either "jpeg" or "jpg". So we match "example.com/ads/advert2.jpg",
-and "www.example.com/ads/banners/advert39.jpeg", but not "www.example.com/ads/
-banners/advert39.gif" (no gifs in the example pattern).
-
-Please note that matching in the path is case INSENSITIVE by default, but you
-can switch to case sensitive at any point in the pattern by using the "(?-i)"
-switch:
-
-www.example.com/(?-i)PaTtErN.* - will match only documents whose path starts
-with "PaTtErN" in exactly this capitalization.
-
-------------------------------------------------------------------------------
-5.4.2. Actions
-
-Actions are enabled if preceded with a "+", and disabled if preceded with a
-"-". Actions are invoked by enclosing the action name in curly braces (e.g.
-{+some_action}), followed by a list of URLs to which the action applies. There
-are three classes of actions:
+5.4.5.16. +no-cookies-read
- * Boolean (e.g. "+/-block"):
-
- {+name} # enable this action
- {-name} # disable this action
-
-
- * parameterized (e.g. "+/-hide-user-agent"):
+Type:
- {+name{param}} # enable action and set parameter to "param"
- {-name} # disable action
-
+ Boolean.
- * Multi-value (e.g. "{+/-add-header{Name: value}}", "{+/-wafer{name=value}}
- "):
+Typical uses:
- {+name{param}} # enable action and add parameter "param"
- {-name{param}} # remove the parameter "param"
- {-name} # disable this action totally
-
+ Explicitly prevent the web server from reading any cookies on your system.
-If nothing is specified in this file, no "actions" are taken. So in this case
-Privoxy would just be a normal, non-blocking, non-anonymizing proxy. You must
-specifically enable the privacy and blocking features you need (although the
-provided default default.action file will give a good starting point).
-
-Later defined actions always over-ride earlier ones. So exceptions to any rules
-you make, should come in the latter part of the file. For multi-valued actions,
-the actions are applied in the order they are specified.
-
-The list of valid Privoxy "actions" are:
-
- * Add the specified HTTP header, which is not checked for validity. You may
- specify this many times to specify many different headers:
+Possible values:
- +add-header{Name: value}
-
+ N/A
- * Block this URL totally. In a default installation, a "blocked" URL will
- result in bright red banner that says "BLOCKED", with a reason why it is
- being blocked, and an option to see it anyway. The page displayed for this
- is the "blocked" template file.
+Example usage:
- +block
-
+ {+no-cookies-read}
+ .example.com
+
- * De-animate all animated GIF images, i.e. reduce them to their last frame.
- This will also shrink the images considerably (in bytes, not pixels!). If
- the option "first" is given, the first frame of the animation is used as
- the replacement. If "last" is given, the last frame of the animation is
- used instead, which probably makes more sense for most banner animations,
- but also has the risk of not showing the entire last frame (if it is only a
- delta to an earlier frame).
+Notes:
- +deanimate-gifs{last}
- +deanimate-gifs{first}
-
+ Often used in conjunction with "+no-cookies-set" to disable persistant
+ cookies completely.
- * "+downgrade" will downgrade HTTP/1.1 client requests to HTTP/1.0 and
- downgrade the responses as well. Use this action for servers that use HTTP/
- 1.1 protocol features that Privoxy doesn't handle well yet. HTTP/1.1 is
- only partially implemented. Default is not to downgrade requests.
+-------------------------------------------------------------------------------
+
+5.4.5.17. +no-cookies-set
+
+Type:
- +downgrade
-
+ Boolean.
- * Many sites, like yahoo.com, don't just link to other sites. Instead, they
- will link to some script on their own server, giving the destination as a
- parameter, which will then redirect you to the final target. URLs resulting
- from this scheme typically look like: http://some.place/some_script?http://
- some.where-else.
+Typical uses:
- Sometimes, there are even multiple consecutive redirects encoded in the
- URL. These redirections via scripts make your web browsing more traceable,
- since the server from which you follow such a link can see where you go to.
- Apart from that, valuable bandwidth and time is wasted, while your browser
- ask the server for one redirect after the other. Plus, it feeds the
- advertisers.
+ Explicitly block the web server from sending cookies to your system.
- The "+fast-redirects" option enables interception of these types of
- requests by Privoxy, who will cut off all but the last valid URL in the
- request and send a local redirect back to your browser without contacting
- the intermediate site(s).
+Possible values:
- +fast-redirects
-
+ N/A
- * Apply the filters in the section_header section of the default.filter file
- to the site(s). default.filter sections are grouped according to like
- functionality. Filters can be used to re-write any of the raw page content.
- This is a potentially a very powerful feature!
+Example usage:
- +filter{section_header}
-
+ {+no-cookies-set}
+ .example.com
+
- Filter sections that are pre-defined in the supplied default.filter
- include:
+Notes:
- html-annoyances: Get rid of particularly annoying HTML abuse.
-
- js-annoyances: Get rid of particularly annoying JavaScript abuse
-
- no-poups: Kill all popups in JS and HTML
-
- frameset-borders: Give frames a border
-
- webbugs: Squish WebBugs (1x1 invisible GIFs used for user tracking)
-
- no-refresh: Automatic refresh sucks on auto-dialup lines
-
- fun: Text replacements for subversive browsing fun!
-
- nimda: Remove (virus) Nimda code.
-
- banners-by-size: Kill banners by size
-
- crude-parental: Kill all web pages that contain the words "sex" or
- "warez"
-
- * Block any existing X-Forwarded-for header, and do not add a new one:
+ Often used in conjunction with "+no-cookies-read" to disable persistant
+ cookies completely.
- +hide-forwarded
-
+-------------------------------------------------------------------------------
+
+5.4.5.18. +no-popup
+
+Type:
- * If the browser sends a "From:" header containing your e-mail address, this
- either completely removes the header ("block"), or changes it to the
- specified e-mail address.
+ Boolean.
- +hide-from{block}
- +hide-from{spam@sittingduck.xqq}
-
+Typical uses:
- * Don't send the "Referer:" (sic) header to the web site. You can block it,
- forge a URL to the same server as the request (which is preferred because
- some sites will not send images otherwise) or set it to a constant, user
- defined string of your choice.
+ Stop those annoying JavaScript pop-up windows!
- +hide-referer{block}
- +hide-referer{forge}
- +hide-referer{http://nowhere.com}
-
+Possible values:
- * Alternative spelling of "+hide-referer". It has the same parameters, and
- can be freely mixed with, "+hide-referer". ("referrer" is the correct
- English spelling, however the HTTP specification has a bug - it requires it
- to be spelled "referer".)
+ N/A
- +hide-referrer{...}
-
+Example usage:
- * Change the "User-Agent:" header so web servers can't tell your browser
- type. Warning! This breaks many web sites. Specify the user-agent value you
- want. Example, pretend to be using Netscape on Linux:
+ {+no-popup}
+ .example.com
+
- +hide-user-agent{Mozilla (X11; I; Linux 2.0.32 i586)}
-
+Notes:
- * Treat this URL as an image. This only matters if it's also "+block"ed, in
- which case a "blocked" image can be sent rather than a HTML page. See
- "+image-blocker{}" below for the control over what is actually sent. If you
- want invisible ads, they should be defined as images and blocked. And also,
- "image-blocker" should be set to "blank". Note you cannot treat HTML pages
- as images in most cases. For instance, frames require an HTML page to
- display. So a frame that is an ad, cannot be treated as an image. Forcing
- an "image" in this situation just will not work.
+ "+no-popup" uses a built in filter to disable pop-ups that use the
+ window.open() function, etc.
- +image
-
+ An alternate spelling is "+no-popups", which is interchangeable.
- * Decides what to do with URLs that end up tagged with "{+block +image}", e.g
- an advertizement. There are five options. "-image-blocker" will send a HTML
- "blocked" page, usually resulting in a "broken image" icon. "+image-blocker
- {blank}" will send a 1x1 transparent GIF image. And finally,
- "+image-blocker{http://xyz.com}" will send a HTTP temporary redirect to the
- specified image. This has the advantage of the icon being being cached by
- the browser, which will speed up the display. "+image-blocker{pattern}"
- will send a checkboard type pattern
+-------------------------------------------------------------------------------
+
+5.4.5.19. +vanilla-wafer
+
+Type:
- +image-blocker{blank}
- +image-blocker{pattern}
- +image-blocker{http://p.p/send-banner}
-
+ Boolean.
- * By default (i.e. in the absence of a "+limit-connect" action), Privoxy will
- only allow CONNECT requests to port 443, which is the standard port for
- https as a precaution.
+Typical uses:
- The CONNECT methods exists in HTTP to allow access to secure websites
- (https:// URLs) through proxies. It works very simply: the proxy connects
- to the server on the specified port, and then short-circuits its
- connections to the client and to the remote proxy. This can be a big
- security hole, since CONNECT-enabled proxies can be abused as TCP relays
- very easily.
+ Sends a cookie for every site stating that you do not accept any copyright
+ on cookies sent to you, and asking them not to track you.
- If you want to allow CONNECT for more ports than this, or want to forbid
- CONNECT altogether, you can specify a comma separated list of ports and
- port ranges (the latter using dashes, with the minimum defaulting to 0 and
- max to 65K):
+Possible values:
- +limit-connect{443} # This is the default and need no be specified.
- +limit-connect{80,443} # Ports 80 and 443 are OK.
- +limit-connect{-3, 7, 20-100, 500-} # Port less than 3, 7, 20 to 100
- #and above 500 are OK.
-
+ N/A
- * "+no-compression" prevents the website from compressing the data. Some
- websites do this, which can be a problem for Privoxy, since "+filter",
- "+no-popup" and "+gif-deanimate" will not work on compressed data. This
- will slow down connections to those websites, though. Default is
- "no-compression" is turned on.
+Example usage:
- +nocompression
-
+ {+vanilla-wafer}
+ .example.com
+
- * If the website sets cookies, "no-cookies-keep" will make sure they are
- erased when you exit and restart your web browser. This makes profiling
- cookies useless, but won't break sites which require cookies so that you
- can log in for transactions. Default: on.
+Notes:
- +no-cookies-keep
-
+ This action only applies if you are using a jarfile for saving cookies. Of
+ course, this is a (relatively) unique header and could be used to track
+ you.
- * Prevent the website from reading cookies:
+-------------------------------------------------------------------------------
+
+5.4.5.20. +wafer
+
+Type:
- +no-cookies-read
-
+ Multi-value.
- * Prevent the website from setting cookies:
+Typical uses:
- +no-cookies-set
-
+ This allows you to send an arbitrary, user definable cookie.
- * Filter the website through a built-in filter to disable those obnoxious
- JavaScript pop-up windows via window.open(), etc. The two alternative
- spellings are equivalent.
+Possible values:
- +no-popup
- +no-popups
-
+ User specified cookie name and corresponding value.
- * This action only applies if you are using a jarfile for saving cookies. It
- sends a cookie to every site stating that you do not accept any copyright
- on cookies sent to you, and asking them not to track you. Of course, this
- is a (relatively) unique header they could use to track you.
+Example usage:
- +vanilla-wafer
-
+ {+wafer{name=value}}
+ .example.com
+
- * This allows you to add an arbitrary cookie. It can be specified multiple
- times in order to add as many cookies as you like.
+Notes:
- +wafer{name=value}
-
+ This can be specified multiple times in order to add as many cookies as you
+ like.
-The meaning of any of the above is reversed by preceding the action with a "-",
-in place of the "+".
+-------------------------------------------------------------------------------
+
+5.4.5.21. Actions Examples
+
+Note that the meaning of any of the above examples is reversed by preceding the
+action with a "-", in place of the "+". Also, that some actions are turned on
+in the default section of the actions file, and require little to no additional
+configuration. These are just "on". Some actions that are turned on the default
+section do typically require exceptions to be listed in the lower sections of
+actions file.
Some examples:
# Turn off all persistent cookies
{ +no-cookies-read }
{ +no-cookies-set }
+
# Allow cookies for this browser session ONLY
{ +no-cookies-keep }
# Exceptions to the above, sites that benefit from persistent cookies
+ # that saved from one browser session to the next.
{ -no-cookies-read }
{ -no-cookies-set }
{ -no-cookies-keep }
Turn on page filtering according to rules in the defined sections of
-refilterfile, and make one exception for sourceforge:
+default.filter, and make one exception for Sourceforge:
# Run everything through the filter file, using only the
# specified sections:
-------------------------------------------------------------------------------
-5.4.3. Aliases
+5.4.6. Aliases
Custom "actions", known to Privoxy as "aliases", can be defined by combining
other "actions". These can in turn be invoked just like the built-in "actions".
.windowsupdate.microsoft.com
.nytimes.com
- # Shopping sites - still want to block ads.
+ # Shopping sites - but we still want to block ads.
{shop}
.quietpc.com
.worldpay.com # for quietpc.com
.jungle.com
.scan.co.uk
- # These shops require pop-ups
+ # These shops require pop-ups also
{shop -no-popups}
.dabs.com
.overclockers.co.uk
form. Conversely, you can also report pages, images, etc. that Privoxy is
blocking, but should not. The form itself does require Internet access.
-To do this, point your browser to Privoxy at http://p.p/, and then select
-Actions file feedback system, near the bottom of the page. Paste in the URL
-that is the cause of the unwanted behavior, and follow the prompts. The
-developers will try to incorporate your submission into future versions.
+To do this, point your browser to Privoxy at http://config.privoxy.org/
+(shortcut: http://p.p/), and then select Actions file feedback system, near the
+bottom of the page. Paste in the URL that is the cause of the unwanted
+behavior, and follow the prompts. The developers will try to incorporate a fix
+for the problem you reported into future versions.
New default.actions files will occasionally be made available based on your
feedback. These will be announced on the ijbswa-announce list.
\ - The "escape" character denotes that the following character should be taken
literally. This is used where one of the special characters (e.g. ".") needs to
-be taken literally and not as a special meta-character.
+be taken literally and not as a special meta-character. Example: "example
+\.com", makes sure the period is recognized only as a period (and not expanded
+to its metacharacter meaning of any single character).
[] - Characters enclosed in brackets will be matched if any of the enclosed
-characters are encountered.
+characters are encountered. For instance, "[0-9]" matches any numeric digit
+(zero through nine). As an example, we can combine this with "+" to match any
+digit one of more times: "[0-9]+".
() - parentheses are used to group a sub-expression, or multiple
sub-expressions.
| - The "bar" character works like an "or" conditional statement. A match is
-successful if the sub-expression on either side of "|" matches.
+successful if the sub-expression on either side of "|" matches. As an example:
+"/(this|that) example/" uses grouping and the bar character and would match
+either "this example" or "that example", and nothing else.
s/string1/string2/g - This is used to rewrite strings of text. "string1" is
-replaced by "string2" in this example.
+replaced by "string2" in this example. There must of course be a match on
+"string1" first.
These are just some of the ones you are likely to use when matching URLs with
Privoxy, and is a long way from a definitive list. This is enough to get us
http://config.privoxy.org/edit-actions
-These may be bookmarked for quick reference.
+These may be bookmarked for quick reference. See next.
-------------------------------------------------------------------------------
To save them, right-click the link and choose "Add to Favorites" (IE) or "Add
Bookmark" (Netscape). You will get a warning that the bookmark "may not be
safe" - just click OK. Then you can run the Bookmarklet directly from your
-favourites/bookmarks. For even faster access, you can put them on the "Links"
+favorites/bookmarks. For even faster access, you can put them on the "Links"
bar (IE) or the "Personal Toolbar" (Netscape), and run them with a single
click.
-------------------------------------------------------------------------------
-9.3. Anatomy of an Action
+9.3. Chain of Events
+
+Let's take a quick look at the basic sequence of events when a web page is
+requested by your browser and Privoxy is on duty:
+
+ * First, the web browser requests a page, and this request is intercepted by
+ Privoxy immediately.
+
+ * Privoxy traps any request for internal CGI pages (e.g http://p.p/) and
+ relays these back to the browser.
+
+ * If the URL matches a "+block" pattern, then it is blocked and the banner
+ displayed.
+
+ * Untrusted URLs are blocked. If URLs are being added to the trust file, then
+ that is done.
+
+ * "+fast-redirect" is processed, stripping unwanted parts of the request web
+ page URL.
+
+ * At this point, Privoxy relays the request to the web server, and requests
+ the page (assuming nothing up to this point has prevented getting us from
+ this far).
+
+ * The first few hundred bytes are read from the web server and "+kill-popups"
+ is processed, if enabled.
+
+ * If "+filter" applies, the rest of the page is read into memory and then the
+ filters are processed. Filters are applied in the order they are specified
+ in the default.filter file. The entire page, which is now filtered, is then
+ sent by Privoxy to your browser.
+
+ * As the browser receives the filtered page content, it will read and request
+ any embedded URLs on the page, e.g. an ad image. As the browser requests
+ these secondary URLs from whatever server they may be on, Privoxy handles
+ these same as above, and the process is repeated for each such URL. Note
+ that a fancy web page may have many, many such URLs for graphics, frames,
+ etc.
+
+-------------------------------------------------------------------------------
+
+9.4. Anatomy of an Action
The way Privoxy applies "actions" and "filters" to any given URL can be
complex, and not always so easy to understand what is happening. And sometimes
we need to be able to see just what Privoxy is doing. Especially, if something
-Privoxy is doing is causing us a problem inadvertantly. It can be a little
+Privoxy is doing is causing us a problem inadvertently. It can be a little
daunting to look at the actions and filters files themselves, since they tend
to be filled with "regular expressions" whose consequences are not always so
-obvious. Privoxy provides the http://config.privoxy.org/show-url-info page that
-can show us very specifically how actions are being applied to any given URL.
-This is a big help for troubleshooting.
+obvious.
+
+One quick test to see if Privoxy is causing a problem or not, is to disable it
+temporarily. This should be the first troubleshooting step. See the
+Bookmarklets section on a quick and easy way to do this (be sure to flush
+caches afterwards!).
+
+Privoxy also provides the http://config.privoxy.org/show-url-info page that can
+show us very specifically how actions are being applied to any given URL. This
+is a big help for troubleshooting.
First, enter one URL (or partial URL) at the prompt, and then Privoxy will tell
us how the current configuration will handle it. This will not help with
-filtering effects from the default.filter file! It also will not tell you about
-any other URLs that may be embedded within the URL you are testing. For
-instance, images such as ads are expressed as URLs within the raw page source
-of HTML pages. So you will only get info for the actual URL that is pasted into
-the prompt area -- not any sub-URLs. If you want to know about embedded URLs
-like ads, you will have to dig those out of the HTML source. Use your browser's
-"View Page Source" option for this. Or right click on the ad, and grab the URL.
+filtering effects (i.e. the "+filter" action) from the default.filter file
+since this is handled very differently and not so easy to trap! It also will
+not tell you about any other URLs that may be embedded within the URL you are
+testing (i.e. a web page). For instance, images such as ads are expressed as
+URLs within the raw page source of HTML pages. So you will only get info for
+the actual URL that is pasted into the prompt area -- not any sub-URLs. If you
+want to know about embedded URLs like ads, you will have to dig those out of
+the HTML source. Use your browser's "View Page Source" option for this. Or
+right click on the ad, and grab the URL.
Let's look at an example, google.com, one section at a time:
These are the default actions we have enabled. But we can define additional
actions that would be exceptions to these general rules, and then list specific
URLs that these exceptions would apply to. Last match wins. Just below this
-then are two explict matches for ".google.com". The first is negating our
+then are two explicit matches for ".google.com". The first is negating our
various cookie blocking actions (i.e. we will allow cookies here). The second
is allowing "fast-redirects". Note that there is a leading dot here --
".google.com". This will match any hosts and sub-domains, in the google.com
referenced in these sections.
And now we pull it altogether in the bottom section and summarize how Privoxy
-is appying all its "actions" to "google.com":
+is applying all its "actions" to "google.com":
Final results:
Ooops, the "/adsl/" is matching "/ads"! But we did not want this at all! Now we
see why we get the blank page. We could now add a new action below this that
-explictly does not block (-block) pages with "adsl". There are various ways to
+explicitly does not block (-block) pages with "adsl". There are various ways to
handle such exceptions. Example:
{ -block }
TITLE="Documentation Guidelines"
HREF="documentation.html"><LINK
REL="NEXT"
-TITLE="Version Control Guidelines"
-HREF="cvs.html"><LINK
+TITLE="Testing Guidelines"
+HREF="testing.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="../p_doc.css"></HEAD
ALIGN="right"
VALIGN="bottom"
><A
-HREF="cvs.html"
+HREF="testing.html"
>Next</A
></TD
></TR
CLASS="SECT1"
><A
NAME="CODING"
->5. Coding Guidelines</A
+>6. Coding Guidelines</A
></H1
><DIV
CLASS="SECT2"
CLASS="SECT2"
><A
NAME="S1"
->5.1. Introduction</A
+>6.1. Introduction</A
></H2
><P
>This set of standards is designed to make our lives easier. It is
CLASS="SECT2"
><A
NAME="S2"
->5.2. Using Comments</A
+>6.2. Using Comments</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S3"
->5.2.1. Comment, Comment, Comment</A
+>6.2.1. Comment, Comment, Comment</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S4"
->5.2.2. Use blocks for comments</A
+>6.2.2. Use blocks for comments</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S5"
->5.2.3. Keep Comments on their own line</A
+>6.2.3. Keep Comments on their own line</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S6"
->5.2.4. Comment each logical step</A
+>6.2.4. Comment each logical step</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S7"
->5.2.5. Comment All Functions Thoroughly</A
+>6.2.5. Comment All Functions Thoroughly</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S8"
->5.2.6. Comment at the end of braces if the
+>6.2.6. Comment at the end of braces if the
content is more than one screen length</A
></H3
><P
CLASS="SECT2"
><A
NAME="S9"
->5.3. Naming Conventions</A
+>6.3. Naming Conventions</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S10"
->5.3.1. Variable Names</A
+>6.3.1. Variable Names</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S11"
->5.3.2. Function Names</A
+>6.3.2. Function Names</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S12"
->5.3.3. Header file prototypes</A
+>6.3.3. Header file prototypes</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S13"
->5.3.4. Enumerations, and #defines</A
+>6.3.4. Enumerations, and #defines</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S14"
->5.3.5. Constants</A
+>6.3.5. Constants</A
></H3
><P
><I
CLASS="SECT2"
><A
NAME="S15"
->5.4. Using Space</A
+>6.4. Using Space</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S16"
->5.4.1. Put braces on a line by themselves.</A
+>6.4.1. Put braces on a line by themselves.</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S17"
->5.4.2. ALL control statements should have a
+>6.4.2. ALL control statements should have a
block</A
></H3
><P
CLASS="SECT3"
><A
NAME="S18"
->5.4.3. Do not belabor/blow-up boolean
+>6.4.3. Do not belabor/blow-up boolean
expressions</A
></H3
><P
CLASS="SECT3"
><A
NAME="S19"
->5.4.4. Use white space freely because it is
+>6.4.4. Use white space freely because it is
free</A
></H3
><P
CLASS="SECT3"
><A
NAME="S20"
->5.4.5. Don't use white space around structure
+>6.4.5. Don't use white space around structure
operators</A
></H3
><P
CLASS="SECT3"
><A
NAME="S21"
->5.4.6. Make the last brace of a function stand
+>6.4.6. Make the last brace of a function stand
out</A
></H3
><P
CLASS="SECT3"
><A
NAME="S22"
->5.4.7. Use 3 character indentions</A
+>6.4.7. Use 3 character indentions</A
></H3
><P
><I
CLASS="SECT2"
><A
NAME="S23"
->5.5. Initializing</A
+>6.5. Initializing</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S24"
->5.5.1. Initialize all variables</A
+>6.5.1. Initialize all variables</A
></H3
><P
><I
CLASS="SECT2"
><A
NAME="S25"
->5.6. Functions</A
+>6.6. Functions</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S26"
->5.6.1. Name functions that return a boolean as a
+>6.6.1. Name functions that return a boolean as a
question.</A
></H3
><P
CLASS="SECT3"
><A
NAME="S27"
->5.6.2. Always specify a return type for a
+>6.6.2. Always specify a return type for a
function.</A
></H3
><P
CLASS="SECT3"
><A
NAME="S28"
->5.6.3. Minimize function calls when iterating by
+>6.6.3. Minimize function calls when iterating by
using variables</A
></H3
><P
CLASS="SECT3"
><A
NAME="S29"
->5.6.4. Pass and Return by Const Reference</A
+>6.6.4. Pass and Return by Const Reference</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S30"
->5.6.5. Pass and Return by Value</A
+>6.6.5. Pass and Return by Value</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S31"
->5.6.6. Names of include files</A
+>6.6.6. Names of include files</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S32"
->5.6.7. Provide multiple inclusion
+>6.6.7. Provide multiple inclusion
protection</A
></H3
><P
CLASS="SECT3"
><A
NAME="S33"
->5.6.8. Use `extern "C"` when appropriate</A
+>6.6.8. Use `extern "C"` when appropriate</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S34"
->5.6.9. Where Possible, Use Forward Struct
+>6.6.9. Where Possible, Use Forward Struct
Declaration Instead of Includes</A
></H3
><P
CLASS="SECT2"
><A
NAME="S35"
->5.7. General Coding Practices</A
+>6.7. General Coding Practices</A
></H2
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="S36"
->5.7.1. Turn on warnings</A
+>6.7.1. Turn on warnings</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S37"
->5.7.2. Provide a default case for all switch
+>6.7.2. Provide a default case for all switch
statements</A
></H3
><P
CLASS="SECT3"
><A
NAME="S38"
->5.7.3. Try to avoid falling through cases in a
+>6.7.3. Try to avoid falling through cases in a
switch statement.</A
></H3
><P
CLASS="SECT3"
><A
NAME="S39"
->5.7.4. Use 'long' or 'short' Instead of
+>6.7.4. Use 'long' or 'short' Instead of
'int'</A
></H3
><P
CLASS="SECT3"
><A
NAME="S40"
->5.7.5. Don't mix size_t and other types</A
+>6.7.5. Don't mix size_t and other types</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S41"
->5.7.6. Declare each variable and struct on its
+>6.7.6. Declare each variable and struct on its
own line.</A
></H3
><P
CLASS="SECT3"
><A
NAME="S42"
->5.7.7. Use malloc/zalloc sparingly</A
+>6.7.7. Use malloc/zalloc sparingly</A
></H3
><P
><I
CLASS="SECT3"
><A
NAME="S43"
->5.7.8. The Programmer Who Uses 'malloc' is
+>6.7.8. The Programmer Who Uses 'malloc' is
Responsible for Ensuring 'free'</A
></H3
><P
CLASS="SECT3"
><A
NAME="S44"
->5.7.9. Add loaders to the `file_list' structure
+>6.7.9. Add loaders to the `file_list' structure
and in order</A
></H3
><P
CLASS="SECT3"
><A
NAME="S45"
->5.7.10. "Uncertain" new code and/or changes to
+>6.7.10. "Uncertain" new code and/or changes to
existing code, use FIXME</A
></H3
><P
CLASS="SECT2"
><A
NAME="S46"
->5.8. Addendum: Template for files and function
+>6.8. Addendum: Template for files and function
comment blocks:</A
></H2
><P
><TD
><PRE
CLASS="PROGRAMLISTING"
->const char FILENAME_rcs[] = "$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $";
+>const char FILENAME_rcs[] = "$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $";
/*********************************************************************
*
* File : $Source$
CLASS="PROGRAMLISTING"
>#ifndef _FILENAME_H
#define _FILENAME_H
-#define FILENAME_H_VERSION "$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $"
+#define FILENAME_H_VERSION "$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $"
/*********************************************************************
*
* File : $Source$
ALIGN="right"
VALIGN="top"
><A
-HREF="cvs.html"
+HREF="testing.html"
>Next</A
></TD
></TR
WIDTH="33%"
ALIGN="right"
VALIGN="top"
->Version Control Guidelines</TD
+>Testing Guidelines</TD
></TR
></TABLE
></DIV
TITLE="Privoxy Developer Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
-TITLE="Releasing a new version"
-HREF="newrelease.html"><LINK
+TITLE="Update the Webserver"
+HREF="webserver-update.html"><LINK
REL="NEXT"
TITLE="Copyright and History"
HREF="copyright.html"><LINK
ALIGN="left"
VALIGN="bottom"
><A
-HREF="newrelease.html"
+HREF="webserver-update.html"
>Prev</A
></TD
><TD
CLASS="SECT1"
><A
NAME="CONTACT"
->9. Contacting the developers, Bug Reporting and Feature Requests</A
+>10. Contacting the developers, Bug Reporting and Feature Requests</A
></H1
><P
> We value your feedback. However, to provide you with the best support, please
ALIGN="left"
VALIGN="top"
><A
-HREF="newrelease.html"
+HREF="webserver-update.html"
>Prev</A
></TD
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
->Releasing a new version</TD
+>Update the Webserver</TD
><TD
WIDTH="34%"
ALIGN="center"
CLASS="SECT1"
><A
NAME="COPYRIGHT"
->10. Copyright and History</A
+>11. Copyright and History</A
></H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
-NAME="AEN962"
->10.1. Copyright</A
+NAME="AEN987"
+>11.1. Copyright</A
></H2
><P
> <SPAN
><H2
CLASS="SECT2"
><A
-NAME="AEN969"
->10.2. History</A
+NAME="AEN994"
+>11.2. History</A
></H2
><P
> <SPAN
<HTML
><HEAD
><TITLE
->Version Control Guidelines</TITLE
+>The CVS Repository</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
TITLE="Privoxy Developer Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
-TITLE="Coding Guidelines"
-HREF="coding.html"><LINK
+TITLE="Quickstart to Privoxy Development"
+HREF="quickstart.html"><LINK
REL="NEXT"
-TITLE="Testing Guidelines"
-HREF="testing.html"><LINK
+TITLE="Documentation Guidelines"
+HREF="documentation.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="../p_doc.css"></HEAD
ALIGN="left"
VALIGN="bottom"
><A
-HREF="coding.html"
+HREF="quickstart.html"
>Prev</A
></TD
><TD
ALIGN="right"
VALIGN="bottom"
><A
-HREF="testing.html"
+HREF="documentation.html"
>Next</A
></TD
></TR
CLASS="SECT1"
><A
NAME="CVS"
->6. Version Control Guidelines</A
+>4. The CVS Repository</A
></H1
><P
->To be filled. note on cvs comments. Don't only comment what you did,
- but also why you did it!</P
+> If you intend to help us with programming, documentation or packaging
+ you will need write access to our holy grail, the CVS repository.
+ Please read this chapter completely before accessing via CVS.
+ </P
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="CVSACCESS"
+>4.1. Access to CVS</A
+></H2
+><P
+> The project's CVS repository is hosted on
+ <A
+HREF="http://sourceforge.net/"
+TARGET="_top"
+>SourceForge.</A
+>
+ Please refer to the chapters 6 and 7 in
+ <A
+HREF="http://sourceforge.net/docman/?group_id=1"
+TARGET="_top"
+>SF's site
+ documentation</A
+> for the technical access details for your
+ operating system. For historical reasons, the CVS server is
+ called <TT
+CLASS="LITERAL"
+>cvs.ijbswa.sourceforge.net</TT
+>, the repository is
+ called <TT
+CLASS="LITERAL"
+>ijbswa</TT
+>, and the source tree module is called
+ <TT
+CLASS="LITERAL"
+>current</TT
+>.
+ </P
+></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="CVSCOMMIT"
+>4.2. CVS Commit Guideline</A
+></H2
+><P
+> The source tree is the heart of every software project. Every effort must
+ be made to ensure that it is readable, compilable and consistent at all
+ times. We therefore ask anyone with CVS access to strictly adhere to the
+ following guidelines:
+ <P
+></P
+><UL
+><LI
+><P
+> Never (read: <I
+CLASS="EMPHASIS"
+>never, ever</I
+>) be tempted to commit
+ that small change without testing it thoroughly first. When we're
+ close to a public release, ask a fellow developer to review your
+ changes.
+ </P
+></LI
+><LI
+><P
+> Your commit message should give a concise overview of <I
+CLASS="EMPHASIS"
+>what you
+ changed</I
+> (no big details) and <I
+CLASS="EMPHASIS"
+>why you changed it</I
+>
+ Just check previous messages for good examples.
+ </P
+></LI
+><LI
+><P
+> Don't use the same message on multiple files, unless it equally applies to
+ all those files.
+ </P
+></LI
+><LI
+><P
+> If your changes span multiple files, and the code won't recompile unless
+ all changes are commited (e.g. when changing the signature of a function),
+ then commit all files one after another, without long delays in beween.
+ If necessary, prepare the commit messages in advance.
+ </P
+></LI
+><LI
+><P
+> Before changing things on CVS, make sure that your changes are in line
+ with the team's general consensus on what should be done (see below).
+ </P
+></LI
+></UL
+>
+ </P
+></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="CVSWHENASK"
+>4.3. Discussing Changes First</A
+></H2
+><P
+> We don't have a too formal policy on this, just use common sense. Hints: If it is..
+ <P
+></P
+><OL
+TYPE="1"
+><LI
+><P
+> ..a bugfix / clean-up / cosmetic thing: shoot
+ </P
+></LI
+><LI
+><P
+> ..a new feature that can be turned off: shoot
+ </P
+></LI
+><LI
+><P
+> ..a clear improvement w/o side effects on other parts of the code: shoot
+ </P
+></LI
+><LI
+><P
+> ..a matter of taste: <A
+HREF="mailto:developers@privoxy.org"
+TARGET="_top"
+>ask the list</A
+>
+ </P
+></LI
+><LI
+><P
+> ..a major redesign of some part of the code: <A
+HREF="mailto:developers@privoxy.org"
+TARGET="_top"
+>ask
+ the list</A
+>
+ </P
+></LI
+></OL
+>
+ </P
+><P
+> Note that near a major public release, we get a bit more cautious - if
+ unsure, it doesn't hurt to ask first. There is always the possibility
+ to submit a patch to the <A
+HREF="http://sourceforge.net/tracker/?atid=311118&group_id=11118&func=browse"
+TARGET="_top"
+>patches
+ tracker</A
+> instead.
+ </P
+></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
ALIGN="left"
VALIGN="top"
><A
-HREF="coding.html"
+HREF="quickstart.html"
>Prev</A
></TD
><TD
ALIGN="right"
VALIGN="top"
><A
-HREF="testing.html"
+HREF="documentation.html"
>Next</A
></TD
></TR
WIDTH="33%"
ALIGN="left"
VALIGN="top"
->Coding Guidelines</TD
+>Quickstart to Privoxy Development</TD
><TD
WIDTH="34%"
ALIGN="center"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
->Testing Guidelines</TD
+>Documentation Guidelines</TD
></TR
></TABLE
></DIV
TITLE="Privoxy Developer Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
-TITLE="Quickstart to Privoxy Development"
-HREF="quickstart.html"><LINK
+TITLE="The CVS Repository"
+HREF="cvs.html"><LINK
REL="NEXT"
TITLE="Coding Guidelines"
HREF="coding.html"><LINK
ALIGN="left"
VALIGN="bottom"
><A
-HREF="quickstart.html"
+HREF="cvs.html"
>Prev</A
></TD
><TD
CLASS="SECT1"
><A
NAME="DOCUMENTATION"
->4. Documentation Guidelines</A
+>5. Documentation Guidelines</A
></H1
><P
> All formal documents are maintained in Docbook SGML and located in the
CLASS="SECT2"
><A
NAME="SGML"
->4.1. Quickstart to Docbook and SGML</A
+>5.1. Quickstart to Docbook and SGML</A
></H2
><P
> If you are not familiar with SGML, it is a markup language similar to HTML.
><P
> Some common elements that you likely will use: </P
><P
+> <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><para></para></I
>, paragraph delimiter. Most
- text needs to be within paragraph elements (there are some exceptions).
- </TD
+ text needs to be within paragraph elements (there are some exceptions).
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><emphasis></emphasis></I
->, the stylesheets make this
- italics.
- </TD
+>, the stylesheets
+ make this italics.
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><filename></filename></I
>, files and directories.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><command></command></I
>, command examples.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><literallayout></literallayout></I
>, like
- <TT
+ <TT
CLASS="LITERAL"
><pre></TT
>, more or less.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><itemizedlist></itemizedlist></I
>, list with bullets.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><listitem></listitem></I
>, member of the above.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><screen></screen></I
>, screen output, implies
- <TT
+ <TT
CLASS="LITERAL"
><literallayout></TT
>.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><ulink url="example.com"></ulink></I
>, like
- HTML <TT
+ HTML <TT
CLASS="LITERAL"
><a></TT
> tag.
- </TD
+ </TD
></TR
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
><quote></quote></I
>, for, doh, quoting text.
- </TD
+ </TD
></TR
></TBODY
></TABLE
><P
></P
+></P
><P
> Look at any of the existing docs for examples of all these and more.</P
+><P
+> You might also find <SPAN
+CLASS="QUOTE"
+>"<A
+HREF="http://www.bureau-cornavin.com/opensource/crash-course/"
+TARGET="_top"
+>Writing Documentation
+ Using DocBook - A Crash Course</A
+>"</SPAN
+> useful.</P
></DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><A
NAME="DOCSTYLE"
->4.2. <SPAN
+>5.2. <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
> Documentation Style</A
><H2
CLASS="SECT2"
><A
-NAME="AEN186"
->4.3. Privoxy Custom Entities</A
+NAME="AEN214"
+>5.3. Privoxy Custom Entities</A
></H2
><P
> <SPAN
ALIGN="left"
VALIGN="top"
><A
-HREF="quickstart.html"
+HREF="cvs.html"
>Prev</A
></TD
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
->Quickstart to Privoxy Development</TD
+>The CVS Repository</TD
><TD
WIDTH="34%"
ALIGN="center"
></DIV
><P
CLASS="PUBDATE"
->$Id: developer-manual.sgml,v 1.33 2002/04/12 03:49:53 hal9 Exp $<BR></P
+>$Id: developer-manual.sgml,v 1.35 2002/04/17 15:16:15 oes Exp $<BR></P
><DIV
><DIV
CLASS="ABSTRACT"
issues.
</P
><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> is a web proxy with advanced filtering
- capabilities for protecting privacy, filtering web page content, managing
- cookies, controlling access, and removing ads, banners, pop-ups and other
- obnoxious Internet junk. <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> has a very
- flexible configuration and can be customized to suit individual needs and
- tastes. <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> has application for both
- stand-alone systems and multi-user networks.</P
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> is based on the code of the
- <SPAN
-CLASS="APPLICATION"
->Internet Junkbuster</SPAN
-> (tm).
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> was originally written by Junkbusters
- Corporation, and was released as free open-source software under the GNU GPL.
- Stefan Waldherr made many improvements, and started the SourceForge project
- to continue development.</P
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> continues the
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> tradition, but adds many
- refinements, enhancements and new features.</P
-><P
> You can find the latest version of the this manual at <A
HREF="http://www.privoxy.org/developer-manual/"
TARGET="_top"
></DT
><DT
>4. <A
+HREF="cvs.html"
+>The CVS Repository</A
+></DT
+><DD
+><DL
+><DT
+>4.1. <A
+HREF="cvs.html#CVSACCESS"
+>Access to CVS</A
+></DT
+><DT
+>4.2. <A
+HREF="cvs.html#CVSCOMMIT"
+>CVS Commit Guideline</A
+></DT
+><DT
+>4.3. <A
+HREF="cvs.html#CVSWHENASK"
+>Discussing Changes First</A
+></DT
+></DL
+></DD
+><DT
+>5. <A
HREF="documentation.html"
>Documentation Guidelines</A
></DT
><DD
><DL
><DT
->4.1. <A
+>5.1. <A
HREF="documentation.html#SGML"
>Quickstart to Docbook and SGML</A
></DT
><DT
->4.2. <A
+>5.2. <A
HREF="documentation.html#DOCSTYLE"
><SPAN
CLASS="APPLICATION"
> Documentation Style</A
></DT
><DT
->4.3. <A
-HREF="documentation.html#AEN186"
+>5.3. <A
+HREF="documentation.html#AEN214"
>Privoxy Custom Entities</A
></DT
></DL
></DD
><DT
->5. <A
+>6. <A
HREF="coding.html"
>Coding Guidelines</A
></DT
><DD
><DL
><DT
->5.1. <A
+>6.1. <A
HREF="coding.html#S1"
>Introduction</A
></DT
><DT
->5.2. <A
+>6.2. <A
HREF="coding.html#S2"
>Using Comments</A
></DT
><DD
><DL
><DT
->5.2.1. <A
+>6.2.1. <A
HREF="coding.html#S3"
>Comment, Comment, Comment</A
></DT
><DT
->5.2.2. <A
+>6.2.2. <A
HREF="coding.html#S4"
>Use blocks for comments</A
></DT
><DT
->5.2.3. <A
+>6.2.3. <A
HREF="coding.html#S5"
>Keep Comments on their own line</A
></DT
><DT
->5.2.4. <A
+>6.2.4. <A
HREF="coding.html#S6"
>Comment each logical step</A
></DT
><DT
->5.2.5. <A
+>6.2.5. <A
HREF="coding.html#S7"
>Comment All Functions Thoroughly</A
></DT
><DT
->5.2.6. <A
+>6.2.6. <A
HREF="coding.html#S8"
>Comment at the end of braces if the
content is more than one screen length</A
></DL
></DD
><DT
->5.3. <A
+>6.3. <A
HREF="coding.html#S9"
>Naming Conventions</A
></DT
><DD
><DL
><DT
->5.3.1. <A
+>6.3.1. <A
HREF="coding.html#S10"
>Variable Names</A
></DT
><DT
->5.3.2. <A
+>6.3.2. <A
HREF="coding.html#S11"
>Function Names</A
></DT
><DT
->5.3.3. <A
+>6.3.3. <A
HREF="coding.html#S12"
>Header file prototypes</A
></DT
><DT
->5.3.4. <A
+>6.3.4. <A
HREF="coding.html#S13"
>Enumerations, and #defines</A
></DT
><DT
->5.3.5. <A
+>6.3.5. <A
HREF="coding.html#S14"
>Constants</A
></DT
></DL
></DD
><DT
->5.4. <A
+>6.4. <A
HREF="coding.html#S15"
>Using Space</A
></DT
><DD
><DL
><DT
->5.4.1. <A
+>6.4.1. <A
HREF="coding.html#S16"
>Put braces on a line by themselves.</A
></DT
><DT
->5.4.2. <A
+>6.4.2. <A
HREF="coding.html#S17"
>ALL control statements should have a
block</A
></DT
><DT
->5.4.3. <A
+>6.4.3. <A
HREF="coding.html#S18"
>Do not belabor/blow-up boolean
expressions</A
></DT
><DT
->5.4.4. <A
+>6.4.4. <A
HREF="coding.html#S19"
>Use white space freely because it is
free</A
></DT
><DT
->5.4.5. <A
+>6.4.5. <A
HREF="coding.html#S20"
>Don't use white space around structure
operators</A
></DT
><DT
->5.4.6. <A
+>6.4.6. <A
HREF="coding.html#S21"
>Make the last brace of a function stand
out</A
></DT
><DT
->5.4.7. <A
+>6.4.7. <A
HREF="coding.html#S22"
>Use 3 character indentions</A
></DT
></DL
></DD
><DT
->5.5. <A
+>6.5. <A
HREF="coding.html#S23"
>Initializing</A
></DT
><DD
><DL
><DT
->5.5.1. <A
+>6.5.1. <A
HREF="coding.html#S24"
>Initialize all variables</A
></DT
></DL
></DD
><DT
->5.6. <A
+>6.6. <A
HREF="coding.html#S25"
>Functions</A
></DT
><DD
><DL
><DT
->5.6.1. <A
+>6.6.1. <A
HREF="coding.html#S26"
>Name functions that return a boolean as a
question.</A
></DT
><DT
->5.6.2. <A
+>6.6.2. <A
HREF="coding.html#S27"
>Always specify a return type for a
function.</A
></DT
><DT
->5.6.3. <A
+>6.6.3. <A
HREF="coding.html#S28"
>Minimize function calls when iterating by
using variables</A
></DT
><DT
->5.6.4. <A
+>6.6.4. <A
HREF="coding.html#S29"
>Pass and Return by Const Reference</A
></DT
><DT
->5.6.5. <A
+>6.6.5. <A
HREF="coding.html#S30"
>Pass and Return by Value</A
></DT
><DT
->5.6.6. <A
+>6.6.6. <A
HREF="coding.html#S31"
>Names of include files</A
></DT
><DT
->5.6.7. <A
+>6.6.7. <A
HREF="coding.html#S32"
>Provide multiple inclusion
protection</A
></DT
><DT
->5.6.8. <A
+>6.6.8. <A
HREF="coding.html#S33"
>Use `extern "C"` when appropriate</A
></DT
><DT
->5.6.9. <A
+>6.6.9. <A
HREF="coding.html#S34"
>Where Possible, Use Forward Struct
Declaration Instead of Includes</A
></DL
></DD
><DT
->5.7. <A
+>6.7. <A
HREF="coding.html#S35"
>General Coding Practices</A
></DT
><DD
><DL
><DT
->5.7.1. <A
+>6.7.1. <A
HREF="coding.html#S36"
>Turn on warnings</A
></DT
><DT
->5.7.2. <A
+>6.7.2. <A
HREF="coding.html#S37"
>Provide a default case for all switch
statements</A
></DT
><DT
->5.7.3. <A
+>6.7.3. <A
HREF="coding.html#S38"
>Try to avoid falling through cases in a
switch statement.</A
></DT
><DT
->5.7.4. <A
+>6.7.4. <A
HREF="coding.html#S39"
>Use 'long' or 'short' Instead of
'int'</A
></DT
><DT
->5.7.5. <A
+>6.7.5. <A
HREF="coding.html#S40"
>Don't mix size_t and other types</A
></DT
><DT
->5.7.6. <A
+>6.7.6. <A
HREF="coding.html#S41"
>Declare each variable and struct on its
own line.</A
></DT
><DT
->5.7.7. <A
+>6.7.7. <A
HREF="coding.html#S42"
>Use malloc/zalloc sparingly</A
></DT
><DT
->5.7.8. <A
+>6.7.8. <A
HREF="coding.html#S43"
>The Programmer Who Uses 'malloc' is
Responsible for Ensuring 'free'</A
></DT
><DT
->5.7.9. <A
+>6.7.9. <A
HREF="coding.html#S44"
>Add loaders to the `file_list' structure
and in order</A
></DT
><DT
->5.7.10. <A
+>6.7.10. <A
HREF="coding.html#S45"
>"Uncertain" new code and/or changes to
existing code, use FIXME</A
></DL
></DD
><DT
->5.8. <A
+>6.8. <A
HREF="coding.html#S46"
>Addendum: Template for files and function
comment blocks:</A
></DL
></DD
><DT
->6. <A
-HREF="cvs.html"
->Version Control Guidelines</A
-></DT
-><DT
>7. <A
HREF="testing.html"
>Testing Guidelines</A
><DT
>8. <A
HREF="newrelease.html"
->Releasing a new version</A
+>Releasing a New Version</A
></DT
><DD
><DL
></DT
><DT
>8.2. <A
-HREF="newrelease.html#NEWRELEASE-WEB"
->Update the webserver</A
+HREF="newrelease.html#THERELEASE"
+>Building and Releasing the Packages</A
></DT
+><DD
+><DL
><DT
->8.3. <A
+>8.2.1. <A
+HREF="newrelease.html#NEWRELEASE-TARBALL"
+>Source Tarball</A
+></DT
+><DT
+>8.2.2. <A
HREF="newrelease.html#NEWRELEASE-RPM"
>SuSE or Red Hat</A
></DT
><DT
->8.4. <A
+>8.2.3. <A
HREF="newrelease.html#NEWRELEASE-OS2"
>OS/2</A
></DT
><DT
->8.5. <A
+>8.2.4. <A
HREF="newrelease.html#NEWRELEASE-SOLARIS"
>Solaris</A
></DT
><DT
->8.6. <A
+>8.2.5. <A
HREF="newrelease.html#NEWRELEASE-WINDOWS"
>Windows</A
></DT
><DT
->8.7. <A
+>8.2.6. <A
HREF="newrelease.html#NEWRELEASE-DEBIAN"
>Debian</A
></DT
><DT
->8.8. <A
+>8.2.7. <A
HREF="newrelease.html#NEWRELEASE-MACOSX"
>Mac OSX</A
></DT
><DT
->8.9. <A
+>8.2.8. <A
HREF="newrelease.html#NEWRELEASE-FREEBSD"
>FreeBSD</A
></DT
><DT
->8.10. <A
-HREF="newrelease.html#NEWRELEASE-TARBALL"
->Tarball</A
-></DT
-><DT
->8.11. <A
+>8.2.9. <A
HREF="newrelease.html#NEWRELEASE-HPUX"
>HP-UX 11</A
></DT
><DT
->8.12. <A
+>8.2.10. <A
HREF="newrelease.html#NEWRELEASE-AMIGA"
>Amiga OS</A
></DT
><DT
->8.13. <A
+>8.2.11. <A
HREF="newrelease.html#NEWRELEASE-AIX"
>AIX</A
></DT
></DL
></DD
><DT
+>8.3. <A
+HREF="newrelease.html#AFTERRELEASE"
+>After the Release</A
+></DT
+></DL
+></DD
+><DT
>9. <A
+HREF="webserver-update.html"
+>Update the Webserver</A
+></DT
+><DT
+>10. <A
HREF="contact.html"
>Contacting the developers, Bug Reporting and Feature Requests</A
></DT
><DT
->10. <A
+>11. <A
HREF="copyright.html"
>Copyright and History</A
></DT
><DD
><DL
><DT
->10.1. <A
-HREF="copyright.html#AEN962"
+>11.1. <A
+HREF="copyright.html#AEN987"
>Copyright</A
></DT
><DT
->10.2. <A
-HREF="copyright.html#AEN969"
+>11.2. <A
+HREF="copyright.html#AEN994"
>History</A
></DT
></DL
></DD
><DT
->11. <A
+>12. <A
HREF="seealso.html"
>See also</A
></DT
<HTML
><HEAD
><TITLE
->Releasing a new version</TITLE
+>Releasing a New Version</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
TITLE="Testing Guidelines"
HREF="testing.html"><LINK
REL="NEXT"
-TITLE="Contacting the developers, Bug Reporting and Feature Requests"
-HREF="contact.html"><LINK
+TITLE="Update the Webserver"
+HREF="webserver-update.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="../p_doc.css"></HEAD
ALIGN="right"
VALIGN="bottom"
><A
-HREF="contact.html"
+HREF="webserver-update.html"
>Next</A
></TD
></TR
CLASS="SECT1"
><A
NAME="NEWRELEASE"
->8. Releasing a new version</A
+>8. Releasing a New Version</A
></H1
><P
-> To minimize trouble with distribution contents, web-page
- errors and the like, we strongly encourage you
- to follow this section if you prepare a new release of
- code or new pages on the webserver.
+> When we release versions of <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>,
+ our work leaves our cozy secret lab and has to work in the cold
+ RealWorld[tm]. Once it is released, there is no way to call it
+ back, so it is very important that great care is taken to ensure
+ that everything runs fine, and not to introduce problems in the
+ very last minute.
+ </P
+><P
+> So when releasing a new version, please adhere exactly to the
+ procedure outlined in this chapter.
</P
><P
> The following programs are required to follow this process:
>ncftpput</TT
> (ncftp), <TT
CLASS="FILENAME"
->scp</TT
+>scp, ssh</TT
> (ssh),
-<TT
+ <TT
CLASS="FILENAME"
>gmake</TT
-> (GNU's version of make), autoconf, cvs, ???.
+> (GNU's version of make), autoconf, cvs.
</P
><P
-> Replace X, Y and Z with the actual version number (X = major, Y = minor, Z = point):
+> In the following text, replace X, Y and Z with the actual version number
+ (X = major, Y = minor, Z = point):
</P
><DIV
CLASS="SECT2"
></LI
><LI
><P
-> Increment the version number in <TT
-CLASS="FILENAME"
->configure.in</TT
-> in
- CVS. Also, increase or reset the RPM release number in
- <TT
-CLASS="FILENAME"
->configure.in</TT
-> as appropriate. Do <I
-CLASS="EMPHASIS"
->NOT</I
->
- touch version information after export from CVS.
- <I
-CLASS="EMPHASIS"
->All packages</I
-> will use the version and release data
- from <TT
+> Increment the version number and increase or reset the RPM release number
+ in <TT
CLASS="FILENAME"
>configure.in</TT
->.
- Local files should not be changed, except prior to a CVS commit!!!
- This way we are all on the same page!
+> as appropriate.
</P
></LI
><LI
></LI
><LI
><P
+> If the HTML documentation is not in sync with the SGML sources
+ you need to regenerate it. (If in doubt, just do it.) See the
+ Section "Updating the webserver" in this manual for details.
+ </P
+></LI
+><LI
+><P
> <I
CLASS="EMPHASIS"
>Commit all files that were changed in the above steps!</I
Don't use vX_Y_Z, ver_X_Y_Z, v_X.Y.Z (won't work) etc.
</P
></LI
-><LI
-><P
-> The first package uploaded should be the official
- <SPAN
-CLASS="QUOTE"
->"tarball"</SPAN
-> release, as required by the GPL. This is built
- with the <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make tarball-dist</B
->"</SPAN
-> Makefile
- target, and then can be uploaded with
- <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make tarball-upload</B
->"</SPAN
-> (see below).
- </P
-></LI
></UL
>
</P
><H2
CLASS="SECT2"
><A
-NAME="NEWRELEASE-WEB"
->8.2. Update the webserver</A
+NAME="THERELEASE"
+>8.2. Building and Releasing the Packages</A
></H2
><P
-> All files must be group-readable and group-writable (or no one else
- will be able to change them)! To update the webserver, create any
- pages locally in the <TT
-CLASS="FILENAME"
->doc/webserver/*</TT
-> directory (or
- create new directories under <TT
-CLASS="FILENAME"
->doc/webserver</TT
->), then do
+> Now the individual packages can be built and released. Note that for
+ GPL reasons the first package to be released is always the source tarball.
+ </P
+><P
+> For <I
+CLASS="EMPHASIS"
+>all</I
+> types of packages, including the source tarball,
+ <I
+CLASS="EMPHASIS"
+>you must make sure that you build from clean sources by exporting
+ the right version from CVS into an empty directory:</I
+>.
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> mkdir dist # delete or choose different name if it already exists
+ cd dist
+ cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> <I
+CLASS="EMPHASIS"
+>Do NOT change</I
+> a single bit, including, but not limited to
+ version information after export from CVS. This is to make sure that
+ all release packages, and with them, all future bug reports, are based
+ on exactly the same code.
+ </P
+><P
+> Please find additional instructions for the source tarball and the
+ individual platform dependent binary packages below.
+ </P
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="NEWRELEASE-TARBALL"
+>8.2.1. Source Tarball</A
+></H3
+><P
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
-> <TABLE
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
-> make webserver
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
>
</P
><P
-> This will do the upload to the webserver (www.privoxy.org).
- </P
+> Then do:
+ </P
><P
-> Note that <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make dok</B
->"</SPAN
->
- (or <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make redhat-dok</B
->"</SPAN
->) creates
- <TT
-CLASS="FILENAME"
->doc/webserver/user-manual</TT
->,
- <TT
-CLASS="FILENAME"
->doc/webserver/developer-manual</TT
->,
- <TT
-CLASS="FILENAME"
->doc/webserver/faq</TT
-> and
- <TT
-CLASS="FILENAME"
->doc/webserver/index.html</TT
-> automatically.
- (<TT
-CLASS="FILENAME"
->doc/webserver/man-page/privoxy-man-page.html</TT
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> make tarball-dist
+ </PRE
+></TD
+></TR
+></TABLE
>
- is created by a separate Makefile target, <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make
- man</B
->"</SPAN
->, due to dependencies on some obscure perl scripts.
- See comments in <TT
-CLASS="FILENAME"
->GNUmakefile</TT
->.)
- </P
-><P
->
- Someone should also commit these to CVS so that packagers without the
- ability to build docs locally, have access to them. This is a separate
- step, and should also be done before each official release.
- </P
-><P
-> Please do NOT use any other means of transferring files to the
- webserver. <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make webserver</B
->"</SPAN
-> not only
- uploads, but will make sure that the appropriate permissions are
- preserved for shared group access.
- </P
-></DIV
-><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
-><A
-NAME="NEWRELEASE-RPM"
->8.3. SuSE or Red Hat</A
-></H2
+ </P
><P
-> Ensure that you have the latest code version. Hence run:
+> To upload the package to Sourceforge, simply issue
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
+> make tarball-upload
</PRE
></TD
></TR
>
</P
><P
-> first.
+> Go to the displayed URL and release the file publicly on Sourceforge.
+ For the change log field, use the relevant section of the
+ <TT
+CLASS="FILENAME"
+>ChangeLog</TT
+> file.
+ </P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="NEWRELEASE-RPM"
+>8.2.2. SuSE or Red Hat</A
+></H3
+><P
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
><TD
><PRE
CLASS="PROGRAMLISTING"
-> make suse-dist or make redhat-dist
+> make suse-dist (or make redhat-dist)
</PRE
></TD
></TR
</P
><P
> Go to the displayed URL and release the file publicly on Sourceforge.
+ Use the release notes and çhange log from the source tarball package.
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-OS2"
->8.4. OS/2</A
-></H2
+>8.2.3. OS/2</A
+></H3
><P
-> Ensure that you have the latest code version. Hence run:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then get the OS/2 Setup module:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd ..
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co os2setup
+> cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co os2setup
</PRE
></TD
></TR
> directory.
Edit the os2build.cmd file to set the final executable filename.
For example,
- <TABLE
+ </P
+><P
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
></TR
></TABLE
>
- Next, edit the <TT
+ </P
+><P
+> Next, edit the <TT
CLASS="FILENAME"
>IJB.wis</TT
> file so the release number matches
CLASS="FILENAME"
>PACKAGEID</TT
> section:
- <TABLE
+ </P
+><P
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
></TR
></TABLE
>
- You're now ready to build. Run:
- <TABLE
+ </P
+><P
+> You're now ready to build. Run:
+ </P
+><P
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
></TR
></TABLE
>
- And in the <TT
+ </P
+><P
+> You will find the WarpIN-installable executable in the
+ <TT
CLASS="FILENAME"
>./files</TT
-> directory you will have the
- WarpIN-installable executable.
- Upload this anonymously to
- <TT
+> directory. Upload this anonymously to
+ <TT
CLASS="FILENAME"
>uploads.sourceforge.net/incoming</TT
>, create a release
- for it, and you're done.
+ for it, and you're done. Use the release notes and Change Log from the
+ source tarball package.
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-SOLARIS"
->8.5. Solaris</A
-></H2
+>8.2.4. Solaris</A
+></H3
><P
-> Login to Sourceforge's compilefarm via ssh
+> Login to Sourceforge's compilefarm via ssh:
</P
><P
> <TABLE
>
</P
><P
-> Choose the right operating system (not the Debian one). If you have
- downloaded <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> before,
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> If not, please <A
-HREF="http://www.privoxy.org/user-manual/user-manual/installation.html#INSTALLATION-SOURCE"
-TARGET="_top"
->checkout
- Privoxy via CVS first</A
->. Run:
+> Choose the right operating system (not the Debian one).
+ When logged in, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
solaris-upload</B
> on the Sourceforge machine (no ncftpput). You now have
to manually upload the archive to Sourceforge's ftp server and release
- the file publicly.
+ the file publicly. Use the release notes and Change Log from the
+ source tarball package.
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-WINDOWS"
->8.6. Windows</A
-></H2
+>8.2.5. Windows</A
+></H3
><P
> You should ensure you have the latest version of Cygwin (from
<A
Run the following commands from within a Cygwin bash shell.
</P
><P
-> First check out a clean copy of the correct code version, by running:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then get the Windows setup module:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> mkdir dist
- cd dist
- cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z .
+> cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co winsetup
</PRE
></TD
></TR
>
</P
><P
-> (Note: It is important that this is a clean copy of the code,
- do not re-use a working directory after you have manually compiled
- there).
- </P
-><P
> Then you can build the package. This is fully automated, and is
controlled by <TT
CLASS="FILENAME"
CLASS="FILENAME"
>privoxy_setup_X_Y_Z.exe</TT
>, and upload it to
- SourceForge.
+ SourceForge. When releasing the package on SourceForge, use the release notes
+ and Change Log from the source tarball package.
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-DEBIAN"
->8.7. Debian</A
-></H2
-><P
-> Ensure that you have the latest code version. Hence run:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
+>8.2.6. Debian</A
+></H3
><P
-> first. Run:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then, run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-MACOSX"
->8.8. Mac OSX</A
-></H2
+>8.2.7. Mac OSX</A
+></H3
><P
-> Ensure that you have the latest code version. Hence run:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then get the Mac OSX setup module:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd ..
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co osxsetup
+> cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co osxsetup
</PRE
></TD
></TR
>
</P
><P
-> From the osxsetup directory, run:
- <TABLE
+> Then run:
+ </P
+><P
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
-> build
+> cd osxsetup
+ build
</PRE
></TD
></TR
name to match the release, and hit the "Create package" button.
If you specify ./Privoxy.pkg as the output package name, you can then create
the distributable zip file with the command:
- <TABLE
+ </P
+><P
+> <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
></TR
></TABLE
>
- You can then upload <TT
+ </P
+><P
+> You can then upload <TT
CLASS="FILENAME"
>privoxyosx_setup_x.y.z.zip</TT
> anonymously to
CLASS="FILENAME"
>uploads.sourceforge.net/incoming</TT
>,
- create a release for it, and you're done.
+ create a release for it, and you're done. Use the release notes
+ and Change Log from the source tarball package.
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-FREEBSD"
->8.9. FreeBSD</A
-></H2
-><P
-> Change the version number of <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> in the
- configure.in file. Run:
- <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
- </PRE
-></TD
-></TR
-></TABLE
->
- Then ...
- </P
+>8.2.8. FreeBSD</A
+></H3
><P
> Login to Sourceforge's compilefarm via ssh:
</P
</P
><P
> Choose the right operating system.
+ When logged in, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> Run:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
freebsd-upload</B
> on the Sourceforge machine (no ncftpput). You now have
to manually upload the archive to Sourceforge's ftp server and release
- the file publicly.
- </P
-></DIV
-><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
-><A
-NAME="NEWRELEASE-TARBALL"
->8.10. Tarball</A
-></H2
-><P
-> Ensure that you have the right code version. Hence run:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> first. Run:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> Then do:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> make tarball-dist
- </PRE
-></TD
-></TR
-></TABLE
->
+ the file publicly. Use the release notes and Change Log from the
+ source tarball package.
</P
-><P
-> To upload the package to Sourceforge, simply issue
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> make tarball-upload
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> Goto the displayed URL and release the file publicly on Sourceforge.
- </P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-HPUX"
->8.11. HP-UX 11</A
-></H2
-><P
-> Ensure that you have the latest code version. Hence run:
- </P
+>8.2.9. HP-UX 11</A
+></H3
><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> first. Run:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-AMIGA"
->8.12. Amiga OS</A
-></H2
+>8.2.10. Amiga OS</A
+></H3
><P
-> Ensure that you have the latest code version. Hence run:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> first. Run:
+> First, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
</P
></DIV
><DIV
-CLASS="SECT2"
-><H2
-CLASS="SECT2"
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
><A
NAME="NEWRELEASE-AIX"
->8.13. AIX</A
-></H2
+>8.2.11. AIX</A
+></H3
><P
> Login to Sourceforge's compilefarm via ssh:
</P
>
</P
><P
-> Choose the right operating system. If you have downloaded Privoxy
- before:
- </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="PROGRAMLISTING"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa export -r v_X_Y_Z current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
->
- </P
-><P
-> If not, please <A
-HREF="http://www.privoxy.org/user-manual/user-manual/installation.html#INSTALLATION-SOURCE"
-TARGET="_top"
->checkout
- Privoxy via CVS first</A
->. Run:
+> Choose the right operating system.
+ When logged in, <I
+CLASS="EMPHASIS"
+>make sure that you have freshly exported the right
+ version into an empty directory</I
+>. (See "Building and releasing
+ packages" above). Then run:
</P
><P
> <TABLE
><TD
><PRE
CLASS="PROGRAMLISTING"
-> autoheader && autoconf && ./configure
+> cd current
+ autoheader && autoconf && ./configure
</PRE
></TD
></TR
aix-upload</B
> on the Sourceforge machine (no ncftpput). You now have
to manually upload the archive to Sourceforge's ftp server and release
- the file publicly.
+ the file publicly. Use the release notes and Change Log from the
+ source tarball package.
</P
></DIV
></DIV
><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="AFTERRELEASE"
+>8.3. After the Release</A
+></H2
+><P
+> When all (or: most of the) packages have been uploaded and made available,
+ send an email to the <A
+HREF="mailto:ijbswa-announce@lists.sourceforge.net"
+TARGET="_top"
+>announce
+ mailing list</A
+>, Subject: "Version X.Y.Z available for download". Be sure to
+ include the
+ <A
+HREF="http://sourceforge.net/project/showfiles.php?group_id=11118"
+TARGET="_top"
+>download
+ location</A
+>, the release notes and the change log.
+ </P
+></DIV
+></DIV
+><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
ALIGN="right"
VALIGN="top"
><A
-HREF="contact.html"
+HREF="webserver-update.html"
>Next</A
></TD
></TR
WIDTH="33%"
ALIGN="right"
VALIGN="top"
->Contacting the developers, Bug Reporting and Feature Requests</TD
+>Update the Webserver</TD
></TR
></TABLE
></DIV
TITLE="Introduction"
HREF="introduction.html"><LINK
REL="NEXT"
-TITLE="Documentation Guidelines"
-HREF="documentation.html"><LINK
+TITLE="The CVS Repository"
+HREF="cvs.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="../p_doc.css"></HEAD
ALIGN="right"
VALIGN="bottom"
><A
-HREF="documentation.html"
+HREF="cvs.html"
>Next</A
></TD
></TR
></H1
><P
> You'll need an account on <A
-HREF="http://sourceforge.net"
+HREF="http://sourceforge.net/"
TARGET="_top"
>Sourceforge</A
> to support our
- development. Mail your ID to the list and wait until a project
- manager has added you.
+ development. Mail your ID to <A
+HREF="mailto:developers@privoxy.org"
+TARGET="_top"
+>the list</A
+> and wait until a
+ project manager has added you.
</P
><P
> For the time being (read, this section is under construction), please
- note the following guidelines for changing stuff in the code. If it is
- <P
-></P
-><OL
-TYPE="1"
-><LI
-><P
-> A bugfix / clean-up / cosmetic thing: shoot
- </P
-></LI
-><LI
-><P
-> A new feature that can be turned off: shoot
- </P
-></LI
-><LI
-><P
-> A clear improvement w/o side effects on other parts of the code: shoot
- </P
-></LI
-><LI
-><P
-> A matter of taste: ask the list
- </P
-></LI
-><LI
-><P
-> A major redesign of some part of the code: ask the list
- </P
-></LI
-></OL
->
- </P
-><P
-> Note that near a major public release, we get a bit more cautious - if
- unsure, it doesn't hurt to ask first.
+ refer to the extensive comments in the source code.
</P
></DIV
><DIV
ALIGN="right"
VALIGN="top"
><A
-HREF="documentation.html"
+HREF="cvs.html"
>Next</A
></TD
></TR
WIDTH="33%"
ALIGN="right"
VALIGN="top"
->Documentation Guidelines</TD
+>The CVS Repository</TD
></TR
></TABLE
></DIV
CLASS="SECT1"
><A
NAME="SEEALSO"
->11. See also</A
+>12. See also</A
></H1
><P
> Other references and sites of interest to <SPAN
TITLE="Privoxy Developer Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
-TITLE="Version Control Guidelines"
-HREF="cvs.html"><LINK
+TITLE="Coding Guidelines"
+HREF="coding.html"><LINK
REL="NEXT"
-TITLE="Releasing a new version"
+TITLE="Releasing a New Version"
HREF="newrelease.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
ALIGN="left"
VALIGN="bottom"
><A
-HREF="cvs.html"
+HREF="coding.html"
>Prev</A
></TD
><TD
ALIGN="left"
VALIGN="top"
><A
-HREF="cvs.html"
+HREF="coding.html"
>Prev</A
></TD
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
->Version Control Guidelines</TD
+>Coding Guidelines</TD
><TD
WIDTH="34%"
ALIGN="center"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
->Releasing a new version</TD
+>Releasing a New Version</TD
></TR
></TABLE
></DIV
--- /dev/null
+<HTML
+><HEAD
+><TITLE
+>Update the Webserver</TITLE
+><META
+NAME="GENERATOR"
+CONTENT="Modular DocBook HTML Stylesheet Version 1.64
+"><LINK
+REL="HOME"
+TITLE="Privoxy Developer Manual"
+HREF="index.html"><LINK
+REL="PREVIOUS"
+TITLE="Releasing a New Version"
+HREF="newrelease.html"><LINK
+REL="NEXT"
+TITLE="Contacting the developers, Bug Reporting and Feature Requests"
+HREF="contact.html"><LINK
+REL="STYLESHEET"
+TYPE="text/css"
+HREF="../p_doc.css"></HEAD
+><BODY
+CLASS="SECT1"
+BGCOLOR="#EEEEEE"
+TEXT="#000000"
+LINK="#0000FF"
+VLINK="#840084"
+ALINK="#0000FF"
+><DIV
+CLASS="NAVHEADER"
+><TABLE
+WIDTH="100%"
+BORDER="0"
+CELLPADDING="0"
+CELLSPACING="0"
+><TR
+><TH
+COLSPAN="3"
+ALIGN="center"
+>Privoxy Developer Manual</TH
+></TR
+><TR
+><TD
+WIDTH="10%"
+ALIGN="left"
+VALIGN="bottom"
+><A
+HREF="newrelease.html"
+>Prev</A
+></TD
+><TD
+WIDTH="80%"
+ALIGN="center"
+VALIGN="bottom"
+></TD
+><TD
+WIDTH="10%"
+ALIGN="right"
+VALIGN="bottom"
+><A
+HREF="contact.html"
+>Next</A
+></TD
+></TR
+></TABLE
+><HR
+ALIGN="LEFT"
+WIDTH="100%"></DIV
+><DIV
+CLASS="SECT1"
+><H1
+CLASS="SECT1"
+><A
+NAME="WEBSERVER-UPDATE"
+>9. Update the Webserver</A
+></H1
+><P
+> When updating the webserver, please follow these steps to make
+ sure that no broken links, incosistent contents or permission
+ problems will occur:
+ </P
+><P
+> If you have changed anything in the documentation source SGML files,
+ do:
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> make dok # (or make redkat-dok if make dok doesn't work for you)
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> That will generate <TT
+CLASS="FILENAME"
+>doc/webserver/user-manual</TT
+>,
+ <TT
+CLASS="FILENAME"
+>doc/webserver/developer-manual</TT
+>,
+ <TT
+CLASS="FILENAME"
+>doc/webserver/faq</TT
+> and
+ <TT
+CLASS="FILENAME"
+>doc/webserver/index.html</TT
+> automatically.
+ </P
+><P
+> If you changed the manual page source, generate
+ <TT
+CLASS="FILENAME"
+>doc/webserver/man-page/privoxy-man-page.html</TT
+>
+ by running <SPAN
+CLASS="QUOTE"
+>"<B
+CLASS="COMMAND"
+>make man</B
+>"</SPAN
+>. (This is
+ a separate target due to dependencies on some obscure perl scripts.
+ See comments in <TT
+CLASS="FILENAME"
+>GNUmakefile</TT
+>.)
+ </P
+><P
+> If you want to add new files to the webserver, create them locally in
+ the <TT
+CLASS="FILENAME"
+>doc/webserver/*</TT
+> directory (or
+ create new directories under <TT
+CLASS="FILENAME"
+>doc/webserver</TT
+>).
+ </P
+><P
+> Next, commit any changes from the above steps to CVS. All set? Then do
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> make webserver
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> This will do the upload to <A
+HREF="http://www.privoxy.org/"
+TARGET="_top"
+>the
+ webserver</A
+> (www.privoxy.org) and ensure all files and directories
+ there are group writable.
+ </P
+><P
+> Please do <I
+CLASS="EMPHASIS"
+>NOT</I
+> use any other means of transferring
+ files to the webserver to avoid permission problems.
+ </P
+></DIV
+><DIV
+CLASS="NAVFOOTER"
+><HR
+ALIGN="LEFT"
+WIDTH="100%"><TABLE
+WIDTH="100%"
+BORDER="0"
+CELLPADDING="0"
+CELLSPACING="0"
+><TR
+><TD
+WIDTH="33%"
+ALIGN="left"
+VALIGN="top"
+><A
+HREF="newrelease.html"
+>Prev</A
+></TD
+><TD
+WIDTH="34%"
+ALIGN="center"
+VALIGN="top"
+><A
+HREF="index.html"
+>Home</A
+></TD
+><TD
+WIDTH="33%"
+ALIGN="right"
+VALIGN="top"
+><A
+HREF="contact.html"
+>Next</A
+></TD
+></TR
+><TR
+><TD
+WIDTH="33%"
+ALIGN="left"
+VALIGN="top"
+>Releasing a New Version</TD
+><TD
+WIDTH="34%"
+ALIGN="center"
+VALIGN="top"
+> </TD
+><TD
+WIDTH="33%"
+ALIGN="right"
+VALIGN="top"
+>Contacting the developers, Bug Reporting and Feature Requests</TD
+></TR
+></TABLE
+></DIV
+></BODY
+></HTML
+>
\ No newline at end of file
><H3
CLASS="SECT2"
><A
-NAME="AEN241"
+NAME="AEN239"
>3.2. What is an <SPAN
CLASS="QUOTE"
>"actions"</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN259"
+NAME="AEN257"
>3.4. How are actions files configured? What is the easiest
way to do this?</A
></H3
><DIV
CLASS="TABLE"
><A
-NAME="AEN272"
+NAME="AEN270"
></A
><P
><B
><H3
CLASS="SECT2"
><A
-NAME="AEN381"
+NAME="AEN379"
>3.7. What is <SPAN
CLASS="QUOTE"
>"default.filter"</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN393"
+NAME="AEN391"
>3.8. How can I set up <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN405"
+NAME="AEN403"
>3.9. Instead of ads, now I get a checkerboard pattern. I don't want to see anything.</A
></H3
><P
><H3
CLASS="SECT2"
><A
-NAME="AEN420"
+NAME="AEN418"
>3.10. Why would anybody want to see a checkerboard pattern?</A
></H3
><P
><H3
CLASS="SECT2"
><A
-NAME="AEN425"
+NAME="AEN423"
>3.11. I see large red banners on some pages that say
<SPAN
CLASS="QUOTE"
><H2
CLASS="SECT2"
><A
-NAME="AEN720"
+NAME="AEN718"
>8.1. Copyright</A
></H2
><P
><H2
CLASS="SECT2"
><A
-NAME="AEN727"
+NAME="AEN725"
>8.2. History</A
></H2
><P
><H3
CLASS="SECT2"
><A
-NAME="AEN48"
+NAME="AEN44"
>1.2. Why <SPAN
CLASS="QUOTE"
>"Privoxy"</SPAN
><UL
><LI
><P
-> Integrated browser based configuration and control utility (<A
-HREF="http://p.p"
+> Integrated browser based configuration and control utility at <A
+HREF="http://config.privoxy.org/"
TARGET="_top"
->http://p.p</A
->). Browser-based tracing of rule
- and filter effects.
+>http://config.privoxy.org/</A
+>
+ (shortcut: <A
+HREF="http://p.p/"
+TARGET="_top"
+>http://p.p/</A
+>). Browser-based
+ tracing of rule and filter effects. Remote toggling.
</P
></LI
><LI
></LI
><LI
><P
-> HTTP/1.1 compliant (most, but not all 1.1 features are supported).
+> HTTP/1.1 compliant (but not all optional 1.1 features are supported).
</P
></LI
><LI
invisible <SPAN
CLASS="QUOTE"
>"web-bugs"</SPAN
->, JavaScript, pop-ups, status bar abuse,
- etc.)
+>, JavaScript and HTML annoyances, pop-ups, etc.)
</P
></LI
><LI
><P
> Bypass many click-tracking scripts (avoids script redirection).
-
</P
></LI
><LI
><LI
><P
> Builds from source on most UNIX-like systems. Packages available for: Linux
- (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11 and AmigaOS.
-
+ (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11,
+ NetBSD and AmigaOS.
+ </P
+></LI
+><LI
+><P
+> Every feature now controllable on a per-site or per-location basis, configuration
+ more powerful and versatile over-all.
</P
></LI
><LI
><P
-> In addition, the configuration is much more powerful and versatile over-all.
+> Many smaller new features added, limitations and bugs removed, and security holes fixed.
</P
></LI
></UL
><H3
CLASS="SECT2"
><A
-NAME="AEN125"
+NAME="AEN124"
>1.6. How does <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN137"
+NAME="AEN136"
>1.7. Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
includes tools to help identify these types of situations so they can be
addressed as needed, allowing you to customize your installation.
(<A
-HREF="trouble.html#AEN663"
+HREF="trouble.html#AEN661"
>See the Troubleshooting section below</A
>.)</P
></DIV
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is based on the code of the
- <SPAN
-CLASS="APPLICATION"
->Internet Junkbuster</SPAN
-> (tm).
- <SPAN
+> is based on <SPAN
CLASS="APPLICATION"
->Junkbuster</SPAN
-> was originally written by Junkbusters
- Corporation, and was released as free open-source software under the GNU GPL.
- Stefan Waldherr made many improvements, and started the SourceForge project
- to continue development.</P
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> continues the
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> tradition, but adds many
- refinements, enhancements and new features.</P
+>Internet
+ Junkbuster</SPAN
+> (tm).</P
><P
> You can find the latest version of the document at <A
HREF="http://www.privoxy.org/faq/"
></DT
><DT
>1.2. <A
-HREF="general.html#AEN48"
+HREF="general.html#AEN44"
>Why <SPAN
CLASS="QUOTE"
>"Privoxy"</SPAN
></DT
><DT
>1.6. <A
-HREF="general.html#AEN125"
+HREF="general.html#AEN124"
>How does <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>1.7. <A
-HREF="general.html#AEN137"
+HREF="general.html#AEN136"
>Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>2.4. <A
-HREF="installation.html#AEN198"
+HREF="installation.html#AEN196"
>I just installed <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>2.6. <A
-HREF="installation.html#AEN223"
+HREF="installation.html#AEN221"
>I just installed <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>3.2. <A
-HREF="configuration.html#AEN241"
+HREF="configuration.html#AEN239"
>What is an <SPAN
CLASS="QUOTE"
>"actions"</SPAN
></DT
><DT
>3.4. <A
-HREF="configuration.html#AEN259"
+HREF="configuration.html#AEN257"
>How are actions files configured? What is the easiest
way to do this?</A
></DT
></DT
><DT
>3.7. <A
-HREF="configuration.html#AEN381"
+HREF="configuration.html#AEN379"
>What is <SPAN
CLASS="QUOTE"
>"default.filter"</SPAN
></DT
><DT
>3.8. <A
-HREF="configuration.html#AEN393"
+HREF="configuration.html#AEN391"
>How can I set up <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>3.9. <A
-HREF="configuration.html#AEN405"
+HREF="configuration.html#AEN403"
>Instead of ads, now I get a checkerboard pattern. I don't want to see anything.</A
></DT
><DT
>3.10. <A
-HREF="configuration.html#AEN420"
+HREF="configuration.html#AEN418"
>Why would anybody want to see a checkerboard pattern?</A
></DT
><DT
>3.11. <A
-HREF="configuration.html#AEN425"
+HREF="configuration.html#AEN423"
>I see large red banners on some pages that say
<SPAN
CLASS="QUOTE"
><DL
><DT
>4.1. <A
-HREF="misc.html#AEN475"
+HREF="misc.html#AEN473"
>How much does <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.7. <A
-HREF="misc.html#AEN532"
+HREF="misc.html#AEN530"
>Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.8. <A
-HREF="misc.html#AEN543"
+HREF="misc.html#AEN541"
>Might some things break because header information is
being altered?</A
></DT
><DT
>4.9. <A
-HREF="misc.html#AEN553"
+HREF="misc.html#AEN551"
>Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.10. <A
-HREF="misc.html#AEN561"
+HREF="misc.html#AEN559"
>What about as a firewall? Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.11. <A
-HREF="misc.html#AEN566"
+HREF="misc.html#AEN564"
>The <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.12. <A
-HREF="misc.html#AEN575"
+HREF="misc.html#AEN573"
>I have large empty spaces now where ads used to be.
Why?</A
></DT
><DT
>4.13. <A
-HREF="misc.html#AEN578"
+HREF="misc.html#AEN576"
>How can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>4.14. <A
-HREF="misc.html#AEN585"
+HREF="misc.html#AEN583"
><SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><DL
><DT
>5.1. <A
-HREF="trouble.html#AEN644"
+HREF="trouble.html#AEN642"
>I just upgraded and am getting <SPAN
CLASS="QUOTE"
>"connection refused"</SPAN
></DT
><DT
>5.2. <A
-HREF="trouble.html#AEN657"
+HREF="trouble.html#AEN655"
>I just added a new rule, but the steenkin ad is
still getting through. How?</A
></DT
><DT
>5.3. <A
-HREF="trouble.html#AEN663"
+HREF="trouble.html#AEN661"
>One of my favorite sites does not work with <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>5.5. <A
-HREF="trouble.html#AEN690"
+HREF="trouble.html#AEN688"
>What time is it?</A
></DT
></DL
><DL
><DT
>8.1. <A
-HREF="copyright.html#AEN720"
+HREF="copyright.html#AEN718"
>Copyright</A
></DT
><DT
>8.2. <A
-HREF="copyright.html#AEN727"
+HREF="copyright.html#AEN725"
>History</A
></DT
></DL
CLASS="APPLICATION"
>Privoxy</SPAN
> is known to run on Win32, Mac
- OSX, OS/2, AmigaOS, Linux (RedHat, Suse, Debian), FreeBSD, and many flavors
- of Unix. There are source and binary releases for these available for
- download at <A
-HREF="http://sourceforge.net/project/showfiles.php?group_id=11118"
-TARGET="_top"
->http://sourceforge.net/project/showfiles.php?group_id=11118</A
->.</P
+ OSX, OS/2, AmigaOS, Linux (RedHat, Suse, Debian), FreeBSD, NetBSD, BeOS, and
+ many flavors of Unix.</P
><P
> But any operating system that runs TCP/IP, can conceivably take advantage of
<SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN198"
+NAME="AEN196"
>2.4. I just installed <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN223"
+NAME="AEN221"
>2.6. I just installed <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN475"
+NAME="AEN473"
>4.1. How much does <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN532"
+NAME="AEN530"
>4.7. Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN543"
+NAME="AEN541"
>4.8. Might some things break because header information is
being altered?</A
></H3
><H3
CLASS="SECT2"
><A
-NAME="AEN553"
+NAME="AEN551"
>4.9. Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN561"
+NAME="AEN559"
>4.10. What about as a firewall? Can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN566"
+NAME="AEN564"
>4.11. The <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN575"
+NAME="AEN573"
>4.12. I have large empty spaces now where ads used to be.
Why?</A
></H3
><H3
CLASS="SECT2"
><A
-NAME="AEN578"
+NAME="AEN576"
>4.13. How can <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN585"
+NAME="AEN583"
>4.14. <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN644"
+NAME="AEN642"
>5.1. I just upgraded and am getting <SPAN
CLASS="QUOTE"
>"connection refused"</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN657"
+NAME="AEN655"
>5.2. I just added a new rule, but the steenkin ad is
still getting through. How?</A
></H3
><H3
CLASS="SECT2"
><A
-NAME="AEN663"
+NAME="AEN661"
>5.3. One of my favorite sites does not work with <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><H3
CLASS="SECT2"
><A
-NAME="AEN690"
+NAME="AEN688"
>5.5. What time is it?</A
></H3
><P
></DT
><DT
><A
-HREF="#AEN95"
+HREF="#AEN91"
>Copyright</A
></DT
><DT
><A
-HREF="#AEN102"
+HREF="#AEN98"
>History</A
></DT
+><DT
+><A
+HREF="#AEN109"
+></A
+></DT
></DL
></DIV
><DIV
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is based on the code of the
- <SPAN
-CLASS="APPLICATION"
->Internet Junkbuster</SPAN
-> (tm).
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> was originally written by Junkbusters
- Corporation, and was released as free open-source software under the GNU GPL.
- Stefan Waldherr made many improvements, and started the SourceForge project
- to continue development.</P
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> continues the
- <SPAN
+> is based on <SPAN
CLASS="APPLICATION"
->Junkbuster</SPAN
-> tradition, but adds many
- refinements, enhancements and new features.</P
+>Internet
+ Junkbuster</SPAN
+> (tm).</P
></DIV
><DIV
CLASS="SECT1"
><HR><H1
CLASS="SECT1"
><A
-NAME="AEN95"
+NAME="AEN91"
>Copyright</A
></H1
><P
><HR><H1
CLASS="SECT1"
><A
-NAME="AEN102"
+NAME="AEN98"
>History</A
></H1
><P
> was v2.0.2, which has now
grown whiskers ;-).</P
></DIV
+><DIV
+CLASS="SECT1"
+><HR><H1
+CLASS="SECT1"
+><A
+NAME="AEN109"
+></A
+></H1
+><P
+><DIV
+CLASS="INFORMALTABLE"
+><A
+NAME="AEN112"
+></A
+><P
+></P
+><TABLE
+BORDER="0"
+WIDTH="100%"
+CLASS="CALSTABLE"
+><TBODY
+><TR
+><TD
+WIDTH="100%"
+ALIGN="CENTER"
+VALIGN="TOP"
+> <A
+HREF="http://sourceforge.net/"
+TARGET="_top"
+> <IMG
+SRC="http://sourceforge.net/sflogo.php?group_id=11118&type=1&dummy=.gif">
+ </A
+>
+ </TD
+></TR
+></TBODY
+></TABLE
+><P
+></P
+></DIV
+></P
+></DIV
></DIV
></BODY
></HTML
building complex patterns however. Let's look at a few of the common ones,
and then some examples:</P
><P
+><P
></P
><TABLE
BORDER="0"
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
CLASS="QUOTE"
>"."</SPAN
>) needs to be taken literally and
- not as a special meta-character.
+ not as a special meta-character. Example: <SPAN
+CLASS="QUOTE"
+>"example\.com"</SPAN
+>, makes
+ sure the period is recognized only as a period (and not expanded to its
+ metacharacter meaning of any single character).
</TD
></TR
></TBODY
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
CLASS="EMPHASIS"
>[]</I
> - Characters enclosed in brackets will be matched if
- any of the enclosed characters are encountered.
+ any of the enclosed characters are encountered. For instance, <SPAN
+CLASS="QUOTE"
+>"[0-9]"</SPAN
+>
+ matches any numeric digit (zero through nine). As an example, we can combine
+ this with <SPAN
+CLASS="QUOTE"
+>"+"</SPAN
+> to match any digit one of more times: <SPAN
+CLASS="QUOTE"
+>"[0-9]+"</SPAN
+>.
</TD
></TR
></TBODY
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
sub-expression on either side of <SPAN
CLASS="QUOTE"
>"|"</SPAN
-> matches.
+> matches. As an example:
+ <SPAN
+CLASS="QUOTE"
+>"/(this|that) example/"</SPAN
+> uses grouping and the bar character
+ and would match either <SPAN
+CLASS="QUOTE"
+>"this example"</SPAN
+> or <SPAN
+CLASS="QUOTE"
+>"that
+ example"</SPAN
+>, and nothing else.
</TD
></TR
></TBODY
></TABLE
><P
></P
+></P
+><P
><P
></P
><TABLE
CLASS="QUOTE"
>"string2"</SPAN
> in this
- example.
+ example. There must of course be a match on <SPAN
+CLASS="QUOTE"
+>"string1"</SPAN
+> first.
</TD
></TR
></TBODY
></TABLE
><P
></P
+></P
><P
> These are just some of the ones you are likely to use when matching URLs with
<SPAN
><H2
CLASS="SECT2"
><A
-NAME="AEN1602"
+NAME="AEN2452"
>9.2. <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
Privoxy main page:
</P
><A
-NAME="AEN1617"
+NAME="AEN2467"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
Show information about the current configuration:
</P
><A
-NAME="AEN1624"
+NAME="AEN2474"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
Show the source code version numbers:
</P
><A
-NAME="AEN1629"
+NAME="AEN2479"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
Show the client's request headers:
</P
><A
-NAME="AEN1634"
+NAME="AEN2484"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
Show which actions apply to a URL and why:
</P
><A
-NAME="AEN1639"
+NAME="AEN2489"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
to run, but only as a pass-through proxy, with no actions taking place:
</P
><A
-NAME="AEN1645"
+NAME="AEN2495"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
> Short cuts. Turn off, then on:
</P
><A
-NAME="AEN1649"
+NAME="AEN2499"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
</P
></BLOCKQUOTE
><A
-NAME="AEN1652"
+NAME="AEN2502"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
Edit the actions list file:
</P
><A
-NAME="AEN1657"
+NAME="AEN2507"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
></UL
></P
><P
-> These may be bookmarked for quick reference. </P
+> These may be bookmarked for quick reference. See next. </P
><DIV
CLASS="SECT3"
><H3
CLASS="QUOTE"
>"may not be safe"</SPAN
> - just click OK. Then you can run the
- Bookmarklet directly from your favourites/bookmarks. For even faster access,
+ Bookmarklet directly from your favorites/bookmarks. For even faster access,
you can put them on the <SPAN
CLASS="QUOTE"
>"Links"</SPAN
><H2
CLASS="SECT2"
><A
+NAME="CHAIN"
+>9.3. Chain of Events</A
+></H2
+><P
+> Let's take a quick look at the basic sequence of events when a web page is
+ requested by your browser and <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> is on duty:</P
+><P
+> <P
+></P
+><UL
+><LI
+><P
+> First, the web browser requests a page, and this request is intercepted by
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> immediately.
+ </P
+></LI
+><LI
+><P
+> <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> traps any request for internal CGI
+ pages (e.g http://p.p/) and relays these back to the browser.
+ </P
+></LI
+><LI
+><P
+> If the URL matches a <SPAN
+CLASS="QUOTE"
+>"+block"</SPAN
+> pattern, then it is blocked
+ and the banner displayed.
+ </P
+></LI
+><LI
+><P
+> Untrusted URLs are blocked. If URLs are being added to the
+ <TT
+CLASS="FILENAME"
+>trust</TT
+> file, then that is done.
+ </P
+></LI
+><LI
+><P
+> <SPAN
+CLASS="QUOTE"
+>"+fast-redirect"</SPAN
+> is processed, stripping unwanted parts
+ of the request web page URL.
+ </P
+></LI
+><LI
+><P
+> At this point, <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> relays the request to the
+ web server, and requests the page (assuming nothing up to this point has
+ prevented getting us from this far).
+ </P
+></LI
+><LI
+><P
+> The first few hundred bytes are read from the web server and
+ <SPAN
+CLASS="QUOTE"
+>"+kill-popups"</SPAN
+> is processed, if enabled.
+ </P
+></LI
+><LI
+><P
+> If <SPAN
+CLASS="QUOTE"
+>"+filter"</SPAN
+> applies, the rest of the page is read into
+ memory and then the filters are processed. Filters are applied in the order they
+ are specified in the <TT
+CLASS="FILENAME"
+>default.filter</TT
+> file. The entire
+ page, which is now filtered, is then sent by
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> to your browser.
+ </P
+></LI
+><LI
+><P
+> As the browser receives the filtered page content, it will read and request any
+ embedded URLs on the page, e.g. an ad image. As the browser requests these
+ secondary URLs from whatever server they may be on,
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> handles these same as above, and the process
+ is repeated for each such URL. Note that a fancy web page may have many, many
+ such URLs for graphics, frames, etc.
+ </P
+></LI
+></UL
+></P
+></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
NAME="ACTIONSANAT"
->9.3. Anatomy of an Action</A
+>9.4. Anatomy of an Action</A
></H2
><P
> The way <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
> is doing
- is causing us a problem inadvertantly. It can be a little daunting to look at
+ is causing us a problem inadvertently. It can be a little daunting to look at
the actions and filters files themselves, since they tend to be filled with
<SPAN
CLASS="QUOTE"
>"regular expressions"</SPAN
> whose consequences are not always
- so obvious. <SPAN
+ so obvious. </P
+><P
+> One quick test to see if <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> is causing a problem
+ or not, is to disable it temporarily. This should be the first troubleshooting
+ step. See <A
+HREF="appendix.html#BOOKMARKLETS"
+>the Bookmarklets</A
+> section on a quick
+ and easy way to do this (be sure to flush caches afterwards!).</P
+><P
+> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> provides the
+> also provides the
<A
HREF="http://config.privoxy.org/show-url-info"
TARGET="_top"
CLASS="APPLICATION"
>actions</SPAN
>
- are being applied to any given URL. This is a big help for troubleshooting.
- </P
+ are being applied to any given URL. This is a big help for troubleshooting.</P
><P
> First, enter one URL (or partial URL) at the prompt, and then
<SPAN
>Privoxy</SPAN
> will tell us
how the current configuration will handle it. This will not
- help with filtering effects from the <TT
+ help with filtering effects (i.e. the <SPAN
+CLASS="QUOTE"
+>"+filter"</SPAN
+> action) from the
+ <TT
CLASS="FILENAME"
>default.filter</TT
-> file! It
- also will not tell you about any other URLs that may be embedded within the
- URL you are testing. For instance, images such as ads are expressed as URLs
- within the raw page source of HTML pages. So you will only get info for the
- actual URL that is pasted into the prompt area -- not any sub-URLs. If you
- want to know about embedded URLs like ads, you will have to dig those out of
- the HTML source. Use your browser's <SPAN
+> file since this is handled very differently
+ and not so easy to trap! It also will not tell you about any other URLs that
+ may be embedded within the URL you are testing (i.e. a web page). For
+ instance, images such as ads are expressed as URLs within the raw page source
+ of HTML pages. So you will only get info for the actual URL that is pasted
+ into the prompt area -- not any sub-URLs. If you want to know about embedded
+ URLs like ads, you will have to dig those out of the HTML source. Use your
+ browser's <SPAN
CLASS="QUOTE"
>"View Page Source"</SPAN
-> option
- for this. Or right click on the ad, and grab the URL.</P
+> option for this. Or right click on
+ the ad, and grab the URL.</P
><P
> Let's look at an example, <A
HREF="http://google.com"
> These are the default actions we have enabled. But we can define additional
actions that would be exceptions to these general rules, and then list
specific URLs that these exceptions would apply to. Last match wins.
- Just below this then are two explict matches for <SPAN
+ Just below this then are two explicit matches for <SPAN
CLASS="QUOTE"
>".google.com"</SPAN
>.
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is appying all its <SPAN
+> is applying all its <SPAN
CLASS="QUOTE"
>"actions"</SPAN
>
>"/ads"</SPAN
>! But
we did not want this at all! Now we see why we get the blank page. We could
- now add a new action below this that explictly does <I
+ now add a new action below this that explicitly does <I
CLASS="EMPHASIS"
>not</I
>
><H2
CLASS="SECT2"
><A
-NAME="AEN268"
+NAME="AEN324"
>5.1. Controlling <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> can be reached by the special
+>'s user interface can be reached through the special
URL <A
-HREF="http://p.p/"
-TARGET="_top"
->http://p.p/</A
-> (or alternately
- <A
HREF="http://config.privoxy.org/"
TARGET="_top"
>http://config.privoxy.org/</A
+>
+ (shortcut: <A
+HREF="http://p.p/"
+TARGET="_top"
+>http://p.p/</A
>),
- which is an internal page. You will see the following section: </P
+ which is a built-in page and works without Internet access.
+ You will see the following section: </P
><P
> <TABLE
BORDER="0"
CLASS="SCREEN"
> Please choose from the following options:
+ * Privoxy main page
* Show information about the current configuration
* Show the source code version numbers
- * Show the client's request headers.
+ * Show the request headers.
* Show which actions apply to a URL and why
* Toggle Privoxy on or off
* Edit the actions list
CLASS="APPLICATION"
>Privoxy</SPAN
> configuration. The actions
- file, and other configuration files, are explained in detail below.
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> will automatically detect any changes
- to these files.</P
+ file, and other configuration files, are explained in detail below. </P
><P
> <SPAN
CLASS="QUOTE"
>"Toggle Privoxy On or Off"</SPAN
> is handy for sites that might
- have problems with your current actions and filters, or just to test if
- a site misbehaves, whether it is <SPAN
+ have problems with your current actions and filters. You can in fact use
+ it as a test to see whether it is <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>
CLASS="APPLICATION"
>Privoxy</SPAN
> continues
- to run as a proxy in this case, but all filtering is disabled. </P
+ to run as a proxy in this case, but all filtering is disabled. There
+ is even a toggle <A
+HREF="appendix.html#BOOKMARKLETS"
+>Bookmarklet</A
+> offered, so
+ that you can toggle <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> with one click from
+ your browser.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
-NAME="AEN286"
+NAME="AEN343"
>5.2. Configuration Files Overview</A
></H2
><P
></LI
><LI
><P
-> The <TT
+> <TT
CLASS="FILENAME"
>default.action</TT
-> file is used to define various
- <SPAN
+> (the actions file) is used to define
+ which of a set of various <SPAN
CLASS="QUOTE"
>"actions"</SPAN
-> relating to images, banners, pop-ups, access
- restrictions, banners and cookies. There is a CGI based editor for this
- file that can be accessed via <A
-HREF="http://p.p"
+> relating to images, banners,
+ pop-ups, access restrictions, banners and cookies are to be applied, and where.
+ There is a web based editor for this file that can be accessed at <A
+HREF="http://config.privoxy.org/edit-actions/"
+TARGET="_top"
+>http://config.privoxy.org/edit-actions/</A
+>
+ (Shortcut: <A
+HREF="http://p.p/edit-actions/"
TARGET="_top"
->http://p.p</A
->. (Other actions
- files are included as well with differing levels of filtering
+>http://p.p/edit-actions/</A
+>).
+ (Other actions files are included as well with differing levels of filtering
and blocking, e.g. <TT
CLASS="FILENAME"
>basic.action</TT
></LI
><LI
><P
-> The <TT
+> <TT
CLASS="FILENAME"
>default.filter</TT
-> file can be used to re-write the raw
+> (the filter file) can be used to re-write the raw
page content, including viewable text as well as embedded HTML and JavaScript,
- and whatever else lurks on any given web page.
+ and whatever else lurks on any given web page. The filtering jobs are only
+ pre-defined here; whether to apply them or not is up to the actions file.
</P
></LI
></UL
></P
><P
+> All files use the <SPAN
+CLASS="QUOTE"
+>"<TT
+CLASS="LITERAL"
+>#</TT
+>"</SPAN
+> character to denote a
+ comment (the rest of the line will be ignored) and understand line continuation
+ through placing a backslash ("<TT
+CLASS="LITERAL"
+>\</TT
+>") as the very last character
+ in a line. If the <TT
+CLASS="LITERAL"
+>#</TT
+> is preceded by a backslash, it looses
+ its special function. Placing a <TT
+CLASS="LITERAL"
+>#</TT
+> in front of an otherwise
+ valid configuration line to prevent it from being interpreted is called "commenting
+ out" that line.</P
+><P
> <TT
CLASS="FILENAME"
>default.action</TT
CLASS="FILENAME"
>default.filter</TT
>
- can use Perl style regular expressions for maximum flexibility. All files use
- the <SPAN
-CLASS="QUOTE"
->"<TT
-CLASS="LITERAL"
->#</TT
->"</SPAN
-> character to denote a comment. Such
- lines are not processed by <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->. After
- making any changes, there is no need to restart
+ can use Perl style <A
+HREF="appendix.html#REGEX"
+>regular expressions</A
+> for
+ maximum flexibility. </P
+><P
+> After making any changes, there is no need to restart
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
effect. <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> should detect such changes
- automatically.</P
+> detects such changes
+ automatically. Note, however, that it may take one or two additional
+ requests for the change to take effect. When changing the listening address
+ of <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>, these <SPAN
+CLASS="QUOTE"
+>"wake up"</SPAN
+> requests
+ must obviously be sent to the <I
+CLASS="EMPHASIS"
+>old</I
+> listening address.</P
><P
> While under development, the configuration content is subject to change.
The below documentation may not be accurate by the time you read this.
><H2
CLASS="SECT2"
><A
-NAME="AEN317"
+NAME="AEN383"
>5.3. The Main Configuration File</A
></H2
><P
CLASS="LITERALLAYOUT"
> <I
CLASS="EMPHASIS"
->blockfile blocklist.ini</I
+>confdir /etc/privoxy</I
><br>
</P
->
+>
</TT
-></P
-><P
-> Indicates that the blockfile is named <SPAN
-CLASS="QUOTE"
->"blocklist.ini"</SPAN
->. (A
- default installation does not use this.)</P
+> </P
><P
-> A <SPAN
-CLASS="QUOTE"
->"<TT
-CLASS="LITERAL"
->#</TT
->"</SPAN
-> indicates a comment. Any part of a
- line following a <SPAN
-CLASS="QUOTE"
->"<TT
+> Assigns the value <TT
CLASS="LITERAL"
->#</TT
->"</SPAN
-> is ignored, except if
- the <SPAN
-CLASS="QUOTE"
->"<TT
+>/etc/privoxy</TT
+> to the option
+ <TT
CLASS="LITERAL"
->#</TT
->"</SPAN
-> is preceded by a
- <SPAN
+>confdir</TT
+> and thus indicates that the configuration
+ directory is named <SPAN
CLASS="QUOTE"
->"<TT
-CLASS="LITERAL"
->\</TT
->"</SPAN
+>"/etc/privoxy/"</SPAN
>.</P
><P
-> Thus, by placing a <SPAN
-CLASS="QUOTE"
->"<TT
+> All options in the config file except for <TT
CLASS="LITERAL"
->#</TT
->"</SPAN
-> at the start of an
- existing configuration line, you can make it a comment and it will be treated
- as if it weren't there. This is called <SPAN
-CLASS="QUOTE"
->"commenting out"</SPAN
-> an
- option and can be useful to turn off features: If you comment out the
- <SPAN
-CLASS="QUOTE"
->"logfile"</SPAN
-> line, <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> will not
- log to a file at all. Watch for the <SPAN
-CLASS="QUOTE"
->"default:"</SPAN
-> section in each
- explanation to see what happens if the option is left unset (or commented
- out). </P
-><P
-> Long lines can be continued on the next line by using a
- <SPAN
-CLASS="QUOTE"
->"<TT
+>confdir</TT
+> and
+ <TT
CLASS="LITERAL"
->\</TT
->"</SPAN
-> as the very last character.</P
+>logdir</TT
+> are optional. Watch out in the below description
+ for what happens if you leave them unset.</P
><P
-> There are various aspects of <SPAN
+> The main config file controls all aspects of <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> behavior
- that can be tuned.</P
+>'s
+ operation that are not location dependent (i.e. they apply universally, no matter
+ where you may be surfing).</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN350"
->5.3.1. Defining Other Configuration Files</A
+NAME="AEN402"
+>5.3.1. Configuration and Log File Locations</A
></H3
><P
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> can use a number of other files to tell it
- what ads to block, what cookies to accept, and perform other functions. This
- section of the configuration file tells <SPAN
+> can (and normally does) use a number of
+ other files for additional configuration and logging.
+ This section of the configuration file tells <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>
- where to find all those other files. </P
+ where to find those other files. </P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN407"
+>5.3.1.1. confdir</A
+></H4
><P
-> On <SPAN
-CLASS="APPLICATION"
->Windows</SPAN
-> and <SPAN
-CLASS="APPLICATION"
->AmigaOS</SPAN
->,
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> looks for these files in the same
- directory as the executable. On Unix and OS/2,
- <SPAN
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+>The directory where the other configuration files are located</P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>Path name</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>/etc/privoxy (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> looks for these files in the current
- working directory. In either case, an absolute path name can be used to
- avoid problems.</P
+> installation dir (Windows) </P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+><I
+CLASS="EMPHASIS"
+>Mandatory</I
+></P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> No trailing <SPAN
+CLASS="QUOTE"
+>"<TT
+CLASS="LITERAL"
+>/</TT
+>"</SPAN
+>, please
+ </P
><P
-> When development goes modular and multi-user, the blocker, filter, and
- per-user config will be stored in subdirectories of <SPAN
+> When development goes modular and multi-user, the blocker, filter, and
+ per-user config will be stored in subdirectories of <SPAN
CLASS="QUOTE"
>"confdir"</SPAN
>.
- For now, only <TT
+ For now, the configuration directory structure is flat, except for
+ <TT
CLASS="FILENAME"
>confdir/templates</TT
-> is used for storing HTML
- templates for CGI results. </P
-><P
-> The location of the configuration files:</P
+>, where the HTML templates for CGI
+ output reside (e.g. <SPAN
+CLASS="APPLICATION"
+>Privoxy's</SPAN
+> 404 error page).
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN439"
+>5.3.1.2. logdir</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->confdir /etc/privoxy</I
-> # No trailing /, please.<br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> The directory where all logging (i.e. <TT
+> The directory where all logging takes place (i.e. where <TT
CLASS="FILENAME"
>logfile</TT
> and
- <TT
+ <TT
CLASS="FILENAME"
>jarfile</TT
->) takes place. No trailing
- <SPAN
+> are located)
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>Path name</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>/var/log/privoxy (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> installation dir (Windows) </P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+><I
+CLASS="EMPHASIS"
+>Mandatory</I
+></P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> No trailing <SPAN
CLASS="QUOTE"
>"<TT
CLASS="LITERAL"
>/</TT
>"</SPAN
->, please: </P
+>, please
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN469"
+>5.3.1.3. actionsfile</A
+></H4
><P
-> <TT
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> The actions file to use
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>File name, relative to <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->logdir /var/log/privoxy</I
-><br>
- </P
->
- </TT
+>confdir</TT
></P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>default.action (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> default.action.txt (Windows)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
-> Note that all file specifications below are relative to
- the above two directories!</P
+> No action is taken at all. Simple neutral proxying.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> The <SPAN
-CLASS="QUOTE"
->"default.action"</SPAN
-> file contains patterns to specify the
- actions to apply to requests for each site. Default: Cookies to and from all
- destinations are kept only during the current browser session (i.e. they are
- not saved to disk). Pop-ups are disabled for all sites. All sites are
- filtered through selected sections of <SPAN
-CLASS="QUOTE"
->"default.filter"</SPAN
->. No sites
- are blocked. <SPAN
+> There is no point in using <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> displays a checkboard type
- pattern for filtered ads and other images. The syntax of this file is
- explained in detail <A
-HREF="configuration.html#ACTIONSFILE"
->below</A
->. Other
- <SPAN
-CLASS="QUOTE"
->"actions"</SPAN
-> files are included, and you are free to use any of
- them. They have varying degrees of aggressiveness.</P
+> without
+ an actions file. There are three different actions files included in the
+ distribution, with varying degrees of aggressiveness:
+ <TT
+CLASS="FILENAME"
+>default.action</TT
+>, <TT
+CLASS="FILENAME"
+>intermediate.action</TT
+> and
+ <TT
+CLASS="FILENAME"
+>advanced.action</TT
+>.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN498"
+>5.3.1.4. filterfile</A
+></H4
><P
-> <TT
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> The filter file to use
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>File name, relative to <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->actionsfile default.action</I
-><br>
- </P
->
- </TT
+>confdir</TT
></P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>default.filter (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> default.filter.txt (Windows)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> No textual content filtering takes place, i.e. all
+ <TT
+CLASS="LITERAL"
+>+filter{<TT
+CLASS="REPLACEABLE"
+><I
+>name</I
+></TT
+>}</TT
+>
+ actions in the actions file are turned off
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> The <SPAN
+> The <SPAN
CLASS="QUOTE"
>"default.filter"</SPAN
> file contains content modification rules
- that use <SPAN
+ that use <SPAN
CLASS="QUOTE"
>"regular expressions"</SPAN
>. These rules permit powerful
- changes on the content of Web pages, e.g., you could disable your favorite
- JavaScript annoyances, re-write the actual displayed text, or just have some
- fun replacing <SPAN
+ changes on the content of Web pages, e.g., you could disable your favorite
+ JavaScript annoyances, re-write the actual displayed text, or just have some
+ fun replacing <SPAN
CLASS="QUOTE"
>"Microsoft"</SPAN
> with <SPAN
CLASS="QUOTE"
>"MicroSuck"</SPAN
> wherever
- it appears on a Web page. Default: whatever the developers are playing with
- :-/</P
+ it appears on a Web page.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN529"
+>5.3.1.5. logfile</A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> Filtering requires buffering the page content, which may appear to slow down
- page rendering since nothing is displayed until all content has passed
- the filters. (It does not really take longer, but seems that way since
- the page is not incrementally displayed.) This effect will be more noticeable
- on slower connections. </P
+> The log file to use
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
><P
-> <TT
+>File name, relative to <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->filterfile default.filter</I
-><br>
- </P
->
- </TT
+>logdir</TT
></P
+></DD
+><DT
+>Default value:</DT
+><DD
><P
-> The logfile is where all logging and error messages are written. The logfile
- can be useful for tracking down a problem with
- <SPAN
+>logfile (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> privoxy.log (Windows)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> No log file is used, all log messages go to the console (<TT
+CLASS="LITERAL"
+>stderr</TT
+>).
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> The windows version will additionally log to the console.
+ </P
+><P
+> The logfile is where all logging and error messages are written. The level
+ of detail and number of messages are set with the <TT
+CLASS="LITERAL"
+>debug</TT
+>
+ option (see below). The logfile can be useful for tracking down a problem with
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
> (e.g., it's not blocking an ad you
- think it should block) but in most cases you probably will never look at it.</P
+ think it should block) but in most cases you probably will never look at it.
+ </P
><P
-> Your logfile will grow indefinitely, and you will probably want to
- periodically remove it. On Unix systems, you can do this with a cron job
- (see <SPAN
+> Your logfile will grow indefinitely, and you will probably want to
+ periodically remove it. On Unix systems, you can do this with a cron job
+ (see <SPAN
CLASS="QUOTE"
>"man cron"</SPAN
->). For Redhat, a <B
+>). For Red Hat, a <B
CLASS="COMMAND"
>logrotate</B
>
- script has been included.</P
+ script has been included.
+ </P
><P
-> On SuSE Linux systems, you can place a line like <SPAN
+> On SuSE Linux systems, you can place a line like <SPAN
CLASS="QUOTE"
>"/var/log/privoxy.*
- +1024k 644 nobody.nogroup"</SPAN
+ +1024k 644 nobody.nogroup"</SPAN
> in <TT
CLASS="FILENAME"
>/etc/logfiles</TT
>, with
- the effect that cron.daily will automatically archive, gzip, and empty the
- log, when it exceeds 1M size.</P
+ the effect that cron.daily will automatically archive, gzip, and empty the
+ log, when it exceeds 1M size.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN564"
+>5.3.1.6. jarfile</A
+></H4
><P
-> Default: Log to the a file named <TT
-CLASS="FILENAME"
->logfile</TT
->.
- Comment out to disable logging.</P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> <TT
+> The file to store intercepted cookies in
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>File name, relative to <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->logfile logfile</I
-><br>
- </P
->
- </TT
+>logdir</TT
></P
+></DD
+><DT
+>Default value:</DT
+><DD
><P
-> The <SPAN
-CLASS="QUOTE"
->"jarfile"</SPAN
-> defines where
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> stores the cookies it intercepts. Note
- that if you use a <SPAN
-CLASS="QUOTE"
->"jarfile"</SPAN
->, it may grow quite large. Default:
- Don't store intercepted cookies.</P
+>jarfile (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> privoxy.jar (Windows)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Intercepted cookies are not stored at all.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> The jarfile may grow to ridiculous sizes over time.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN589"
+>5.3.1.7. trustfile</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->#jarfile jarfile</I
-><br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> If you specify a <SPAN
-CLASS="QUOTE"
->"trustfile"</SPAN
->,
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> will only allow access to sites that
- are named in the trustfile. You can also mark sites as trusted referrers,
- with the effect that access to untrusted sites will be granted, if a link
- from a trusted referrer was used. The link target will then be added to the
- <SPAN
-CLASS="QUOTE"
->"trustfile"</SPAN
->. This is a very restrictive feature that typical
- users most probably want to leave disabled. Default: Disabled, don't use the
- trust mechanism.</P
+> The trust file to use
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
><P
-> <TT
+>File name, relative to <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->#trustfile trust</I
-><br>
- </P
->
- </TT
+>confdir</TT
></P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+><I
+CLASS="EMPHASIS"
+>Unset (commented out)</I
+>. When activated: trust (Unix) <I
+CLASS="EMPHASIS"
+>or</I
+> trust.txt (Windows)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> The whole trust mechanism is turned off.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> The trust mechanism is an experimental feature for building white-lists and should
+ be used with care. It is <I
+CLASS="EMPHASIS"
+>NOT</I
+> recommended for the casual user.
+ </P
><P
-> If you use the trust mechanism, it is a good idea to write up some on-line
- documentation about your blocking policy and to specify the URL(s) here. They
- will appear on the page that your users receive when they try to access
- untrusted content. Use multiple times for multiple URLs. Default: Don't
- display links on the <SPAN
+> If you specify a trust file, <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will only allow
+ access to sites that are named in the trustfile.
+ You can also mark sites as trusted referrers (with <TT
+CLASS="LITERAL"
+>+</TT
+>), with
+ the effect that access to untrusted sites will be granted, if a link from a
+ trusted referrer was used.
+ The link target will then be added to the <SPAN
CLASS="QUOTE"
->"untrusted"</SPAN
-> info page.</P
+>"trustfile"</SPAN
+>.
+ Possible applications include limiting Internet access for children.
+ </P
><P
-> <TT
+> If you use <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->trust-info-url http://www.example.com/why_we_block.html</I
-><br>
- <I
-CLASS="EMPHASIS"
->trust-info-url http://www.example.com/what_we_allow.html</I
-><br>
- </P
->
- </TT
-></P
+>+</TT
+> operator in the trust file, it may grow considerably over time.
+ </P
+></DD
+></DL
+></DIV
+></DIV
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN443"
->5.3.2. Other Configuration Options</A
+NAME="AEN622"
+>5.3.2. Local Set-up Documentation</A
></H3
><P
-> This part of the configuration file contains options that control how
- <SPAN
+> If you intend to operate <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> operates.</P
+> for more users
+ that just yourself, it might be a good idea to let them know how to reach
+ you, what you block and why you do that, your policies etc.
+ </P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN626"
+>5.3.2.1. trust-info-url</A
+></H4
><P
-> <SPAN
-CLASS="QUOTE"
->"Admin-address"</SPAN
-> should be set to the email address of the proxy
- administrator. It is used in many of the proxy-generated pages. Default:
- fill@me.in.please.</P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> <TT
+> A URL to be displayed in the error page that users will see if access to an untrusted page is denied.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>URL</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>Two example URL are provided</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> No links are displayed on the "untrusted" error page.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> The value of this option only matters if the experimental trust mechanism has been
+ activated. (See <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->#admin-address fill@me.in.please</I
-><br>
- </P
->
- </TT
+>trustfile</TT
+> above.)
+ </P
+><P
+> If you use the trust mechanism, it is a good idea to write up some on-line
+ documentation about your trust policy and to specify the URL(s) here.
+ Use multiple times for multiple URLs.
+ </P
+><P
+> The URL(s) should be added to the trustfile as well, so users don't end up
+ locked out from the information on why they were locked out in the first place!
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN652"
+>5.3.2.2. admin-address</A
+></H4
+><P
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> <SPAN
-CLASS="QUOTE"
->"Proxy-info-url"</SPAN
-> can be set to a URL that contains more info
- about this <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> installation, it's
- configuration and policies. It is used in many of the proxy-generated pages
- and its use is highly recommended in multi-user installations, since your
- users will want to know why certain content is blocked or modified. Default:
- Don't show a link to on-line documentation.</P
+> An email address to reach the proxy administrator.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+>Email address</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+><I
CLASS="EMPHASIS"
->proxy-info-url http://www.example.com/proxy.html</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
-> <SPAN
-CLASS="QUOTE"
->"Listen-address"</SPAN
-> specifies the address and port where
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> will listen for connections from your
- Web browser. The default is to listen on the localhost port 8118, and
- this is suitable for most users. (In your web browser, under proxy
- configuration, list the proxy server as <SPAN
-CLASS="QUOTE"
->"localhost"</SPAN
-> and the
- port as <SPAN
-CLASS="QUOTE"
->"8118"</SPAN
->).</P
+> No email address is displayed on error pages and the CGI user interface.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> If you already have another service running on port 8118, or if you want to
- serve requests from other machines (e.g. on your local network) as well, you
- will need to override the default. The syntax is
- <SPAN
-CLASS="QUOTE"
->"listen-address [<ip-address>]:<port>"</SPAN
->. If you leave
- out the IP address, <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> will bind to all
- interfaces (addresses) on your machine and may become reachable from the
- Internet. In that case, consider using access control lists (acl's) (see
- <SPAN
-CLASS="QUOTE"
->"aclfile"</SPAN
-> above), or a firewall.</P
+> If both <TT
+CLASS="LITERAL"
+>admin-address</TT
+> and <TT
+CLASS="LITERAL"
+>proxy-info-url</TT
+>
+ are unset, the whole "Local Privoxy Support" box on all generated pages will
+ not be shown.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN678"
+>5.3.2.3. proxy-info-url</A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> For example, suppose you are running <SPAN
+> A URL to documentation about the local <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> on
- a machine which has the address 192.168.0.1 on your local private network
- (192.168.0.0) and has another outside connection with a different address.
- You want it to serve requests from inside only:</P
+> setup,
+ configuration or policies.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+>URL</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+><I
CLASS="EMPHASIS"
->listen-address 192.168.0.1:8118</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
-> If you want it to listen on all addresses (including the outside
- connection):</P
+> No link to local documentation is displayed on error pages and the CGI user interface.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> <TT
+> If both <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->listen-address :8118</I
-><br>
- </P
->
- </TT
-></P
-><P
-> If you do this, consider using ACLs (see <SPAN
-CLASS="QUOTE"
->"aclfile"</SPAN
-> above). Note:
- you will need to point your browser(s) to the address and port that you have
- configured here. Default: localhost:8118 (127.0.0.1:8118).</P
+>admin-address</TT
+> and <TT
+CLASS="LITERAL"
+>proxy-info-url</TT
+>
+ are unset, the whole "Local Privoxy Support" box on all generated pages will
+ not be shown.
+ </P
><P
-> The debug option sets the level of debugging information to log in the
- logfile (and to the console in the Windows version). A debug level of 1 is
- informative because it will show you each request as it happens. Higher
- levels of debug are probably only of interest to developers.</P
+> This URL shouldn't be blocked ;-)
+ </P
+></DD
+></DL
+></DIV
+></DIV
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN706"
+>5.3.3. Debugging</A
+></H3
><P
-> <TT
+> These options are mainly useful when tracing a problem.
+ Note that you might also want to invoke
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> with the <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> debug 1 # GPC = show each GET/POST/CONNECT request<br>
- debug 2 # CONN = show each connection status<br>
- debug 4 # IO = show I/O status<br>
- debug 8 # HDR = show header parsing<br>
- debug 16 # LOG = log all data into the logfile<br>
- debug 32 # FRC = debug force feature<br>
- debug 64 # REF = debug regular expression filter <br>
- debug 128 # = debug fast redirects<br>
- debug 256 # = debug GIF de-animation<br>
- debug 512 # CLF = Common Log Format<br>
- debug 1024 # = debug kill pop-ups<br>
- debug 4096 # INFO = Startup banner and warnings.<br>
- debug 8192 # ERROR = Non-fatal errors<br>
- </P
+>--no-daemon</TT
>
- </TT
+ command line option when debugging.
+ </P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN711"
+>5.3.3.1. debug</A
+></H4
+><P
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> Key values that determine what information gets logged.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>Integer values</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>12289 (i.e.: URLs plus informational and warning messages)</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Nothing gets logged.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> The available debug levels are:
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> debug 1 # show each GET/POST/CONNECT request
+ debug 2 # show each connection status
+ debug 4 # show I/O status
+ debug 8 # show header parsing
+ debug 16 # log all data into the logfile
+ debug 32 # debug force feature
+ debug 64 # debug regular expression filter
+ debug 128 # debug fast redirects
+ debug 256 # debug GIF de-animation
+ debug 512 # Common Log Format
+ debug 1024 # debug kill pop-ups
+ debug 4096 # Startup banner and warnings.
+ debug 8192 # Non-fatal errors
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> To select multiple debug levels, you can either add them or use
+ multiple <TT
+CLASS="LITERAL"
+>debug</TT
+> lines.
+ </P
><P
-> It is <I
+> A debug level of 1 is informative because it will show you each request
+ as it happens. <I
CLASS="EMPHASIS"
->highly recommended</I
-> that you enable ERROR
- reporting (debug 8192), at least until v3.0 is released.</P
+>1, 4096 and 8192 are highly recommended</I
+>
+ so that you will notice when things go wrong. The other levels are probably
+ only of interest if you are hunting down a specific problem. They can produce
+ a hell of an output (especially 16).
+
+ </P
><P
-> The reporting of FATAL errors (i.e. ones which crash
- <SPAN
+> The reporting of <I
+CLASS="EMPHASIS"
+>fatal</I
+> errors (i.e. ones which crash
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
->) is always on and cannot be disabled.</P
+>) is always on and cannot be disabled.
+ </P
><P
-> If you want to use CLF (Common Log Format), you should set <SPAN
+> If you want to use CLF (Common Log Format), you should set <SPAN
CLASS="QUOTE"
>"debug
- 512"</SPAN
-> ONLY, do not enable anything else.</P
-><P
-> Multiple <SPAN
-CLASS="QUOTE"
->"debug"</SPAN
-> directives, are OK - they're logical-OR'd
- together. </P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+ 512"</SPAN
+> <I
CLASS="EMPHASIS"
->debug 15 # same as setting the first 4 listed above</I
-><br>
- </P
->
- </TT
+>ONLY</I
+> and not enable anything else.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN746"
+>5.3.3.2. single-threaded</A
+></H4
+><P
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> Default:</P
+> Whether to run only one server thread
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->debug 1 # URLs</I
-><br>
- <I
+><I
CLASS="EMPHASIS"
->debug 4096 # Info</I
-><br>
- <I
+>None</I
+></P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+><I
CLASS="EMPHASIS"
->debug 8192 # Errors - *we highly recommended enabling this*</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> normally uses
- <SPAN
-CLASS="QUOTE"
->"multi-threading"</SPAN
->, a software technique that permits it to
- handle many different requests simultaneously. In some cases you may wish to
- disable this -- particularly if you're trying to debug a problem. The
- <SPAN
-CLASS="QUOTE"
->"single-threaded"</SPAN
-> option forces
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> to handle requests sequentially.
- Default: Multi-threaded mode.</P
+> Multi-threaded (or, where unavailable: forked) operation, i.e. the ability to
+ serve multiple requests simultaneously.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> This option is only there for debug purposes and you should never
+ need to use it. <I
CLASS="EMPHASIS"
->#single-threaded</I
-><br>
- </P
->
- </TT
-></P
-><P
-> <SPAN
-CLASS="QUOTE"
->"toggle"</SPAN
-> allows you to temporarily disable all
- <SPAN
-CLASS="APPLICATION"
->Privoxy's</SPAN
-> filtering. Just set <SPAN
-CLASS="QUOTE"
->"toggle
- 0"</SPAN
->.</P
-><P
-> The Windows version of <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> puts an icon in
- the system tray, which also allows you to change this option. If you
- right-click on that icon (or select the <SPAN
-CLASS="QUOTE"
->"Options"</SPAN
-> menu), one
- choice is <SPAN
-CLASS="QUOTE"
->"Enable"</SPAN
->. Clicking on enable toggles
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> on and off. This is useful if you want
- to temporarily disable <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->, e.g., to access
- a site that requires cookies which you would otherwise have blocked. This can also
- be toggled via a web browser at the <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
+>It will drastically reduce performance.</I
>
- internal address of <A
-HREF="http://p.p"
-TARGET="_top"
->http://p.p</A
-> on
- any platform.</P
+ </P
+></DD
+></DL
+></DIV
+></DIV
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN772"
+>5.3.4. Access Control and Security</A
+></H3
><P
-> <SPAN
-CLASS="QUOTE"
->"toggle 1"</SPAN
-> means <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> runs
- normally, <SPAN
-CLASS="QUOTE"
->"toggle 0"</SPAN
-> means that
- <SPAN
+> This section of the config file controls the security-relevant aspects
+ of <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> becomes a non-anonymizing non-blocking
- proxy. Default: 1 (on). </P
+>'s configuration.
+ </P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN776"
+>5.3.4.1. listen-address</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->toggle 1</I
-><br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> For content filtering, i.e. the <SPAN
-CLASS="QUOTE"
->"+filter"</SPAN
-> and
- <SPAN
-CLASS="QUOTE"
->"+deanimate-gif"</SPAN
-> actions, it is necessary that
- <SPAN
+> The IP address and TCP port on which <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> buffers the entire document body.
- This can be potentially dangerous, since a server could just keep sending
- data indefinitely and wait for your RAM to exhaust. With nasty consequences.</P
-><P
-> The <SPAN
-CLASS="APPLICATION"
->buffer-limit</SPAN
-> option lets you set the maximum
- size in Kbytes that each buffer may use. When the documents buffer exceeds
- this size, it is flushed to the client unfiltered and no further attempt to
- filter the rest of it is made. Remember that there may multiple threads
- running, which might require increasing the <SPAN
-CLASS="QUOTE"
->"buffer-limit"</SPAN
->
- Kbytes <I
-CLASS="EMPHASIS"
->each</I
->, unless you have enabled
- <SPAN
-CLASS="QUOTE"
->"single-threaded"</SPAN
-> above.</P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->buffer-limit 4069</I
-><br>
- </P
->
- </TT
+> will
+ listen for client requests.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>[<TT
+CLASS="REPLACEABLE"
+><I
+>IP-Address</I
+></TT
+>]:<TT
+CLASS="REPLACEABLE"
+><I
+>Port</I
+></TT
></P
-><P
-> To enable the web-based <TT
-CLASS="FILENAME"
->default.action</TT
-> file editor set
- <SPAN
-CLASS="APPLICATION"
->enable-edit-actions</SPAN
-> to 1, or 0 to disable. Note
- that you must have compiled <SPAN
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>localhost:8118</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Bind to localhost (127.0.0.1), port 8118. This is suitable and recommended for
+ home users who run <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> with
- support for this feature, otherwise this option has no effect. This
- internal page can be reached at <A
-HREF="http://p.p"
-TARGET="_top"
->http://p.p</A
->.
- </P
+> on the same machine as
+ their browser.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> Security note: If this is enabled, anyone who can use the proxy
- can edit the actions file, and their changes will affect all users.
- For shared proxies, you probably want to disable this. Default: enabled.</P
+> You will need to configure your browser(s) to this proxy address and port.
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->enable-edit-actions 1</I
-><br>
- </P
->
- </TT
-></P
+> If you already have another service running on port 8118, or if you want to
+ serve requests from other machines (e.g. on your local network) as well, you
+ will need to override the default.
+ </P
><P
-> Allow <SPAN
+> If you leave out the IP address, <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> to be toggled on and off
- remotely, using your web browser. Set <SPAN
+> will
+ bind to all interfaces (addresses) on your machine and may become reachable
+ from the Internet. In that case, consider using access control lists (acl's)
+ (see <SPAN
CLASS="QUOTE"
->"enable-remote-toggle"</SPAN
->to
- 1 to enable, and 0 to disable. Note that you must have compiled
- <SPAN
+>"ACLs"</SPAN
+> below), or a firewall.
+ </P
+></DD
+><DT
+>Example:</DT
+><DD
+><P
+> Suppose you are running <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> with support for this feature,
- otherwise this option has no effect.</P
-><P
-> Security note: If this is enabled, anyone who can use the proxy can toggle
- it on or off (see <A
-HREF="http://p.p"
-TARGET="_top"
->http://p.p</A
->), and
- their changes will affect all users. For shared proxies, you probably want to
- disable this. Default: enabled.</P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->enable-remote-toggle 1</I
-><br>
- </P
->
- </TT
-></P
-></DIV
-><DIV
-CLASS="SECT3"
-><H3
-CLASS="SECT3"
-><A
-NAME="AEN580"
->5.3.3. Access Control List (ACL)</A
-></H3
-><P
-> Access controls are included at the request of some ISPs and systems
- administrators, and are not usually needed by individual users. Please note
- the warnings in the FAQ that this proxy is not intended to be a substitute
- for a firewall or to encourage anyone to defer addressing basic security
- weaknesses.</P
-><P
-> If no access settings are specified, the proxy talks to anyone that
- connects. If any access settings file are specified, then the proxy
- talks only to IP addresses permitted somewhere in this file and not
- denied later in this file.</P
-><P
-> Summary -- if using an ACL:</P
-><P
-></P
-><TABLE
-BORDER="0"
-><TBODY
-><TR
-><TD
-> Client must have permission to receive service.
- </TD
-></TR
-></TBODY
-></TABLE
-><P
-></P
+> on
+ a machine which has the address 192.168.0.1 on your local private network
+ (192.168.0.0) and has another outside connection with a different address.
+ You want it to serve requests from inside only:
+ </P
><P
-></P
-><TABLE
+> <TABLE
BORDER="0"
-><TBODY
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
><TR
><TD
-> LAST match in ACL wins.
- </TD
+><PRE
+CLASS="PROGRAMLISTING"
+> listen-address 192.168.0.1:8118
+ </PRE
+></TD
></TR
-></TBODY
></TABLE
+>
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN814"
+>5.3.4.2. toggle</A
+></H4
><P
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-></P
-><TABLE
-BORDER="0"
-><TBODY
-><TR
-><TD
-> Default behavior is to deny service.
- </TD
-></TR
-></TBODY
-></TABLE
+> Initial state of "toggle" status
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>1 or 0</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>1</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Act as if toggled on
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-></P
+> If set to 0, <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will start in
+ <SPAN
+CLASS="QUOTE"
+>"toggled off"</SPAN
+> mode, i.e. behave like a normal, content-neutral
+ proxy. See <TT
+CLASS="LITERAL"
+>enable-remote-toggle</TT
+>
+ below. This is not really useful anymore, since toggling is much easier
+ via <A
+HREF="http://config.privoxy.org/toggle"
+TARGET="_top"
+>the web
+ interface</A
+> then via editing the <TT
+CLASS="FILENAME"
+>conf</TT
+> file.
+ </P
><P
-> The syntax for an entry in the Access Control List is:</P
+> The windows version will only display the toggle icon in the system tray
+ if this option is present.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN843"
+>5.3.4.3. enable-remote-toggle</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> ACTION SRC_ADDR[/SRC_MASKLEN] [ DST_ADDR[/DST_MASKLEN] ]<br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> Whether or not the <A
+HREF="http://config.privoxy.org/toggle"
+TARGET="_top"
+>web-based toggle
+ feature</A
+> may be used
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>0 or 1</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>1</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> The web-based toggle feature is disabled.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> Where the individual fields are:</P
+> When toggled off, <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> acts like a normal,
+ content-neutral proxy, i.e. it acts as if none of the actions applied to
+ any URL.
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> For the time being, access to the toggle feature can <I
CLASS="EMPHASIS"
->ACTION</I
-> = <SPAN
-CLASS="QUOTE"
->"permit-access"</SPAN
-> or <SPAN
+>not</I
+> be
+ controlled separately by <SPAN
CLASS="QUOTE"
->"deny-access"</SPAN
-><br>
-<br>
- <I
-CLASS="EMPHASIS"
->SRC_ADDR</I
-> = client hostname or dotted IP address<br>
- <I
-CLASS="EMPHASIS"
->SRC_MASKLEN</I
-> = number of bits in the subnet mask for the source<br>
-<br>
- <I
-CLASS="EMPHASIS"
->DST_ADDR</I
-> = server or forwarder hostname or dotted IP address<br>
- <I
-CLASS="EMPHASIS"
->DST_MASKLEN</I
-> = number of bits in the subnet mask for the target<br>
- </P
->
- </TT
-></P
-><P
->
- The field separator (FS) is whitespace (space or tab).</P
-><P
-> IMPORTANT NOTE: If <SPAN
+>"ACLs"</SPAN
+> or HTTP authentication,
+ so that everybody who can access <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is using a
- forwarder (see below) or a gateway for a particular destination URL, the
- <TT
+> (see
+ <SPAN
+CLASS="QUOTE"
+>"ACLs"</SPAN
+> and <TT
CLASS="LITERAL"
->DST_ADDR</TT
-> that is examined is the address of the forwarder
- or the gateway and <I
+>listen-address</TT
+> above) can
+ toggle it for all users. So this option is <I
CLASS="EMPHASIS"
->NOT</I
-> the address of the ultimate
- target. This is necessary because it may be impossible for the local
- <SPAN
+>not recommended</I
+>
+ for multi-user environments with untrusted users.
+ </P
+><P
+> Note that you must have compiled <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> to determine the address of the
- ultimate target (that's often what gateways are used for).</P
+> with
+ support for this feature, otherwise this option has no effect.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN877"
+>5.3.4.4. enable-edit-actions</A
+></H4
><P
-> Here are a few examples to show how the ACL features work:</P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> Whether or not the <A
+HREF="http://config.privoxy.org/edit-actions"
+TARGET="_top"
+>web-based actions
+ file editor</A
+> may be used
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>0 or 1</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>1</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> The web-based actions file editor is disabled.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> <SPAN
-CLASS="QUOTE"
->"localhost"</SPAN
-> is OK -- no DST_ADDR implies that
- <I
+> For the time being, access to the editor can <I
CLASS="EMPHASIS"
->ALL</I
-> destination addresses are OK:</P
-><P
-> <TT
+>not</I
+> be
+ controlled separately by <SPAN
+CLASS="QUOTE"
+>"ACLs"</SPAN
+> or HTTP authentication,
+ so that everybody who can access <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> (see
+ <SPAN
+CLASS="QUOTE"
+>"ACLs"</SPAN
+> and <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+>listen-address</TT
+> above) can
+ modify its configuration for all users. So this option is <I
CLASS="EMPHASIS"
->permit-access localhost</I
-><br>
- </P
->
- </TT
-></P
+>not
+ recommended</I
+> for multi-user environments with untrusted users.
+ </P
><P
-> A silly example to illustrate permitting any host on the class-C subnet with
- <SPAN
+> Note that you must have compiled <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> to go anywhere:</P
+> with
+ support for this feature, otherwise this option has no effect.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN909"
+>5.3.4.5. ACLs: permit-access and deny-access</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->permit-access www.privoxy.com/24</I
-><br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> Except deny one particular IP address from using it at all:</P
+> Who can access what.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+> <TT
+CLASS="REPLACEABLE"
+><I
+>src_addr</I
+></TT
+>[/<TT
+CLASS="REPLACEABLE"
+><I
+>src_masklen</I
+></TT
+>]
+ [<TT
+CLASS="REPLACEABLE"
+><I
+>dst_addr</I
+></TT
+>[/<TT
+CLASS="REPLACEABLE"
+><I
+>dst_masklen</I
+></TT
+>]]
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> Where <TT
+CLASS="REPLACEABLE"
+><I
+>src_addr</I
+></TT
+> and
+ <TT
+CLASS="REPLACEABLE"
+><I
+>dst_addr</I
+></TT
+> are IP addresses in dotted decimal notation or valid
+ DNS names, and <TT
+CLASS="REPLACEABLE"
+><I
+>src_masklen</I
+></TT
+> and
+ <TT
+CLASS="REPLACEABLE"
+><I
+>dst_masklen</I
+></TT
+> are subnet masks in CIDR notation, i.e. integer
+ values from 2 to 30 representing the length (in bits) of the network address. The masks and the whole
+ destination part are optional.
+ </P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+><I
CLASS="EMPHASIS"
->deny-access ident.privoxy.com</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
-> You can also specify an explicit network address and subnet mask.
- Explicit addresses do not have to be resolved to be used.</P
-><P
-> <TT
+> Don't restrict access further than implied by <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+>listen-address</TT
+>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> Access controls are included at the request of ISPs and systems
+ administrators, and <I
CLASS="EMPHASIS"
->permit-access 207.153.200.0/24</I
-><br>
- </P
->
- </TT
-></P
+>are not usually needed by individual users</I
+>.
+ For a typical home user, it will normally suffice to ensure that
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> only listens on the localhost or internal (home)
+ network address by means of the <TT
+CLASS="LITERAL"
+>listen-address</TT
+> option.
+ </P
+><P
+> Please see the warnings in the FAQ that this proxy is not intended to be a substitute
+ for a firewall or to encourage anyone to defer addressing basic security
+ weaknesses.
+ </P
><P
-> A subnet mask of 0 matches anything, so the next line permits everyone.</P
+> Multiple ACL lines are OK.
+ If any ACLs are specified, then the <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>
+ talks only to IP addresses that match at least one <TT
+CLASS="LITERAL"
+>permit-access</TT
+> line
+ and don't match any subsequent <TT
+CLASS="LITERAL"
+>deny-access</TT
+> line. In other words, the
+ last match wins, with the default being <TT
+CLASS="LITERAL"
+>deny-access</TT
+>.
+ </P
><P
-> <TT
+> If <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> is using a forwarder (see <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+>forward</TT
+> below)
+ for a particular destination URL, the <TT
+CLASS="REPLACEABLE"
+><I
+>dst_addr</I
+></TT
+>
+ that is examined is the address of the forwarder and <I
CLASS="EMPHASIS"
->permit-access 0.0.0.0/0</I
-><br>
- </P
->
- </TT
-></P
+>NOT</I
+> the address
+ of the ultimate target. This is necessary because it may be impossible for the local
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> to determine the IP address of the
+ ultimate target (that's often what gateways are used for).
+ </P
><P
-> Note, you <I
+> You should prefer using IP addresses over DNS names, because the address lookups take
+ time. All DNS names must resolve! You can <I
CLASS="EMPHASIS"
->cannot</I
-> say:</P
+>not</I
+> use domain patterns
+ like <SPAN
+CLASS="QUOTE"
+>"*.org"</SPAN
+> or partial domain names. If a DNS name resolves to multiple
+ IP addresses, only the first one is used.
+ </P
><P
-> <TT
+> Denying access to particular sites by ACL may have undesired side effects
+ if the site in question is hosted on a machine which also hosts other sites.
+ </P
+></DD
+><DT
+>Examples:</DT
+><DD
+><P
+> Explicitly define the default behavior if no ACL and
+ <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->permit-access .org</I
-><br>
- </P
->
- </TT
+>listen-address</TT
+> are set: <SPAN
+CLASS="QUOTE"
+>"localhost"</SPAN
+>
+ is OK. The absence of a <TT
+CLASS="REPLACEABLE"
+><I
+>dst_addr</I
+></TT
+> implies that
+ <I
+CLASS="EMPHASIS"
+>all</I
+> destination addresses are OK:
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> permit-access localhost
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> Allow any host on the same class C subnet as www.privoxy.org access to
+ nothing but www.example.com:
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> permit-access www.privoxy.org/24 www.example.com/32
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+><P
+> Allow access from any host on the 26-bit subnet 192.168.45.64 to anywhere,
+ with the exception that 192.168.45.73 may not access www.dirty-stuff.example.com:
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> permit-access 192.168.45.64/26
+ deny-access 192.168.45.73 www.dirty-stuff.example.com
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN978"
+>5.3.4.6. buffer-limit</A
+></H4
+><P
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> to allow all *.org domains. Every IP address listed must resolve fully.</P
+> Maximum size of the buffer for content filtering.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+>Size in Kbytes</P
+></DD
+><DT
+>Default value:</DT
+><DD
+><P
+>4096</P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Use a 4MB (4096 KB) limit.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> An ISP may want to provide a <SPAN
+> For content filtering, i.e. the <TT
+CLASS="LITERAL"
+>+filter</TT
+> and
+ <TT
+CLASS="LITERAL"
+>+deanimate-gif</TT
+> actions, it is necessary that
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> that is
- accessible by <SPAN
-CLASS="QUOTE"
->"the world"</SPAN
-> and yet restrict use of some of their
- private content to hosts on its internal network (i.e. its own subscribers).
- Say, for instance the ISP owns the Class-B IP address block 123.124.0.0 (a 16
- bit netmask). This is how they could do it:</P
+> buffers the entire document body.
+ This can be potentially dangerous, since a server could just keep sending
+ data indefinitely and wait for your RAM to exhaust -- with nasty consequences.
+ Hence this option.
+ </P
><P
-> <TT
+> When a document buffer size reaches the <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->permit-access 0.0.0.0/0 0.0.0.0/0</I
-> # other clients can go anywhere <br>
- # with the following exceptions:<br>
- <br>
- <I
-CLASS="EMPHASIS"
->deny-access</I
-> 0.0.0.0/0 123.124.0.0/16 # block all external requests for<br>
- # sites on the ISP's network<br>
-<br>
- <I
-CLASS="EMPHASIS"
->permit 0.0.0.0/0 www.my_isp.com</I
-> # except for the ISP's main <br>
- # web site<br>
-<br>
- <I
+>buffer-limit</TT
+>, it is
+ flushed to the client unfiltered and no further attempt to
+ filter the rest of the document is made. Remember that there may be multiple threads
+ running, which might require up to <TT
+CLASS="LITERAL"
+>buffer-limit</TT
+> Kbytes
+ <I
CLASS="EMPHASIS"
->permit 123.124.0.0/16 0.0.0.0/0</I
-> # the ISP's clients can go <br>
- # anywhere<br>
- </P
->
- </TT
-></P
-><P
-> Note that if some hostnames are listed with multiple IP addresses,
- the primary value returned by DNS (via gethostbyname()) is used. Default:
- Anyone can access the proxy.</P
+>each</I
+>, unless you have enabled <SPAN
+CLASS="QUOTE"
+>"single-threaded"</SPAN
+>
+ above.
+ </P
+></DD
+></DL
+></DIV
+></DIV
></DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><A
NAME="FORWARDING"
->5.3.4. Forwarding</A
+>5.3.5. Forwarding</A
></H3
><P
-> This feature allows chaining of HTTP requests via multiple proxies.
+> This feature allows routing of HTTP requests through a chain of
+ multiple proxies.
It can be used to better protect privacy and confidentiality when
accessing specific domains by routing requests to those domains
- to a special purpose filtering proxy such as lpwa.com. Or to use
- a caching proxy to speed up browsing.</P
-><P
-> It can also be used in an environment with multiple networks to route
- requests via multiple gateways allowing transparent access to multiple
- networks without having to modify browser configurations.</P
+ through an anonymous public proxy (see e.g. <A
+HREF="http://www.multiproxy.org/anon_list.htm"
+TARGET="_top"
+>http://www.multiproxy.org/anon_list.htm</A
+>)
+ Or to use a caching proxy to speed up browsing. Or chaining to a parent
+ proxy may be necessary because the machine that <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>
+ runs on has no direct Internet access.</P
><P
> Also specified here are SOCKS proxies. <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>
- SOCKS 4 and SOCKS 4A. The difference is that SOCKS 4A will resolve the target
- hostname using DNS on the SOCKS server, not our local DNS client.</P
-><P
-> The syntax of each line is:</P
+ supports the SOCKS 4 and SOCKS 4A protocols.</P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN1016"
+>5.3.5.1. forward</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward target_domain[:port] http_proxy_host[:port]</I
-><br>
- <I
-CLASS="EMPHASIS"
->forward-socks4 target_domain[:port] socks_proxy_host[:port] http_proxy_host[:port]</I
-><br>
- <I
-CLASS="EMPHASIS"
->forward-socks4a target_domain[:port] socks_proxy_host[:port] http_proxy_host[:port]</I
-><br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
+><P
+> To which parent HTTP proxy specific requests should be routed.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+> <TT
+CLASS="REPLACEABLE"
+><I
+>target_domain</I
+></TT
+>[:<TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+>]
+ <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+>[/<TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+>]
+ </P
><P
-> If http_proxy_host is <SPAN
+> Where <TT
+CLASS="REPLACEABLE"
+><I
+>target_domain</I
+></TT
+> is a domain name pattern (see the
+ chapter on domain matching in the actions file),
+ <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+> is the address of the parent HTTP proxy
+ as an IP addresses in dotted decimal notation or as a valid DNS name (or <SPAN
CLASS="QUOTE"
>"."</SPAN
->, then requests are not forwarded to a
- HTTP proxy but are made directly to the web servers.</P
-><P
-> Lines are checked in sequence, and the last match wins.</P
-><P
-> There is an implicit line equivalent to the following, which specifies that
- anything not finding a match on the list is to go out without forwarding
- or gateway protocol, like so:</P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* . </I
-># implicit<br>
- </P
->
- </TT
-></P
-><P
-> In the following common configuration, everything goes to Lucent's LPWA,
- except SSL on port 443 (which it doesn't handle):</P
+> to denote
+ <SPAN
+CLASS="QUOTE"
+>"no forwarding"</SPAN
+>, and the optional
+ <TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+> parameters are TCP ports, i.e. integer
+ values from 1 to 64535
+ </P
+></DD
+><DT
+>Default value:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* lpwa.com:8000</I
-><br>
- <I
+><I
CLASS="EMPHASIS"
->forward :443 .</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
><P
->
- Some users have reported difficulties related to LPWA's use of
- <SPAN
+> Don't use parent HTTP proxies.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> If <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+> is <SPAN
CLASS="QUOTE"
>"."</SPAN
-> as the last element of the domain, and have said that this
- can be fixed with this:</P
+>, then requests are not
+ forwarded to another HTTP proxy but are made directly to the web servers.
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward lpwa. lpwa.com:8000</I
-><br>
- </P
->
- </TT
-></P
+> Multiple lines are OK, they are checked in sequence, and the last match wins.
+ </P
+></DD
+><DT
+>Examples:</DT
+><DD
><P
-> (NOTE: the syntax for specifying target_domain has changed since the
- previous paragraph was written -- it will not work now. More information
- is welcome.)</P
+> Everything goes to an example anonymizing proxy, except SSL on port 443 (which it doesn't handle):
+ </P
><P
-> In this fictitious example, everything goes via an ISP's caching proxy,
- except requests to that ISP:</P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward .* anon-proxy.example.org:8080
+ forward :443 .
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* caching.myisp.net:8000</I
-><br>
- <I
-CLASS="EMPHASIS"
->forward myisp.net .</I
-><br>
- </P
->
- </TT
-></P
+> Everything goes to our example ISP's caching proxy, except for requests
+ to that ISP's sites:
+ </P
><P
-> For the @home network, we're told the forwarding configuration is this:</P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward .*. caching-proxy.example-isp.net:8000
+ forward .example-isp.net .
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN1062"
+>5.3.5.2. forward-socks4 and forward-socks4a</A
+></H4
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* proxy:8080</I
-><br>
- </P
->
- </TT
></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Specifies:</DT
+><DD
><P
-> Also, we're told they insist on getting cookies and JavaScript, so you should
- allow cookies from home.com. We consider JavaScript a potential security risk.
- Java need not be enabled.</P
+> Through which SOCKS proxy (and to which parent HTTP proxy) specific requests should be routed.
+ </P
+></DD
+><DT
+>Type of value:</DT
+><DD
+><P
+> <TT
+CLASS="REPLACEABLE"
+><I
+>target_domain</I
+></TT
+>[:<TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+>]
+ <TT
+CLASS="REPLACEABLE"
+><I
+>socks_proxy</I
+></TT
+>[/<TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+>]
+ <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+>[/<TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+>]
+ </P
><P
-> In this example direct connections are made to all <SPAN
-CLASS="QUOTE"
->"internal"</SPAN
+> Where <TT
+CLASS="REPLACEABLE"
+><I
+>target_domain</I
+></TT
+> is a domain name pattern (see the
+ chapter on domain matching in the actions file),
+ <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+> and <TT
+CLASS="REPLACEABLE"
+><I
+>socks_proxy</I
+></TT
+>
+ are IP addresses in dotted decimal notation or valid DNS names (<TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
>
- domains, but everything else goes through Lucent's LPWA by way of the
- company's SOCKS gateway to the Internet.</P
+ may be <SPAN
+CLASS="QUOTE"
+>"."</SPAN
+> to denote <SPAN
+CLASS="QUOTE"
+>"no HTTP forwarding"</SPAN
+>), and the optional
+ <TT
+CLASS="REPLACEABLE"
+><I
+>port</I
+></TT
+> parameters are TCP ports, i.e. integer values from 1 to 64535
+ </P
+></DD
+><DT
+>Default value:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward-socks4 .* lpwa.com:8000 firewall.my_company.com:1080</I
-><br>
- <I
+><I
CLASS="EMPHASIS"
->forward my_company.com .</I
-><br>
- </P
->
- </TT
+>Unset</I
></P
+></DD
+><DT
+>Effect if unset:</DT
+><DD
+><P
+> Don't use SOCKS proxies.
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> This is how you could set up a site that always uses SOCKS but no forwarders:</P
+> Multiple lines are OK, they are checked in sequence, and the last match wins.
+ </P
><P
-> <TT
+> The difference between <TT
CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward-socks4a .* . firewall.my_company.com:1080</I
-><br>
- </P
->
- </TT
-></P
+>forward-socks4</TT
+> and <TT
+CLASS="LITERAL"
+>forward-socks4a</TT
+>
+ is that in the SOCKS 4A protocol, the DNS resolution of the target hostname happens on the SOCKS
+ server, while in SOCKS 4 it happens locally.
+ </P
><P
-> An advanced example for network administrators:</P
+> If <TT
+CLASS="REPLACEABLE"
+><I
+>http_parent</I
+></TT
+> is <SPAN
+CLASS="QUOTE"
+>"."</SPAN
+>, then requests are not
+ forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit through
+ a SOCKS proxy.
+ </P
+></DD
+><DT
+>Examples:</DT
+><DD
+><P
+> From the company example.com, direct connections are made to all
+ <SPAN
+CLASS="QUOTE"
+>"internal"</SPAN
+> domains, but everything outbound goes through
+ their ISP's proxy by way of example.com's corporate SOCKS 4A gateway to
+ the Internet.
+ </P
+><P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward-socks4a .*. socks-gw.example.com:1080 www-cache.example-isp.net:8080
+ forward .example.com .
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
><P
-> If you have links to multiple ISPs that provide various special content to
- their subscribers, you can configure forwarding to pass requests to the
- specific host that's connected to that ISP so that everybody can see all
- of the content on all of the ISPs.</P
+> A rule that uses a SOCKS 4 gateway for all destinations but no HTTP parent looks like this:
+ </P
><P
-> This is a bit tricky, but here's an example:</P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="90%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward-socks4 .*. socks-gw.example.com:1080 .
+ </PRE
+></TD
+></TR
+></TABLE
+>
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN1116"
+>5.3.5.3. Advanced Forwarding Examples</A
+></H4
><P
-> host-a has a PPP connection to isp-a.com. And host-b has a PPP connection to
- isp-b.com. host-a can run a <SPAN
+> If you have links to multiple ISPs that provide various special content
+ only to their subscribers, you can configure multiple <SPAN
CLASS="APPLICATION"
->Privoxy</SPAN
-> proxy with
- forwarding like this: </P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* .</I
-><br>
- <I
+>Privoxies</SPAN
+>
+ which have connections to the respective ISPs to act as forwarders to each other, so that
+ <I
CLASS="EMPHASIS"
->forward isp-b.com host-b:8118</I
-><br>
- </P
->
- </TT
-></P
+>your</I
+> users can see the internal content of all ISPs.</P
><P
-> host-b can run a <SPAN
+> Assume that host-a has a PPP connection to isp-a.net. And host-b has a PPP connection to
+ isp-b.net. Both run <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> proxy with forwarding
- like this: </P
+>. Their forwarding
+ configuration can look like this:</P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward .* .</I
-><br>
- <I
-CLASS="EMPHASIS"
->forward isp-a.com host-a:8118</I
-><br>
- </P
->
- </TT
-></P
+> host-a:</P
><P
-> Now, <I
-CLASS="EMPHASIS"
->anyone</I
-> on the Internet (including users on host-a
- and host-b) can set their browser's proxy to <I
-CLASS="EMPHASIS"
->either</I
->
- host-a or host-b and be able to browse the content on isp-a or isp-b.</P
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward .*. .
+ forward .isp-b.net host-b:8118
+ </PRE
+></TD
+></TR
+></TABLE
+></P
><P
-> Here's another practical example, for University of Kent at
- Canterbury students with a network connection in their room, who
- need to use the University's Squid web cache.</P
+> host-b:</P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->forward *. ssbcache.ukc.ac.uk:3128</I
-> # Use the proxy, except for:<br>
- <I
-CLASS="EMPHASIS"
->forward .ukc.ac.uk . </I
-> # Anything on the same domain as us<br>
- <I
-CLASS="EMPHASIS"
->forward * . </I
-> # Host with no domain specified<br>
- <I
-CLASS="EMPHASIS"
->forward 129.12.*.* . </I
-> # A dotted IP on our /16 network.<br>
- <I
-CLASS="EMPHASIS"
->forward 127.*.*.* . </I
-> # Loopback address<br>
- <I
-CLASS="EMPHASIS"
->forward localhost.localdomain . </I
-> # Loopback address<br>
- <I
-CLASS="EMPHASIS"
->forward www.ukc.mirror.ac.uk . </I
-> # Specific host<br>
- </P
->
- </TT
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> forward .*. .
+ forward .isp-a.net host-a:8118
+ </PRE
+></TD
+></TR
+></TABLE
></P
><P
+> Now, your users can set their browser's proxy to use either
+ host-a or host-b and be able to browse the internal content
+ of both isp-a and isp-b.</P
+><P
> If you intend to chain <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>browser -> squid -> privoxy</TT
> is the recommended way. </P
><P
->Your squid configuration could then look like this (assuming that the IP
-address of the box is <TT
-CLASS="LITERAL"
->192.168.0.1</TT
-> ):</P
+> Assuming that <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> and <SPAN
+CLASS="APPLICATION"
+>squid</SPAN
+>
+ run on the same box, your squid configuration could then look like this:</P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> # Define Privoxy as parent cache <br>
- <br>
- cache_peer 192.168.0.1 parent 8118 0 no-query<br>
-<br>
- # don't listen to the whole world<br>
- http_port 192.168.0.1:3128<br>
-<br>
- # define the local lan<br>
- acl mylocallan src 192.168.0.1-192.168.0.5/255.255.255.255<br>
-<br>
- # grant access for http to local lan<br>
- http_access allow mylocallan<br>
- <br>
- # Define ACL for protocol FTP <br>
- acl FTP proto FTP <br>
-<br>
- # Do not forward ACL FTP to privoxy<br>
- always_direct allow FTP <br>
-<br>
- # Do not forward ACL CONNECT (https) to privoxy<br>
- always_direct allow CONNECT <br>
-<br>
- # Forward the rest to privoxy<br>
- never_direct allow all <br>
- </P
->
- </TT
+> <TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="SCREEN"
+> # Define Privoxy as parent proxy (without ICP)
+ cache_peer 127.0.0.1 parent 8118 7 no-query
+
+ # Define ACL for protocol FTP
+ acl ftp proto FTP
+
+ # Do not forward FTP requests to Privoxy
+ always_direct allow ftp
+
+ # Forward all the rest to Privoxy
+ never_direct allow all
+ </PRE
+></TD
+></TR
+></TABLE
></P
+><P
+> You would then need to change your browser's proxy settings to <SPAN
+CLASS="APPLICATION"
+>squid</SPAN
+>'s address and port.
+ Squid normally uses port 3128. If unsure consult <TT
+CLASS="LITERAL"
+>http_port</TT
+> in <TT
+CLASS="FILENAME"
+>squid.conf</TT
+>.</P
+></DIV
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN778"
->5.3.5. Windows GUI Options</A
+NAME="AEN1143"
+>5.3.6. Windows GUI Options</A
></H3
><P
> <SPAN
>5.4. The Actions File</A
></H2
><P
-> The <SPAN
-CLASS="QUOTE"
->"default.action"</SPAN
-> file (formerly
+> The actions file (<TT
+CLASS="FILENAME"
+>default.action</TT
+>, formerly:
<TT
CLASS="FILENAME"
>actionsfile</TT
to define what actions <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> takes, and thus
- determines how ad images, cookies and various other aspects of HTTP content
- and transactions are handled. These can be accepted or rejected for all
- sites, or just those sites you choose. See below for a complete list of
- actions. </P
+> takes for which
+ URLs, and thus determines how ad images, cookies and various other aspects
+ of HTTP content and transactions are handled on which sites (or even parts
+ thereof).</P
><P
>
Anything you want can blocked, including ads, banners, or just some obnoxious
URL that you would rather not see. Cookies can be accepted or rejected, or
- accepted only during the current browser session (i.e. not written to disk).
- Changes to <TT
-CLASS="FILENAME"
->default.action</TT
-> should be immediately visible
- to <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> without the need to restart.</P
+ accepted only during the current browser session (i.e. not written to disk),
+ content can be modified, JavaScripts tamed, user-tracking fooled, and much more.
+ See below for a complete list of available actions.</P
><P
-> Note that some sites may misbehave, or possibly not work at all with some
- actions. This may require some tinkering with the rules to get the most
- mileage of <SPAN
-CLASS="APPLICATION"
->Privoxy's</SPAN
-> features, and still be
- able to see and enjoy just what you want to. There is no general rule of
- thumb on these things. There just are too many variables, and sites are
- always changing. </P
+> An actions file typically has sections. At the top, <SPAN
+CLASS="QUOTE"
+>"aliases"</SPAN
+> are
+ defined (discussed below), then the default set of rules which will apply
+ universally to all sites and pages. And then below that is generally a lengthy
+ set of exceptions to the defined universal policies.</P
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN1234"
+>5.4.1. Finding the Right Mix</A
+></H3
+><P
+> Note that some actions like cookie suppression or script disabling may
+ render some sites unusable, which rely on these techniques to work properly.
+ Finding the right mix of actions is not easy and certainly a matter of personal
+ taste. In general, it can be said that the more <SPAN
+CLASS="QUOTE"
+>"aggressive"</SPAN
+>
+ your default settings (in the top section of the actions file) are,
+ the more exceptions for <SPAN
+CLASS="QUOTE"
+>"trusted"</SPAN
+> sites you will have to
+ make later. If, for example, you want to kill popup windows per default, you'll
+ have to make exceptions from that rule for sites that you regularly use
+ and that require popups for actually useful content, like maybe your bank,
+ favorite shop, or newspaper.</P
+><P
+> We have tried to provide you with reasonable rules to start from in the
+ distribution actions file. But there is no general rule of thumb on these
+ things. There just are too many variables, and sites are constantly changing.
+ Sooner or later you will want to change the rules (and read this chapter).</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN1240"
+>5.4.2. How to Edit</A
+></H3
><P
> The easiest way to edit the <SPAN
CLASS="QUOTE"
>"actions"</SPAN
> file is with a browser by
- loading <A
-HREF="http://p.p/"
+ using our browser-based editor, which is available at <A
+HREF="http://config.privoxy.org/edit-actions"
TARGET="_top"
->http://p.p/</A
->, and then select
- <SPAN
+>http://config.privoxy.org/edit-actions</A
+>.</P
+><P
+> If you prefer plain text editing to GUIs, you can of course also directly edit the
+ <TT
+CLASS="FILENAME"
+>default.action</TT
+> file.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN1247"
+>5.4.3. How Actions are Applied to URLs</A
+></H3
+><P
+> The actions file is divided into sections. There are special sections,
+ like the <SPAN
CLASS="QUOTE"
->"Edit Actions List"</SPAN
->. A text editor can also be used.</P
+>"alias"</SPAN
+> sections which will be discussed later. For now
+ let's concentrate on regular sections: They have a heading line (often split
+ up to multiple lines for readability) which consist of a list of actions,
+ separated by whitespace and enclosed in curly braces. Below that, there
+ is a list of URL patterns, each on a separate line.</P
><P
> To determine which actions apply to a request, the URL of the request is
compared to all patterns in this file. Every time it matches, the list of
- applicable actions for the URL is incrementally updated. You can trace
- this process by visiting <A
-HREF="http://p.p/show-url-info"
+ applicable actions for the URL is incrementally updated, using the heading
+ of the section in which the pattern is located. If multiple matches for
+ the same URL set the same action differently, the last match wins.</P
+><P
+> You can trace this process by visiting <A
+HREF="http://config.privoxy.org/show-url-info"
TARGET="_top"
->http://p.p/show-url-info</A
->. </P
+>http://config.privoxy.org/show-url-info</A
+>.</P
><P
-> There are four types of lines in this file: comments (begin with a
- <SPAN
-CLASS="QUOTE"
->"#"</SPAN
-> character), actions, aliases and patterns, all of which are
- explained below, as well as the configuration file syntax that
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> understands. </P
+> More detail on this is provided in the Appendix, <A
+HREF="appendix.html#ACTIONSANAT"
+> Anatomy of an Action</A
+>.</P
+></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN880"
->5.4.1. URL Domain and Path Syntax</A
+NAME="AEN1256"
+>5.4.4. Patterns</A
></H3
><P
-> Generally, a pattern has the form <domain>/<path>, where both the
- <domain> and <path> part are optional. If you only specify a
- domain part, the <SPAN
-CLASS="QUOTE"
->"/"</SPAN
-> can be left out:</P
-><P
-> <I
-CLASS="EMPHASIS"
->www.example.com</I
-> - is a domain only pattern and will match any request to
- <SPAN
-CLASS="QUOTE"
->"www.example.com"</SPAN
->.</P
+> Generally, a pattern has the form <TT
+CLASS="LITERAL"
+><domain>/<path></TT
+>,
+ where both the <TT
+CLASS="LITERAL"
+><domain></TT
+> and <TT
+CLASS="LITERAL"
+><path></TT
+>
+ are optional. (This is why the pattern <TT
+CLASS="LITERAL"
+>/</TT
+> matches all URLs).</P
><P
-> <I
-CLASS="EMPHASIS"
->www.example.com/</I
-> - means exactly the same.</P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+><TT
+CLASS="LITERAL"
+>www.example.com/</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->www.example.com/index.html</I
-> - matches only the single
- document <SPAN
-CLASS="QUOTE"
->"/index.html"</SPAN
-> on <SPAN
-CLASS="QUOTE"
->"www.example.com"</SPAN
->.</P
+> is a domain-only pattern and will match any request to <TT
+CLASS="LITERAL"
+>www.example.com</TT
+>,
+ regardless of which document on that server is requested.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>www.example.com</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->/index.html</I
-> - matches the document <SPAN
-CLASS="QUOTE"
->"/index.html"</SPAN
->,
- regardless of the domain. So would match any page named <SPAN
-CLASS="QUOTE"
->"index.html"</SPAN
+> means exactly the same. For domain-only patterns, the trailing <TT
+CLASS="LITERAL"
+>/</TT
+> may
+ be omitted.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>www.example.com/index.html</TT
+></DT
+><DD
+><P
+> matches only the single document <TT
+CLASS="LITERAL"
+>/index.html</TT
>
- on any site.</P
+ on <TT
+CLASS="LITERAL"
+>www.example.com</TT
+>.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>/index.html</TT
+></DT
+><DD
><P
-> <I
+> matches the document <TT
+CLASS="LITERAL"
+>/index.html</TT
+>, regardless of the domain,
+ i.e. on <I
CLASS="EMPHASIS"
->index.html</I
-> - matches nothing, since it would be
- interpreted as a domain name and there is no top-level domain called
- <SPAN
-CLASS="QUOTE"
->".html"</SPAN
->.</P
+>any</I
+> web server.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>index.html</TT
+></DT
+><DD
+><P
+> matches nothing, since it would be interpreted as a domain name and
+ there is no top-level domain called <TT
+CLASS="LITERAL"
+>.html</TT
+>.
+ </P
+></DD
+></DL
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN1296"
+>5.4.4.1. The Domain Pattern</A
+></H4
><P
> The matching of the domain part offers some flexible options: if the
domain starts or ends with a dot, it becomes unanchored at that end.
For example:</P
><P
-> <I
-CLASS="EMPHASIS"
->.example.com</I
-> - matches any domain or sub-domain that
- <I
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+><TT
+CLASS="LITERAL"
+>.example.com</TT
+></DT
+><DD
+><P
+> matches any domain that <I
CLASS="EMPHASIS"
>ENDS</I
-> in <SPAN
-CLASS="QUOTE"
->".example.com"</SPAN
->.</P
+> in
+ <TT
+CLASS="LITERAL"
+>.example.com</TT
+>
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>www.</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->www.</I
-> - matches any domain that <I
+> matches any domain that <I
CLASS="EMPHASIS"
>STARTS</I
> with
- <SPAN
-CLASS="QUOTE"
->"www"</SPAN
->.</P
+ <TT
+CLASS="LITERAL"
+>www.</TT
+>
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>.example.</TT
+></DT
+><DD
+><P
+> matches any domain that <I
+CLASS="EMPHASIS"
+>CONTAINS</I
+> <TT
+CLASS="LITERAL"
+>.example.</TT
+>
+ (Correctly speaking: It matches any FQDN that contains <TT
+CLASS="LITERAL"
+>example</TT
+> as a domain.)
+ </P
+></DD
+></DL
+></DIV
><P
> Additionally, there are wild-cards that you can use in the domain names
themselves. They work pretty similar to shell wild-cards: <SPAN
CLASS="QUOTE"
>"?"</SPAN
> stands for
- any single character. And you can define character classes in square
- brackets and they can be freely mixed:</P
+ any single character, you can define character classes in square
+ brackets and all of that can be freely mixed:</P
><P
-> <I
-CLASS="EMPHASIS"
->ad*.example.com</I
-> - matches <SPAN
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+><TT
+CLASS="LITERAL"
+>ad*.example.com</TT
+></DT
+><DD
+><P
+> matches <SPAN
CLASS="QUOTE"
>"adserver.example.com"</SPAN
>,
- <SPAN
+ <SPAN
CLASS="QUOTE"
>"ads.example.com"</SPAN
>, etc but not <SPAN
CLASS="QUOTE"
>"sfads.example.com"</SPAN
->.</P
+>
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>*ad*.example.com</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->*ad*.example.com</I
-> - matches all of the above, and then some.</P
+> matches all of the above, and then some.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>.?pix.com</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->.?pix.com</I
-> - matches <SPAN
-CLASS="QUOTE"
->"www.ipix.com"</SPAN
+> matches <TT
+CLASS="LITERAL"
+>www.ipix.com</TT
>,
- <SPAN
-CLASS="QUOTE"
->"pictures.epix.com"</SPAN
->, <SPAN
-CLASS="QUOTE"
->"a.b.c.d.e.upix.com"</SPAN
->, etc. </P
+ <TT
+CLASS="LITERAL"
+>pictures.epix.com</TT
+>, <TT
+CLASS="LITERAL"
+>a.b.c.d.e.upix.com</TT
+> etc.
+ </P
+></DD
+><DT
+><TT
+CLASS="LITERAL"
+>www[1-9a-ez].example.c*</TT
+></DT
+><DD
><P
-> <I
-CLASS="EMPHASIS"
->www[1-9a-ez].example.com</I
-> - matches <SPAN
-CLASS="QUOTE"
->"www1.example.com"</SPAN
+> matches <TT
+CLASS="LITERAL"
+>www1.example.com</TT
>,
- <SPAN
-CLASS="QUOTE"
->"www4.example.com"</SPAN
->, <SPAN
-CLASS="QUOTE"
->"wwwd.example.com"</SPAN
+ <TT
+CLASS="LITERAL"
+>www4.example.cc</TT
+>, <TT
+CLASS="LITERAL"
+>wwwd.example.cy</TT
>,
- <SPAN
-CLASS="QUOTE"
->"wwwz.example.com"</SPAN
->, etc., but <I
+ <TT
+CLASS="LITERAL"
+>wwwz.example.com</TT
+> etc., but <I
CLASS="EMPHASIS"
>not</I
>
- <SPAN
-CLASS="QUOTE"
->"wwww.example.com"</SPAN
->.</P
+ <TT
+CLASS="LITERAL"
+>wwww.example.com</TT
+>.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN1358"
+>5.4.4.2. The Path Pattern</A
+></H4
><P
-> If <SPAN
+> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> was compiled with
- <SPAN
-CLASS="QUOTE"
->"pcre"</SPAN
-> support (the default), Perl compatible regular expressions
- can be used. These are more flexible and powerful than other types
- of <SPAN
-CLASS="QUOTE"
->"regular expressions"</SPAN
->. See the <TT
-CLASS="FILENAME"
->pcre/docs/</TT
-> directory or <SPAN
-CLASS="QUOTE"
->"man
- perlre"</SPAN
-> (also available on <A
-HREF="http://www.perldoc.com/perl5.6/pod/perlre.html"
+> uses Perl compatible regular expressions
+ (through the <A
+HREF="http://www.pcre.org/"
TARGET="_top"
->http://www.perldoc.com/perl5.6/pod/perlre.html</A
->)
- for details. A brief discussion of regular expressions is in the
- <A
+>PCRE</A
+> library) for
+ matching the path.</P
+><P
+> There is an <A
HREF="appendix.html#REGEX"
>Appendix</A
->. For instance:</P
+> with a brief quick-start into regular
+ expressions, and full (very technical) documentation on PCRE regex syntax is available on-line
+ at <A
+HREF="http://www.pcre.org/man.txt"
+TARGET="_top"
+>http://www.pcre.org/man.txt</A
+>.
+ You might also find the Perl man page on regular expressions (<TT
+CLASS="LITERAL"
+>man perlre</TT
+>)
+ useful, which is available on-line at <A
+HREF="http://www.perldoc.com/perl5.6/pod/perlre.html"
+TARGET="_top"
+>http://www.perldoc.com/perl5.6/pod/perlre.html</A
+>.</P
><P
-> <I
-CLASS="EMPHASIS"
->/.*/advert[0-9]+\.jpe?g</I
-> - would match a URL from any
- domain, with any path that includes <SPAN
+> Note that the path pattern is automatically left-anchored at the <SPAN
CLASS="QUOTE"
->"advert"</SPAN
-> followed
- immediately by one or more digits, then a <SPAN
-CLASS="QUOTE"
->"."</SPAN
-> and ending in
- either <SPAN
-CLASS="QUOTE"
->"jpeg"</SPAN
-> or <SPAN
-CLASS="QUOTE"
->"jpg"</SPAN
->. So we match
- <SPAN
-CLASS="QUOTE"
->"example.com/ads/advert2.jpg"</SPAN
->, and
- <SPAN
-CLASS="QUOTE"
->"www.example.com/ads/banners/advert39.jpeg"</SPAN
->, but not
- <SPAN
+>"/"</SPAN
+>,
+ i.e. it matches as if it would start with a <SPAN
CLASS="QUOTE"
->"www.example.com/ads/banners/advert39.gif"</SPAN
-> (no gifs in the
- example pattern).</P
+>"^"</SPAN
+>.</P
><P
-> Please note that matching in the path is case
+> Please also note that matching in the path is case
<I
CLASS="EMPHASIS"
>INSENSITIVE</I
<SPAN
CLASS="QUOTE"
>"(?-i)"</SPAN
-> switch:</P
-><P
-> <I
-CLASS="EMPHASIS"
->www.example.com/(?-i)PaTtErN.*</I
-> - will match only
- documents whose path starts with <SPAN
-CLASS="QUOTE"
->"PaTtErN"</SPAN
+> switch:
+ <TT
+CLASS="LITERAL"
+>www.example.com/(?-i)PaTtErN.*</TT
+> will match only
+ documents whose path starts with <TT
+CLASS="LITERAL"
+>PaTtErN</TT
> in
<I
CLASS="EMPHASIS"
>exactly</I
> this capitalization.</P
></DIV
+></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN956"
->5.4.2. Actions</A
+NAME="ACTIONS"
+>5.4.5. Actions</A
></H3
><P
> Actions are enabled if preceded with a <SPAN
preceded with a <SPAN
CLASS="QUOTE"
>"-"</SPAN
->. Actions are invoked by enclosing the
- action name in curly braces (e.g. {+some_action}), followed by a list of
- URLs to which the action applies. There are three classes of actions:</P
+>. So a <SPAN
+CLASS="QUOTE"
+>"+action"</SPAN
+> means
+ <SPAN
+CLASS="QUOTE"
+>"do that action"</SPAN
+>, e.g. <SPAN
+CLASS="QUOTE"
+>"+block"</SPAN
+> means please
+ <SPAN
+CLASS="QUOTE"
+>"block the following URLs and/or patterns"</SPAN
+>. All actions are
+ disabled by default, until they are explicitly enabled somewhere in an actions
+ file.</P
+><P
+>
+ Actions are invoked by enclosing the action name in curly braces (e.g.
+ {+some_action}), followed by a list of URLs (or patterns that match URLs) to
+ which the action applies. There are three classes of actions: </P
><P
> <P
></P
><LI
><P
>
- Boolean (e.g. <SPAN
+ Boolean, i.e the action can only be <SPAN
CLASS="QUOTE"
->"+/-block"</SPAN
->):
- </P
+>"on"</SPAN
+> or
+ <SPAN
+CLASS="QUOTE"
+>"off"</SPAN
+>. Examples:
+ </P
><P
> <TT
CLASS="LITERAL"
><LI
><P
>
- parameterized (e.g. <SPAN
+ Parameterized, e.g. <SPAN
CLASS="QUOTE"
->"+/-hide-user-agent"</SPAN
->):
+>"+/-hide-user-agent{ Mozilla 1.0 }"</SPAN
+>,
+ where some value is required in order to enable this type of action.
+ Examples:
</P
><P
> <TT
<I
CLASS="EMPHASIS"
>{-name}</I
-> # disable action<br>
+> # disable action (<SPAN
+CLASS="QUOTE"
+>"parameter"</SPAN
+>) can be omitted<br>
</P
>
</TT
><LI
><P
>
- Multi-value (e.g. <SPAN
+
+ Multi-value, e.g. <SPAN
CLASS="QUOTE"
>"{+/-add-header{Name: value}}"</SPAN
->, <SPAN
+> ot
+ <SPAN
CLASS="QUOTE"
>"{+/-wafer{name=value}}"</SPAN
->):
+>), where some value needs to be defined
+ in addition to simply enabling the actino. Examples:
</P
><P
> <TT
CLASS="LITERALLAYOUT"
> <I
CLASS="EMPHASIS"
->{+name{param}}</I
-> # enable action and add parameter <SPAN
+>{+name{param=value}}</I
+> # enable action and set <SPAN
CLASS="QUOTE"
>"param"</SPAN
+> to <SPAN
+CLASS="QUOTE"
+>"value"</SPAN
><br>
<I
CLASS="EMPHASIS"
->{-name{param}}</I
+>{-name{param=value}}</I
> # remove the parameter <SPAN
CLASS="QUOTE"
>"param"</SPAN
-><br>
+> completely<br>
<I
CLASS="EMPHASIS"
>{-name}</I
-> # disable this action totally<br>
+> # disable this action totally and remove <SPAN
+CLASS="APPLICATION"
+>param</SPAN
+> too<br>
</P
>
</TT
CLASS="QUOTE"
>"actions"</SPAN
> are:</P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="ADD-HEADER"
+>5.4.5.1. <I
+CLASS="EMPHASIS"
+>+add-header{Name: value}</I
+></A
+></H4
><P
-> <P
></P
-><UL
-><LI
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Multi-value.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Send a user defined HTTP header to the web server.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
><P
->
- Add the specified HTTP header, which is not checked for validity.
- You may specify this many times to specify many different headers:
- </P
+> Any value is possible. Validity of the defined HTTP headers is not checked.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+add-header{Name: value}</I
+>{+add-header{X-User-Tracking: sucks}}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Block this URL totally. In a default installation, a <SPAN
+> This action may be specified multiple times, in order to define multiple
+ headers. This is rarely needed for the typical user. If you don't know what
+ <SPAN
CLASS="QUOTE"
->"blocked"</SPAN
->
- URL will result in bright red banner that says <SPAN
+>"HTTP headers"</SPAN
+> are, you definitely don't need to worry about this
+ one.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="BLOCK"
+>5.4.5.2. <I
+CLASS="EMPHASIS"
+>+block</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Used to block a URL from reaching your browser. The URL may be
+ anything, but is typically used to block ads or other obnoxious
+ content.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+>N/A</P
+></DD
+><DT
+>Example usage:</DT
+><DD
+><P
+CLASS="LITERALLAYOUT"
+> <I
+CLASS="EMPHASIS"
+>{+block}</I
+><br>
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ <I
+CLASS="EMPHASIS"
+>.ads.r.us</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will display its
+ special <SPAN
CLASS="QUOTE"
>"BLOCKED"</SPAN
->,
- with a reason why it is being blocked, and an option to see it anyway.
- The page displayed for this is the <SPAN
+> page if a URL matches one of the
+ blocked patterns. If there is sufficient space, a large red
+ banner will appear with a friendly message about why the page
+ was blocked, and a way to go there anyway. If there is insufficient
+ space a smaller blocked page will appear without the red banner.
+ One exception is if the URL matches both <SPAN
+CLASS="QUOTE"
+>"+block"</SPAN
+>
+ and <SPAN
+CLASS="QUOTE"
+>"+image"</SPAN
+>, then it can be handled by
+ <SPAN
+CLASS="QUOTE"
+>"+image-blocker"</SPAN
+> (see below).
+ </P
+><P
+> The <SPAN
+CLASS="QUOTE"
+>"+filter"</SPAN
+> action can also perform some of the
+ same functionality as <SPAN
+CLASS="QUOTE"
+>"+block"</SPAN
+>, but by virtue of very
+ different programming techniques, and is typically used for different
+ reasons.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="DEANIMATE-GIFS"
+>5.4.5.3. <I
+CLASS="EMPHASIS"
+>+deanimate-gifs</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> To stop those annoying, distracting animated GIF images.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> <SPAN
+CLASS="QUOTE"
+>"last"</SPAN
+> or <SPAN
CLASS="QUOTE"
->"blocked"</SPAN
-> template
- file.
- </P
+>"first"</SPAN
+>
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+block</I
+>{+deanimate-gifs{last}}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- De-animate all animated GIF images, i.e. reduce them to their last frame.
- This will also shrink the images considerably (in bytes, not pixels!). If
- the option <SPAN
+> De-animate all animated GIF images, i.e. reduce them to their last frame.
+ This will also shrink the images considerably (in bytes, not pixels!). If
+ the option <SPAN
CLASS="QUOTE"
>"first"</SPAN
> is given, the first frame of the animation
- is used as the replacement. If <SPAN
+ is used as the replacement. If <SPAN
CLASS="QUOTE"
>"last"</SPAN
-> is given, the last frame
- of the animation is used instead, which probably makes more sense for most
- banner animations, but also has the risk of not showing the entire last
- frame (if it is only a delta to an earlier frame).
- </P
+> is given, the last
+ frame of the animation is used instead, which probably makes more sense for
+ most banner animations, but also has the risk of not showing the entire
+ last frame (if it is only a delta to an earlier frame).
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="DOWNGRADE"
+>5.4.5.4. <I
+CLASS="EMPHASIS"
+>+downgrade</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> <SPAN
+CLASS="QUOTE"
+>"+downgrade"</SPAN
+> will downgrade HTTP/1.1 client requests to
+ HTTP/1.0 and downgrade the responses as well.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+deanimate-gifs{last}</I
+>{+downgrade}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
->+deanimate-gifs{first}</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> Use this action for servers that use HTTP/1.1 protocol features that
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> doesn't handle well yet. HTTP/1.1 is
+ only partially implemented. Default is not to downgrade requests. This is
+ an infrequently needed action, and is used to help with problem sites only.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="FAST-REDIRECTS"
+>5.4.5.5. <I
+CLASS="EMPHASIS"
+>+fast-redirects</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
><P
-> <SPAN
+> The <SPAN
CLASS="QUOTE"
->"+downgrade"</SPAN
-> will downgrade HTTP/1.1 client requests to
- HTTP/1.0 and downgrade the responses as well. Use this action for servers
- that use HTTP/1.1 protocol features that
- <SPAN
+>"+fast-redirects"</SPAN
+> action enables interception of
+ <SPAN
+CLASS="QUOTE"
+>"redirect"</SPAN
+> requests from one server to another, which
+ are used to track users.<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> doesn't handle well yet. HTTP/1.1
- is only partially implemented. Default is not to downgrade requests.
- </P
+> can cut off
+ all but the last valid URL in redirect request and send a local redirect
+ back to your browser without contacting the intermediate site(s).
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+downgrade</I
+>{+fast-redirects}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
>
- Many sites, like yahoo.com, don't just link to other sites. Instead, they
- will link to some script on their own server, giving the destination as a
- parameter, which will then redirect you to the final target. URLs resulting
- from this scheme typically look like:
- <I
+ Many sites, like yahoo.com, don't just link to other sites. Instead, they
+ will link to some script on their own server, giving the destination as a
+ parameter, which will then redirect you to the final target. URLs
+ resulting from this scheme typically look like:
+ <I
CLASS="EMPHASIS"
>http://some.place/some_script?http://some.where-else</I
>.
</P
><P
-> Sometimes, there are even multiple consecutive redirects encoded in the
- URL. These redirections via scripts make your web browsing more traceable,
- since the server from which you follow such a link can see where you go to.
- Apart from that, valuable bandwidth and time is wasted, while your browser
- ask the server for one redirect after the other. Plus, it feeds the
- advertisers.
- </P
-><P
-> The <SPAN
-CLASS="QUOTE"
->"+fast-redirects"</SPAN
-> option enables interception of these
- types of requests by <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->, who will cut off
- all but the last valid URL in the request and send a local redirect back to
- your browser without contacting the intermediate site(s).
- </P
+> Sometimes, there are even multiple consecutive redirects encoded in the
+ URL. These redirections via scripts make your web browsing more traceable,
+ since the server from which you follow such a link can see where you go
+ to. Apart from that, valuable bandwidth and time is wasted, while your
+ browser ask the server for one redirect after the other. Plus, it feeds
+ the advertisers.
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> This is a normally on feature, and often requires exceptions for sites that
+ are sensitive to defeating this mechanism.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="FILTER"
+>5.4.5.6. <I
CLASS="EMPHASIS"
->+fast-redirects</I
-><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+>+filter</I
+></A
+></H4
><P
->
- Apply the filters in the <TT
-CLASS="LITERAL"
->section_header</TT
->
- section of the <TT
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Apply page filtering as defined by named sections of the
+ <TT
CLASS="FILENAME"
>default.filter</TT
-> file to the site(s).
- <TT
+> file to the specified site(s).
+ <SPAN
+CLASS="QUOTE"
+>"Filtering"</SPAN
+> can be any modification of the raw
+ page content, including re-writing or deletion of content.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> <SPAN
+CLASS="QUOTE"
+>"+filter"</SPAN
+> must include the name of one of the section identifiers
+ from <TT
CLASS="FILENAME"
>default.filter</TT
-> sections are grouped according to like
- functionality. <SPAN
-CLASS="APPLICATION"
->Filters</SPAN
-> can be used to
- re-write any of the raw page content. This is a potentially a
- very powerful feature!
- </P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> (or whatever
+ <I
CLASS="EMPHASIS"
->+filter{section_header}</I
-><br>
- </P
->
- </TT
->
- </P
-><P
->
- Filter sections that are pre-defined in the supplied
- <TT
+>filterfile</I
+> is specified in <TT
+CLASS="FILENAME"
+>config</TT
+>).
+ </P
+></DD
+><DT
+>Example usage (from the current <TT
CLASS="FILENAME"
>default.filter</TT
-> include:
- </P
-><A
-NAME="AEN1066"
-></A
-><BLOCKQUOTE
-CLASS="BLOCKQUOTE"
+>):</DT
+><DD
><P
></P
><TABLE
><TBODY
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
->html-annoyances</I
+>+filter{html-annoyances}</I
>: Get rid of particularly annoying HTML abuse.
</TD
></TR
><TD
> <I
CLASS="EMPHASIS"
->js-annoyances</I
+>+filter{js-annoyances}</I
>: Get rid of particularly annoying JavaScript abuse
</TD
></TR
><TD
> <I
CLASS="EMPHASIS"
->no-poups</I
+>+filter{content-cookies}</I
+>: Kill cookies that come in the HTML or JS content
+ </TD
+></TR
+></TBODY
+></TABLE
+><P
+></P
+><P
+></P
+><TABLE
+BORDER="0"
+><TBODY
+><TR
+><TD
+> <I
+CLASS="EMPHASIS"
+>+filter{popups}</I
>: Kill all popups in JS and HTML
</TD
></TR
><TD
> <I
CLASS="EMPHASIS"
->frameset-borders</I
->: Give frames a border
+>+filter{frameset-borders}</I
+>: Give frames a border and make them resizable
</TD
></TR
></TBODY
><TD
> <I
CLASS="EMPHASIS"
->webbugs</I
+>+filter{webbugs}</I
>: Squish WebBugs (1x1 invisible GIFs used for user tracking)
</TD
></TR
><TD
> <I
CLASS="EMPHASIS"
->no-refresh</I
->: Automatic refresh sucks on auto-dialup lines
+>+filter{refresh-tags}</I
+>: Kill automatic refresh tags (for dial-on-demand setups)
</TD
></TR
></TBODY
><TD
> <I
CLASS="EMPHASIS"
->fun</I
+>+filter{fun}</I
>: Text replacements for subversive browsing fun!
</TD
></TR
><TD
> <I
CLASS="EMPHASIS"
->nimda</I
->: Remove (virus) Nimda code.
+>+filter{nimda}</I
+>: Remove Nimda (virus) code.
+ </TD
+></TR
+></TBODY
+></TABLE
+><P
+></P
+><P
+></P
+><TABLE
+BORDER="0"
+><TBODY
+><TR
+><TD
+> <I
+CLASS="EMPHASIS"
+>+filter{banners-by-size}</I
+>: Kill banners by size (<I
+CLASS="EMPHASIS"
+>very</I
+> efficient!)
</TD
></TR
></TBODY
><TBODY
><TR
><TD
-> <I
+> <I
CLASS="EMPHASIS"
->banners-by-size</I
->: Kill banners by size
+>+filter{shockwave-flash}</I
+>: Kill embedded Shockwave Flash objects
</TD
></TR
></TBODY
><TD
> <I
CLASS="EMPHASIS"
->crude-parental</I
+>+filter{crude-parental}</I
>: Kill all web pages that contain the words "sex" or "warez"
</TD
></TR
></TABLE
><P
></P
-></BLOCKQUOTE
-></LI
-><LI
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Block any existing X-Forwarded-for header, and do not add a new one:
- </P
+> This is potentially a very powerful feature! And requires a knowledge
+ of regular expressions if you want to <SPAN
+CLASS="QUOTE"
+>"roll your own"</SPAN
+>.
+ Filtering operates on a line by line basis.
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> Filtering requires buffering the page content, which may appear to
+ slow down page rendering since nothing is displayed until all content has
+ passed the filters. (It does not really take longer, but seems that way
+ since the page is not incrementally displayed.) This effect will be more
+ noticeable on slower connections.
+ </P
+><P
+> Filtering can achieve some of the effects as the <SPAN
+CLASS="QUOTE"
+>"+block"</SPAN
+>
+ action, i.e. it can be used to block ads and banners. In the overall
+ scheme of things, filtering is one of the last things <SPAN
+CLASS="QUOTE"
+>"Privoxy"</SPAN
+>
+ does with a web page. So other actions are applied first.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="HIDE-FORWARDED"
+>5.4.5.7. <I
CLASS="EMPHASIS"
>+hide-forwarded</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Block any existing X-Forwarded-for HTTP header, and do not add a new one.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
+><P
+CLASS="LITERALLAYOUT"
+> <I
+CLASS="EMPHASIS"
+>{+hide-forwarded}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- If the browser sends a <SPAN
+> It is fairly safe to leave this on. It does not seem to break many sites.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="HIDE-FROM"
+>5.4.5.8. <I
+CLASS="EMPHASIS"
+>+hide-from</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> To block the browser from sending your email address in a <SPAN
CLASS="QUOTE"
>"From:"</SPAN
-> header containing your e-mail
- address, this either completely removes the header (<SPAN
+>
+ header.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> Keyword: <SPAN
CLASS="QUOTE"
>"block"</SPAN
->), or
- changes it to the specified e-mail address.
- </P
+>, or any user defined value.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+hide-from{block}</I
+>{+hide-from{block}}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
->+hide-from{spam@sittingduck.xqq}</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Don't send the <SPAN
+> The keyword <SPAN
+CLASS="QUOTE"
+>"block"</SPAN
+> will completely remove the header.
+ Alternately, you can specify any value you prefer to send to the web
+ server.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="HIDE-REFERER"
+>5.4.5.9. <I
+CLASS="EMPHASIS"
+>+hide-referer</I
+></A
+></H4
+><A
+NAME="HIDE-REFERRER"
+></A
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Don't send the <SPAN
CLASS="QUOTE"
>"Referer:"</SPAN
-> (sic) header to the web site. You
- can block it, forge a URL to the same server as the request (which is
- preferred because some sites will not send images otherwise) or set it to a
- constant, user defined string of your choice.
- </P
+> (sic) HTTP header to the web site.
+ Or, alternately send a forged header instead.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> Prevent the header from being sent with the keyword, <SPAN
+CLASS="QUOTE"
+>"block"</SPAN
+>.
+ Or, <SPAN
+CLASS="QUOTE"
+>"forge"</SPAN
+> a URL to one from the same server as the request.
+ Or, set to user defined value of your choice.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->+hide-referer{block}</I
-><br>
- <I
+> <I
CLASS="EMPHASIS"
->+hide-referer{forge}</I
+>{+hide-referer{forge}}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
->+hide-referer{http://nowhere.com}</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> <SPAN
+CLASS="QUOTE"
+>"forge"</SPAN
+> is the preferred option here, since some servers will
+ not send images back otherwise.
+ </P
><P
>
- Alternative spelling of <SPAN
+ <SPAN
+CLASS="QUOTE"
+>"+hide-referrer"</SPAN
+> is an alternate spelling of
+ <SPAN
CLASS="QUOTE"
>"+hide-referer"</SPAN
->. It has the same
- parameters, and can be freely mixed with, <SPAN
+>. It has the exact same parameters, and can be freely
+ mixed with, <SPAN
CLASS="QUOTE"
>"+hide-referer"</SPAN
->.
- (<SPAN
+>. (<SPAN
CLASS="QUOTE"
>"referrer"</SPAN
-> is the correct English spelling, however the HTTP
- specification has a bug - it requires it to be spelled <SPAN
+> is the
+ correct English spelling, however the HTTP specification has a bug - it
+ requires it to be spelled as <SPAN
CLASS="QUOTE"
>"referer"</SPAN
>.)
</P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="HIDE-USER-AGENT"
+>5.4.5.10. <I
+CLASS="EMPHASIS"
+>+hide-user-agent</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> To change the <SPAN
+CLASS="QUOTE"
+>"User-Agent:"</SPAN
+> header so web servers can't tell
+ your browser type. Who's business is it anyway?
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> Any user defined string.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+hide-referrer{...}</I
+>{+hide-user-agent{Netscape 6.1 (X11; I; Linux 2.4.18 i686)}}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.msn.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
+><P
+> Warning! This breaks many web sites that depend on this in order
+ to determine how the target browser will respond to various
+ requests. Use with caution.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="IMAGE"
+>5.4.5.11. <I
+CLASS="EMPHASIS"
+>+image</I
+></A
+></H4
><P
->
- Change the <SPAN
-CLASS="QUOTE"
->"User-Agent:"</SPAN
-> header so web servers can't tell your
- browser type. Warning! This breaks many web sites. Specify the
- user-agent value you want. Example, pretend to be using Netscape on
- Linux:
- </P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> To define what <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> should treat
+ automatically as an image.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+hide-user-agent{Mozilla (X11; I; Linux 2.0.32 i586)}</I
+>{+image}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>/.*\.(gif|jpg|jpeg|png|bmp|ico)</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Treat this URL as an image. This only matters if it's also <SPAN
+> This only has meaning if the URL (or pattern) also is
+ <SPAN
CLASS="QUOTE"
>"+block"</SPAN
->ed,
- in which case a <SPAN
+>ed, in which case a <SPAN
CLASS="QUOTE"
>"blocked"</SPAN
-> image can be sent rather than a HTML page.
- See <SPAN
+> image can
+ be sent rather than a HTML page. (See <SPAN
CLASS="QUOTE"
>"+image-blocker{}"</SPAN
-> below for the control over what is actually sent.
- If you want <I
-CLASS="EMPHASIS"
->invisible</I
-> ads, they should be defined as
- <I
-CLASS="EMPHASIS"
->images</I
-> and <I
-CLASS="EMPHASIS"
->blocked</I
->. And also,
- <SPAN
-CLASS="QUOTE"
->"image-blocker"</SPAN
-> should be set to <SPAN
-CLASS="QUOTE"
->"blank"</SPAN
->. Note you
- cannot treat HTML pages as images in most cases. For instance, frames
- require an HTML page to display. So a frame that is an ad, cannot be
- treated as an image. Forcing an <SPAN
-CLASS="QUOTE"
->"image"</SPAN
-> in this
- situation just will not work.
- </P
+> below
+ for the control over what is actually sent.)
+ </P
><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+> There is little reason to change the default definition for this.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="IMAGE-BLOCKER"
+>5.4.5.12. <I
CLASS="EMPHASIS"
->+image</I
-><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+>+image-blocker</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
><P
-> Decides what to do with URLs that end up tagged with <SPAN
+> Decide what to do with URLs that end up tagged with both <SPAN
CLASS="QUOTE"
->"{+block
- +image}"</SPAN
->, e.g an advertizement. There are five options.
- <SPAN
+>"{+block}"</SPAN
+>
+ and <SPAN
+CLASS="QUOTE"
+>"{+image}"</SPAN
+>, e.g an advertisement.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> There are four available options: <SPAN
CLASS="QUOTE"
>"-image-blocker"</SPAN
-> will send a HTML <SPAN
+> will send a HTML
+ <SPAN
CLASS="QUOTE"
>"blocked"</SPAN
-> page,
- usually resulting in a <SPAN
+> page, usually resulting in a <SPAN
CLASS="QUOTE"
->"broken image"</SPAN
-> icon.
-<SPAN
+>"broken
+ image"</SPAN
+> icon. <SPAN
CLASS="QUOTE"
>"+image-blocker{blank}"</SPAN
-> will send a 1x1 transparent GIF
-image. And finally, <SPAN
+> will send a 1x1
+ transparent GIF image. <SPAN
CLASS="QUOTE"
->"+image-blocker{http://xyz.com}"</SPAN
+>"+image-blocker{pattern}"</SPAN
> will send a
-HTTP temporary redirect to the specified image. This has the advantage of the
-icon being being cached by the browser, which will speed up the display.
-<SPAN
+ checkerboard type pattern (the default). And finally,
+ <SPAN
CLASS="QUOTE"
->"+image-blocker{pattern}"</SPAN
-> will send a checkboard type pattern
- </P
+>"+image-blocker{http://xyz.com}"</SPAN
+> will send a HTTP temporary
+ redirect to the specified image. This has the advantage of the icon being
+ being cached by the browser, which will speed up the display.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->+image-blocker{blank}</I
-><br>
- <I
+> <I
CLASS="EMPHASIS"
->+image-blocker{pattern}</I
+>{+image-blocker{blank}}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
->+image-blocker{http://p.p/send-banner}</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- By default (i.e. in the absence of a <SPAN
+> If you want <I
+CLASS="EMPHASIS"
+>invisible</I
+> ads, they need to be both
+ defined as <I
+CLASS="EMPHASIS"
+>images</I
+> and <I
+CLASS="EMPHASIS"
+>blocked</I
+>.
+ And then, <SPAN
CLASS="QUOTE"
->"+limit-connect"</SPAN
->
- action), <SPAN
+>"image-blocker"</SPAN
+> should be set to
+ <SPAN
+CLASS="QUOTE"
+>"blank"</SPAN
+> for invisibility. Note you cannot treat HTML pages as
+ images in most cases. For instance, frames require an HTML page to display.
+ So a frame that is an ad, cannot be treated as an image. Forcing an
+ <SPAN
+CLASS="QUOTE"
+>"image"</SPAN
+> in this situation just will not work.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="LIMIT-CONNECT"
+>5.4.5.13. <I
+CLASS="EMPHASIS"
+>+limit-connect</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Parameterized.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> By default, <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> will only allow CONNECT
- requests to port 443, which is the standard port for https as a
- precaution.
- </P
+> only allows HTTP CONNECT
+ requests to port 443 (the standard, secure HTTPS port). Use
+ <SPAN
+CLASS="QUOTE"
+>"+limit-connect"</SPAN
+> to disable this altogether, or to allow
+ more ports.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> Any valid port number, or port number range.
+ </P
+></DD
+><DT
+>Example usages:</DT
+><DD
+><P
+CLASS="LITERALLAYOUT"
+> <I
+CLASS="EMPHASIS"
+>+limit-connect{443}</I
+> # This is the default and need not be specified.<br>
+ <I
+CLASS="EMPHASIS"
+>+limit-connect{80,443}</I
+> # Ports 80 and 443 are OK.<br>
+ <I
+CLASS="EMPHASIS"
+>+limit-connect{-3, 7, 20-100, 500-}</I
+> # Port less than 3, 7, 20 to 100 and above 500 are OK.<br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> The CONNECT methods exists in HTTP to allow access to secure websites
- (https:// URLs) through proxies. It works very simply: the proxy
- connects to the server on the specified port, and then short-circuits
- its connections to the client <I
+> The CONNECT methods exists in HTTP to allow access to secure websites
+ (https:// URLs) through proxies. It works very simply: the proxy connects
+ to the server on the specified port, and then short-circuits its
+ connections to the client <I
CLASS="EMPHASIS"
>and</I
> to the remote proxy.
- This can be a big security hole, since CONNECT-enabled proxies can
- be abused as TCP relays very easily.
+ This can be a big security hole, since CONNECT-enabled proxies can be
+ abused as TCP relays very easily.
</P
><P
>
If you want to allow CONNECT for more ports than this, or want to forbid
CONNECT altogether, you can specify a comma separated list of ports and
port ranges (the latter using dashes, with the minimum defaulting to 0 and
- max to 65K):
+ max to 65K).
</P
><P
-> <TT
-CLASS="LITERAL"
-> <P
+> If you don't know what any of this means, there probably is no reason to
+ change this one.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="NO-COMPRESSION"
+>5.4.5.14. <I
+CLASS="EMPHASIS"
+>+no-compression</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Prevent the specified websites from compressing HTTP data.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
+><P
CLASS="LITERALLAYOUT"
-> <I
-CLASS="EMPHASIS"
->+limit-connect{443} # This is the default and need no be specified.</I
-><br>
- <I
-CLASS="EMPHASIS"
->+limit-connect{80,443} # Ports 80 and 443 are OK.</I
-><br>
- <I
+> <I
CLASS="EMPHASIS"
->+limit-connect{-3, 7, 20-100, 500-} # Port less than 3, 7, 20 to 100</I
+>{+no-compression}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
-> #and above 500 are OK.</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> <SPAN
-CLASS="QUOTE"
->"+no-compression"</SPAN
-> prevents the website from compressing the
- data. Some websites do this, which can be a problem for
- <SPAN
+> Some websites do this, which can be a problem for
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>, since <SPAN
CLASS="QUOTE"
>"+filter"</SPAN
>,
- <SPAN
+ <SPAN
CLASS="QUOTE"
>"+no-popup"</SPAN
> and <SPAN
CLASS="QUOTE"
>"+gif-deanimate"</SPAN
-> will not work on
- compressed data. This will slow down connections to those websites,
- though. Default is <SPAN
+> will not work
+ on compressed data. This will slow down connections to those websites,
+ though. Default typically is to turn <SPAN
CLASS="QUOTE"
>"no-compression"</SPAN
-> is turned on.
- </P
+> on.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="NO-COOKIES-KEEP"
+>5.4.5.15. <I
+CLASS="EMPHASIS"
+>+no-cookies-keep</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Allow cookies for the current browser session only.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+nocompression</I
+>{+no-cookies-keep}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- If the website sets cookies, <SPAN
+> If websites set cookies, <SPAN
CLASS="QUOTE"
>"no-cookies-keep"</SPAN
> will make sure
- they are erased when you exit and restart your web browser. This makes
- profiling cookies useless, but won't break sites which require cookies so
- that you can log in for transactions. Default: on.
- </P
+ they are erased when you exit and restart your web browser. This makes
+ profiling cookies useless, but won't break sites which require cookies so
+ that you can log in for transactions. This is generally turned on for all
+ sites. Sometimes referred to as <SPAN
+CLASS="QUOTE"
+>"session cookies"</SPAN
+>.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="NO-COOKIES-READ"
+>5.4.5.16. <I
+CLASS="EMPHASIS"
+>+no-cookies-read</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Explicitly prevent the web server from reading any cookies on your
+ system.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+no-cookies-keep</I
+>{+no-cookies-read}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Prevent the website from reading cookies:
- </P
+> Often used in conjunction with <SPAN
+CLASS="QUOTE"
+>"+no-cookies-set"</SPAN
+> to
+ disable persistant cookies completely.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="NO-COOKIES-SET"
+>5.4.5.17. <I
+CLASS="EMPHASIS"
+>+no-cookies-set</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Explicitly block the web server from sending cookies to your
+ system.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+no-cookies-read</I
+>{+no-cookies-set}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- Prevent the website from setting cookies:
- </P
+> Often used in conjunction with <SPAN
+CLASS="QUOTE"
+>"+no-cookies-read"</SPAN
+> to
+ disable persistant cookies completely.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="NO-POPUP"
+>5.4.5.18. <I
+CLASS="EMPHASIS"
+>+no-popup</I
+></A
+></H4
+><A
+NAME="NO-POPUPS"
+></A
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Stop those annoying JavaScript pop-up windows!
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+no-cookies-set</I
+>{+no-popup}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
-><P
->
- Filter the website through a built-in filter to disable those obnoxious
- JavaScript pop-up windows via window.open(), etc. The two alternative
- spellings are equivalent.
- </P
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> <TT
+> <SPAN
+CLASS="QUOTE"
+>"+no-popup"</SPAN
+> uses a built in filter to disable pop-ups
+ that use the <TT
CLASS="LITERAL"
-> <P
+>window.open()</TT
+> function, etc.
+ </P
+><P
+> An alternate spelling is <SPAN
+CLASS="QUOTE"
+>"+no-popups"</SPAN
+>, which is
+ interchangeable.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="VANILLA-WAFER"
+>5.4.5.19. <I
+CLASS="EMPHASIS"
+>+vanilla-wafer</I
+></A
+></H4
+><P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Boolean.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> Sends a cookie for every site stating that you do not accept any copyright
+ on cookies sent to you, and asking them not to track you.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> N/A
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
+><P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+no-popup</I
+>{+vanilla-wafer}</I
><br>
- <I
+ <I
CLASS="EMPHASIS"
->+no-popups</I
+>.example.com</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
->
- This action only applies if you are using a <TT
+> This action only applies if you are using a <TT
CLASS="FILENAME"
>jarfile</TT
>
- for saving cookies. It sends a cookie to every site stating that you do not
- accept any copyright on cookies sent to you, and asking them not to track
- you. Of course, this is a (relatively) unique header they could use to
- track you.
- </P
-><P
-> <TT
-CLASS="LITERAL"
-> <P
-CLASS="LITERALLAYOUT"
-> <I
+ for saving cookies. Of course, this is a (relatively) unique header and
+ could be used to track you.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="WAFER"
+>5.4.5.20. <I
CLASS="EMPHASIS"
->+vanilla-wafer</I
-><br>
- </P
->
- </TT
->
- </P
-></LI
-><LI
+>+wafer</I
+></A
+></H4
><P
->
- This allows you to add an arbitrary cookie. It can be specified multiple
- times in order to add as many cookies as you like.
- </P
+></P
+><DIV
+CLASS="VARIABLELIST"
+><DL
+><DT
+>Type:</DT
+><DD
+><P
+>Multi-value.</P
+></DD
+><DT
+>Typical uses:</DT
+><DD
+><P
+> This allows you to send an arbitrary, user definable cookie.
+ </P
+></DD
+><DT
+>Possible values:</DT
+><DD
+><P
+> User specified cookie name and corresponding value.
+ </P
+></DD
+><DT
+>Example usage:</DT
+><DD
><P
-> <TT
-CLASS="LITERAL"
-> <P
CLASS="LITERALLAYOUT"
-> <I
+> <I
CLASS="EMPHASIS"
->+wafer{name=value}</I
+>{+wafer{name=value}}</I
><br>
- </P
->
- </TT
->
- </P
-></LI
-></UL
-></P
+ <I
+CLASS="EMPHASIS"
+>.example.com</I
+><br>
+ </P
+></DD
+><DT
+>Notes:</DT
+><DD
><P
-> The meaning of any of the above is reversed by preceding the action with a
- <SPAN
+> This can be specified multiple times in order to add as many cookies as you
+ like.
+ </P
+></DD
+></DL
+></DIV
+></DIV
+><DIV
+CLASS="SECT4"
+><H3
+CLASS="SECT4"
+><A
+NAME="ACT-EXAMPLES"
+>5.4.5.21. Actions Examples</A
+></H3
+><P
+> Note that the meaning of any of the above examples is reversed by preceding
+ the action with a <SPAN
CLASS="QUOTE"
>"-"</SPAN
>, in place of the <SPAN
CLASS="QUOTE"
>"+"</SPAN
->.</P
+>. Also,
+ that some actions are turned on in the default section of the actions file,
+ and require little to no additional configuration. These are just <SPAN
+CLASS="QUOTE"
+>"on"</SPAN
+>.
+ Some actions that are turned on the default section do typically require
+ exceptions to be listed in the lower sections of actions file.</P
><P
> Some examples:</P
><P
> # Turn off all persistent cookies<br>
{ +no-cookies-read }<br>
{ +no-cookies-set }<br>
+ <br>
# Allow cookies for this browser session ONLY<br>
{ +no-cookies-keep }<br>
<br>
# Exceptions to the above, sites that benefit from persistent cookies<br>
+ # that saved from one browser session to the next.<br>
{ -no-cookies-read }<br>
{ -no-cookies-set }<br>
{ -no-cookies-keep }<br>
> Turn on page filtering according to rules in the defined sections
of <TT
CLASS="FILENAME"
->refilterfile</TT
+>default.filter</TT
>, and make one exception for
- sourceforge:
+ Sourceforge:
</P
><P
> <TT
the <SPAN
CLASS="QUOTE"
>"blocked"</SPAN
-> banner). Many of these use regular expressions
- that will expand to match multiple URLs:</P
+> banner). Many of these use
+ <A
+HREF="appendix.html#REGEX"
+>regular expressions</A
+> that will expand to match
+ multiple URLs: </P
><P
> <TT
CLASS="LITERAL"
>
for a brief example on troubleshooting actions.</P
></DIV
+></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN1278"
->5.4.3. Aliases</A
+NAME="AEN2110"
+>5.4.6. Aliases</A
></H3
><P
> Custom <SPAN
.windowsupdate.microsoft.com<br>
.nytimes.com<br>
<br>
- # Shopping sites - still want to block ads.<br>
+ # Shopping sites - but we still want to block ads.<br>
{shop}<br>
.quietpc.com<br>
.worldpay.com # for quietpc.com<br>
.jungle.com<br>
.scan.co.uk<br>
<br>
- # These shops require pop-ups<br>
+ # These shops require pop-ups also <br>
{shop -no-popups}<br>
.dabs.com<br>
.overclockers.co.uk<br>
><H2
CLASS="SECT2"
><A
-NAME="AEN1344"
+NAME="AEN2176"
>5.6. Templates</A
></H2
><P
>Privoxy</SPAN
>
at <A
+HREF="http://config.privoxy.org/"
+TARGET="_top"
+>http://config.privoxy.org/</A
+>
+ (shortcut: <A
HREF="http://p.p/"
TARGET="_top"
>http://p.p/</A
->, and then select
+>), and then select
<A
HREF="javascript:w=Math.floor(screen.width/2);h=Math.floor(screen.height*0.9);void(window.open('http://www.privoxy.org/actions','Feedback','screenx='+w+',width='+w+',height='+h+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());"
TARGET="_top"
>,
near the bottom of the page. Paste in the URL that is the cause of the
unwanted behavior, and follow the prompts. The developers will
- try to incorporate your submission into future versions.</P
+ try to incorporate a fix for the problem you reported into future versions.</P
><P
> New <TT
CLASS="FILENAME"
><H2
CLASS="SECT2"
><A
-NAME="AEN1394"
+NAME="AEN2227"
>7.1. Copyright</A
></H2
><P
></DIV
><P
CLASS="PUBDATE"
->$Id: user-manual.sgml,v 1.75 2002/04/12 02:08:48 david__schmidt Exp $<BR></P
+>$Id: user-manual.sgml,v 1.91 2002/04/24 02:39:31 hal9 Exp $<BR></P
><DIV
><DIV
CLASS="ABSTRACT"
</P
><P
> The user manual gives users information on how to install, configure and use
- <SPAN
+ <A
+HREF="http://www.privoxy.org/"
+TARGET="_top"
+><SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
+></A
>.
</P
><P
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is based on the code of the
- <SPAN
+> is based on <SPAN
CLASS="APPLICATION"
->Internet Junkbuster</SPAN
-> (tm).
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> was originally written by Junkbusters
- Corporation, and was released as free open-source software under the GNU GPL.
- Stefan Waldherr made many improvements, and started the SourceForge project
- to continue development.</P
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> continues the
- <SPAN
-CLASS="APPLICATION"
->Junkbuster</SPAN
-> tradition, but adds many
- refinements, enhancements and new features.</P
+>Internet
+ Junkbuster</SPAN
+> (tm).</P
><P
> You can find the latest version of the user manual at <A
HREF="http://www.privoxy.org/user-manual/"
><DL
><DT
>1.1. <A
-HREF="introduction.html#AEN38"
+HREF="introduction.html#NEWFEATURES"
>New Features</A
></DT
></DL
><DL
><DT
>3.1. <A
-HREF="installation.html#INSTALLATION-SOURCE"
->Source</A
+HREF="installation.html#INSTALLATION-PACKAGES"
+>Binary Packages</A
></DT
><DD
><DL
><DT
>3.1.1. <A
-HREF="installation.html#INSTALLATION-RH"
->Red Hat</A
+HREF="installation.html#INSTALLATION-PACK-RPM"
+>Red Hat and SuSE RPMs</A
></DT
><DT
>3.1.2. <A
-HREF="installation.html#INSTALLATION-SUSE"
->SuSE</A
+HREF="installation.html#INSTALLATION-DEB"
+>Debian</A
></DT
><DT
>3.1.3. <A
-HREF="installation.html#INSTALLATION-OS2"
->OS/2</A
+HREF="installation.html#INSTALLATION-PACK-WIN"
+>Windows</A
></DT
><DT
>3.1.4. <A
-HREF="installation.html#INSTALLATION-WIN"
->Windows</A
+HREF="installation.html#INSTALLATION-PACK-BINTGZ"
+>Solaris, NetBSD, FreeBSD, HP-UX</A
></DT
><DT
>3.1.5. <A
-HREF="installation.html#INSTALLATION-OTHER"
->Other</A
+HREF="installation.html#INSTALLATION-OS2"
+>OS/2</A
+></DT
+><DT
+>3.1.6. <A
+HREF="installation.html#INSTALLATION-MAC"
+>Max OSX</A
+></DT
+><DT
+>3.1.7. <A
+HREF="installation.html#INSTALLATION-AMIGA"
+>AmigaOS</A
></DT
></DL
></DD
+><DT
+>3.2. <A
+HREF="installation.html#INSTALLATION-SOURCE"
+>Building from Source</A
+></DT
></DL
></DD
><DT
><DL
><DT
>4.1. <A
-HREF="quickstart.html#AEN223"
+HREF="quickstart.html#UPGRADERSNOTE"
+>Note to Upgraders</A
+></DT
+><DT
+>4.2. <A
+HREF="quickstart.html#STARTUP"
+>Starting <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+></A
+></DT
+><DT
+>4.3. <A
+HREF="quickstart.html#CMDOPTIONS"
>Command Line Options</A
></DT
></DL
><DL
><DT
>5.1. <A
-HREF="configuration.html#AEN268"
+HREF="configuration.html#AEN324"
>Controlling <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DT
><DT
>5.2. <A
-HREF="configuration.html#AEN286"
+HREF="configuration.html#AEN343"
>Configuration Files Overview</A
></DT
><DT
>5.3. <A
-HREF="configuration.html#AEN317"
+HREF="configuration.html#AEN383"
>The Main Configuration File</A
></DT
><DD
><DL
><DT
>5.3.1. <A
-HREF="configuration.html#AEN350"
->Defining Other Configuration Files</A
+HREF="configuration.html#AEN402"
+>Configuration and Log File Locations</A
></DT
><DT
>5.3.2. <A
-HREF="configuration.html#AEN443"
->Other Configuration Options</A
+HREF="configuration.html#AEN622"
+>Local Set-up Documentation</A
></DT
><DT
>5.3.3. <A
-HREF="configuration.html#AEN580"
->Access Control List (ACL)</A
+HREF="configuration.html#AEN706"
+>Debugging</A
></DT
><DT
>5.3.4. <A
+HREF="configuration.html#AEN772"
+>Access Control and Security</A
+></DT
+><DT
+>5.3.5. <A
HREF="configuration.html#FORWARDING"
>Forwarding</A
></DT
><DT
->5.3.5. <A
-HREF="configuration.html#AEN778"
+>5.3.6. <A
+HREF="configuration.html#AEN1143"
>Windows GUI Options</A
></DT
></DL
><DL
><DT
>5.4.1. <A
-HREF="configuration.html#AEN880"
->URL Domain and Path Syntax</A
+HREF="configuration.html#AEN1234"
+>Finding the Right Mix</A
></DT
><DT
>5.4.2. <A
-HREF="configuration.html#AEN956"
->Actions</A
+HREF="configuration.html#AEN1240"
+>How to Edit</A
></DT
><DT
>5.4.3. <A
-HREF="configuration.html#AEN1278"
+HREF="configuration.html#AEN1247"
+>How Actions are Applied to URLs</A
+></DT
+><DT
+>5.4.4. <A
+HREF="configuration.html#AEN1256"
+>Patterns</A
+></DT
+><DT
+>5.4.5. <A
+HREF="configuration.html#ACTIONS"
+>Actions</A
+></DT
+><DT
+>5.4.6. <A
+HREF="configuration.html#AEN2110"
>Aliases</A
></DT
></DL
></DT
><DT
>5.6. <A
-HREF="configuration.html#AEN1344"
+HREF="configuration.html#AEN2176"
>Templates</A
></DT
></DL
><DL
><DT
>7.1. <A
-HREF="copyright.html#AEN1394"
+HREF="copyright.html#AEN2227"
>Copyright</A
></DT
><DT
></DT
><DT
>9.2. <A
-HREF="appendix.html#AEN1602"
+HREF="appendix.html#AEN2452"
><SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
></DD
><DT
>9.3. <A
+HREF="appendix.html#CHAIN"
+>Chain of Events</A
+></DT
+><DT
+>9.4. <A
HREF="appendix.html#ACTIONSANAT"
>Anatomy of an Action</A
></DT
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is available as raw source code (tarball
- or via CVS), or pre-compiled binaries for various platforms. See the <A
+> is available both in convenient pre-compiled
+ packages for a wide range of operating systems, and as raw source code.
+ For most users, we recommend using the packages, which can be downloaded from our
+ <A
HREF="http://sourceforge.net/projects/ijbswa/"
TARGET="_top"
>Privoxy Project Page</A
-> for
- the most up to date release information.
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> is also available via <A
-HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ijbswa/current/"
+>.</P
+><P
+> If you like to live on the bleeding edge and are not afraid of using
+ possibly unstable development versions, you can check out the up-to-the-minute
+ version directly from <A
+HREF="http://sourceforge.net/cvs/?group_id=11118"
TARGET="_top"
->CVS</A
->.
- This is the recommended approach at this time. But
- please be aware that CVS is constantly changing, and it may break in
- mysterious ways.</P
+>the
+ CVS repository</A
+> or simply download <A
+HREF="http://cvs.sourceforge.net/cvstarballs/ijbswa-cvsroot.tar.gz"
+TARGET="_top"
+>the nightly CVS
+ tarball.</A
+></P
><P
> At present, <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
> is known to run on Win32, Mac
- OSX, OS/2, AmigaOS, Linux (RedHat, Suse, Debian), FreeBSD, and many flavors
- of Unix. There are source and binary releases for these available for
- download at <A
-HREF="http://sourceforge.net/project/showfiles.php?group_id=11118"
-TARGET="_top"
->http://sourceforge.net/project/showfiles.php?group_id=11118</A
->.</P
+ OSX, OS/2, AmigaOS, Linux (RedHat, Suse, Debian), FreeBSD, NetBSD, BeOS, and
+ many flavors of Unix.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
-NAME="INSTALLATION-SOURCE"
->3.1. Source</A
+NAME="INSTALLATION-PACKAGES"
+>3.1. Binary Packages</A
></H2
><P
-> There are several ways to install <SPAN
+> Note: If you have a previous <SPAN
+CLASS="APPLICATION"
+>Junkbuster</SPAN
+> or
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
+> installation on your system, you
+ will need to remove it. Some platforms do this for you as part
+ of their installation procedure. (See below for your platform).</P
+><P
+> In any case <I
+CLASS="EMPHASIS"
+>be sure to backup your old configuration
+ if it is valuable to you.</I
+> See the
+ <A
+HREF="quickstart.html#UPGRADERSNOTE"
+>note to upgraders</A
>.</P
><P
-> To build <SPAN
+> How to install the binary packages depends on your operating system:</P
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-PACK-RPM"
+>3.1.1. Red Hat and SuSE RPMs</A
+></H3
+><P
+> RPMs can be installed with <TT
+CLASS="LITERAL"
+>rpm -Uvh privoxy-2.9.14-1.rpm</TT
+>,
+ and will use <TT
+CLASS="FILENAME"
+>/etc/privoxy</TT
+> for the location
+ of configuration files.</P
+><P
+> Note that on Red Hat, <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> from source,
- autoconf and GNU make (gmake) are required. Source is available as gzipped
- tar archives. For this, first unpack the source: </P
-><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="SCREEN"
-> tar xzvf privoxy-2.9.14-beta-src* [.tgz or .tar.gz]
- cd privoxy-2.9.14-beta
- </PRE
-></TD
-></TR
-></TABLE
-></P
+> will not be
+ automatically started on system boot. You will need to enable that using
+ <B
+CLASS="COMMAND"
+>chkconfig</B
+>, <B
+CLASS="COMMAND"
+>ntsysv</B
+>, or similar method.</P
><P
-> For retrieving the current CVS sources, you'll need the CVS
- package installed first. Note CVS source is development quality,
- and may not be stable, or well tested. To download CVS source:</P
+> If you have problems with failed dependencies, try rebuilding the SRC RPM:
+ <TT
+CLASS="LITERAL"
+>rpm --rebuild privoxy-2.9.14-1.src.rpm;</TT
+>. This
+ will use your locally installed libraries and RPM version. </P
><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="SCREEN"
-> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
- cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co current
- cd current
- </PRE
-></TD
-></TR
-></TABLE
-></P
+> Also note that if you have a <SPAN
+CLASS="APPLICATION"
+>Junkbuster</SPAN
+> RPM installed
+ on your system, you need to remove it first, because the packages conflict.
+ Otherwise, RPM will try to remove <SPAN
+CLASS="APPLICATION"
+>Junkbuster</SPAN
+>
+ automatically, before installing <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-DEB"
+>3.1.2. Debian</A
+></H3
><P
-> This will create a directory named <TT
-CLASS="FILENAME"
->current/</TT
->, which will
- contain the source tree.</P
+> FIXME.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-PACK-WIN"
+>3.1.3. Windows</A
+></H3
><P
-> Then, in either case, to build from unpacked tarball or CVS source:</P
+> Just double-click the installer, which will guide you through
+ the installation process.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-PACK-BINTGZ"
+>3.1.4. Solaris, NetBSD, FreeBSD, HP-UX</A
+></H3
><P
-> <TABLE
-BORDER="0"
-BGCOLOR="#E0E0E0"
-WIDTH="100%"
-><TR
-><TD
-><PRE
-CLASS="SCREEN"
-> autoheader
- autoconf
- ./configure (--help to see options)
- make (the make from gnu, gmake for *BSD)
- su
- make -n install (to see where all the files will go)
- make install (to really install)
- </PRE
-></TD
-></TR
-></TABLE
-></P
+> Create a new directory, <TT
+CLASS="LITERAL"
+>cd</TT
+> to it, then unzip and
+ untar the archive. For the most part, you'll have to figure out where
+ things go. FIXME.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-OS2"
+>3.1.5. OS/2</A
+></H3
><P
-> Redhat and SuSE src and binary RPMs can be built with
+> First, make sure that no previous installations of
<SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make redhat-dist</B
->"</SPAN
-> or
+CLASS="APPLICATION"
+>Junkbuster</SPAN
+> and / or
<SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->make suse-dist</B
->"</SPAN
-> from unpacked sources. You
- will need to run <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->autoconf; autoheader;
- ./configure</B
->"</SPAN
-> beforehand. *BSD will require gmake (from
- <A
-HREF="http://www.gnu.org"
-TARGET="_top"
->http://www.gnu.org</A
->).
- </P
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> are left on your
+ system. You can do this by </P
+><P
+> Then, just double-click the WarpIN self-installing archive, which will
+ guide you through the installation process. A shadow of the
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> executable will be placed in your
+ startup folder so it will start automatically whenever OS/2 starts.</P
+><P
+> The directory you choose to install <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>
+ into will contain all of the configuration files.</P
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="INSTALLATION-MAC"
+>3.1.6. Max OSX</A
+></H3
><P
-> For Redhat and SuSE Linux RPM packages, see below.</P
+> Unzip the downloaded package (you can either double-click on the file
+ in the finder, or on the desktop if you downloaded it there). Then,
+ double-click on the package installer icon and follow the installation
+ process.
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will be installed in the subdirectory
+ <TT
+CLASS="LITERAL"
+>/Applications/Privoxy.app</TT
+>.
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will set itself up to start
+ automatically on system bringup via
+ <TT
+CLASS="LITERAL"
+>/System/Library/StartupItems/Privoxy</TT
+>.</P
+></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="INSTALLATION-RH"
->3.1.1. Red Hat</A
+NAME="INSTALLATION-AMIGA"
+>3.1.7. AmigaOS</A
></H3
><P
-> To build Redhat RPM packages from source, install source as above. Then:</P
+> Copy and then unpack the <TT
+CLASS="FILENAME"
+>lha</TT
+> archive to a suitable location.
+ All necessary files will be installed into <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>
+ directory, including all configuration and log files. To uninstall, just
+ remove this directory.</P
+><P
+> Start <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> (with RUN <>NIL:) in your
+ <TT
+CLASS="FILENAME"
+>startnet</TT
+> script (AmiTCP), in
+ <TT
+CLASS="FILENAME"
+>s:user-startup</TT
+> (RoadShow), as startup program in your
+ startup script (Genesis), or as startup action (Miami and MiamiDx).
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will automatically quit when you quit your
+ TCP/IP stack (just ignore the harmless warning your TCP/IP stack may display that
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> is still running).</P
+></DIV
+></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="INSTALLATION-SOURCE"
+>3.2. Building from Source</A
+></H2
+><P
+> To build <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> from source,
+ autoheader, autoconf, <A
+HREF="http://www.gnu.org/software/make/make.html"
+TARGET="_top"
+>GNU make
+ (gmake)</A
+>, and, of course, a C compiler are required.</P
+><P
+> When building from a source tarball (either release version or
+ nightly CVS tarball), first unpack the source: </P
><P
> <TABLE
BORDER="0"
><TD
><PRE
CLASS="SCREEN"
-> autoheader
- autoconf
- ./configure
- make redhat-dist
+> tar xzvf privoxy-2.9.14-beta-src* [.tgz or .tar.gz]
+ cd privoxy-2.9.14-beta
</PRE
></TD
></TR
></TABLE
></P
><P
-> This will create both binary and src RPMs in the usual places. Example:</P
-><P
-> /usr/src/redhat/RPMS/i686/privoxy-2.9.14-1.i686.rpm</P
-><P
-> /usr/src/redhat/SRPMS/privoxy-2.9.14-1.src.rpm</P
-><P
-> To install, of course:</P
+> For retrieving the current CVS sources, you'll need CVS installed.
+ Note that sources from CVS are development quality, and may not be
+ stable, or well tested. To download CVS source:</P
><P
> <TABLE
BORDER="0"
><TD
><PRE
CLASS="SCREEN"
-> rpm -Uvv /usr/src/redhat/RPMS/i686/privoxy-2.9.14-1.i686.rpm
+> cvs -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa login
+ cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co current
+ cd current
</PRE
></TD
></TR
></TABLE
></P
><P
-> This will place the <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> configuration
- files in <TT
-CLASS="FILENAME"
->/etc/privoxy/</TT
->, and log files in
- <TT
+> This will create a directory named <TT
CLASS="FILENAME"
->/var/log/privoxy/</TT
->. Run
- <SPAN
-CLASS="QUOTE"
->"<B
-CLASS="COMMAND"
->chkconfig privoxy on</B
->"</SPAN
-> to have
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> start automatically during init. </P
-></DIV
-><DIV
-CLASS="SECT3"
-><H3
-CLASS="SECT3"
-><A
-NAME="INSTALLATION-SUSE"
->3.1.2. SuSE</A
-></H3
+>current/</TT
+>, which will
+ contain the source tree.</P
><P
-> To build SuSE RPM packages, install source as above. Then:</P
+> Then, in either case, to build from unpacked tarball or CVS source:</P
><P
> <TABLE
BORDER="0"
CLASS="SCREEN"
> autoheader
autoconf
- ./configure
- make suse-dist
+ ./configure # (--help to see options)
+ make # (the make from gnu, gmake for *BSD)
+ su
+ make -n install # (to see where all the files will go)
+ make install # (to really install)
</PRE
></TD
></TR
></TABLE
></P
><P
-> This will create both binary and src RPMs in the usual places. Example:</P
-><P
-> /usr/src/packages/RPMS/i686/privoxy-2.9.14-1.i686.rpm</P
-><P
-> /usr/src/packages/SRPMS/privoxy-2.9.14-1.src.rpm</P
-><P
-> To install, of course:</P
+> If you have gnu make, you can have the first four steps
+ automatically done for you by just typing</P
><P
> <TABLE
BORDER="0"
><TD
><PRE
CLASS="SCREEN"
-> rpm -Uvv /usr/src/packages/RPMS/i686/privoxy-2.9.14-1.i686.rpm
+> make
</PRE
></TD
></TR
></TABLE
></P
><P
-> This will place the <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> configuration
- files in <TT
-CLASS="FILENAME"
->/etc/privoxy/</TT
->, and log files in
- <TT
-CLASS="FILENAME"
->/var/log/privoxy/</TT
->. </P
-></DIV
-><DIV
-CLASS="SECT3"
-><H3
-CLASS="SECT3"
-><A
-NAME="INSTALLATION-OS2"
->3.1.3. OS/2</A
-></H3
-><P
-> <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
-> is packaged in a WarpIN self-
- installing archive. The self-installing program will be named depending
- on the release version, something like:
- <TT
-CLASS="FILENAME"
->privoxyos2_setup_2.9.14.exe</TT
->. In order to install it, simply
- run this executable or double-click on its icon and follow the WarpIN
- installation panels. A shadow of the <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->
- executable will be placed in your startup folder so it will start
- automatically whenever OS/2 starts.</P
-><P
-> The directory you choose to install <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->
- into will contain all of the configuration files.</P
-></DIV
-><DIV
-CLASS="SECT3"
-><H3
-CLASS="SECT3"
-><A
-NAME="INSTALLATION-WIN"
->3.1.4. Windows</A
-></H3
-><P
->Click-click. (I need help on this. Not a clue here. Also for
-configuration section below. HB.)</P
-></DIV
-><DIV
-CLASS="SECT3"
-><H3
-CLASS="SECT3"
-><A
-NAME="INSTALLATION-OTHER"
->3.1.5. Other</A
-></H3
-><P
-> Some quick notes on other Operating Systems.</P
+> in the freshly downloaded or unpacked source directory.</P
><P
-> For FreeBSD (and other *BSDs?), the build will require <B
-CLASS="COMMAND"
->gmake</B
->
- instead of the included <B
-CLASS="COMMAND"
->make</B
->. <B
-CLASS="COMMAND"
->gmake</B
-> is
- available from <A
-HREF="http://www.gnu.org"
+> For more detailed instructions on how to build Redhat and SuSE RPMs,
+ Windows self-extracting installers, building on platforms with
+ special requirements etc, please consult the <A
+HREF="../developer-manual/newrelease.html"
TARGET="_top"
->http://www.gnu.org</A
->.
- The rest should be the same as above for Linux/Unix.</P
-></DIV
+>developer manual</A
+>.</P
></DIV
></DIV
><DIV
><H2
CLASS="SECT2"
><A
-NAME="AEN38"
+NAME="NEWFEATURES"
>1.1. New Features</A
></H2
><P
CLASS="APPLICATION"
>Internet Junkbuster's</SPAN
> traditional
- feature of ad and banner blocking and cookie management,
+ features of ad and banner blocking and cookie management,
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
><UL
><LI
><P
-> Integrated browser based configuration and control utility (<A
-HREF="http://p.p"
+> Integrated browser based configuration and control utility at <A
+HREF="http://config.privoxy.org/"
TARGET="_top"
->http://p.p</A
->). Browser-based tracing of rule
- and filter effects.
+>http://config.privoxy.org/</A
+>
+ (shortcut: <A
+HREF="http://p.p/"
+TARGET="_top"
+>http://p.p/</A
+>). Browser-based
+ tracing of rule and filter effects. Remote toggling.
</P
></LI
><LI
></LI
><LI
><P
-> HTTP/1.1 compliant (most, but not all 1.1 features are supported).
+> HTTP/1.1 compliant (but not all optional 1.1 features are supported).
</P
></LI
><LI
invisible <SPAN
CLASS="QUOTE"
>"web-bugs"</SPAN
->, JavaScript, pop-ups, status bar abuse,
- etc.)
+>, JavaScript and HTML annoyances, pop-ups, etc.)
</P
></LI
><LI
><P
> Bypass many click-tracking scripts (avoids script redirection).
-
</P
></LI
><LI
><LI
><P
> Builds from source on most UNIX-like systems. Packages available for: Linux
- (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11 and AmigaOS.
-
+ (RedHat, SuSE, or Debian), Windows, Sun Solaris, Mac OSX, OS/2, HP-UX 11,
+ NetBSD and AmigaOS.
+ </P
+></LI
+><LI
+><P
+> Every feature now controllable on a per-site or per-location basis, configuration
+ more powerful and versatile over-all.
</P
></LI
><LI
><P
-> In addition, the configuration is much more powerful and versatile over-all.
+> Many smaller new features added, limitations and bugs removed, and security holes fixed.
</P
></LI
></UL
>Privoxy</SPAN
></A
></H1
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="UPGRADERSNOTE"
+>4.1. Note to Upgraders</A
+></H2
+><P
+> There are very significant changes from older versions of
+ <SPAN
+CLASS="APPLICATION"
+>Junkbuster</SPAN
+> to the current
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>. Configuration is substantially
+ changed. <SPAN
+CLASS="APPLICATION"
+>Junkbuster 2.0.x</SPAN
+> and earlier
+ configuration files will not migrate. The functionality of the old
+ <TT
+CLASS="FILENAME"
+>blockfile</TT
+>, <TT
+CLASS="FILENAME"
+>cookiefile</TT
+> and
+ <TT
+CLASS="FILENAME"
+>imagelist</TT
+>, are now combined into the
+ <SPAN
+CLASS="QUOTE"
+>"actions file"</SPAN
+> (<TT
+CLASS="FILENAME"
+>default.action</TT
+>
+ for most installations).</P
+><P
+> A <SPAN
+CLASS="QUOTE"
+>"filter file"</SPAN
+> (typically <TT
+CLASS="FILENAME"
+>default.filter</TT
+>)
+ is new as of <SPAN
+CLASS="APPLICATION"
+>Privoxy 2.9.x</SPAN
+>, and provides some
+ of the new sophistication (explained below). <TT
+CLASS="FILENAME"
+>config</TT
+> is
+ much the same as before.</P
+><P
+> If upgrading from a 2.0.x version, you will have to use the new config
+ files, and possibly adapt any personal rules from your older files.
+ When porting personal rules over from the old <TT
+CLASS="FILENAME"
+>blockfile</TT
+>
+ to the new actions file, please note that even the pattern syntax has
+ changed. If upgrading from 2.9.x development versions, it is still
+ recommended to use the new configuration files.</P
+><P
+> A quick list of things to be aware of before upgrading: </P
+><P
+> <P
+></P
+><UL
+><LI
+><P
+> The default listening port is now 8118 due to a conflict with another
+ service (NAS).
+ </P
+></LI
+><LI
+><P
+>
+ Some installers may remove earlier versions completely. Save any
+ important configuration files!
+ </P
+></LI
+><LI
+><P
+> <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> is controllable with a web browser
+ at the special URL: <A
+HREF="http://config.privoxy.org/"
+TARGET="_top"
+>http://config.privoxy.org/</A
+>
+ (Shortcut: <A
+HREF="http://p.p/"
+TARGET="_top"
+>http://p.p/</A
+>). Many
+ aspects of configuration can be done here, including temporarily disabling
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>.
+ </P
+></LI
+><LI
+><P
+> The primary configuration file for cookie management, ad and banner
+ blocking, and many other aspects of <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+>
+ configuration is <TT
+CLASS="FILENAME"
+>default.action</TT
+>. It is strongly
+ recommended to become familiar with the new actions concept below,
+ before modifying this file.
+ </P
+></LI
+><LI
+><P
+>
+ Some installers may not automatically start
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> after installation.
+ </P
+></LI
+></UL
+></P
+></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="STARTUP"
+>4.2. Starting <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+></A
+></H2
><P
> Before launching <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
>
as a HTTP and HTTPS proxy. The default is localhost for the proxy address,
- and port 8118 (earlier versions used port 800). This is the one required
- configuration that must be done! </P
+ and port 8118 (earlier versions used port 8000). This is the one
+ configuration step that must be done! </P
><P
>
With <SPAN
localhost, Port: 8118). Include if HTTPS proxy support too.</P
><P
> After doing this, flush your browser's disk and memory caches to force a
- re-reading of all pages and get rid of any ads that may be cached. You
+ re-reading of all pages and to get rid of any ads that may be cached. You
are now ready to start enjoying the benefits of using
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
->.</P
+>!</P
><P
> <SPAN
CLASS="APPLICATION"
></TABLE
></P
><P
-> An init script is provided for SuSE and Redhat.</P
+> See <A
+HREF="quickstart.html#CMDOPTIONS"
+>below</A
+> for other command line options.</P
+><P
+> An init script is provided for SuSE and Red Hat.</P
><P
> For for SuSE: <B
CLASS="COMMAND"
->/etc/rc.d/privoxy start</B
+>rcprivoxy start</B
></P
><P
-> For RedHat: <B
+> For Red Hat and Debian: <B
CLASS="COMMAND"
>/etc/rc.d/init.d/privoxy start</B
></P
> will fail to start.</P
><P
> The included default configuration files should give a reasonable starting
- point, though may be somewhat aggressive in blocking junk. Most of the
- per site configuration is done in the <SPAN
+ point. Most of the per site configuration is done in the
+ <SPAN
CLASS="QUOTE"
>"actions"</SPAN
-> files. These
- are where various cookie actions are defined, ad and banner blocking,
- and other aspects of <SPAN
+> files. These are where various cookie actions are
+ defined, ad and banner blocking, and other aspects of
+ <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> configuration. There
- are several such files included, with varying levels of aggressiveness. </P
+> configuration. There are several such
+ files included, with varying levels of aggressiveness. </P
><P
> You will probably want to keep an eye out for sites that require persistent
cookies, and add these to <TT
>default.action</TT
> as needed. By
default, most of these will be accepted only during the current browser
- session, until you add them to the configuration. If you want the browser to
- handle this instead, you will need to edit
- <TT
+ session (aka <SPAN
+CLASS="QUOTE"
+>"session cookies"</SPAN
+>), until you add them to the
+ configuration. If you want the browser to handle this instead, you will need
+ to edit <TT
CLASS="FILENAME"
>default.action</TT
-> and disable this feature. If you use more
- than one browser, it would make more sense to let
+> and disable this feature. If you
+ use more than one browser, it would make more sense to let
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> handle this. In which case, the browser(s)
- should be set to accept all cookies.</P
+> handle this. In which case, the
+ browser(s) should be set to accept all cookies.</P
+><P
+> Another feature where you will probably want to define exceptions for trusted
+ sites is the popup-killing (through the <TT
+CLASS="LITERAL"
+>+popup</TT
+> and
+ <TT
+CLASS="LITERAL"
+>+filter{popups}</TT
+> actions), because your favorite shopping,
+ banking, or leisure site may need popups. </P
><P
> <SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> is HTTP/1.1 compliant, but not all 1.1
- features are as yet implemented. If browsers that support HTTP/1.1 (like
- <SPAN
+> is HTTP/1.1 compliant, but not all of
+ the optional 1.1 features are as yet supported. In the unlikely event that
+ you experience inexplicable problems with browsers that use HTTP/1.1 per default
+ (like <SPAN
CLASS="APPLICATION"
>Mozilla</SPAN
-> or recent versions of I.E.) experience
- problems, you might try to force HTTP/1.0 compatibility. For Mozilla, look
- under <TT
+> or recent versions of I.E.), you might
+ try to force HTTP/1.0 compatibility. For Mozilla, look under <TT
CLASS="LITERAL"
->Edit -> Preferences -> Debug -> Networking</TT
+>Edit ->
+ Preferences -> Debug -> Networking</TT
>.
- Or set the <SPAN
+ Alternatively, set the <SPAN
CLASS="QUOTE"
>"+downgrade"</SPAN
> config option in
<TT
CLASS="FILENAME"
>default.action</TT
->.</P
+> which will downgrade your browser's HTTP
+ requests from HTTP/1.1 to HTTP/1.0 before processing them.</P
><P
> After running <SPAN
CLASS="APPLICATION"
>)
can be adjusted by pointing your browser to
<A
+HREF="http://config.privoxy.org/"
+TARGET="_top"
+>http://config.privoxy.org/</A
+>
+ (shortcut: <A
HREF="http://p.p/"
TARGET="_top"
>http://p.p/</A
->,
+>),
and then follow the link to <SPAN
CLASS="QUOTE"
>"edit the actions list"</SPAN
> and <SPAN
CLASS="QUOTE"
>"off"</SPAN
-> from this page.</P
+> (toggled) from this page.</P
><P
-> If you encounter problems, please verify it is a
+> If you encounter problems, try loading the page without
<SPAN
CLASS="APPLICATION"
>Privoxy</SPAN
-> bug, by disabling
- <SPAN
-CLASS="APPLICATION"
->Privoxy</SPAN
->, and then trying the same page.
- Also, try another browser if possible to eliminate browser or site
- problems. Before reporting it as a bug, see if there is not a configuration
- option that is enabled that is causing the page not to load. You can then add
- an exception for that page or site. For instance, try adding it to the
- <TT
-CLASS="LITERAL"
->{fragile}</TT
-> section of <TT
-CLASS="FILENAME"
->default.action</TT
->.
- This will turn off most actions for this site. For more on troubleshooting
- problem sites, see the <A
+>. If that helps, enter the URL where
+ you have the problems into <A
+HREF="http://p.p/show-url-info"
+TARGET="_top"
+>the browser
+ based rule tracing utility</A
+>. See which rules apply and why, and
+ then try turning them off for that site one after the other, until the problem
+ is gone. When you have found the culprit, you might want to turn the rest on
+ again.</P
+><P
+> If the above paragraph sounds gibberish to you, you might want to <A
+HREF="configuration.html#ACTIONSFILE"
+TARGET="_top"
+>read more about the actions concept</A
+>
+ or even dive deep into the <A
HREF="appendix.html#ACTIONSANAT"
TARGET="_top"
->Appendix</A
->. If a bug, please report it
- to the developers (see below). </P
+>Appendix
+ on actions</A
+>.</P
+><P
+> If you can't get rid of the problem at all, think you've found a bug in
+ Privoxy, want to propose a new feature or smarter rules, please see the
+ chapter "Contacting the Developers, .." below.</P
+></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
-NAME="AEN223"
->4.1. Command Line Options</A
+NAME="CMDOPTIONS"
+>4.3. Command Line Options</A
></H2
><P
> <SPAN
>
</P
><P
-> Print version info and exit, Unix only.
+> Print version info and exit. Unix only.
</P
></LI
><LI
>
</P
><P
-> Print a short usage info and exit, Unix only.
+> Print short usage info and exit. Unix only.
</P
></LI
><LI
</P
><P
> Don't become a daemon, i.e. don't fork and become process group
- leader, don't detach from controlling tty. Unix only.
+ leader, and don't detach from controlling tty. Unix only.
</P
></LI
><LI
<I
CLASS="EMPHASIS"
>FILE</I
-> on exit. Failiure to create or delete the
+> on exit. Failure to create or delete the
<I
CLASS="EMPHASIS"
>FILE</I
CLASS="QUOTE"
>"config.txt"</SPAN
> instead). Specify
- full path to avoid confusion.
+ full path to avoid confusion. If no config file is found,
+ <SPAN
+CLASS="APPLICATION"
+>Privoxy</SPAN
+> will fail to start.
</P
></LI
></UL