X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=user.action;h=4d93a804eec5d181df3f2ee6622270103b9c176b;hp=9756da15772686aed964977a33f0b62d1a878b54;hb=b501f2a356f6a2f8c2a9b3b4461315930f9459a5;hpb=bf4a17c7819019ce13d9ebf49359a9b3380a5501 diff --git a/user.action b/user.action index 9756da15..4d93a804 100644 --- a/user.action +++ b/user.action @@ -1,11 +1,9 @@ ###################################################################### # -# File : $Source: /cvsroot/ijbswa/current/user.action,v $ +# File : user.action # -# $Id: user.action,v 1.1 2002/04/24 02:20:24 oes Exp $ -# # Purpose : User-maintained actions file, see -# http://www.privoxy.org/user-manual/actions-file.html +# https://www.privoxy.org/user-manual/actions-file.html # ###################################################################### @@ -14,7 +12,7 @@ # safe from updates to default.action.) Later defined actions always # take precedence, so anything defined here should have the last word. -# See http://www.privoxy.org/user-manual/actions-file.html, or the +# See https://www.privoxy.org/user-manual/actions-file.html, or the # comments in default.action, for an explanation of what an "action" is # and what each action does. @@ -28,35 +26,46 @@ {{alias}} ############################################################################# # -# Aliases must be defined before they are used and are local to the -# actions file that they are defined in, you can't use the ones from -# default.action, unless you repeat them here: - +# You can define a short form for a list of permissions - e.g., instead +# of "-crunch-incoming-cookies -crunch-outgoing-cookies -filter -fast-redirects", +# you can just write "shop". This is called an alias. +# +# Currently, an alias can contain any character except space, tab, '=', '{' +# or '}'. +# But please use only 'a'-'z', '0'-'9', '+', and '-'. +# +# Alias names are not case sensitive. +# +# Aliases beginning with '+' or '-' may be used for system action names +# in future releases - so try to avoid alias names like this. (e.g. +# "+crunch-all-cookies" below is not a good name) +# +# Aliases must be defined before they are used. # -# These aliases just save typing later, and the alias names should -# be self explanatory. +# These aliases just save typing later: # +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies - allow-all-cookies = -crunch-all-cookies -session-cookies-only - allow-popups = -filter{popups} -kill-popups -+block-as-image = +block +handle-as-image + allow-all-cookies = -crunch-all-cookies -session-cookies-only -filter{content-cookies} + allow-popups = -filter{all-popups} -filter{unsolicited-popups} ++block-as-image = +block{Blocked image request.} +handle-as-image -block-as-image = -block -# These aliases define combinations of actions that are useful for -# certain types of sites: +# These aliases define combinations of actions +# that are useful for certain types of sites: # -fragile = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups +fragile = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -prevent-compression shop = -crunch-all-cookies allow-popups # Your favourite blend of filters: # -myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{popups}\ - +filter{webbugs} +filter{nimda} +filter{banners-by-size} #+filter{fun} +myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{all-popups}\ + +filter{webbugs} +filter{banners-by-size} # Allow ads for selected useful free sites: # allow-ads = -block -filter{banners-by-size} -filter{banners-by-link} +#... etc. Customize to your heart's content. ## end aliases ######################################################## ####################################################################### @@ -70,6 +79,7 @@ allow-ads = -block -filter{banners-by-size} -filter{banners-by-link} # direction, and the processing of cookies to make them only temporary. # { allow-all-cookies } +#.sourceforge.net #sunsolve.sun.com #slashdot.org #.yahoo.com @@ -77,50 +87,53 @@ allow-ads = -block -filter{banners-by-size} -filter{banners-by-link} #.redhat.com # Say the site where you do your homebanking needs to open popup -# windows, but you have chosen to kill popups by default. This will -# allow it for your-example-bank.com: +# windows, but you have chosen to kill popups uncoditionally by default. +# This will allow it for your-example-bank.com: # -{ -filter{popups} -kill-popups } -.your-example-bank.com +{ -filter{all-popups} } +.banking.example.com -# Some hosts and some file types you may not want to filter. Privoxy -# makes no distinctions between regular web pages and downloads done via -# your web browser if it is an html or text type document. +# Some hosts and some file types you may not want to filter for +# various reasons: # { -filter } -#localhost -#apache_server.mylan -# A list of common file extensions that are likely to indicate raw -# text, and best if unfiltered. -#/(.*/)?.*\.(pl|(s|p)?h|c(c|xx|pp)?|tcl||am|init?|cfg?|conf(ig)?|txt|rc|bat)$ -# Documentation should not need filtering (at least on some sites). + +# Technical documentation is likely to contain strings that might +# erroneously get altered by the JavaScript-oriented filters: +# #.tldp.org +#/(.*/)?selfhtml/ + +# And this stupid host sends streaming video with a wrong MIME type, +# so that Privoxy thinks it is getting HTML and starts filtering: +# +stupid-server.example.com/ + # Example of a simple "block" action. Say you've seen an ad on your # favourite page on example.com that you want to get rid of. You have # right-clicked the image, selected "copy image location" and pasted -# the URL below while removing the leading http://, into a { +block } +# the URL below while removing the leading http://, into a { +block{reason} } # section. Note that { +handle-as-image } need not be specified, since # all URLs ending in .gif will be tagged as images by the general rules # as set in default.action anyway: # -{ +block } +{ +block{Nasty ads.} } www.example.com/nasty-ads/sponsor.gif -# Here we found one that is not in Privoxy's default blocked list: -#.adbureau.net -# To force URLs that tend to have ad images, but it is difficult for -# Privoxy to know this since the ultimate returned object is obscured -# for one reason or another, we can try to force these to be treated as -# images (and thus avoid Privoxy's "BLOCKED" banner page). Note that if -# what is returned by the server turns out NOT to be an image, then your -# browser typically will display a broken icon image. Use cautiously. +# The URLs of dynamically generated banners, especially from large banner +# farms, often don't use the well-known image file name extensions, which +# makes it impossible for Privoxy to guess the file type just by looking +# at the URL. +# You can use the +block-as-image alias defined above for these cases. +# Note that objects which match this rule but then turn out NOT to be an +# image are typically rendered as a "broken image" icon by the browser. +# Use cautiously. # { +block-as-image } -#.trip.com/.*\.swf #.doubleclick.net #/Realmedia/ads/ -#adremote. +#ar.atwola.com/ # Now you noticed that the default configuration breaks Forbes # Magazine, but you were too lazy to find out which action is the @@ -145,9 +158,47 @@ www.example.com/nasty-ads/sponsor.gif # additions to the default policies of default.action. Some actions are # safe to have their default policies set here though. So let's set a # default policy to have a 'blank' image as opposed to the checkerboard -# pattern for ALL sites. '/' of course matches all URL paths and +# pattern for ALL sites. '/' of course matches all URLs. # patterns: # { +set-image-blocker{blank} } #/ +# Enable the following section (not the regression-test directives) +# to rewrite and redirect click-tracking URLs on news.google.com. +# Disabling JavaScript should work as well and probably works more reliably. +# +# Redirected URL = http://news.google.com/news/url?ct2=us%2F0_0_s_1_1_a&sa=t&usg=AFQjCNHJWPc7ffoSXPSqBRz55jDA0KgxOQ&cid=8797762374160&url=http%3A%2F%2Fonline.wsj.com%2Farticle%2FSB10001424052970204485304576640791304008536.html&ei=YcqeTsymCIjxggf8uQE&rt=HOMEPAGE&vm=STANDARD&bvm=section&did=-6537064229385238098 +# Redirect Destination = http://online.wsj.com/article/SB10001424052970204485304576640791304008536.html +# Ignore = Yes +# +#{+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 + +######### Examples for SSL actions ######### +# Following section enables TLS/SSL filtering for all sites defined by pattern and requested by HTTPS. +# {+https-inspection} +# privoxy.org + +# Following section turns off certificate verification for all sites defined by pattern. +# {+ignore-certificate-errors} +# privoxy.org