Post Reply 
Can someone give me a few sites...
Dec. 13, 2015, 08:08 PM
Post: #1
Can someone give me a few sites...
Can someone give me a few sites that will show me if the default filters are really working?

I was also curious about the one that transforms microsoft to microsuck. It doesn't seem to work for me.

I would like to insert after <body>
<base target="_blank">
for forums */forums/*
and google's search result pages.

Maybe I could learn something from something like this. I just don't seem to get "it" from the docs.

Any help would be appreciated.
Add Thank You Quote this message in a reply
Dec. 13, 2015, 09:28 PM
Post: #2
RE: Can someone give me a few sites...
For Privoxy or the Proxomitron?
Add Thank You Quote this message in a reply
Dec. 13, 2015, 10:31 PM
Post: #3
RE: Can someone give me a few sites...
(Dec. 13, 2015 09:28 PM)JJoe Wrote:  For Privoxy or the Proxomitron?

I have ProxHTTPSProxy, SmartCache, and Proxomitron working great on my computer. Works great (everywhere, but especially) on my SSL web email.

I'm trying to get Privoxy working on my Linux box. I have SmartCache working. Once I get Privoxy going, I'll be adding ProxHTTPSProxy.

So, the answer for now is Privoxy.

So, JJoe, you seem to be my #1 hero these days!
Add Thank You Quote this message in a reply
Dec. 14, 2015, 12:32 AM
Post: #4
RE: Can someone give me a few sites...
(Dec. 13, 2015 10:31 PM)Aunt Elsie Wrote:  So, the answer for now is Privoxy.

To Privoxy questions, I plead insufficient and dated knowledge.

Sorry...
Add Thank You Quote this message in a reply
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
Dec. 14, 2015, 12:58 PM (This post was last modified: Dec. 14, 2015 07:44 PM by Faxopita.)
Post: #6
RE: Can someone give me a few sites...
(Dec. 14, 2015 09:30 AM)Faxopita Wrote:  You must activate Privoxy logging in config file and uncomment out relevant debug modes. In your case, enable…
Code:
debug    64 # debug regular expression filters

Then, review logfile.log and do a grep on filtering.

An alternative to the above is simply typing http://p.p/ in your browser; it's a shortcut for the URL http://config.privoxy.org/. Click on Look up which actions apply to a URL and why and test those queries—they must not be preceded by https.
  • google.com/webhp?hl=en#hl=en&q=PrxBx
  • google.com/search?q=PrxBx
  • google.com/#q=PrxBx
You should see the matched filter.

Note: Encrypted connexions require Privoxy running alongside ProxHTTPSProxyMII.

Obviously, you could also check the page source code to see your change…
Add Thank You Quote this message in a reply
Dec. 15, 2015, 01:01 AM
Post: #7
RE: Can someone give me a few sites...
(Dec. 14, 2015 09:30 AM)Faxopita Wrote:  In user.filter file, add:
FILTER: base_filter _blank
s|(<body[^>]*>)|$1\n<base target="_blank"\n>|sg

In user.action file, add:
{ +filter{base_filter} }
/(.*/)?forums?/
.google.*/(.*(\x26|\x23)|search\?)q=

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

{ +filter{Microsoft} }
/

OMG!!! Thank you so much!
On viewing source I see this:
</head>
<body>
<base target="_blank"
>
So, $1 = <body>
and \n = line feed and the rest makes sense!

Now I'm off to get ProxHTTPSProxy working on the Linux box.
Add Thank You Quote this message in a reply
Dec. 15, 2015, 01:53 PM (This post was last modified: Dec. 15, 2015 01:55 PM by Faxopita.)
Post: #8
RE: Can someone give me a few sites...
(Dec. 15, 2015 01:01 AM)Aunt Elsie Wrote:  </head>
<body>
<base target="_blank"
>
So, $1 = <body>
and \n = line feed and the rest makes sense!

In fact, I misplaced the last \n. The filter should then be rewritten as…
Code:
s|(<body[^>]*>)|$1\n<base target="_blank">\n|sg

Good to know you're happy.
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 


Forum Jump: