X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=default.filter;h=37e7faea50bc94b479bd69b9e2c7213e5c6ff76b;hb=245fdf362f67d886babeeb5cca3fc719f69937e3;hp=33ba7d82fa134e7ec8cfb899184e2b383c663530;hpb=7da67bdbdddc6278440330856e9402e15a14de3c;p=privoxy.git diff --git a/default.filter b/default.filter index 33ba7d82..37e7faea 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.49 2007/11/03 14:29:41 fabiankeil Exp $ +# $Id: default.filter,v 1.50 2007/11/03 15:05:30 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -749,6 +749,60 @@ CLIENT-HEADER-TAGGER: css-requests Tags detected CSS requests as "CSS-REQUEST". s@Accept:\s*text/css.*@CSS-REQUEST@i +################################################################################# +# +# client-ip-address: Tags the request with the client's IP address. +# +################################################################################# +CLIENT-HEADER-TAGGER: client-ip-address Tags the request with the client's IP address. + +s@^\w*\s+.*\s+HTTP/\d\.\d\s*@IP-ADDRESS: $origin@D + +################################################################################# +# +# http-method: Tags the request with its HTTP method. +# +################################################################################# +CLIENT-HEADER-TAGGER: http-method Tags the request with its HTTP method. + +s@^(\w*).*HTTP/\d\.\d\s*$@$1@i + +################################################################################# +# +# allow-post: Tags POST requests as "ALLOWED-POST". +# +################################################################################# +CLIENT-HEADER-TAGGER: allow-post Tags POST requests as "ALLOWED-POST". + +s@^(?:POST)\s+.*\s+HTTP/\d\.\d\s*@ALLOWED-POST@i + +################################################################################# +# +# complete-url: Tags the request with the whole request URL. +# +################################################################################# +CLIENT-HEADER-TAGGER: complete-url Tags the request with the whole request URL. + +s@^\w*\s+(.*)\s+HTTP/\d\.\d\s*$@$1@i + +################################################################################# +# +# user-agent: Tags the request with the complete User-Agent header. +# +################################################################################# +CLIENT-HEADER-TAGGER: user-agent Tags the request with the complete User-Agent header. + +s@^User-Agent:.*@$0@i + +################################################################################# +# +# content-type: Tags the request with the content type declarded by the server. +# +################################################################################# +SERVER-HEADER-TAGGER: content-type Tags the request with the content type declarded by the server. + +s@^Content-Type:\s*([^;]*).*@$1@i + ################################################################################# # # privoxy-control: The taggers create tags with the content of X-Privoxy-Control @@ -776,6 +830,10 @@ s@^X-Privoxy-Control:.*@@i # # Revisions : # $Log: default.filter,v $ +# Revision 1.50 2007/11/03 15:05:30 fabiankeil +# Consistently use an empty line between the description and the PCRS code +# and end descriptions with dots. Patch submitted by Simon Ruderich. +# # Revision 1.49 2007/11/03 14:29:41 fabiankeil # Spelling fixes mostly submitted by Simon Ruderich. #