From: Fabian Keil Date: Wed, 17 Oct 2007 18:11:32 +0000 (+0000) Subject: Add privoxy-control header filters and taggers. X-Git-Tag: v_3_0_7~128 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=38b4d3f077472db7fc0c764db2edd66f9a1a21fe;hp=b0184cb983140a641d30ebfb4942759f48c010a9 Add privoxy-control header filters and taggers. --- diff --git a/default.filter b/default.filter index e3979d29..39ae66d3 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.46 2007/10/06 09:54:13 fabiankeil Exp $ +# $Id: default.filter,v 1.47 2007/10/06 15:45:25 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -738,10 +738,34 @@ s@Accept:\s*image/.*@IMAGE-REQUEST@i CLIENT-HEADER-TAGGER: css-requests Tags detected CSS requests as "CSS-REQUEST". s@Accept:\s*text/css.*@CSS-REQUEST@i +################################################################################# +# +# privoxy-control: The taggers create tags with the content of X-Privoxy-Control +# headers, the filters remove said headers. +# +################################################################################# +CLIENT-HEADER-TAGGER: privoxy-control Creates tags with he content\ + of X-Privoxy-Control headers +s@^X-Privoxy-Control:\s*@@i + +CLIENT-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers +s@^X-Privoxy-Control:.*@@i + +SERVER-HEADER-TAGGER: privoxy-control Creates tags with he content\ + of X-Privoxy-Control headers +s@^X-Privoxy-Control:\s*@@i + +SERVER-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers +s@^X-Privoxy-Control:.*@@i + + ############################################################################## # # Revisions : # $Log: default.filter,v $ +# Revision 1.47 2007/10/06 15:45:25 fabiankeil +# Let msn hide sponsored links in #at divs. +# # Revision 1.46 2007/10/06 09:54:13 fabiankeil # - Let msn hide sponsored links in #ar divs. # - Teach banners-by-link not to block the graphs for sf's tracker statistics.