X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=default.filter;h=0929ec2252de209bb630983ab8b008fb5b9c62cf;hp=5a629c3a49b9bc1a6543b46eba0856259b509a62;hb=6608b2b05edd3f6ea2832bb76be5fccc025914e0;hpb=e72b401da5537a14b29e945944926373cb251825 diff --git a/default.filter b/default.filter index 5a629c3a..0929ec22 100644 --- a/default.filter +++ b/default.filter @@ -2,11 +2,11 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.71 2009/03/01 18:33:17 ler762 Exp $ +# $Id: default.filter,v 1.84 2012/03/18 15:45:44 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # -# Copyright : Written by and Copyright (C) 2001-2009 the +# Copyright : Written by and Copyright (C) 2001-2010 the # Privoxy team. http://www.privoxy.org/ # # We value your feedback. However, to provide you with the best support, @@ -128,15 +128,15 @@ s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU ################################################################################# # -# js-events: Kill all JS event bindings and timers (Radically destructive! Only for extra nasty sites). +# js-events: Kill JavaScript event bindings and timers (Radically destructive! Only for extra nasty sites). # ################################################################################# -FILTER: js-events Kill all JS event bindings and timers (Radically destructive! Only for extra nasty sites). +FILTER: js-events Kill JavaScript 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 # Not events, but abused on the same type of sites: s/(alert|confirm)\s*\(/concat(/ig -s/settimeout\(/concat(/ig +s/set(timeout|interval)\(/concat(/ig ################################################################################# # @@ -177,15 +177,15 @@ s|||igU ################################################################################# # -# refresh-tags: Kill automatic refresh tags (for dial-on-demand setups). +# refresh-tags: Kill automatic refresh tags if refresh time is larger than 9 seconds. # ################################################################################# -FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups). +FILTER: refresh-tags Kill automatic refresh tags if refresh time is larger than 9 seconds. # Note: Only deactivates refreshes with more than 9 seconds delay to # preserve monster-stupid but common redirections via meta tags. # -s/\2]*))?\2/\2]*))?\2@]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\ ################################################################################# FILTER: google CSS-based block for Google text ads. Also removes a width limitation and the toolbar advertisement. -s@@\n$0@ + .main_body, .j, \#res, .med, .hd, .g, .s\n\ + {width: 99%; max-width: 100%; margin-left: 0; margin-right: 0;}\n\ + \n$0@ s@
@
@ s@(
@\n\n$0\n@ @@ -621,12 +626,15 @@ s@@\n$0@ # Are these ids still in use? @@ -759,6 +767,34 @@ CLIENT-HEADER-TAGGER: css-requests Tags detected CSS requests as "CSS-REQUEST". s@^Accept:\s*text/css.*@CSS-REQUEST@i +################################################################################# +# +# range-requests: Tags range requests as "RANGE-REQUEST". +# +# By default Privoxy removes Range headers for requests to +# ressources that will be filtered to make sure the filters +# get the whole picture. Otherwise Range requests could be +# intentionally used to circumvent filters or, less likely, +# filtering a partial response may damage it because it matched +# a pattern that the ressource as a whole wouldn't. +# +# Range requests can be useful and save bandwidth so instead +# of removing Range headers for requests to ressources that +# will be filtered, you may prefer to simply disable filtering +# for those requests. +# +# That's what this tagger is all about. After enabling it, +# you can disable filtering for range requests using the following +# action section: +# +# {-filter -deanimate-gifs} +# TAG:^RANGE-REQUEST +# +################################################################################# +CLIENT-HEADER-TAGGER: range-requests Tags range requests as "RANGE-REQUEST". + +s@^Range:.*@RANGE-REQUEST@i + ################################################################################# # # client-ip-address: Tags the request with the client's IP address. @@ -804,6 +840,15 @@ CLIENT-HEADER-TAGGER: user-agent Tags the request with the complete User-Agent h s@^User-Agent:.*@$0@i +################################################################################# +# +# referer: Tags the request with the complete Referer header. +# +################################################################################# +CLIENT-HEADER-TAGGER: referer Tags the request with the complete Referer header. + +s@^Referer:.*@$0@i + ################################################################################# # # content-type: Tags the request with the content type declared by the server.