From 8bc6d3ab2c5f115c77b112ca2d528b2c21aab1db Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 26 Oct 2011 19:00:21 +0000 Subject: [PATCH] Add a (disabled) section to block various Facebook tracking URLs Reported by Dan Stahlke in #3421764. The suggested section has been slightly adjusted and regression tests added (also disabled). --- user.action | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/user.action b/user.action index 72f58646..84d31528 100644 --- a/user.action +++ b/user.action @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/user.action,v $ # -# $Id: user.action,v 1.10 2011/10/26 18:58:37 fabiankeil Exp $ +# $Id: user.action,v 1.11 2011/10/26 19:00:11 fabiankeil Exp $ # # Purpose : User-maintained actions file, see # http://www.privoxy.org/user-manual/actions-file.html @@ -176,3 +176,22 @@ www.example.com/nasty-ads/sponsor.gif # #{+redirect{s@(&url=http[^&]*)&.*$@$1@} +fast-redirects{check-decoded-url}} #news.google.com/news/url.*&url=http.*& + +# Enable the following section (not the regression-test directives) +# to block various Facebook "like" and similar tracking URLs. At the +# time this section was added it was reported to not break Facebook +# itself but this may have changed by the time you read this. This URL +# list is probably incomplete and if you don't have an account anyway, +# you may prefer to block the whole domain. +# +# Blocked URL = http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2Farstechnica&width=300&colorscheme=light&show_faces=false&stream=false&header=false&height=62&border_color=%23FFFFFF +# Ignore = Yes +# Blocked URL = http://www.facebook.com/plugins/activity.php?site=arstechnica.com&width=300&height=370&header=false&colorscheme=light&recommendations=false&border_color=%23FFFFFF +# Ignore = Yes +# Blocked URL = http://www.facebook.com/plugins/fan.php?api_key=368513495882&connections=10&height=250&id=8304333127&locale=en_US&sdk=joey&stream=false&width=377 +# Ignore = Yes +# Blocked URL = http://www.facebook.com/plugins/like.php?api_key=368513495882&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13997452c%26origin%3Dhttp%253A%252F%252Fonline.wsj.com%252Ff1b037e354%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fonline.wsj.com%2Farticle%2FSB10001424052970204485304576640791304008536.html&layout=button_count&locale=en_US&node_type=link&ref=wsj_share_FB&sdk=joey&send=false&show_faces=false&width=90 +# Ignore = Yes +# +#{+block{Facebook "like" and similar tracking URLs.}} +#www.facebook.com/(extern|plugins)/(login_status|like(box)?|activity|fan)\.php -- 2.39.2