Added +image-blocker{string}
[privoxy.git] / config
1 #  Sample Configuration file for the Internet Junkbuster 2.0
2
3 #
4 # $Id: config,v 1.7 2001/05/29 09:50:24 jongfoster Exp $
5 #
6
7 #  Table of Contents
8 #
9 #       1. INTRODUCTION
10 #       2. FORMAT OF THE CONFIGURATION FILE
11 #       3. OTHER CONFIGURATION FILES
12 #       4. GENERAL OPTIONS
13 #       5. WINDOWS GUI OPTIONS
14 #
15 #  1. INTRODUCTION
16 #
17 #  This file holds the Junkbuster configuration.  If you modify this
18 #  file, you will need to stop & restart Junkbuster, or use the
19 #  "Reload Config" option (Windows) before any changes take effect.
20 #
21 #  When starting Junkbuster on Unix systems, give the name of this
22 #  file as an argument.  On Windows systems, Junkbuster will look for
23 #  this file with the name 'junkbustr.txt' in the same directory where
24 #  Junkbuster is installed.
25 #
26 #  2. FORMAT OF THE CONFIGURATION FILE
27 #
28 #  Configuration lines consist of an initial keyword followed by a list
29 #  of values, all separated by whitespace (any number of spaces or
30 #  tabs).  For example,
31 #
32 #  blockfile blocklist.ini
33 #
34 #  Indicates that the blockfile is named 'blocklist.ini'.
35 #
36 #  The '#' indicates a comment.  Any part of a line following a '#' is
37 #  ignored, except if the '#' is preceded by a '\'.
38 #
39 #  Thus, by placing a # at the start of an existing configuration line,
40 #  you can make it a comment and it will be treated as if it weren't there. 
41 #  This is called "commenting out" an option and can be useful to turn
42 #  off features: If you comment out the "logfile" line, junkbuster will
43 #  not log at all. Watch for the "default:" section in each explanation
44 #  to see what happens if the option is left unset (or commented out). 
45 #
46 #  Long lines can be continued on the next line by using a `\' as
47 #  the last character. This also works if comments are present in
48 #  between.
49 #  
50
51 #
52 #  3. OTHER CONFIGURATION FILES
53 #
54 #  Junkbuster uses a number of other files to tell it what ads to
55 #  block, what cookies to accept, etc.  This section of the
56 #  configuration file tells Junkbuster where to find all those other
57 #  files.
58 #
59 #  On Windows, Junkbuster looks for these files in the same
60 #  directory as the executable.  On Unix, Junkbuster looks for these
61 #  files in the current working directory.  In either case, an
62 #  absolute path name can be used to avoid problems.
63
64 #
65 #  The permissions file contains patterns to specify the
66 #  filtering rules to apply to each site.
67 #
68 #  Default: Cookies to and from all destinations are filtered.
69 #           Popups are disabled for all sites.
70 #           All sites are filtered if re_filterfile specified.
71 #           No sites are blocked.  Nothing is an image.
72 #
73 permissionsfile ./permissionsfile
74
75 #
76 #  The re_filterfile contains content modification rules.  These rules
77 #  permit powerful changes on the content of Web pages, e.g., you
78 #  could disable your favourite JavaScript annoyances, rewrite the
79 #  actual content, or just have some fun replacing "Microsoft"
80 #  with "Microsuck" wherever it appears on a Web page.
81 #
82 #  Default: No content modification.
83 #
84 re_filterfile   ./re_filterfile
85
86 #
87 #  The logfile is where all logging and error messages are written.
88 #  The logfile can be useful for tracking down a problem with
89 #  Junkbuster (e.g., it's not blocking an ad you think it should
90 #  block) but in most cases you probably will never look at it.
91 #
92 #  Your logfile will grow indefinitely, and you will probably want to
93 #  periodically remove it.  On Unix systems, you can do this with a
94 #  cron job (see 'man cron').
95 #
96 #  On SuSE Linux systems, you can place a line like
97 #  "/var/log/junkbuster.* +1024k 644 nobody.nogroup" in /etc/logfiles,
98 #  with the effect that cron.daily will automatically archive, gzip,
99 #  and empty the log, when it exceeds 1M size.
100 #
101 #  Default: Log to the standard error channel, not to a file
102 #
103 logfile      ./junkbuster.log
104
105 #
106 #  The jarfile defines where Junkbuster stores the cookies it
107 #  intercepts.  Note that if you use a jarfile, it may grow quite
108 #  large. 
109 #
110 #  Default: Don't store intercepted cookies
111 #
112 #jarfile     ./jarfile
113
114 #
115 #  The forwardfile defines domain-specific forwarding of HTTP
116 #  requests.  In some cases, you may want Junkbuster to forward your
117 #  request to another proxy instead of trying to fetch the request
118 #  itself.  In those cases, you can use the forwardfile to indicate
119 #  which requests should be forwarded and to where.
120 #
121 #  Default: Make all connections directly.
122 #
123 forwardfile   ./forward
124
125 #
126 #  Generally, Junkbuster is used as a personal proxy.  The default
127 #  behaviour of Junkbuster is to listen on port 8000 on the "loopback"
128 #  interface, so that it will only listen to local requests from the
129 #  same machine.  Using 'listen-address' (see below) you can serve
130 #  requests from other machines as well.
131 #
132 #  In that case, it is a wise thing to define access control lists
133 #  (acls), which state who can connect to your proxy and what service
134 #  they will be given. Note that setting the listen-address to an IP
135 #  address that is only internally reachable from your local network
136 #  might already do the trick.
137 #
138 #  Default: No access control. Everybody that can reach junkbuster
139 #           will be served.
140 #
141 #aclfile   ./aclfile
142
143 #
144 #  4. OPTIONS
145 #
146 #  This part of the configuration file contains options that control
147 #  how Junkbuster operates.
148 #
149
150 #
151 #  Listen-address specifies the address and port where Junkbuster will
152 #  listen for connections from your Web browser.  The default is to
153 #  listen on the local host on port 8000, and this is suitable for
154 #  most users.  (In your web browser, under proxy configuration, list
155 #  the proxy server as 'localhost' and the port as '8000').
156
157 #  If you already have another service running on port 8000, or if you
158 #  want to serve requests from other machines (e.g. on your local
159 #  network) as well, you will need to override the default. The syntax
160 #  is "listen-address [<ip-address>]:<port>" If you leave out the ip
161 #  adress, junkbuster will bind to all interfaces (addresses) on your
162 #  machine and may become reachable from the internet. In that case,
163 #  consider using access control lists (acl's) (see "aclfile" above).
164 #
165 #  For example, suppose you are running Junkbuster on a machine which
166 #  has the address 192.168.0.1 on your local private network
167 #  (192.168.0.0) and has another outside connection with a different
168 #  address. You want it to serve requests from inside only:
169 #
170 #     listen-address 192.168.0.1:8000
171 #
172 #  If you want it to listen on all addresses (including the outside
173 #  connection):
174 #
175 #     listen-address :8000
176 #
177 #  If you do this, consider using acls (see "aclfile" above).
178 #
179 #  Note: you will need to point your browser(s) to the address
180 #  and port that you have configured here.
181 #
182 #  Default:  listen-address    localhost:8000 
183 #            listen-address    127.0.0.1:8000
184 #
185
186 #
187 #  The 'tinygif' option lets you change how Junkbuster treats blocked
188 #  images.  The default behavior is to send an HTML answer to requests
189 #  for images, resulting in a "broken image icon" in place of the blocked
190 #  image.  That's a little ugly, so several other options are available:
191 #
192 #     VALUE       EFFECT
193 #     =====       ======
194 #     0           Send HTML
195 #     1           Send a GIF of one transparent pixel
196 #     2           Send a GIF with the word "JUNKBUSTER"
197 #     3 <url>     Send a redirect to the image indicated by the <url>
198 #
199 #  As an example of the last option:
200 #
201 #    tinygif 3 http://i.j.b/ijb-send-banner.gif
202 #
203 #  Will replace every blocked image with an image built into junkbuster.
204 #
205 #  There is one non-obvious benefit to using option "3".  If you use
206 #  option 3, your Web browser will likely cache the image you specify
207 #  on your local machine.  That means that after the first use, that
208 #  image will load very quickly (and won't require a request to the
209 #  junkbuster proxy)
210 #
211 #  Default: 0, i.e. send HTML
212 #
213 tinygif   2
214
215
216 #
217 #  The debug option sets the level of debugging information to log in
218 #  the logfile (and to the console in the Windows version).  A debug
219 #  level of 1 is informative because it will show you each request as
220 #  it happens.  Higher levels of debug are probably only of interest
221 #  to developers.
222 #
223 #   debug         1 # GPC  = show each GET/POST/CONNECT request
224 #   debug         2 # CONN = show each connection status
225 #   debug         4 # IO   = show I/O status
226 #   debug         8 # HDR  = show header parsing
227 #   debug        16 # LOG  = log all data into the logfile
228 #   debug        32 # FRC  = debug force feature
229 #   debug        64 # REF  = debug regular expression filter 
230 #   debug       128 # RED  = debug fast redirects
231 #   debug       256 # CLF  = Common Log Format
232 #   debug      4096 # INFO = Startup banner and warnings.
233 #   debug      8192 # ERROR = Non-fatal errors
234 #
235 #  It is *highly recommended* that you enable ERROR
236 #  reporting.  (debug 8192).
237 #
238 #  The reporting of FATAL errors (i.e. ones which crash 
239 #  JunkBuster) is always on and cannot be disabled.
240 #
241 #  If you want to use CLF, you should set "debug 256" ONLY,
242 #  do not enable anything else.
243 #
244 #  Multiple "debug" directives, are OK - they're logical-OR'd
245 #  together. 
246 #
247 #   debug         15 # same as setting the first 4 listed above
248 #
249 #  Default: 0, i.e. log nothing but fatal errors
250 #
251 debug   1
252 debug   8192 # Errors - *we highly recommended enabling this*
253
254 #
255 #  Junkbuster normally uses "multi-threading", a software technique
256 #  that permits it to handle many different requests simultaneously.
257 #  In some cases you may wish to disable this -- particularly if
258 #  you're trying to debug a problem.  The 'single-threaded' option
259 #  forces Junkbuster to handle requests sequentially.
260 #
261 #  Default: Multithreaded mode
262 #
263 #single-threaded
264
265 #
266 #    'toggle' allows you to temporarily disable all Junkbuster's 
267 #    filtering.  Just set "toggle 0".
268 #    
269 #    The Windows version of Junkbuster puts an icon in the system
270 #    tray, which allows you to change this option without having
271 #    to edit this file.  If you right-click on that icon (or select
272 #    the 'Options' menu), one choice is "Enable".  Clicking on enable
273 #    toggles Junkbuster on and off.  This is useful if you want to
274 #    temporarily disable Junkbuster, e.g., to access a site that
275 #    requires cookies which you normally have blocked.
276 #
277 #    'toggle 1' means Junkbuster runs normally, 'toggle 0' means
278 #    that Junkbuster becomes a non-anonymizing non-blocking
279 #    proxy.
280 #
281 #  Default: 1
282 #
283 toggle 1
284
285 #
286 #  5. WINDOWS GUI OPTIONS
287 #
288 #  Junkbuster has a number of options specific to the Windows GUI
289 #  interface:
290 #
291 #    activity-animation      {1 or 0}
292 #
293 #    If set to 1, the Junkbuster icon will animate when Junkbuster is
294 #    active.
295 #
296 #Win32-only: activity-animation      1
297
298 #    log-messages            {1 or 0}
299 #
300 #    If set to 1, Junkbuster will log messages to the console window.
301 #
302 #Win32-only: log-messages            1
303
304 #    log-buffer-size         {1 or 0}?
305 #
306 #    If log-buffer-size is set to 1, the size of the log buffer, that
307 #    is the amount of memory used for the log messages displayed in
308 #    the console window, will be limited to 'log-max-lines' (see below).
309 #
310 #    Warning: Setting this to 0 will result in the buffer to grow
311 #             infinitely and eat up all your memory!
312 #
313 #Win32-only: log-buffer-size   1
314
315 #    log-max-lines   {number of lines, e.g., '200'}
316 #
317 #    Maximum number of lines held in the log buffer. See above.
318 #
319 #Win32-only: log-max-lines   200
320
321 #    log-highlight-messages  {1 or 0}
322 #
323 #    If set to 1, Junkbuster will highlight portions of the log
324 #    messages with a bold-faced font.
325 #
326 #Win32-only: log-highlight-messages  1
327
328 #    log-font-name           {font name, e.g., 'Comic Sans MS'}
329 #
330 #    The font used in the console window.
331 #
332 #Win32-only: log-font-name           Comic Sans MS
333
334 #    log-font-size           {font size in points, e.g., '8'}
335 #
336 #    Font size used in the console window.
337 #
338 #Win32-only: log-font-size           8
339
340 #    show-on-task-bar        {1 or 0}
341 #
342 #    Controls whether or not Junkbuster will appear as a button on the Task
343 #    bar when minimized.
344 #
345 #Win32-only: show-on-task-bar        0
346
347
348 #    close-button-minimizes  1
349 #
350 #    If set, the Windows close button will minimize Junkbuster instead
351 #    of closing the program (close with the exit option on the File
352 #    menu).
353 #
354 #Win32-only: close-button-minimizes  1
355
356 #    hide-console
357 #
358 #    If this option is used, Junkbuster will disconnect from and hide 
359 #    the command console.
360 #
361 #Win32-only: #hide-console
362
363 # Note: Junkbuster is distributed under the GNU General Public License (GPL)
364 #       For details, see http://www.gnu.org/copyleft/gpl.html