1 # ********************************************************************
3 # File : $Source: /cvsroot/ijbswa/current/default.filter,v $
5 # $Id: default.filter,v 1.69 2009/02/12 15:40:11 ler762 Exp $
7 # Purpose : Rules to process the content of web pages
9 # Copyright : Written by and Copyright (C) 2001-2009 the
10 # Privoxy team. http://www.privoxy.org/
12 # We value your feedback. However, to provide you with the best support,
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
28 # For any other issues, feel free to use the mailing lists:
29 # http://sourceforge.net/mail/?group_id=11118
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
36 #################################################################################
40 # Generally filters start with a line like "FILTER: name description".
41 # They are then referrable from the actionsfile with +filter{name}
43 # FILTER marks a filter as content filter, other filter
44 # types are CLIENT-HEADER-FILTER, CLIENT-HEADER-TAGGER,
45 # SERVER-HEADER-FILTER and SERVER-HEADER-TAGGER.
47 # Inside the filters, write one Perl-Style substitution (job) per line.
48 # Jobs that precede the first FILTER: line are ignored.
50 # For Details see the pcrs manpage contained in this distribution.
51 # (and the perlre, perlop and pcre manpages)
53 # Note that you are free to choose the delimiter as you see fit.
55 # Note2: In addition to the Perl options gimsx, the following nonstandard
56 # options are supported:
58 # 'U' turns the default to ungreedy matching. Add ? to quantifiers to
59 # switch back to greedy.
61 # 'T' (trivial) prevents parsing for backreferences in the substitute.
62 # Use if you want to include text like '$&' in your substitute without
65 # 'D' (Dynamic) allows the use of variables. Supported variables are:
66 # $host, $origin (the IP address the request came from), $path and $url.
68 # Note that '$' is a bad choice as delimiter for dynamic filters as you
69 # might end up with unintended variables if you use a variable name
70 # directly after the delimiter. Variables will be resolved without
71 # escaping anything, therefore you also have to be careful not to chose
72 # delimiters that appear in the replacement text. For example '<' should
73 # be save, while '?' will sooner or later cause conflicts with $url.
75 #################################################################################
78 #################################################################################
80 # js-annoyances: Get rid of particularly annoying JavaScript abuse.
82 #################################################################################
83 FILTER: js-annoyances Get rid of particularly annoying JavaScript abuse.
85 # Note: Most of these jobs would be safer if restricted to a
86 # <script> context as in:
88 # s/(<script.*)nasty-item(?=.*<\/script>)/$1replacement/sigU
90 # but that would make them match only the first occurrence of
91 # nasty-item in each <script>. We need nestable jobs!
93 # Get rid of Javascript referrer tracking.
94 # Test page: http://www.javascript-page.com/referrer.html
96 s|(?:\w+\.)+referrer|"Not Your Business!"|gisU
98 # The status bar is for displaying link targets, not pointless blahblah
100 s@([\W]\s*)((?:this|window)\.(?:default)?status)\s*=\s*((['"]).*?\4)@$1$2 =\
101 (typeof(this.href) != 'undefined')?($3 + ' URL: ' + this.href):($2)@ig
103 s/(?:(?:this|window)\.(?:default)?status)\s*=\s*\w*\s*;//ig
105 # Kill OnUnload popups. Yummy.
106 # Test: http://www.zdnet.com/zdsubs/yahoo/tree/yfs.html
108 s/(<body\s+[^>]*)onunload/$1never/siU
109 s|(<script.*)window\.onunload(?=.*</script>)|$1never|sigU
111 # If we allow window.open, we want normal window features:
112 # Test: http://www.htmlgoodies.com/beyond/notitle.html
114 s/(open\s*\([^\)]+resizable=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
115 s/(open\s*\([^\)]+location=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
116 s/(open\s*\([^\)]+status=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
117 s/(open\s*\([^\)]+scroll(?:ing|bars)=)(["']?)(?:no|0)\2/$1$2auto$2/sigU
118 s/(open\s*\([^\)]+menubar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
119 s/(open\s*\([^\)]+toolbar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
120 s/(open\s*\([^\)]+directories=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
121 s/(open\s*\([^\)]+fullscreen=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
122 s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
123 s/(open\s*\([^\)]+z-?lock=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
124 s/(open\s*\([^\)]+hotkeys=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
125 s/(open\s*\([^\)]+titlebar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
126 s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
129 #################################################################################
131 # js-events: Kill all JS event bindings and timers (Radically destructive! Only for extra nasty sites).
133 #################################################################################
134 FILTER: js-events Kill all JS event bindings and timers (Radically destructive! Only for extra nasty sites).
136 s/(on|event\.)((mouse(over|out|down|up|move))|(un)?load|contextmenu|selectstart)/never/ig
137 # Not events, but abused on the same type of sites:
138 s/(alert|confirm)\s*\(/concat(/ig
139 s/settimeout\(/concat(/ig
141 #################################################################################
143 # html-annoyances: Get rid of particularly annoying HTML abuse.
145 #################################################################################
146 FILTER: html-annoyances Get rid of particularly annoying HTML abuse.
148 # New browser windows (if allowed -- see no-popups filter below) should be
149 # resizeable and have a location and status bar
151 s/(<a\s+href[^>]+resizable=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
152 s/(<a\s+href[^>]+location=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
153 s/(<a\s+href[^>]+status=)(['"]?)(?:no|0)\2/$1$2yes1$2/igU
154 s/(<a\s+href[^>]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU
155 s/(<a\s+href[^>]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
157 # The <BLINK> and <MARQUEE> tags were crimes!
159 s-</?(blink|marquee).*>--sigU
162 #################################################################################
164 # content-cookies: Kill cookies that come in the HTML or JS content.
166 #################################################################################
167 FILTER: content-cookies Kill cookies that come in the HTML or JS content.
169 # JS cookies, except those used by antiadbuster.com to detect us:
171 s|(\w+\.)+cookie(?=[ \t\r\n]*=)(?!='aab)|ZappedCookie|ig
175 s|<meta\s+http-equiv=['"]?set-cookie.*>|<!-- ZappedCookie -->|igU
178 #################################################################################
180 # refresh-tags: Kill automatic refresh tags (for dial-on-demand setups).
182 #################################################################################
183 FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups).
185 # Note: Only deactivates refreshes with more than 9 seconds delay to
186 # preserve monster-stupid but common redirections via meta tags.
188 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
191 #################################################################################
193 # unsolicited-popups: Disable unsolicited pop-up windows.
195 #################################################################################
196 FILTER: unsolicited-popups Disable only unsolicited pop-up windows.
198 s+([^'"]\s*<head.*>)(?=\s*[^'"])+$1<script>function PrivoxyWindowOpen(){return(null);}</script>+isU
199 s@([^\w\s.]\s*)((?:map)?(window|this|parent)\.?)?open\s*\(@$1PrivoxyWindowOpen(@ig
200 s+([^'"]\s*</html>)(?!\s*(\\n|'|"))+$1<script>function PrivoxyWindowOpen(a, b, c){return(window.open(a, b, c));}</script>+iU
203 ##################################################################################
205 # all-popups: Kill all popups in JavaScript and HTML.
207 #################################################################################
208 FILTER: all-popups Kill all popups in JavaScript and HTML.
210 s@((\W\s*)(?:map)?(window|this|parent)\.?)open\s*\\?\(@$1concat(@ig # JavaScript
211 #s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ notarget/ig # HTML
212 s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ /ig # (X)HTML
214 ##################################################################################
216 # img-reorder: Reorder attributes in <img> tags to make the banners-by-* filters more effective.
218 #################################################################################
219 FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* filters more effective.
221 # In the first step src is moved to the start, then width is moved to the second
222 # place to guarantee an order of src, width, height. Also does some white-space
225 # This makes banners-by-size more effective and allows both banners-by-size
226 # and banners-by-link to preserve the original image URL in the title attribute.
228 s|<img\s+?([^>]*)\ssrc\s*=\s*(['"])([^>\\\2]+)\2|<img src=$2$3$2 $1|siUg
229 s|<img\s+?([^>]*)\ssrc\s*=\s*([^'">\\\s]+)|<img src=$2 $1|sig
230 s|(<img[^>]+height)\s*=\s*|$1=|sig
232 s|<img (src=(?:(['"])[^>\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|<img $1 width=$4$3|siUg
235 #################################################################################
237 # banners-by-size: Kill banners by size.
239 #################################################################################
241 # Standard banner sizes taken from http://www.iab.net/iab_banner_standards/bannersizes.html
243 # Note: Use http://config.privoxy.org/send-banner?type=trans for a transparent 1x1 image
244 # Use http://config.privoxy.org/send-banner?type=pattern for a grey/white pattern image
245 # Use http://config.privoxy.org/send-banner?type=auto to auto-select.
247 # Note2: Use img-reorder before this filter to ensure maximum matching success
249 #################################################################################
250 FILTER: banners-by-size Kill banners by size.
253 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)88\4)[^>]*?(height=(['"]?)31\6)[^>]*?(?=/?>)@\
254 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
255 # 120*60, 120*90, 120*240, 120*600
256 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)120\4)[^>]*?(height=(['"]?)(?:600?|90|240)\6)[^>]*?(?=/?>)@\
257 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
259 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)125\4)[^>]*?(height=(['"]?)125\6)[^>]*?(?=/?>)@\
260 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
262 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)160\4)[^>]*?(height=(['"]?)600\6)[^>]*?(?=/?>)@\
263 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
265 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)180\4)[^>]*?(height=(['"]?)150\6)[^>]*?(?=/?>)@\
266 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
267 # 234*60, 468*60 (Most Banners!)
268 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:234|468)\4)[^>]*?(height=(['"]?)60\6)[^>]*?(?=/?>)@\
269 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
271 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)240\4)[^>]*?(height=(['"]?)400\6)[^>]*?(?=/?>)@\
272 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
274 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:250|300)\4)[^>]*?(height=(['"]?)250\6)[^>]*?(?=/?>)@\
275 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
277 s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)336\4)[^>]*?(height=(['"]?)280\6)[^>]*?(?=/?>)@\
278 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
280 # Note: 200*50 was also proposed, but it probably causes too much collateral damage:
282 #s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)200\4)[^>]*?(height=(['"]?)50\6)[^>]*?(?=/?>)@\
283 # <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
286 #################################################################################
288 # banners-by-link: Kill banners by their links to known clicktrackers (Experimental).
290 #################################################################################
291 FILTER: banners-by-link Kill banners by their links to known clicktrackers.
293 # Common case with width and height attributes:
295 s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:\
296 adclick # See www.dn.se \
297 | advert # see dict.leo.org \
298 | atwola\.com/(?:link|redir) # see www.cnn.com \
299 | doubleclick\.net/jump/ # redirs for doublecklick.net ads \
301 | (?<!&type=)tracker # (&type=tracker is used in sf's project statistics) \
302 | adlog\.pl # see sf.net \
303 )[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\6)[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\8)[^>]*?(?=/?>)\
304 @<img $5 $7 src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed $4 by link to $2"@sigx
306 # Rare case w/o explicit dimensions:
308 s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:ad(?:click|vert)|atwola\.com/(?:link|redir)|doubleclick\.net/jump/|(?<!&type=)tracker|counter|adlog\.pl)[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*?(?=/?>)@<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed $4 by link to $2"@sig
311 ################################################################################
313 # webbugs: Squish WebBugs (1x1 invisible GIFs used for user tracking).
315 #################################################################################
316 FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking).
318 s@<img[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>@@siUg
321 #################################################################################
323 # tiny-textforms: Extend those tiny textareas up to 40x80 and kill the hard wrap.
325 #################################################################################
326 FILTER: tiny-textforms Extend those tiny textareas up to 40x80 and kill the hard wrap.
328 s/(<textarea[^>]*?)(?:\s*(?:rows|cols)=(['"]?)\d+\2)+/$1 rows=$2\40$2 cols=$2\80$2/ig
329 s/(<textarea[^>]*?)wrap=(['"]?)hard\2/$1/ig
332 #################################################################################
334 # jumping-windows: Prevent windows from resizing and moving themselves.
336 #################################################################################
337 FILTER: jumping-windows Prevent windows from resizing and moving themselves.
339 s/(?<=[\W])(?:window|this|self)\.(?:move|resize)(?:to|by)\(/''.concat(/ig
341 #################################################################################
343 # frameset-borders: Give frames a border, make them resizable and scrollable.
345 #################################################################################
346 FILTER: frameset-borders Give frames a border and make them resizable.
348 s/(<frameset\s+[^>]*)framespacing=(['"]?)(no|0)\2/$1/igU
349 s/(<frameset\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU
350 s/(<frameset\s+[^>]*)border=(['"]?)(no|0)\2/$1/igU
351 s/(<frame\s+[^>]*)noresize/$1/igU
352 s/(<frame\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU
353 s/(<frame\s+[^>]*)scrolling=(['"]?)(no|0)\2/$1/igU
357 #################################################################################
359 # demoronizer: Correct Microsoft's abuse of standardized character sets, which
360 # leave the browser to (mis)-interpret unknown characters, with
361 # sometimes bizarre results on non-MS platforms.
363 # credit: ripped from the demoroniser.pl script by:
364 # John Walker -- January 1998, http://www.fourmilab.ch/webtools/demoroniser
366 #################################################################################
367 FILTER: demoronizer Fix MS's non-standard use of standard charsets.
369 s/(&\#[0-2]\d\d)\s/$1; /g
370 # per Robert Lynch: http://slate.msn.com//?id=2067547, just a guess.
371 # Must come before x94 below.
372 s/\xE2\x80\x94/ -- /g
384 # Bullet type character.
388 #s-\x98-<sup>~</sup>-g
389 #s-\x99-<sup>TM</sup>-g
394 #################################################################################
396 # shockwave-flash: Kill embedded Shockwave Flash objects.
397 # Note: Better just block "/.*\.swf$"!
399 #################################################################################
400 FILTER: shockwave-flash Kill embedded Shockwave Flash objects.
402 s|<object [^>]*macromedia.*</object>|<!-- Squished Shockwave Object -->|sigU
403 s|<embed [^>]*(application/x-shockwave-flash\|\.swf).*>(.*</embed>)?|<!-- Squished Shockwave Flash Embed -->|sigU
406 #################################################################################
408 # quicktime-kioskmode: Make Quicktime movies saveable.
410 #################################################################################
411 FILTER: quicktime-kioskmode Make Quicktime movies saveable.
413 s/(<embed\s+[^>]*)kioskmode\s*=\s*(["']?)true\2/$1/ig
416 #################################################################################
418 # fun: Text replacements for subversive browsing fun!
420 #################################################################################
421 FILTER: fun Text replacements for subversive browsing fun!
425 s/microsoft(?!.[^\s])/MicroSuck/ig
427 # Buzzword Bingo (example for extended regex syntax)
429 s* (?:industry|world)[ -]leading \
431 | customer[ -]focused \
433 | award[ -]winning # Comments are OK, too! \
434 | high[ -]performance \
435 | solutions[ -]based \
439 *$0<sup><font color="red"><b>Bingo!</b></font></sup> \
444 s/(M|m)edien(?![^<]*>)/$1ädchen/Ug
446 #################################################################################
448 # crude-parental: Crude parental filtering. Use with a suitable blocklist.
449 # Pages are "blocked" based on keyword matching.
451 #################################################################################
452 FILTER: crude-parental Crude parental filtering. Note that this filter doesn't work reliably.
454 # (Note: Middlesex, Sussex and Essex are counties in the UK, not rude words)
455 # (Note #2: Is 'sex' a rude word?!)
457 s%^.*(?<!middle)(?<!sus)(?<!es)sex.*$%<html><head><title>Blocked</title></head><body>\
458 <h3>Blocked by Privoxy's crude-parental filter due to possible adult content.</h3></body></html>%is
460 s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>+is
462 # Remove by description
464 (?:(suck|lick|tongue|rub|fuck|fingering|finger|chicks?)\s*)?\
465 (?:(her|your|my|hard|with|big|wet|tight|pink|hot|moist|young|teen)\s*)+\
466 (dicks?|penis|cocks?|balls?|tits?|pussy|cunt|clit|ass|mouth).*$\
467 /This page has been blocked by Privoxy's crude-parental content filter\
472 (download|broadband|view|watch|free|get|extreem)?\s*\
473 (sex|xxx|porn|cumshot|fuck(ing|s)?|anal|ass|asian|adult|Amateur|org(y|ies)|close ups?|hand?job|nail(ed)?)+\s*\
474 (movies?|pics?|videos?|dvds?|dvd's|links?).*$\
475 /This page has been blocked by Privoxy's crude-parental content filter\
478 #Remove by age disclaimer
480 (models?|chicks?|girls?|women|persons)\s*\
481 (who|are|were)+ (over|at least) (16|18|21) years (old|of age).*$\
482 /This page has been blocked by Privoxy's crude-parental content filter\
485 #Remove by regulations
486 s/^.*(Section 2257|18 U.?S.?C.? 2257).*$\
487 /This page has been blocked by Privoxy's crude-parental content filter\
491 #################################################################################
493 # IE-Exploits: Disable some known Internet Explorer bug exploits.
495 #################################################################################
496 FILTER: ie-exploits Disable some known Internet Explorer bug exploits.
498 # Note: This is basically a demo and waits for someone more interested in IE
499 # security (sic!) to take over.
501 # Cross-site-scripting:
503 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
505 # Address bar spoofing (http://www.secunia.com/advisories/10395/):
507 s/(<a[^>]*href[^>]*)(?:\x01|\x02|\x03|%0[012])@/$1MALICIOUS-LINK@/ig
511 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
514 #################################################################################
517 # site-specifics: Cure for site-specific problems. Don't apply generally!
519 # Note: The fixes contained here are so specific to the problems of the
520 # particular web sites they are designed for that they would be a
521 # waste of CPU cycles (or even destructive!) on 99.9% of the web
522 # sites where they don't apply.
524 #################################################################################
525 FILTER: site-specifics Cure for site-specific problems. Don't apply generally!
527 # www.spiegel.de excludes X11 users from viewing Flash5 objects - shame.
528 # Apply to: www.spiegel.de/static/js/flash-plugin.js
530 s/indexOf\("x11"\)/indexOf("x13")/
532 # www.quelle-bausparkasse.de uses a very stupid redirect mechanism that
533 # relies on a webbug being present. Can we tolerate that? No!
534 # Apply to: www.quelle-bausparkasse.de/$
538 # groups.yahoo.com has splash pages that one needs to click through in
539 # order to access the actual messages. Let the browser do that. Thanks
540 # to Paul Jobson for this one:
542 s|<a href="(.+?)">(?:Continue to message\|Weiter zu Nachricht)</a>|<meta http-equiv="refresh" content="0; URL=$1">|ig
544 # monster.com has two very similar gimmicks:
546 s|<input type="hidden" name="REDIRECT" value="(.+?)">|<meta http-equiv="refresh" content="0; URL=$1">|i
548 s|<IMG SRC="http://media.monster.com/mm/usen/my/no_thanks_211x40.gif".+?>|<meta http-equiv="refresh" content="0; URL=http://my.monster.com/resume.asp">|i
550 # nytimes.com triggers popups through the onload handler of dummy images
551 # to fool popup-blockers.
553 s|(<img [^>]*)onload|$1never|sig
555 # Pre-check all the "Discard" buttons in GNU Mailman's web interface.
556 # (This saves a lot of mouse aiming practice when flushing spamtraps)
558 s|(<INPUT name="\d{2,4}" type="RADIO" value="0") CHECKED |$1|g
559 s|<INPUT name="\d{2,4}" type="RADIO" value="3" |$0 checked|g
561 #################################################################################
563 # no-ping: Removes non-standard ping attributes in <a> and <area> tags.
565 #################################################################################
566 FILTER: no-ping Removes non-standard ping attributes in <a> and <area> tags.
567 s@(<a(?:rea)?[^>]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\
568 <strong style="color:white; background-color:red;" title="Privoxy removed ping target '$3'">PING!</strong>\n$1$4@ig
570 #################################################################################
572 # google: CSS-based block for Google text ads. Also removes
573 # a width limitation and the toolbar advertisement.
575 #################################################################################
576 FILTER: google CSS-based block for Google text ads. Also removes a width limitation and the toolbar advertisement.
578 s@</head>@<style type="text/css">\n\
579 /* Style sheet inserted by Privoxy's google filter. */\n\
580 \#fbc, \#fbl, \#ra, .rhh {visibility: hidden !important;}\n\
581 \#tpa1,\#tpa2,\#tpa3,\#tpa4,\#tpa5,\#tpa5, \#spl, .ch, \#ads,\
582 \#toolbar, \#google_ads_frame, \#mbEnd {display: none !important;}\n\
583 .main_body, .j {width: 100%}\n</style>\n$0@
584 s@<div style=\"padding-top:11px;min-width:500px\">@<div id="main_body">@
585 s@(<table cellspacing=0 cellpadding=0 width=25% align=right bgcolor=\#ffffff border=0\
586 |</font></td></tr></tbody></table><table align=\"right\" bgcolor=\"\#ffffff\"\
587 |<table cellspacing=0 cellpadding=0 align=right bgcolor=\#ffffff border=0\
588 |<table style=\"clear:both\" align=right width=25% cellspacing=\"0\" cellpadding=\"0\"\
589 border=\"0\" bgcolor=\"\#ffffff\")@$0 id="ads"@
590 s@(<br clear=all><table)( border=0 cellpadding=9><tr><td)@$1 id="toolbar"$2@
592 #################################################################################
594 # yahoo: CSS-based block for Yahoo text ads. Also removes a width limitation.
596 #################################################################################
597 FILTER: yahoo CSS-based block for Yahoo text ads. Also removes a width limitation.
599 s@</head>@\n<style type="text/css">\n\
600 /* Style sheet inserted by Privoxy's yahoo filter. */\n\
601 \#symadbn, \#ymadbn, .yschbox, .yschhd, .bbox, \#yschsec, \#sec,\
602 \#yschanswr, .yschftad, .yschspn, .yschspns, \#ygrp-sponsored-links,\
604 \#ks-ypn-ads, .ad, \#east, \#ygrp-vital {display: none !important;}\n\
605 \#yschpri, \#yschweb, \#pri, \#web, \#main {width: 100% !important; max-width: 100% !important;}\n\
606 \#yschqcon, \#yschtg {width: auto !important; /* No useless horizontal scrollbar please */}\n\
607 \#northbanner{min-height:1px !important; height:1px !important; display: none !important;}\n\
610 #################################################################################
612 # msn: CSS-based block for MSN text ads. Also removes tracking URLs
613 # and a width limitation.
615 #################################################################################
616 FILTER: msn CSS-based block for MSN text ads. Also removes tracking URLs and a width limitation.
618 s@</head>@<style type="text/css">\n\
619 /* Style sheet inserted by Privoxy's msn filter. */\n\
620 .msn_ads, \#at, \#ar, .mktmsg {display: none !important;}\n\
621 \#results, .flank, .results_area_flank, .results_area_stroke,\n\
622 \#results_area, .SearchSection, .not, .sc_rslth1\n\
623 .content, \#sw_foot, \#bf, \#sw_content, \#sidebar, \#pag\n\
624 {width: 99% !important; min-width: 99% !important;\n\
625 max-width: 100% !important; /* width:100% sometimes causes horizontal scrollbars */}\n\
626 /* Remove "suggestions". They are next to worthless but partly overlap with the search results */\n\
627 .suggestion, \#nys_right, \#nys {clear: both; display:none;}\n\
628 \#content {padding-right: 0;}\n\
630 # Are these ids still in use?
631 s@(<div[^>]*) id=(["']?)ads_[^\2]*\2@$1 class="msn_ads"@Uig
632 s@(<div[^>]*) class=(["']?)sb_ads[^\2]*\2@$1 class="msn_ads"@Uig
633 s@(<a[^>]*href=\")http://g.msn.com/.*\?(http://.*)(&&DI=.*)(\")@$1$2$4@Ug
634 s@(<a[^>]*)gping=\".*\"@$1 title="URL cleaned up by Privoxy's msn filter"@Ug
636 #################################################################################
638 # blogspot: Cleans up some Blogspot blogs. Read the fine print before using this.
640 # This filter also intentionally removes some navigation stuff and
641 # sets the page width to 100%. As a result, some rounded "corners" would
642 # appear to early or not at all and as fixing this would require a browser
643 # that understands background-size (CSS3), they are removed instead.
645 # When applied to feeds, it removes comment titles that
646 # only contain the beginning of the actual comment.
648 #################################################################################
649 FILTER: blogspot Cleans up some Blogspot blogs. Read the fine print before using this.
651 s@</head>@<style type="text/css">\n\
652 /* Style sheet inserted by Privoxy's blogspot filter. */\n\
653 \#powered-by {display: none !important;}\n\
654 \#wrap4, \#wrapper {margin-top: 0px }\n\
655 \#blogheader, \#header {margin-top: 0.5em !important}\n\
656 \#content {width: 98% }\n\
657 \#main {width: 70% }\n\
658 \#sidebar {width: 29% }\n\
659 .post-body {overflow: auto;}\n\
660 .blogComments {width: 100%; overflow: auto;}\n</style>\n$0@
661 s@<body.*(?:<div id="space-for-ie"></div>|(<div id="(?:content|wrap4|wrapper)))@<body>\
662 <!-- Privoxy's blogspot filter ditched some garbage here -->$1@Us
663 s@(<div style=\"[^\"]*width:)30em@$1 100%@
664 s@background:url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;@/*$0*/@Ug
665 s@(background:\#[a-f\d]{3})( url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;)@$1 ;/*$2*/@Ug
666 # Do the feed filtering magic as described above.
667 s@<title(?:\s+type=\'text\')?>([^<]*)(?:\.\.\.)?\s*</title>\s*\
668 (<content(?:\s+type=\'(?:html|text)\')?>\s*\1)@<title></title>$2@ig
670 #################################################################################
672 # x-httpd-php-to-html: Changes the Content-Type header from
673 # x-httpd-php to html. "Content-Type: x-httpd-php"
674 # is set by clueless PHP users and causes many
675 # browsers do open a download menu instead of
676 # rendering the page.
678 #################################################################################
679 SERVER-HEADER-FILTER: x-httpd-php-to-html Changes the Content-Type header from x-httpd-php to html.
681 s@^(Content-Type:)\s*application/x-httpd-php@$1 text/html@i
683 #################################################################################
685 # html-to-xml: Changes the Content-Type header from html to xml.
687 #################################################################################
688 SERVER-HEADER-FILTER: html-to-xml Changes the Content-Type header from html to xml.
690 s@^(Content-Type:)\s*text/html(;.*)?$@$1 application/xhtml+xml$2@i
692 #################################################################################
694 # xml-to-html: Changes the Content-Type header from xml to html.
696 #################################################################################
697 SERVER-HEADER-FILTER: xml-to-html Changes the Content-Type header from xml to html.
699 s@^(Content-Type:)\s*(?:application|text)/(?:xhtml\+)?xml(;.*)?$@$1 text/html$2@i
701 #################################################################################
703 # hide-tor-exit-notation: Remove the Tor exit node notation in Host and Referer headers.
705 # Note: If Privoxy and Tor are chained and Privoxy is configured to
706 # use socks4a, one can use http://www.example.org.foobar.exit/
707 # to access the host www.example.org through Tor exit node foobar.
709 # As the HTTP client isn't aware of this notation, it treats the
710 # whole string "www.example.org.foobar.exit" as host and uses it
711 # for the "Host" and "Referer" headers. From the server's point of
712 # view the resulting headers are invalid and can cause problems.
714 # An invalid "Referer" header can trigger "hot-linking" protections,
715 # an invalid "Host" header will make it impossible for the server to
716 # find the right vhost (several domains hosted on the same IP address).
718 # This filter removes the "foo.exit" part in those headers
719 # to prevent the mentioned problems. Note that it only modifies
720 # the HTTP headers, it doesn't make it impossible for the server
721 # to detect your Tor exit node based on the IP address the request is
724 #################################################################################
725 CLIENT-HEADER-FILTER: hide-tor-exit-notation Removes the Tor exit node notation in Host and Referer headers.
727 s@^((?:Referer|Host):\s*(?:https?://)?[^/]*)\.[^\./]*?\.exit@$1@i
729 #################################################################################
731 # less-download-windows: Prevents annoying download windows for content types
732 # the browser can handle itself.
734 #################################################################################
735 SERVER-HEADER-FILTER: less-download-windows Prevent annoying download windows for content types the browser can handle itself.
737 s@^Content-Disposition:.*filename=(["']?).*\.(png|gif|jpe?g|diff?|d?patch|c|h|pl|shar)\1.*$@@i
738 s@^(Content-Type:)\s*(?:message/(?:news|rfc822)|text/x-.*|application/x-sh(?:\s|$))\s*@$1 text/plain@i
740 #################################################################################
742 # image-requests: Tags detected image requests as "IMAGE-REQUEST". Whether
743 # or not the detection actually works depends on the browser.
745 #################################################################################
746 CLIENT-HEADER-TAGGER: image-requests Tags detected image requests as "IMAGE-REQUEST".
748 s@^Accept:\s*image/.*@IMAGE-REQUEST@i
750 #################################################################################
752 # css-requests: Tags detected CSS requests as "CSS-REQUEST". Whether
753 # or not the detection actually works depends on the browser.
755 #################################################################################
756 CLIENT-HEADER-TAGGER: css-requests Tags detected CSS requests as "CSS-REQUEST".
758 s@^Accept:\s*text/css.*@CSS-REQUEST@i
760 #################################################################################
762 # client-ip-address: Tags the request with the client's IP address.
764 #################################################################################
765 CLIENT-HEADER-TAGGER: client-ip-address Tags the request with the client's IP address.
767 s@^\w*\s+.*\s+HTTP/\d\.\d\s*@IP-ADDRESS: $origin@D
769 #################################################################################
771 # http-method: Tags the request with its HTTP method.
773 #################################################################################
774 CLIENT-HEADER-TAGGER: http-method Tags the request with its HTTP method.
776 s@^(\w*).*HTTP/\d\.\d\s*$@$1@i
778 #################################################################################
780 # allow-post: Tags POST requests as "ALLOWED-POST".
782 #################################################################################
783 CLIENT-HEADER-TAGGER: allow-post Tags POST requests as "ALLOWED-POST".
785 s@^(?:POST)\s+.*\s+HTTP/\d\.\d\s*@ALLOWED-POST@i
787 #################################################################################
789 # complete-url: Tags the request with the whole request URL.
791 #################################################################################
792 CLIENT-HEADER-TAGGER: complete-url Tags the request with the whole request URL.
794 s@^\w*\s+(.*)\s+HTTP/\d\.\d\s*$@$1@i
796 #################################################################################
798 # user-agent: Tags the request with the complete User-Agent header.
800 #################################################################################
801 CLIENT-HEADER-TAGGER: user-agent Tags the request with the complete User-Agent header.
803 s@^User-Agent:.*@$0@i
805 #################################################################################
807 # content-type: Tags the request with the content type declared by the server.
809 #################################################################################
810 SERVER-HEADER-TAGGER: content-type Tags the request with the content type declared by the server.
812 s@^Content-Type:\s*([^;]+).*@$1@i
814 #################################################################################
816 # privoxy-control: The taggers create tags with the content of X-Privoxy-Control
817 # headers, the filters remove said headers.
819 #################################################################################
820 CLIENT-HEADER-TAGGER: privoxy-control Creates tags with the content of X-Privoxy-Control headers.
822 s@^X-Privoxy-Control:\s*@@i
824 CLIENT-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers.
826 s@^X-Privoxy-Control:.*@@i
828 SERVER-HEADER-TAGGER: privoxy-control Creates tags with the content of X-Privoxy-Control headers.
830 s@^X-Privoxy-Control:\s*@@i
832 SERVER-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers.
834 s@^X-Privoxy-Control:.*@@i
837 ##############################################################################
840 # $Log: default.filter,v $
841 # Revision 1.69 2009/02/12 15:40:11 ler762
842 # more yahoo email ad blocking
844 # Revision 1.68 2008/09/19 13:26:04 fabiankeil
845 # s@tounge@tongue@. Anonymously reported in #1648657.
847 # Revision 1.67 2008/08/06 17:38:06 fabiankeil
848 # In banners-by-size, make sure white-space around the height
849 # attribute is removed as well and replace two spaces with
850 # "\s" so we don't get fooled by tabs. Fixes #2036125.
852 # Revision 1.66 2008/08/03 17:27:47 fabiankeil
853 # Teach msn filter to catch a few new ad classes.
855 # Revision 1.65 2008/07/21 13:43:44 fabiankeil
856 # Fix img-reorder regression introduced with my last commit.
857 # Some tags were terminated too soon, letting the browser render
858 # some of their arguments as text. Oops.
860 # Revision 1.64 2008/07/12 15:49:09 fabiankeil
861 # - Don't let img-reorder touch width attributes
862 # that aren't followed by either whitespace or '>',
863 # as those usually indicate onclick nonsense.
864 # Problem and solution reported by Glenn Washburn in #2014552.
865 # - While at it, don't use more groups than necessary.
867 # Revision 1.63 2008/06/27 12:53:41 fabiankeil
868 # Make sure the taggers css-requests and image-requests
869 # only match at the beginning of the header.
871 # Revision 1.62 2008/06/21 17:02:03 fabiankeil
874 # Revision 1.61 2008/05/21 18:44:43 fabiankeil
875 # - Let the content-type tagger ignore headers without value.
876 # - Remove a few unused lines at the end of the file.
878 # Revision 1.60 2008/04/26 10:36:41 fabiankeil
879 # Let the msn filter hide another class.
881 # Revision 1.59 2008/04/23 16:18:18 fabiankeil
882 # s@declarded@declared@
884 # Revision 1.58 2008/02/02 15:27:19 fabiankeil
885 # Yet another yahoo update to get the width limitation removal working again.
887 # Revision 1.57 2008/01/26 15:45:39 fabiankeil
888 # Don't let the less-download-windows filter mess up
889 # "Content-Type: application/x-shockwave-flash" headers.
891 # Revision 1.56 2008/01/25 19:12:40 fabiankeil
892 # - Add yet another new yahoo ad id.
893 # - Don't let the first banners-by-link job punish URLs for merely
894 # containing the pattern "/jump/" when it should really look for
895 # "doubleclick\.net/jump/".
897 # Revision 1.55 2007/12/31 19:53:59 fabiankeil
898 # Let the msn filter remove the width limitation again.
900 # Revision 1.54 2007/12/31 19:11:31 fabiankeil
901 # - Let the yahoo filter remove the width limitation again.
902 # - Teach the blogspot filter to remove useless feed comment
903 # titles that only contain the beginning of the actual comment.
905 # Revision 1.53 2007/12/23 15:48:12 fabiankeil
906 # - Lo and behold, the CSS fix for the MSN buttons is no longer necessary.
907 # - Add some new selectors the msn filter should hide.
908 # - Add the two yahoo selectors Lee reported in #1856574.
909 # - Add comments that the width limitation fixes stopped
910 # working for the msn and yahoo filter.
912 # Revision 1.52 2007/11/27 18:35:48 fabiankeil
913 # Update CSS for the yahoo filter.
915 # Revision 1.51 2007/11/04 16:15:11 fabiankeil
916 # - Add client-header taggers: client-ip-address,
917 # http-method, allow-post, complete-url and user-agent.
918 # - Add server-header tagger: content-type.
920 # Revision 1.50 2007/11/03 15:05:30 fabiankeil
921 # Consistently use an empty line between the description and the PCRS code
922 # and end descriptions with dots. Patch submitted by Simon Ruderich.
924 # Revision 1.49 2007/11/03 14:29:41 fabiankeil
925 # Spelling fixes mostly submitted by Simon Ruderich.
927 # Revision 1.48 2007/10/17 18:11:32 fabiankeil
928 # Add privoxy-control header filters and taggers.
930 # Revision 1.47 2007/10/06 15:45:25 fabiankeil
931 # Let msn hide sponsored links in #at divs.
933 # Revision 1.46 2007/10/06 09:54:13 fabiankeil
934 # - Let msn hide sponsored links in #ar divs.
935 # - Teach banners-by-link not to block the graphs for sf's tracker statistics.
937 # Revision 1.45 2007/08/11 16:54:12 fabiankeil
938 # - Complete the changes from r1.42.
939 # - Make crude-parental less sensitive to the amount of white-space,
940 # add the note that it doesn't work too well again and replace the
941 # DMOZ link with a less confusing explanation.
943 # Revision 1.44 2007/07/18 11:06:56 hal9
944 # Replace notarget with '' in all popups filter to keep from breaking xhmtl per
945 # report from Siegfried Gipp.
947 # Revision 1.43 2007/06/01 14:17:04 fabiankeil
948 # Mention possible delimiter conflicts with variables in dynamic pcrs commands.
950 # Revision 1.42 2007/05/17 15:55:36 fabiankeil
951 # Undo an improperly tested last-minute change
952 # and turn "text-requests" back into "css-requests".
954 # Revision 1.41 2007/05/17 15:45:41 fabiankeil
955 # - Mention new filter types and the 'D' option.
956 # - Header filters are now case-insensitive and accept a
957 # varying amount of whitespace after the colon.
958 # - Add another selector for yahoo ads.
959 # - New server-header filter: less-download-windows
960 # - New client-header taggers: text-requests and image-requests.
962 # Revision 1.40 2007/03/20 15:40:00 fabiankeil
963 # Adjust to new world order with dedicated header-filter actions.
965 # Revision 1.39 2007/02/21 14:10:23 fabiankeil
966 # - Fix a js-annoyances pcrs command that broke
967 # evaluated code. (BR #1124071, thanks to Bor Gergely)
968 # - Have unsolicited-popups and all-popups catch the
969 # wheather.com popup reported in in AF #1640173.
971 # Revision 1.38 2007/02/19 11:22:48 hal9
972 # Adding back the orginal filter content to offset problems found by Fabian.
974 # Revision 1.37 2007/02/17 13:29:44 hal9
975 # Updates to the crude parental filter per Feature Requests item #1648657.
977 # Revision 1.36 2007/02/05 16:47:31 fabiankeil
978 # - Let banners-by-link look for "advert".
979 # - Fix XML systax problems with banners-by-link
980 # and banners-by-size (AF#1651570).
982 # Revision 1.35 2006/12/21 12:28:12 fabiankeil
983 # Escaping special characters in filter descriptions is no
984 # longer necessary, it's done by Privoxy now.
986 # Revision 1.34 2006/12/12 17:32:23 fabiankeil
987 # Added id mbEnd to google filter, it's now and then
988 # used for the sponsored links.
990 # Have js-annoyances try to prevent status bar
991 # modifications where the status bar text is
992 # inside another variable. Fixes 1605710.
994 # Revision 1.33 2006/11/16 17:10:43 fabiankeil
995 # Removed webbugs debugging comment again.
996 # The apostrophe could break JavaScript and
997 # the comment itself could mess up existing
1000 # Revision 1.32 2006/11/10 18:04:04 fabiankeil
1001 # Have no-ping print the ping warning in red.
1003 # Modified yahoo to keep in sync with recent
1004 # CSS changes and to suppress a useless horizontal
1007 # msn now makes sure that the continue-link boxes
1008 # act as links (the original CSS just changes the cursor).
1010 # Changed fun filter regex to leave microsoft links alone.
1013 # Revision 1.31 2006/10/21 13:12:28 fabiankeil
1014 # Added no-ping and hide-tor-exit-notation.
1016 # Adjusted jumping-windows to break less.
1019 # Revision 1.30 2006/10/18 12:36:50 fabiankeil
1020 # google filter now cleans Google groups as well.
1022 # Revision 1.29 2006/10/11 14:03:17 fabiankeil
1023 # Changed img-reorder regex to only move width
1024 # attributes if they are following at least one
1025 # whitespace. Fixes BR 1328455.
1027 # Revision 1.28 2006/10/11 13:31:13 fabiankeil
1028 # Added Anduin Withers' js-annoyances fix
1029 # for not messing up escaped quotes. Fixes BR 999765.
1031 # Improved blogspot filter to make it less likely that
1032 # the blogspot banner at the top of the page is missed.
1034 # Revision 1.27 2006/10/08 17:00:51 fabiankeil
1035 # Modified webbugs filter to create a comment around the offending
1036 # image instead of removing it entirely.
1038 # Adjusted regex to only match if there's at least one whitespace
1039 # before the width and height attributes. Makes it more likely that
1040 # they are indeed attributes, and not part of the value of another attribute.
1041 # Solves BR 1035587.
1043 # Thanks to Martin Thomas for diagnosing the cause of the problem.
1045 # Revision 1.26 2006/10/06 18:06:16 fabiankeil
1046 # Added header filter x-httpd-php-to-html
1047 # and reverted another img-reorder whitespace
1050 # Revision 1.25 2006/10/06 15:26:09 fabiankeil
1051 # Bumped copyright year.
1053 # Reverted parts of the last img-reorder change
1054 # which were intended to remove superfluous whitespace
1055 # but had the side effect to mess up some tags.
1057 # Modified banners-by-size and banners-by-link to
1058 # use border value "0" instead of "\0". Fixes BR 1100065.
1060 # Revision 1.24 2006/10/06 11:25:31 fabiankeil
1061 # Taught img-reorder not to break img tags
1062 # with empty src attributes. Fixes BR 1089474.
1063 # Thanks to Raphael Moll for reporting.
1065 # Revision 1.23 2006/10/05 14:46:28 fabiankeil
1066 # Replaced "<" in img-reorder's description with "<".
1068 # Modified msn filter to tag ads with classes instead
1069 # of ids. There may be more than one ad per page,
1070 # but ids are required to be unique.
1072 # Revision 1.22 2006/10/04 19:17:14 fabiankeil
1073 # Incorportated Frédéric Crozat's ie-exploits
1074 # modification to make it less trigger-happy.
1076 # Modified blogspot filter to make .post-body
1077 # scrollable if necessary.
1079 # Revision 1.21 2006/10/02 16:21:14 fabiankeil
1080 # Adjusted yahoo filter to hide .yschspns as well.
1081 # Added header filters: html-to-xml and xml-to-html.
1083 # Revision 1.20 2006/10/01 21:00:22 fabiankeil
1084 # New site-specific filters: google, yahoo, msn and blogspot.
1086 # Revision 1.19 2006/07/18 14:48:45 david__schmidt
1087 # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
1088 # with what was really the latest development (the v_3_0_branch branch)
1090 # Revision 1.11.2.23 2004/02/17 13:34:01 oes
1091 # - Beefed up the protection of the unsolicited-popups
1092 # filter against matching in JavaScript string constants.
1093 # - Extended the fun filter with a German joke
1094 # - Extended the site-specifics filter with a convenience
1095 # reeplacement for managing mailing lists at SourceForge
1097 # Revision 1.11.2.22 2004/01/30 15:29:29 oes
1098 # Updated the copyright note
1100 # Revision 1.11.2.21 2004/01/20 15:15:01 oes
1101 # Detail enhancement in all-popups
1103 # Revision 1.11.2.20 2004/01/06 16:46:14 oes
1104 # Fixed a JS syntax problem in jumping-windows
1106 # Revision 1.11.2.19 2003/12/17 17:09:25 oes
1107 # Added remedy against IE address bar spoofing
1109 # Revision 1.11.2.18 2003/12/02 11:25:27 oes
1110 # Fixed a line trashed in previous commit
1112 # Revision 1.11.2.17 2003/12/01 21:58:46 oes
1115 # - unsolicited-popups no longer matches at start or end of quoted
1116 # strings, and is now activated earlier and deactivated later in
1118 # - replacement images in banners-by-* now without border
1119 # - more effective shockwave flash flattening
1120 # - Custom annoyance filtering for Yahoo Groups, Monster.com, NY Times.
1122 # Revision 1.11.2.16 2003/05/08 09:44:56 oes
1123 # Allow extra parameters in blink,marquee tags. Fixes bug #734012
1125 # Revision 1.11.2.15 2003/03/30 13:57:08 oes
1126 # Making unsolicited-popups safe for use on <html> tags enclosed in JS strings
1128 # Revision 1.11.2.14 2003/03/19 13:17:50 oes
1129 # - Added filter "site-specifics" to address site specific problems
1130 # - Fixed a small problem in the img-reorder filter
1132 # Revision 1.11.2.13 2003/03/18 19:28:59 oes
1133 # Fixed a minor problem in the img-reorder filter
1135 # Revision 1.11.2.12 2003/03/15 14:06:58 oes
1136 # - Assorted refinements, optimizations and fixes in the js-annoyances,
1137 # img-reorder, banners-by-size, banners-by-link, webbugs, refresh-tags,
1138 # html-annoyances, content-cookies and fun filters
1139 # - Replaced filter "popups" by choice between two modes:
1140 # - "unsolicited-popups" tries to catch only the unsolicited ones
1141 # - "all-popups" tries to kill them all (as before)
1142 # - New filter "tiny-textforms" Help those tiny or hard-wrap textareas.
1143 # - New filter "jumping-windows" that prevents windows from resizing
1144 # and moving themselves
1145 # - Replaced "nimda" with more general "ie-exploits" filter in which
1146 # all filters for exploits shall be collected
1148 # Revision 1.11.2.11 2002/11/12 16:14:43 oes
1149 # Exchanged js-annoyance filter against status bar rewrites with improved version by Don Libes
1151 # Revision 1.11.2.10 2002/11/11 13:39:47 oes
1152 # Make refresh-tags filter work even on incorrect refresh tags like found on usatoday.com
1154 # Revision 1.11.2.9 2002/11/08 16:39:17 oes
1155 # Made img-reorder more cautious. Fixes bug #632715
1157 # Revision 1.11.2.8 2002/10/13 21:56:52 hal9
1158 # Adding demoronizer filter. This should include all the common abuses. I have
1159 # left a few of the rare cases commented out (never found these in the wild).
1161 # Revision 1.11.2.7 2002/09/25 15:09:39 oes
1162 # Preserve original quoting style in <img> tags wherever possible. Fixes Bug #605956
1164 # Revision 1.11.2.6 2002/08/23 14:12:26 oes
1165 # Proofed frameset-borders against "fremaborder=0 border=0"
1167 # Revision 1.11.2.5 2002/08/22 15:05:20 oes
1168 # Added Filter to make Quicktime movies saveable (thanks to aaron@linville.org for the idea)
1170 # Revision 1.11.2.4 2002/08/10 11:32:29 oes
1171 # Attribute values in replacement tags of banners-by-size filter now undelimited. (Fixes bug #592493)
1173 # Revision 1.11.2.3 2002/08/05 11:43:56 oes
1174 # Fixed a bug in the popups filter that was introduced with the last fix :-(
1176 # Revision 1.11.2.2 2002/08/01 11:20:13 oes
1177 # Fixed bugs 587802, 577802 and an unreported one
1179 # Revision 1.11.2.1 2002/07/26 15:18:26 oes
1180 # - All filters reviewed and many shorcomings fixed
1181 # - New filters: img-reorder, banners-by-link and js-events
1182 # - Jobs reorderd because they are now executed in order of
1185 # Revision 1.11 2002/05/24 00:57:18 oes
1186 # Made WeBugs job ungreedy; Fixes bug 559190
1188 # Revision 1.10 2002/04/18 10:14:19 oes
1189 # renamed some filters
1191 # Revision 1.9 2002/04/11 07:36:35 oes
1192 # Generalized js-popup filter
1194 # Revision 1.8 2002/04/10 17:07:21 oes
1195 # Fixed potentially desctructive jobs, added noflash filter
1197 # Revision 1.7 2002/04/09 18:34:51 oes
1198 # Fixed HTML syntax in replacements
1200 # Revision 1.6 2002/04/03 19:49:52 swa
1203 # Revision 1.5 2002/03/27 15:30:26 swa
1204 # have a consistent appearance
1206 # Revision 1.4 2002/03/26 22:29:54 swa
1207 # we have a new homepage!
1209 # Revision 1.3 2002/03/24 16:08:03 jongfoster
1210 # Fixing banners-by-size for new config URLs
1212 # Revision 1.2 2002/03/24 13:02:18 swa
1213 # name change related issues.
1215 # Revision 1.1 2002/03/24 11:37:39 jongfoster
1218 # Revision 1.24 2002/03/16 20:39:54 oes
1219 # - Added descriptions to the filters so users will know what they select in the cgi editor
1220 # - Added content-cookies filter
1221 # - Bugfixed many jobs (Thanks to Al for some hints)
1223 # Revision 1.22 2002/03/12 13:42:50 oes
1224 # Fixing & Optimizing REs
1226 # Revision 1.21 2002/03/12 11:59:20 oes
1227 # Beefed up Buzzword Bingo
1229 # Revision 1.20 2002/03/12 01:42:50 oes
1230 # Introduced modular filters
1232 # Revision 1.19 2002/03/10 19:49:24 oes
1233 # Added expression to kill referer tracking in JavaScripts
1235 # Revision 1.18 2002/03/08 17:14:12 oes
1236 # PNG -> image in comments
1238 # Revision 1.17 2002/03/07 03:50:54 oes
1239 # Adapted comments to new built-in images
1241 # Revision 1.16 2002/02/21 00:12:19 jongfoster
1242 # Modifying the banner regexps to use long URLS and to autodetect
1243 # whether to show a logo or a transparent GIF, based on actionsfile
1246 # Revision 1.15 2001/12/28 23:54:20 steudten
1247 # Fix for feature Req #495374: http-equiv problem
1249 # Revision 1.14 2001/12/09 18:55:11 david__schmidt
1250 # Updated CODE_STATUS to beta, commented out microsuck line in re_filterfile
1253 # Revision 1.13 2001/10/13 13:11:20 joergs
1254 # Fixed WebBug filter.
1256 # Revision 1.12 2001/10/07 15:46:42 oes
1257 # Followed Guy's proposal to change the document.cookie job
1259 # Revision 1.11 2001/09/21 12:34:00 joergs
1260 # Added filter to replace "Nimda" code by a warning.
1262 # Revision 1.10 2001/07/20 11:04:26 oes
1263 # Added Rodneys javascript cookie filter
1265 # Revision 1.9 2001/07/13 14:03:48 oes
1266 # Elimiated yet another bug in the banner-by-size jobs. Shame on me!
1268 # Revision 1.8 2001/06/29 13:34:00 oes
1269 # - Added explanation for U and T options
1270 # - Added hint on image replacement by CGI call
1271 # - Fixed bug in banner-by-size jobs
1273 # Revision 1.7 2001/06/19 14:21:56 oes
1274 # Fixed microsuck line
1276 # Revision 1.6 2001/06/09 14:01:57 swa
1277 # header. cosmetics. default: no messing ala microsuck.