1 ######################################################################
3 # File : $Source: /cvsroot/ijbswa/current/user.action,v $
5 # $Id: user.action,v 1.2 2002/10/21 02:36:20 hal9 Exp $
7 # Purpose : User-maintained actions file, see
8 # http://www.privoxy.org/user-manual/actions-file.html
10 ######################################################################
12 # This is the place to add your personal exceptions and additions to
13 # the general policies as defined in default.action. (Here they will be
14 # safe from updates to default.action.) Later defined actions always
15 # take precedence, so anything defined here should have the last word.
17 # See http://www.privoxy.org/user-manual/actions-file.html, or the
18 # comments in default.action, for an explanation of what an "action" is
19 # and what each action does.
21 # The examples included here either use bogus sites, or have the actual
22 # rules commented out (with the '#' character). Useful aliases are
23 # included in the top section as a convenience.
25 #############################################################################
27 #############################################################################
29 #############################################################################
31 # Aliases must be defined before they are used and are local to the
32 # actions file that they are defined in, you can't use the ones from
33 # default.action, unless you repeat them here:
36 # These aliases just save typing later, and the alias names should
37 # be self explanatory.
39 +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
40 -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
41 allow-all-cookies = -crunch-all-cookies -session-cookies-only -filter{content-cookies}
42 allow-popups = -filter{popups} -kill-popups
43 +block-as-image = +block +handle-as-image
44 -block-as-image = -block
46 # These aliases define combinations of actions that are useful for
47 # certain types of sites:
49 fragile = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups
50 shop = -crunch-all-cookies allow-popups
52 # Your favourite blend of filters:
54 myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{popups}\
55 +filter{webbugs} +filter{nimda} +filter{banners-by-size} #+filter{fun}
57 # Allow ads for selected useful free sites:
59 allow-ads = -block -filter{banners-by-size} -filter{banners-by-link}
61 ## end aliases ########################################################
62 #######################################################################
64 # Begin examples: #####################################################
66 # Say you have accounts on some sites that you visit regularly, and you
67 # don't want to have to log in manually each time. So you'd like to allow
68 # persistent cookies for these sites. The allow-all-cookies alias defined
69 # above does exactly that, i.e. it disables crunching of cookies in any
70 # direction, and the processing of cookies to make them only temporary.
79 # Say the site where you do your homebanking needs to open popup
80 # windows, but you have chosen to kill popups by default. This will
81 # allow it for your-example-bank.com:
83 { -filter{popups} -kill-popups }
84 .your-example-bank.com
86 # Some hosts and some file types you may not want to filter. Privoxy
87 # makes no distinctions between regular web pages and downloads done via
88 # your web browser if it is an html or text type document.
93 # A list of common file extensions that are likely to indicate raw
94 # text, and best if unfiltered.
95 #/(.*/)?.*\.(pl|(s|p)?h|c(c|xx|pp)?|tcl||am|init?|cfg?|conf(ig)?|txt|rc|bat)$
96 # Documentation should not need filtering (at least on some sites).
99 # Example of a simple "block" action. Say you've seen an ad on your
100 # favourite page on example.com that you want to get rid of. You have
101 # right-clicked the image, selected "copy image location" and pasted
102 # the URL below while removing the leading http://, into a { +block }
103 # section. Note that { +handle-as-image } need not be specified, since
104 # all URLs ending in .gif will be tagged as images by the general rules
105 # as set in default.action anyway:
108 www.example.com/nasty-ads/sponsor.gif
109 # Here we found one that is not in Privoxy's default blocked list:
112 # To force URLs that tend to have ad images, but it is difficult for
113 # Privoxy to know this since the ultimate returned object is obscured
114 # for one reason or another, we can try to force these to be treated as
115 # images (and thus avoid Privoxy's "BLOCKED" banner page). Note that if
116 # what is returned by the server turns out NOT to be an image, then your
117 # browser typically will display a broken icon image. Use cautiously.
125 # Now you noticed that the default configuration breaks Forbes
126 # Magazine, but you were too lazy to find out which action is the
127 # culprit, and you were again too lazy to give feedback, so you just
128 # used the fragile alias on the site, and -- whoa! -- it worked. The
129 # 'fragile' aliases disables those actions that are most likely to break
130 # a site. Also, good for testing purposes to see if it is Privoxy that
131 # is causing the problem or not.
136 # Here are some sites we wish to support, and we will allow their ads
144 # user.action is generally the best place to define exceptions and
145 # additions to the default policies of default.action. Some actions are
146 # safe to have their default policies set here though. So let's set a
147 # default policy to have a 'blank' image as opposed to the checkerboard
148 # pattern for ALL sites. '/' of course matches all URL paths and
151 { +set-image-blocker{blank} }
154 ## set vi:nowrap tw=72