FILTER: js-annoyances Get rid of particularly annoying JavaScript abuse s|(?:\w+\.)+referrer|"Not Your Business!"|gisU s/(\W\s*)((this|window)\.(default)?status)\s*=\s*((['"]).*?(?]*)onunload/$1never/siU s|()|$1never|sigU s/(open\s*\([^\)]+resizable=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+location=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+status=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+scroll(?:ing|bars)=)(["']?)(?:no|0)\2/$1$2auto$2/sigU s/(open\s*\([^\)]+menubar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+toolbar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+directories=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+fullscreen=)(["']?)(?:yes|1)\2/$1$2no$2/sigU s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU s/(open\s*\([^\)]+z-?lock=)(["']?)(?:yes|1)\2/$1$2no$2/sigU s/(open\s*\([^\)]+hotkeys=)(["']?)(?:yes|1)\2/$1$2no$2/sigU s/(open\s*\([^\)]+titlebar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU FILTER: js-events Kill all JS event bindings and timers (Radically destructive! Only for extra nasty sites) s/(on|event\.)((mouse(over|out|down|up|move))|(un)?load|contextmenu|selectstart)/never/ig s/(alert|confirm)\s*\(/concat(/ig s/settimeout\(/concat(/ig FILTER: html-annoyances Get rid of particularly annoying HTML abuse s/(]+resizable=)(['"]?)(?:no|0)\2/$1$2yes$2/igU s/(]+location=)(['"]?)(?:no|0)\2/$1$2yes$2/igU s/(]+status=)(['"]?)(?:no|0)\2/$1$2yes1$2/igU s/(]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU s/(]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU s---sigU FILTER: content-cookies Kill cookies that come in the HTML or JS content s|(\w+\.)+cookie(?=[ \t\r\n]*=)(?!='aab)|ZappedCookie|ig s|||igU FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups) s/\2]*))?\2/)(?=\s*[^'"])+$1+isU s+([^\w\s.]\s*)((window|this|parent)\.)?open\s*\(+$1PrivoxyWindowOpen(+ig s+([^'"]\s*)(?!\s*(\\n|'|"))+$1+iU FILTER: all-popups Kill all popups in JavaScript and HTML s/((\W\s*)(window|this|parent)\.)open\s*\\?\(/$1concat(/ig # JavaScript s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ notarget/ig # HTML FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* filters more effective s|]*) src\s*=\s*(['"])([^>\\\2]+)\2|]*) src\s*=\s*([^'">\\\s]+)|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*(["']?)(\d+?)\4|\\\1\s]+)\1)?[^>]*?(width=(['"]?)88\4)[^>]*?(height=(['"]?)31\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)120\4)[^>]*?(height=(['"]?)(?:600?|90|240)\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)125\4)[^>]*?(height=(['"]?)125\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)160\4)[^>]*?(height=(['"]?)600\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)180\4)[^>]*?(height=(['"]?)150\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:234|468)\4)[^>]*?(height=(['"]?)60\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)240\4)[^>]*?(height=(['"]?)400\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:250|300)\4)[^>]*?(height=(['"]?)250\6)[^>]*>@@sig s@\\\1\s]+)\1)?[^>]*?(width=(['"]?)336\4)[^>]*?(height=(['"]?)280\6)[^>]*>@@sig FILTER: banners-by-link Kill banners by their links to known clicktrackers s@\1\s]*?(?:\ adclick # See www.dn.se \ | atwola\.com/(?:link|redir) # see www.cnn.com \ | /jump/ # redirs for doublecklick.net ads \ | tracker | counter # common \ | adlog\.pl # see sf.net \ )[^>\1\s]*)\1[^>]*>\s*\\\3\s]+)\3)?[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\6)[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\8)[^>]*>\ @@sigx s@\1\s]*?(?:adclick|atwola\.com/(?:link|redir)|doubleclick\.net/jump/|tracker|counter|adlog\.pl)[^>\1\s]*)\1[^>]*>\s*\\\3\s]+)\3)?[^>]*>@@sig FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking) s@]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>@@siUg FILTER: tiny-textforms Extend those tiny textareas up to 40x80 and kill the hard wrap s/(]*?)(?:\s*(?:rows|cols)=(['"]?)\d+\2)+/$1 rows=$2\40$2 cols=$2\80$2/ig s/(]*?)wrap=(['"]?)hard\2/$1/ig FILTER: jumping-windows Prevent windows from resizing and moving themselves s/(?<=[\W])(?:window|this|self)\.(?:move|resize)(?:to|by)\(/''.concat(/ig FILTER: frameset-borders Give frames a border and make them resizable s/(]*)framespacing=(['"]?)(no|0)\2/$1/igU s/(]*)frameborder=(['"]?)(no|0)\2/$1/igU s/(]*)border=(['"]?)(no|0)\2/$1/igU s/(]*)noresize/$1/igU s/(]*)frameborder=(['"]?)(no|0)\2/$1/igU s/(]*)scrolling=(['"]?)(no|0)\2/$1/igU FILTER: demoronizer Fix MS's non-standard use of standard charsets s/(&\#[0-2]\d\d)\s/$1; /g s/\xE2\x80\x94/ -- /g s/\x82/,/g s/\x84/,,/g s/\x85/.../g s/\x8B//g # 155 FILTER: shockwave-flash Kill embedded Shockwave Flash objects s|]*macromedia.*||sigU s|]*(application/x-shockwave-flash\|\.swf).*>(.*)?||sigU FILTER: quicktime-kioskmode Make Quicktime movies saveable s/(]*)kioskmode\s*=\s*(["']?)true\2/$1/ig FILTER: fun Text replacements for subversive browsing fun! s/microsoft(?!.[^\s])/MicroSuck/ig s* (?:industry|world)[ -]leading \ | cutting[ -]edge \ | customer[ -]focused \ | market[ -]driven \ | award[ -]winning # Comments are OK, too! \ | high[ -]performance \ | solutions[ -]based \ | unmatched \ | unparalleled \ | unrivalled \ *$0Bingo! \ *igx s/(M|m)edien(?![^<]*>)/$1ädchen/Ug FILTER: crude-parental Crude parental filtering (demo only) s%^.*(?Blocked

Blocked due to possible adult content. Please see this site.

%is s+^.*warez.*$+No Warez

You're not searching for illegal stuff, are you?

+is FILTER: ie-exploits Disable some known Internet Explorer bug exploits 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 s/(]*href[^>]*)(?:\x01|\x02|\x03|%0[012])@/$1MALICIOUS-LINK@/ig s%%
WARNING: This Server is infected with Nimda!%g FILTER: site-specifics Cure for site-specific problems. Don't apply generally! s/indexOf\("x11"\)/indexOf("x13")/ s/mylogfunc()//g s|(?:Continue to message\|Weiter zu Nachricht)||ig s|||i s|||i s|(]*)onload|$1never|sig s|( and <area> tags. s@(]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\ PING!\n$1$4@ig FILTER: google CSS-based block for Google text ads. Also removes a width limitation and the toolbar advertisement. s@@\n$0@ s@
@
@ s@(
@\n\n$0@ FILTER: msn CSS-based block for MSN text ads. Also removes tracking URLs and a width limitation. s@@\n$0@ s@(]*) id=(["']?)ads_[^\2]*\2@$1 class="msn_ads"@Uig s@(]*href=\")http://g.msn.com/.*\?(http://.*)(&&DI=.*)(\")@$1$2$4@Ug s@(]*)gping=\".*\"@$1 title="URL cleaned up by Privoxy's msn filter"@Ug FILTER: blogspot Cleans up some Blogspot blogs. Read the fine print before using this. s@@\n$0@ s@|(