X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=default.filter;h=53777fc029d609494ed4254e1b08867782c36ca8;hp=826252dab48ab142e8c39845a5b38c8d67521be3;hb=453c71553cdfdbf0030bfd5198c3a84fb479b2a6;hpb=e58b0ccc4602f96b7897adcd4632a9258c8fd050 diff --git a/default.filter b/default.filter index 826252da..53777fc0 100644 --- a/default.filter +++ b/default.filter @@ -1,13 +1,11 @@ ################################################################################# # -# File : $Source: /cvsroot/ijbswa/current/default.filter,v $ +# File : default.filter # -# $Id: default.filter,v 1.88 2014/05/03 17:18:38 fabiankeil Exp $ -# # Purpose : Rules to process the content of web pages # -# Copyright : Written by and Copyright (C) 2001-2014 the -# Privoxy team. http://www.privoxy.org/ +# Copyright : Written by and Copyright (C) 2001-2018 the +# Privoxy team. https://www.privoxy.org/ # # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General @@ -57,7 +55,8 @@ # quoting. # # 'D' (Dynamic) allows the use of variables. Supported variables are: -# $host, $origin (the IP address the request came from), $path and $url. +# $host, $listen-address, $origin (the IP address the request came +# from), $path and $url. # # Note that '$' is a bad choice as delimiter for dynamic filters as you # might end up with unintended variables if you use a variable name @@ -144,7 +143,7 @@ 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/(]+status=)(['"]?)(?:no|0)\2/$1$2yes$2/igU s/(]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU s/(]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU @@ -219,11 +218,11 @@ FILTER: img-reorder Reorder attributes in tags to make the banners-by-* fi # This makes banners-by-size more effective and allows both banners-by-size # and banners-by-link to preserve the original image URL in the title attribute. -s|]*)\ssrc\s*=\s*(['"])([^>\\\2]+)\2|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|sig +s|]*)\ssrc\s*=\s*(['"])([^>'" ]+)\2|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|siUg -s|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|'" ]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|@\n$0@ # Are these ids still in use? s@(]*) id=(["']?)ads_[^\2]*\2@$1 class="msn_ads"@Uig @@ -809,6 +811,16 @@ CLIENT-HEADER-TAGGER: client-ip-address Tags the request with the client's IP ad s@^\w*\s+.*\s+HTTP/\d\.\d\s*@IP-ADDRESS: $origin@D +################################################################################# +# +# listen-address: Tags the request with the listen-address on which the request +# came in. +# +################################################################################# +CLIENT-HEADER-TAGGER: listen-address Tags the request with the listen-address on which the request came in. + +s@^\w*\s+.*\s+HTTP/\d\.\d\s*@LISTEN-ADDRESS: $listen-address@D + ################################################################################# # # http-method: Tags the request with its HTTP method.