From: Fabian Keil Date: Sun, 27 Mar 2016 16:54:05 +0000 (+0000) Subject: Tag Range requests by default and use the tag to disable filtering X-Git-Tag: v_3_0_25~107 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=cff34707a315c5670ef0d554f962565bb7ea05bd Tag Range requests by default and use the tag to disable filtering This lets download resumption and Windows updates work by default. While this allows clients to circumvent filtering, the default configuration never protected against malicious clients anyway. --- diff --git a/default.action.master b/default.action.master index 219641ce..cb7f5c53 100644 --- a/default.action.master +++ b/default.action.master @@ -11,7 +11,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.action.master,v $ # -# $Id: default.action.master,v 1.325 2016/01/16 12:28:09 fabiankeil Exp $ +# $Id: default.action.master,v 1.326 2016/01/16 12:28:21 fabiankeil Exp $ # # Requires : This version requires Privoxy v3.0.11 or later due to # syntax changes. @@ -550,6 +550,7 @@ allow-ads = -block -filter{banners-by-size} -filter{banners-by-link} +change-x-forwarded-for{block} \ +client-header-tagger{css-requests} \ +client-header-tagger{image-requests} \ ++client-header-tagger{range-requests} \ +hide-from-header{block} \ +set-image-blocker{pattern} \ } @@ -563,6 +564,7 @@ standard.Cautious +change-x-forwarded-for{block} \ +client-header-tagger{css-requests} \ +client-header-tagger{image-requests} \ ++client-header-tagger{range-requests} \ +deanimate-gifs{last} \ +filter{refresh-tags} \ +filter{img-reorder} \ @@ -592,6 +594,7 @@ standard.Medium +change-x-forwarded-for{block} \ +client-header-tagger{css-requests} \ +client-header-tagger{image-requests} \ ++client-header-tagger{range-requests} \ +crunch-if-none-match \ +crunch-outgoing-cookies \ +crunch-incoming-cookies \ @@ -2584,4 +2587,13 @@ TAG:^CSS-REQUEST$ } TAG:^(application|text)/(x-)?javascript$ +# Disable filtering for Range requests. +# +# With filtering enabled Privoxy would remove the Range headers +# to be able to filter the whole response. The downside is that +# it prevents clients from resuming downloads or skipping over +# parts of multimedia files. +{-filter -deanimate-gifs} +TAG:^RANGE-REQUEST$ + #MASTER# set vi:nowrap diff --git a/match-all.action b/match-all.action index b706e5f4..ce70a613 100644 --- a/match-all.action +++ b/match-all.action @@ -1,5 +1,5 @@ ############################################################################# -# $Id: match-all.action,v 1.2 2009/02/14 10:41:07 fabiankeil Exp $ +# $Id: match-all.action,v 1.3 2010/03/27 18:48:38 fabiankeil Exp $ # # This file contains the actions that are applied to all requests and # may be overruled later on by other actions files. Less experienced @@ -10,6 +10,7 @@ +change-x-forwarded-for{block} \ +client-header-tagger{css-requests} \ +client-header-tagger{image-requests} \ ++client-header-tagger{range-requests} \ +hide-from-header{block} \ +set-image-blocker{pattern} \ }