Tag Range requests by default and use the tag to disable filtering
authorFabian Keil <fk@fabiankeil.de>
Sun, 27 Mar 2016 16:54:05 +0000 (16:54 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 27 Mar 2016 16:54:05 +0000 (16:54 +0000)
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.

default.action.master
match-all.action

index 219641c..cb7f5c5 100644 (file)
@@ -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
index b706e5f..ce70a61 100644 (file)
@@ -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} \
 }