Post Reply 
Can someone give me a few sites...
Dec. 14, 2015, 09:30 AM (This post was last modified: Dec. 14, 2015 07:39 PM by Faxopita.)
Post: #5
RE: Can someone give me a few sites...
(Dec. 13, 2015 08:08 PM)Aunt Elsie Wrote:  I would like to insert after <body>
<base target="_blank">
for forums */forums/*
and google's search result pages.

In user.filter file, add:
Code:
FILTER: base_filter _blank
s|(<body[^>]*>)|$1\n<base target="_blank"\n>|sg

You could also use @ or / as a separator instead of |.

Note:
  1. base_filter is filter name.
  2. _blank is a brief description.
In user.action file, add:
Code:
{ +filter{base_filter} }
/(.*/)?forums?/
.google.*/(.*(\x26|\x23)|search\?)q=

Note: host pattern matching not the same as path pattern matching. More info here.

Likewise:
Code:
FILTER: Microsoft
s|Microsoft|Micro\$hit|g

Code:
{ +filter{Microsoft} }
/

(Dec. 13, 2015 08:08 PM)Aunt Elsie Wrote:  Can someone give me a few sites that will show me if the default filters are really working?

You must activate Privoxy logging in config file and enable relevant debug modes. In your case, uncomment…
Code:
debug    64 # debug regular expression filters

Then, visit a few popular sites, review logfile.log and do a grep on filtering.
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to Faxopita for this post:
Aunt Elsie
Post Reply 


Messages In This Thread
RE: Can someone give me a few sites... - JJoe - Dec. 13, 2015, 09:28 PM
RE: Can someone give me a few sites... - JJoe - Dec. 14, 2015, 12:32 AM
RE: Can someone give me a few sites... - Faxopita - Dec. 14, 2015 09:30 AM

Forum Jump: