Missed new option --chroot in one place.
[privoxy.git] / default.filter
1 # ********************************************************************
2
3 #  File        :  $Source: /cvsroot/ijbswa/current/default.filter,v $
4
5 #  $Id: default.filter,v 1.11.2.13 2003/03/18 19:28:59 oes Exp $
6 #
7 #  Purpose     :  Rules to process the content of web pages
8
9 #  Copyright   :  Written by and Copyright
10 #                 Privoxy team. http://www.privoxy.org/
11 #
12 # We value your feedback. However, to provide you with the best support,
13 # please note:
14 #  
15 #  * Use the support forum to get help:
16 #    http://sourceforge.net/tracker/?group_id=11118&atid=211118
17 #  * Submit bugs only thru our bug forum:
18 #    http://sourceforge.net/tracker/?group_id=11118&atid=111118 
19 #    Make sure that the bug has not already been submitted. Please try
20 #    to verify that it is a Privoxy bug, and not a browser or site
21 #    bug first. If you are using your own custom configuration, please
22 #    try the stock configs to see if the problem is a configuration
23 #    related bug. And if not using the latest development snapshot,
24 #    please try the latest one. Or even better, CVS sources.
25 #  * Submit feature requests only thru our feature request forum:
26 #    http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse
27 #      
28 # For any other issues, feel free to use the mailing lists:
29 # http://sourceforge.net/mail/?group_id=11118
30 #    
31 # Anyone interested in actively participating in development and related
32 # discussions can join the appropriate mailing list here:
33 # http://sourceforge.net/mail/?group_id=11118. Archives are available
34 # here too.
35
36 #################################################################################
37 #
38 # Syntax:
39 #
40 # Filters start with a line "FILTER: name description". They are then referrable
41 # from the actionsfile with +filter{name}
42 #
43 # Inside the filters, write one Perl-Style substitution (job) per line.
44 # Jobs that precede the first FILTER: line are ignored.
45 #
46 # For Details see the pcrs manpage contained in this distribution.
47 # (and the perlre, perlop and pcre manpages)
48 #
49 # Note that you are free to choose the delimter as you see fit.
50 #
51 # Note2: In addidion to the Perl options gimsx, the following nonstandard
52 # options are supported:
53
54 # 'U' turns the default to ungreedy matching.  Add ? to quantifiers to
55 #     switch back to greedy.
56 # 'T' (trivial) prevents parsing for backreferences in the substitute.
57 #     Use if you want to include text like '$&' in your substitute without
58 #     quoting.
59
60 #################################################################################
61
62
63 #################################################################################
64 #
65 # js-annoyances: Get rid of particularly annoying JavaScript abuse
66 #
67 #################################################################################
68 FILTER: js-annoyances Get rid of particularly annoying JavaScript abuse
69
70 # Note: Most of these jobs would be safer if restricted to a
71 # <script> context as in:
72 #
73 # s/(<script.*)nasty-item(?=.*<\/script>)/$1replacement/sigU
74 #
75 # but that would make them match only the first occurance of
76 # nasty-item in each <script>. We need nestable jobs!
77
78 # Get rid of Javascript referrer tracking. 
79 # Test page: http://www.javascript-page.com/referrer.html
80 #
81 s|(?:\w+\.)+referrer|"Not Your Business!"|gisU
82
83 # The status bar is for displaying link targets, not pointless blahblah
84
85 s/(\W\s*)((this|window)\.(default)?status)\s*=\s*((['"]).*?\6)/$1if(typeof(this.href) != 'undefined') $2 = $5 + ' URL: ' + this.href;else return false/ig
86
87 # Kill OnUnload popups. Yummy.
88 # Test: http://www.zdnet.com/zdsubs/yahoo/tree/yfs.html
89 #
90 s/(<body\s+[^>]*)onunload/$1never/siU
91 s|(<script.*)window\.onunload(?=.*</script>)|$1never|sigU
92
93 # If we allow window.open, we want normal window features: 
94 # Test: http://www.htmlgoodies.com/beyond/notitle.html
95 #
96 s/(open\s*\([^\)]+resizable=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
97 s/(open\s*\([^\)]+location=)(["']?)(?:no|0)\2/$1$2yes$2/sigU 
98 s/(open\s*\([^\)]+status=)(["']?)(?:no|0)\2/$1$2yes$2/sigU 
99 s/(open\s*\([^\)]+scroll(?:ing|bars)=)(["']?)(?:no|0)\2/$1$2auto$2/sigU 
100 s/(open\s*\([^\)]+menubar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU 
101 s/(open\s*\([^\)]+toolbar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU 
102 s/(open\s*\([^\)]+directories=)(["']?)(?:no|0)\2/$1$2yes$2/sigU 
103 s/(open\s*\([^\)]+fullscreen=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
104 s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
105 s/(open\s*\([^\)]+z-?lock=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
106 s/(open\s*\([^\)]+hotkeys=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
107 s/(open\s*\([^\)]+titlebar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
108 s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
109
110
111 #################################################################################
112 #
113 # js-events: Kill all JS event bindings (Radically destructive! Only for extra nasty sites)
114 #
115 #################################################################################
116 FILTER: js-events Kill all JS event bindings (Radically destructive! Only for extra nasty sites)
117
118 s/(on|event\.)((mouse(over|out|down|up|move))|(un)?load|contextmenu|selectstart)/never/ig
119 # Not events, but abused on the same type of sites:
120 s/(alert|confirm)\s*\(/concat(/ig
121
122
123 #################################################################################
124 #
125 # html-annoyances: Get rid of particularly annoying HTML abuse
126 #
127 #################################################################################
128 FILTER: html-annoyances Get rid of particularly annoying HTML abuse
129
130 # New browser windows (if allowed -- see no-popups filter below) should be
131 # resizeable and have a location and status bar
132 #
133 s/(<a\s+href[^>]+resizable=)(['"]?)(?:no|0)\2/$1$2yes$2/igU 
134 s/(<a\s+href[^>]+location=)(['"]?)(?:no|0)\2/$1$2yes$2/igU 
135 s/(<a\s+href[^>]+status=)(['"]?)(?:no|0)\2/$1$2yes1$2/igU
136 s/(<a\s+href[^>]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU
137 s/(<a\s+href[^>]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
138
139 # The <BLINK> and <MARQUEE> tags were crimes!
140 #
141 s*</?(blink|marquee)>**ig
142
143
144 #################################################################################
145 #
146 # content-cookies: Kill cookies that come in the HTML or JS content
147 #
148 #################################################################################
149 FILTER: content-cookies Kill cookies that come in the HTML or JS content
150
151 # JS cookies, except those used by antiadbuster.com to detect us:
152 #
153 s|(\w+\.)+cookie(?=[ \t\r\n]*=)(?!='aab)|ZappedCookie|ig
154
155 # HTML cookies:
156 #
157 s|<meta\s+http-equiv=['"]?set-cookie.*>|<!-- ZappedCookie -->|igU
158
159
160 #################################################################################
161 #
162 # refresh-tags: Kill automatic refresh tags (for dial-on-demand setups)
163 #
164 #################################################################################
165 FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups)
166
167 # Note: Only deactivates refreshes with more than 9 seconds delay to
168 #       preserve monster-stupid but common redirections via meta tags.
169 #
170 s/<meta\s+http-equiv\s*=\s*(['"]?)refresh\1\s+content\s*=\s*(['"]?)\d{2,}\s*(;\s*url\s*=\s*([^>\2]*))?\2/<link rev="x-refresh" href="$4"/iU
171
172
173 #################################################################################
174 #
175 # unsolicited-popups: Disable unsolicited pop-up windows
176 #
177 #################################################################################
178 FILTER: unsolicited-popups Disable only unsolicited pop-up windows
179
180 s+<body.*>+$0<script><!--\nfunction PrivoxyWindowOpen(){return(null);}\n//--></script>+isU
181 s+([^\w\s.]\s*)((window|this|parent)\.)?open\s*\(+$1PrivoxyWindowOpen(+ig
182 s+</body>+<script><!--\nfunction PrivoxyWindowOpen(a, b, c){return(window.open(a, b, c));}\n//--></script>$0+iU     
183
184
185 ##################################################################################
186 #
187 # all-popups: Kill all popups in JavaScript and HTML
188 #
189 #################################################################################
190 FILTER: all-popups Kill all popups in JavaScript and HTML
191
192 s/((\W\s*)(window|this|parent)\.)open\s*\\?\(/$1concat(/ig  # JavaScript
193 s/ target\s*=\s*(['"]?)(_blank|_new)\1?/ notarget/ig        # HTML
194
195
196 ##################################################################################
197 #
198 # img-reorder: Reorder attributes in <img> tags to make the banners-by-* filters more effective
199 #
200 #################################################################################
201 FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* filters more effective
202
203 # In the first step src is moved to the start, then width is moved to the second
204 # place to guarantee an order of src, width, height.
205 # This makes banners-by-size more effective and allows both banners-by-size
206 # and banners-by-link to preserve the original image URL in the title attribute.
207
208 s|<img\s+?([^>]*) src\s*=\s*(['"])([^>\\\2]+)\2|<img src=$2$3$2 $1|siUg
209 s|<img\s+?([^>]*) src\s*=\s*([^'">\\\s]+)|<img src=$2 $1|sig
210
211 s|<img (src=(?:(['"])[^>\\\\2]+\2\|[^'">\\\s]+?))([^>]*)width\s*=\s*(["']?)(\d+?)\4|<img $1 width=$4$5$4$3|siUg
212
213
214 #################################################################################
215 #
216 # banners-by-size: Kill banners by size
217 #
218 #################################################################################
219 #
220 # Standard banner sizes taken from http://www.iab.net/iab_banner_standards/bannersizes.html
221 #
222 # Note: Use http://config.privoxy.org/send-banner?type=trans for a transparent 1x1 image
223 #       Use http://config.privoxy.org/send-banner?type=pattern for a grey/white pattern image
224 #       Use http://config.privoxy.org/send-banner?type=auto  to auto-select.
225 #
226 # Note2: Use img-reorder before this filter to ensure maximum matching success
227 #
228 #################################################################################
229 FILTER: banners-by-size Kill banners by size
230
231 # 88*31
232 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)88\4)[^>]*?(height=(['"]?)31\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
233 # 120*60, 120*90, 120*240, 120*600
234 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)120\4)[^>]*?(height=(['"]?)(?:600?|90|240)\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
235 # 125*125
236 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)125\4)[^>]*?(height=(['"]?)125\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
237 # 160*600
238 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)160\4)[^>]*?(height=(['"]?)600\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
239 # 180*150
240 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)180\4)[^>]*?(height=(['"]?)150\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
241 # 234*60, 468*60 (Most Banners!)
242 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:234|468)\4)[^>]*?(height=(['"]?)60\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
243 # 240*400
244 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)240\4)[^>]*?(height=(['"]?)400\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
245 # 250*250, 300*250
246 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:250|300)\4)[^>]*?(height=(['"]?)250\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
247 # 336*280
248 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)336\4)[^>]*?(height=(['"]?)280\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
249
250 # Note: 200*50 was also proposed, but it probably causes too much collateral damage:
251 #
252 #s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)200\4)[^>]*?(height=(['"]?)50\6)[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed-$2-by-size$1 $3 $5>@sig
253
254
255 #################################################################################
256 #
257 # banners-by-link: Kill banners by their links to known clicktrackers (Experimental)
258 #
259 #################################################################################
260 FILTER: banners-by-link Kill banners by their links to known clicktrackers
261
262 # Common case with width and height attributes:
263 #
264 s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:\
265   adclick                             # See www.dn.se \
266 | atwola\.com/(?:link|redir)          # see www.cnn.com \
267 | /jump/                              # redirs for doublecklick.net ads \
268 | tracker | counter                   # common \
269 | adlog\.pl                           # see sf.net \
270 )[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\6)[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\8)[^>]*>\
271 @<img $5 $7 src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed $4 by link to $2$1>@sigx
272
273 # Rare case w/o explicit dimensions:
274 #
275 s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:adclick|atwola\.com/(?:link|redir)|doubleclick\.net/jump/|tracker|counter|adlog\.pl)[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*>@<img src=$1http://config.privoxy.org/send-banner?type=auto$1 title=$1Killed $4 by link to $2$1>@sig
276
277
278 ################################################################################
279 #
280 # webbugs: Squish WebBugs (1x1 invisible GIFs used for user tracking)
281 #
282 #################################################################################
283 FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking)
284
285 s/<img\s+[^>]*(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>//siUg
286
287
288 #################################################################################
289 #
290 # tiny-textforms: Extend those tiny textareas up to 40x80 and kill the hard wrap
291 #
292 #################################################################################
293 FILTER: tiny-textforms Extend those tiny textareas up to 40x80 and kill the hard wrap
294
295 s/(<textarea[^>]*?)(?:\s*(?:rows|cols)=(['"]?)\d+\2)+/$1 rows=$2\40$2 cols=$2\80$2/ig 
296 s/(<textarea[^>]*?)wrap=(['"]?)hard\2/$1/ig
297
298
299 #################################################################################
300 #
301 # jumping-windows: Prevent windows from resizing and moving themselves
302 #
303 #################################################################################
304 FILTER: jumping-windows Prevent windows from resizing and moving themselves
305
306 s/(?:window|this|self)\.(?:move|resize)(?:to|by)\(/concat(/ig
307
308
309 #################################################################################
310 #
311 # frameset-borders: Give frames a border, make them resizable and scrollable
312 #
313 #################################################################################
314 FILTER: frameset-borders Give frames a border and make them resizable
315
316 s/(<frameset\s+[^>]*)framespacing=(['"]?)(no|0)\2/$1/igU
317 s/(<frameset\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU
318 s/(<frameset\s+[^>]*)border=(['"]?)(no|0)\2/$1/igU
319 s/(<frame\s+[^>]*)noresize/$1/igU
320 s/(<frame\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU 
321 s/(<frame\s+[^>]*)scrolling=(['"]?)(no|0)\2/$1/igU
322
323
324
325 #################################################################################
326 #
327 # demoronizer: Correct Microsoft's abuse of standardized character sets, which 
328 #              leave the browser to (mis)-interpret unknown characters, with 
329 #              sometimes bizarre results on non-MS platforms.
330 #
331 # credit: ripped from the demoroniser.pl script by: 
332 #         John Walker -- January 1998, http://www.fourmilab.ch/webtools/demoroniser
333 #
334 #################################################################################
335 FILTER: demoronizer Fix MS's non-standard use of standard charsets
336
337 s/(&\#[0-2]\d\d)\s/$1; /g
338 # per Robert Lynch: http://slate.msn.com//?id=2067547, just a guess.
339 # Must come before x94 below.
340 s/\xE2\x80\x94/ -- /g
341 s/\x82/,/g
342 #s-\x83-<em>f</em>-g
343 s/\x84/,,/g
344 s/\x85/.../g
345 #s/\x88/^/g
346 #s-\x89- Â°/°°-g
347 s/\x8B/</g
348 s/\x8C/Oe/g
349 s/\x91/`/g
350 s/\x92/'/g
351 s/(\x93|\x94)/"/g
352 # Bullet type character.
353 s/\x95/&middot;/g
354 s/\x96/-/g
355 s/\x97/--/g
356 #s-\x98-<sup>~</sup>-g
357 #s-\x99-<sup>TM</sup>-g
358 # per Robert Lynch.
359 s/\x9B/>/g                  # 155
360
361
362 #################################################################################
363 #
364 # shockwave-flash: Kill embedded Shockwave Flash objects
365 #
366 #################################################################################
367 FILTER: shockwave-flash Kill embedded Shockwave Flash objects
368
369 s|<embed [^>]*application/x-shockwave-flash.*</embed>|<!-- Squished Shockwave Flash Embed -->|sigU
370
371
372 #################################################################################
373 #
374 # quicktime-kioskmode: Make Quicktime movies saveable
375 #
376 #################################################################################
377 FILTER: quicktime-kioskmode Make Quicktime movies saveable
378
379 s/(<embed\s+[^>]*)kioskmode\s*=\s*(["']?)true\2/$1/ig 
380
381
382 #################################################################################
383 #
384 # fun: Text replacements for subversive browsing fun!
385 #
386 #################################################################################
387 FILTER: fun Text replacements for subversive browsing fun!
388
389 s/microsoft(?!.com)/MicroSuck/ig
390
391 # Buzzword Bingo (example for extended regex syntax)
392 #
393 s* (?:industry|world)[ -]leading \
394 |  cutting[ -]edge \
395 |  customer[ -]focused \
396 |  market[ -]driven \
397 |  award[ -]winning # Comments are OK, too! \
398 |  high[ -]performance \
399 |  solutions[ -]based \
400 |  unmatched \
401 |  unparalleled \
402 |  unrivalled \
403 *$0<sup><font color="red"><b>Bingo!</b></font></sup> \
404 *igx
405
406
407 #################################################################################
408 #
409 # crude-parental: Crude parental filtering?  (Use along with a suitable blocklist).
410 #                 Shows how to deny access to whole page based on a keyword.
411 #
412 #################################################################################
413 FILTER: crude-parental Crude parental filtering (demo only)
414
415 # (Note: Middlesex, Sussex and Essex are counties in the UK, not rude words)
416 # (Note #2: Is 'sex' a rude word?!)
417
418 s%^.*(?<!middle)(?<!sus)(?<!es)sex.*$%<html><head><title>Blocked</title></head><body><h3>Blocked due to possible adult content. Please see <a href="http://dmoz.org/Kids_and_Teens/">this site</a>.</h3></body></html>%is
419 s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>+is
420
421
422 #################################################################################
423 #
424 # IE-Exploits: Disable some known Internet Explorer bug exploits
425 #
426 #################################################################################
427 FILTER: ie-exploits Disable some known Internet Explorer bug exploits
428
429 # Note: This is basically a demo and waits for someone more interested in IE
430 # security (sic!) to take over.
431
432 # Cross-site-scripting:
433 #
434 s%f\("javascript:location.replace\('mk:@MSITStore:C:'\)"\);%alert\("This page looks like it tries to use a vulnerability described here:\n http://online.securityfocus.com/archive/1/298748/2002-11-02/2002-11-08/2"\);%siU
435
436 # Nimda:
437 #
438 s%<script language="JavaScript">(window\.open|1;''\.concat)\("readme\.eml", null, "resizable=no,top=6000,left=6000"\)</script>%<br><font size="7"> WARNING: This Server is infected with <a href="http://www.cert.org/advisories/CA-2001-26.html">Nimda</a>!</font>%g
439
440
441 #################################################################################
442 #
443 #
444 # site-specifics: Cure for site-specific problems. Don't apply generally!
445 #
446 #   Note: The fixes contained here are so specific to the problems of the
447 #         particular web sites they are designed for that they would be a
448 #         waste of CPU cycles (or even destructive!) on 99.9% of the web
449 #         sites where they don't apply.
450 #
451 #################################################################################
452 FILTER: site-specifics Cure for site-specific problems. Don't apply generally!
453
454 # www.spiegel.de excludes X11 users from viewing Flash5 objects - shame.
455 # Apply to: www.spiegel.de/static/js/flash-plugin.js 
456 #
457 s/indexOf\("x11"\)/indexOf("x13")/
458
459 # www.quelle-bausparkasse.de uses a very stupid redirect mechanism that
460 # relies on a webbug being present. Can we tolerate that? No!
461 # Apply to: www.quelle-bausparkasse.de/$
462 #
463 s/mylogfunc()//g
464
465
466 ############################################################################## 
467 #
468 #  Revisions   :
469 #     $Log: default.filter,v $
470 #     Revision 1.11.2.13  2003/03/18 19:28:59  oes
471 #     Fixed a minor problem in the img-reorder filter
472 #
473 #     Revision 1.11.2.12  2003/03/15 14:06:58  oes
474 #      - Assorted refinements, optimizations and fixes in the js-annoyances,
475 #        img-reorder, banners-by-size, banners-by-link, webbugs, refresh-tags,
476 #        html-annoyances, content-cookies and fun filters
477 #      - Replaced filter "popups" by choice between two modes:
478 #        - "unsolicited-popups" tries to catch only the unsolicited ones
479 #        - "all-popups" tries to kill them all (as before)
480 #      - New filter "tiny-textforms" Help those tiny or hard-wrap textareas.
481 #      - New filter "jumping-windows" that prevents windows from resizing
482 #        and moving themselves
483 #      - Replaced "nimda" with more general "ie-exploits" filter in which
484 #        all filters for exploits shall be collected
485 #
486 #     Revision 1.11.2.11  2002/11/12 16:14:43  oes
487 #     Exchanged js-annoyance filter against status bar rewrites with improved version by Don Libes
488 #
489 #     Revision 1.11.2.10  2002/11/11 13:39:47  oes
490 #     Make refresh-tags filter work even on incorrect refresh tags like found on usatoday.com
491 #
492 #     Revision 1.11.2.9  2002/11/08 16:39:17  oes
493 #     Made img-reorder more cautious. Fixes bug #632715
494 #
495 #     Revision 1.11.2.8  2002/10/13 21:56:52  hal9
496 #     Adding demoronizer filter. This should include all the common abuses. I have
497 #     left a few of the rare cases commented out (never found these in the wild).
498 #
499 #     Revision 1.11.2.7  2002/09/25 15:09:39  oes
500 #     Preserve original quoting style in <img> tags wherever possible. Fixes Bug #605956
501 #
502 #     Revision 1.11.2.6  2002/08/23 14:12:26  oes
503 #     Proofed frameset-borders against "fremaborder=0 border=0"
504 #
505 #     Revision 1.11.2.5  2002/08/22 15:05:20  oes
506 #     Added Filter to make Quicktime movies saveable (thanks to aaron@linville.org for the idea)
507 #
508 #     Revision 1.11.2.4  2002/08/10 11:32:29  oes
509 #     Attribute values in replacement tags of banners-by-size filter now undelimited. (Fixes bug #592493)
510 #
511 #     Revision 1.11.2.3  2002/08/05 11:43:56  oes
512 #     Fixed a bug in the popups filter that was introduced with the last fix :-(
513 #
514 #     Revision 1.11.2.2  2002/08/01 11:20:13  oes
515 #     Fixed bugs 587802, 577802 and an unreported one
516 #
517 #     Revision 1.11.2.1  2002/07/26 15:18:26  oes
518 #     - All filters reviewed and many shorcomings fixed
519 #     - New filters: img-reorder, banners-by-link and js-events
520 #     - Jobs reorderd because they are now executed in order of
521 #       appearance
522 #
523 #     Revision 1.11  2002/05/24 00:57:18  oes
524 #     Made WeBugs job ungreedy; Fixes bug 559190
525 #
526 #     Revision 1.10  2002/04/18 10:14:19  oes
527 #     renamed some filters
528 #
529 #     Revision 1.9  2002/04/11 07:36:35  oes
530 #     Generalized js-popup filter
531 #
532 #     Revision 1.8  2002/04/10 17:07:21  oes
533 #     Fixed potentially desctructive jobs, added noflash filter
534 #
535 #     Revision 1.7  2002/04/09 18:34:51  oes
536 #     Fixed HTML syntax in replacements
537 #
538 #     Revision 1.6  2002/04/03 19:49:52  swa
539 #     name change
540 #
541 #     Revision 1.5  2002/03/27 15:30:26  swa
542 #     have a consistent appearance
543 #
544 #     Revision 1.4  2002/03/26 22:29:54  swa
545 #     we have a new homepage!
546 #
547 #     Revision 1.3  2002/03/24 16:08:03  jongfoster
548 #     Fixing banners-by-size for new config URLs
549 #
550 #     Revision 1.2  2002/03/24 13:02:18  swa
551 #     name change related issues.
552 #
553 #     Revision 1.1  2002/03/24 11:37:39  jongfoster
554 #     Name change
555 #
556 #     Revision 1.24  2002/03/16 20:39:54  oes
557 #      - Added descriptions to the filters so users will know what they select in the cgi editor
558 #      - Added content-cookies filter
559 #      - Bugfixed many jobs (Thanks to Al for some hints)
560 #
561 #     Revision 1.22  2002/03/12 13:42:50  oes
562 #     Fixing & Optimizing REs
563 #
564 #     Revision 1.21  2002/03/12 11:59:20  oes
565 #     Beefed up Buzzword Bingo
566 #
567 #     Revision 1.20  2002/03/12 01:42:50  oes
568 #     Introduced modular filters
569 #
570 #     Revision 1.19  2002/03/10 19:49:24  oes
571 #     Added expression to kill referer tracking in JavaScripts
572 #
573 #     Revision 1.18  2002/03/08 17:14:12  oes
574 #     PNG -> image in comments
575 #
576 #     Revision 1.17  2002/03/07 03:50:54  oes
577 #     Adapted comments to new built-in images
578 #
579 #     Revision 1.16  2002/02/21 00:12:19  jongfoster
580 #     Modifying the banner regexps to use long URLS and to autodetect
581 #     whether to show a logo or a transparent GIF, based on actionsfile
582 #     setting.
583 #
584 #     Revision 1.15  2001/12/28 23:54:20  steudten
585 #     Fix for feature Req #495374: http-equiv problem
586 #
587 #     Revision 1.14  2001/12/09 18:55:11  david__schmidt
588 #     Updated CODE_STATUS to beta, commented out microsuck line in re_filterfile
589 #     for 2.9.10 beta
590 #
591 #     Revision 1.13  2001/10/13 13:11:20  joergs
592 #     Fixed WebBug filter.
593 #
594 #     Revision 1.12  2001/10/07 15:46:42  oes
595 #     Followed Guy's proposal to change the document.cookie job
596 #
597 #     Revision 1.11  2001/09/21 12:34:00  joergs
598 #     Added filter to replace "Nimda" code by a warning.
599 #
600 #     Revision 1.10  2001/07/20 11:04:26  oes
601 #     Added Rodneys javascript cookie filter
602 #
603 #     Revision 1.9  2001/07/13 14:03:48  oes
604 #     Elimiated yet another bug in the banner-by-size jobs. Shame on me!
605 #
606 #     Revision 1.8  2001/06/29 13:34:00  oes
607 #     - Added explanation for U and T options
608 #     - Added hint on image replacement by CGI call
609 #     - Fixed bug in banner-by-size jobs
610 #
611 #     Revision 1.7  2001/06/19 14:21:56  oes
612 #     Fixed microsuck line
613 #
614 #     Revision 1.6  2001/06/09 14:01:57  swa
615 #     header. cosmetics. default: no messing ala microsuck.
616 #
617 #
618