You are not logged in.

#1 2011-07-29 11:57:06

yasar11732
Member
Registered: 2010-11-29
Posts: 127

[SOLVED]Help with privoxy configuration

Hi,

I am trying to add custom filter to my privoxy, but appereantly it doesn't work.

user.action

+filter{google-analytics}
/

default.filter

FILTER: google-analytics remove google analytics
s|<script\s[^>]*?google-analytics.com/urchin.js[^>]*>.*?</script>||gis
s|\burchinTracker\(\);||gis
s|<script\s[^>]*?google-analytics.com/ga.js[^>]*>.*?</script>||gis
s|\b_gaq[^(]*?\([^)]*?);||gis

Should I have done anything else?

Last edited by yasar11732 (2011-07-29 12:40:53)


Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#2 2011-07-29 12:40:36

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Re: [SOLVED]Help with privoxy configuration

Sorry with the annoyance, problem was with the regular expression, not configuration smile


Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#3 2011-09-03 10:51:13

newt
Member
From: Jakarta - Indonesia
Registered: 2008-10-26
Posts: 14

Re: [SOLVED]Help with privoxy configuration

Ad this to your user.action :

###################
{+block{Google crap} \
+handle-as-empty-document \
}
googlesyndication.com/.*\.js$
google-analytics.com/.*\.js$
###################


¡ pıdnʇs 'ǝldɯıs ʇı dǝǝʞ

Offline

Board footer

Powered by FluxBB