Rewrite
[privoxy.git] / junkbuster.1
1 .\" Revised man page 10/13/01\r
2 .\" Hal Burgiss <hal@foobox.net for Junkbuster developers\r
3 .TH JUNKBUSTER 1 "v2.9.9 (alpha) Date: 2001/10/14"\r
4 \r
5 .SH NAME\r
6 \fBjunkbuster\fP\r
7 - The\r
8 Internet Junkbuster\r
9 Proxy\r
10 \s-2(TM)\s+2\r
11 .SH SYNOPSIS\r
12 \fBjunkbuster\fP\r
13 \fI\&[config_file] &\fP\r
14 .br\r
15 \fBjunkbstr.exe\fP\r
16 \fI\&[config_file]\fP\r
17 (Windows)\r
18 .br\r
19 .P\r
20 If the configuration file is not specified on the command line,\r
21 \fBJunkbuster\fP will look for a file named \fIconfig\fP in the \r
22 current directory (except on Amiga where it will look for \r
23 \fIAmiTCP:db/junkbuster/config\fP and Win32 where it will try \r
24 \fIjunkbstr.txt\fP).\r
25 \r
26 \r
27 .SH DESCRIPTION\r
28 \fBJunkbuster\fP\r
29 is an instrumentable HTTP proxy that filters the \r
30 \s-2HTTP\s0\r
31 data stream between\r
32 web servers and browsers.\r
33 \fBJunkbuster\fP can be used to protect privacy, manage cookies, filter web\r
34 page content, manage access restrictions, and to remove such annoying Internet\r
35 junk as ads, banners, and pop-ups. Or whatever other annoyances strike your\r
36 fancy.\r
37 \r
38 .SH INSTALLATION AND USE\r
39 Browsers must be configured to use \r
40 \fBJunkbuster\fP\r
41 (the default is localhost, \r
42 port 8000).\r
43 To set the \r
44 \s-2HTTP\s0\r
45 proxy in Netscape and Mozilla,\r
46 go through:\r
47 \fB\&Edit\fP;\r
48 \fB\&Preferences\fP;\r
49 \fB\&Advanced\fP;\r
50 \fB\&Proxies\fP;\r
51 \fB\&Manual Proxy Configuration\fP;\r
52 \fB\&View\fP.\r
53 .P\r
54 For Internet Explorer,\r
55 go through:\r
56 \fB\&Tools\fP;\r
57 \fB\&Internet Properties\fP;\r
58 \fB\&Connections\fP;\r
59 \fB\&LAN Settings\fP.\r
60 .P\r
61 Set the HTTP proxy location for localhost, port 8000.\r
62 The\r
63 Secure (SSL) Proxy\" ijbfaq.html#security\r
64 should also be set to the same values,\r
65 otherwise\r
66 \fB\&https:\fP\r
67 \s-2URL\s0s\r
68 won't be proxied.\r
69 \r
70 .SH CONFIGURATION\r
71 All \fBJunkbuster\fP configuration is done via the various configuarion \r
72 files. The default configuration files are: \fIconfig\fP, \r
73 \fIactionsfile\fP, and \fIre_filterfile\fP. These are well commented. \r
74 On Unix and Unix-like systems, these are located in \fI/etc/junkbuster/\fP \r
75 by default. On Windows and OS/2, these files are in the same directory \r
76 as the \fBJunkbuster\fP executable. \r
77 .P\r
78 The name and number of configuration files has changed from previous versions,\r
79 and is subject to change as development progresses. In fact, the configuration\r
80 itself is changed and much more sophisticated. See the user-manual for a brief\r
81 explanation of all configuration options.\r
82 \r
83 .SH "SAMPLE CONFIGURATION"\r
84 .PP\r
85 A brief example of what an \fIactionsfile\fP configuration might look like:\r
86 .PP\r
87 .nf\r
88 \r
89 # Define a few useful custom aliases for later use\r
90 {{alias}}\r
91 +no-cookies = +no-cookies-set +no-cookies-read\r
92 -no-cookies = -no-cookies-set -no-cookies-read\r
93 +imageblock = +block +image\r
94 \r
95 ## Default Policies (actions) ############################\r
96 { \\\r
97  -block \\\r
98  -downgrade \\\r
99  +fast-redirects \\\r
100  +filter \\\r
101  +no-compression \\\r
102  +hide-forwarded \\\r
103  +hide-from{block} \\\r
104  +hide-referer{forge} \\\r
105  -hide-user-agent \\\r
106  -image \\\r
107  +image-blocker{blank} \\\r
108  +no-cookies-read \\\r
109  +no-cookies-set \\\r
110  +no-popups \\\r
111  +vanilla-wafer \\\r
112 }\r
113 /\r
114 \r
115 # Now set exceptions to the above defined policies #######\r
116 \r
117 # Sites that DO need cookies\r
118 {-no-cookies}\r
119  .redhat.com\r
120  .sun.com\r
121  .yahoo.com\r
122  .msdn.microsoft.com\r
123 \r
124 # This site requires cookies AND 'fast-redirects' on\r
125 {-no-cookies -fast-redirects}\r
126  .nytimes.com\r
127 \r
128 # Add custom headers, and turn off filtering of page source\r
129 {+add-header{X-Privacy: Yes please} #-add-header{*} \\\r
130  +add-header{X-User-Tracking: No thanks!} -filter}\r
131  privacy.net\r
132 \r
133 {+imageblock}\r
134  .adforce.imgis.com\r
135  .ad.preferences.com/image.*\r
136  .ads.web.aol.com\r
137  .ad-adex3.flycast.com\r
138  .ad.doubleclick.net\r
139  .ln.doubleclick.net\r
140  .ad.de.doubleclick.net\r
141  /.*/count\\.cgi\\?.*df=\r
142  194.221.183.22[1-7]\r
143  a196.g.akamai.net/7/196/2670/000[12]/images.gmx.net/i4/images/.*/\r
144 \r
145 # Block any URLs that match these patterns\r
146 {+block}\r
147  /.*/(.*[-_.])?ads?[0-9]?(/|[-_.].*|\\.(gif|jpe?g))\r
148  /.*/(.*[-_.])?count(er)?(\\.cgi|\\.dll|\\.exe|[?/])\r
149  /.*/(plain|live|rotate)[-_.]?ads?/\r
150  /.*/(sponsor)s?[0-9]?/\r
151  /.*/ad(server|stream|juggler)\\.(cgi|pl|dll|exe)\r
152  /.*/adbanners/\r
153  /.*/adv((er)?ts?|ertis(ing|ements?))?/\r
154  /.*/banners?/\r
155  /.*/popupads/\r
156  /.*/sponsor.*\\.gif\r
157  /.*/advert[0-9]+\\.jpg\r
158  /ad_images/\r
159  /.*/ads/\r
160  /images/.*/.*_anim\\.gif\r
161  /rotations/ \r
162  /.*(ms)?backoff(ice)?.*\\.(gif|jpe?g)\r
163  195.63.104.*/(inbox|log|meld|folderlu|folderru|log(in|out)[lmr]u|)\r
164  .images.nytimes.com\r
165  .images.yahoo.com/adv/\r
166  /.*cnnstore\\.gif\r
167 \r
168 .fi\r
169 .sp\r
170 .PP\r
171 See the comments in the configuration files themselves, or the user-manual \r
172 for explanations of the above syntax.\r
173 \r
174 .SH "FILES"\r
175 \fI/usr/sbin/junkbuster\fP\r
176 .br\r
177 \fI/etc/junkbuster/config\fP\r
178 .br\r
179 \fI/etc/junkbuster/actionsfile\fP\r
180 .br\r
181 \fI/etc/junkbuster/re_filterfile\fP\r
182 .br\r
183 \fI/var/log/junkbuster/logfile\fP\r
184 \r
185 .P\r
186 Various other files should be included, but may vary depending on platform.\r
187 More documentation should be included in the local documentation directory,\r
188 though is not complete at this time.\r
189 \r
190 .SH NOTES\r
191 This is a development version of \fBJunkbuster\fP. All features are not \r
192 complete.\r
193 \r
194 .SH BUGS\r
195 Yes. HTTP/1.1 support is only partially implemented. See the user-manual for \r
196 how and where to report bugs.\r
197 \r
198 .SH SEE ALSO\r
199 http://ijbswa.sourceforge.net/\r
200 .br\r
201 http://sourceforge.net/projects/ijbswa\r
202 .br\r
203 http://www.waldherr.org/junkbuster/\" waldherr.org#\r
204 .br\r
205 http://www.junkbusters.com/ht/en/cookies.html\" cookies.html#\r
206 .br\r
207 http://ijbswa.sourceforge.net/config/\r
208 .br\r
209 http://privacy.net/analyze/\r
210 .br\r
211 http://www.squid-cache.org/\r
212 \r
213 .SH DEVELOPMENT TEAM\r
214 .br\r
215  Stefan Waldherr \r
216 .br\r
217  Andreas Oesterhelt \r
218 .br\r
219  Jon Foster \r
220 .br\r
221  Markus Breitenbach\r
222 .br\r
223  Thomas Steudten\r
224 .br\r
225  David Schmidt\r
226 .br\r
227  Haroon Rafique\r
228 .br\r
229  Jorg Strohmayer\r
230 .br\r
231  Shamim Mohamed\r
232 .br\r
233  Sarantis Paskalis\r
234 .br\r
235  Gabriel L. Somlo\r
236 .br\r
237  John Venvertloh\r
238 .br\r
239  Hal Burgiss\r
240 \r
241 \r
242 .SH COPYRIGHT AND GPL\r
243 Orginally written by, and copyrighted by, the Anonymous Coders and Junkbusters\r
244 Corporation. \r
245 .P\r
246 This program is free software; you can redistribute it and/or modify\r
247 it under the terms of the GNU General Public License as published by\r
248 the Free Software Foundation; either version 2 of the License, or\r
249 (at your option) any later version.\r
250 .P\r
251 This program is distributed in the hope that it will be useful,\r
252 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
253 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
254 GNU General Public License for more details.\r
255 .P\r
256 You should have received a copy of the GNU General Public License\r
257 along with this program; if not, write to the Free Software\r
258 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
259 .P\r
260 Internet Junkbuster\r
261 Proxy\r
262 is a\r
263 trademark\" legal.html#marks\r
264 of Junkbusters Corporation.\r