The web proxy Privoxy is one of the best tools to remove malicious code or annoyances from html files and stylesheets, before they hit the browser. With Privoxy some very interesting things are possible.
Spyware: No spyware allowed here
Google Analytics has absolutely no use for me. Instead i realized that pages using google analytics are extremely slow to load. Probably the server is overloaded. So i decided to remove any reference to google analytics. This filter then has to be activated in the user.action:
################################################################################# # # spyware: Avoid any kind of spyware. # appended to /etc/privoxy/default.filter # ################################################################################# FILTER: spyware remove any reference to spyware s%
script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"
%% s/urchinTracker\(\);//gBasic setup
I've done these modifications to the "myfilters" alias in the user.action (especially the filter "popups" does not exist, but instead the filter "all-popups"):
# Your favourite blend of filters: # myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{all-popups}\ +filter{tiny-textforms} +filter{jumping-windows}\ +filter{webbugs} +filter{banners-by-size} +filter{spyware}
Additionally activated this filter at the end of user.action:
{ myfilters } /