user.action 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. ######################################################################
  2. #
  3. # File : user.action
  4. #
  5. # Purpose : User-maintained actions file, see
  6. # https://www.privoxy.org/user-manual/actions-file.html
  7. #
  8. ######################################################################
  9. # This is the place to add your personal exceptions and additions to
  10. # the general policies as defined in default.action. (Here they will be
  11. # safe from updates to default.action.) Later defined actions always
  12. # take precedence, so anything defined here should have the last word.
  13. # See https://www.privoxy.org/user-manual/actions-file.html, or the
  14. # comments in default.action, for an explanation of what an "action" is
  15. # and what each action does.
  16. # The examples included here either use bogus sites, or have the actual
  17. # rules commented out (with the '#' character). Useful aliases are
  18. # included in the top section as a convenience.
  19. #############################################################################
  20. # Aliases
  21. #############################################################################
  22. {{alias}}
  23. #############################################################################
  24. #
  25. # You can define a short form for a list of permissions - e.g., instead
  26. # of "-crunch-incoming-cookies -crunch-outgoing-cookies -filter -fast-redirects",
  27. # you can just write "shop". This is called an alias.
  28. #
  29. # Currently, an alias can contain any character except space, tab, '=', '{'
  30. # or '}'.
  31. # But please use only 'a'-'z', '0'-'9', '+', and '-'.
  32. #
  33. # Alias names are not case sensitive.
  34. #
  35. # Aliases beginning with '+' or '-' may be used for system action names
  36. # in future releases - so try to avoid alias names like this. (e.g.
  37. # "+crunch-all-cookies" below is not a good name)
  38. #
  39. # Aliases must be defined before they are used.
  40. #
  41. # These aliases just save typing later:
  42. #
  43. +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
  44. -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
  45. allow-all-cookies = -crunch-all-cookies -session-cookies-only -filter{content-cookies}
  46. allow-popups = -filter{all-popups} -filter{unsolicited-popups}
  47. +block-as-image = +block{Blocked image request.} +handle-as-image
  48. -block-as-image = -block
  49. # These aliases define combinations of actions
  50. # that are useful for certain types of sites:
  51. #
  52. fragile = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -prevent-compression
  53. shop = -crunch-all-cookies allow-popups
  54. # Your favourite blend of filters:
  55. #
  56. myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{all-popups}\
  57. +filter{webbugs} +filter{banners-by-size}
  58. # Allow ads for selected useful free sites:
  59. #
  60. allow-ads = -block -filter{banners-by-size} -filter{banners-by-link}
  61. #... etc. Customize to your heart's content.
  62. ## end aliases ########################################################
  63. #######################################################################
  64. # Begin examples: #####################################################
  65. # Say you have accounts on some sites that you visit regularly, and you
  66. # don't want to have to log in manually each time. So you'd like to allow
  67. # persistent cookies for these sites. The allow-all-cookies alias defined
  68. # above does exactly that, i.e. it disables crunching of cookies in any
  69. # direction, and the processing of cookies to make them only temporary.
  70. #
  71. { allow-all-cookies }
  72. #.sourceforge.net
  73. #sunsolve.sun.com
  74. #slashdot.org
  75. #.yahoo.com
  76. #.msdn.microsoft.com
  77. #.redhat.com
  78. # Say the site where you do your homebanking needs to open popup
  79. # windows, but you have chosen to kill popups uncoditionally by default.
  80. # This will allow it for your-example-bank.com:
  81. #
  82. { -filter{all-popups} }
  83. .banking.example.com
  84. # Some hosts and some file types you may not want to filter for
  85. # various reasons:
  86. #
  87. { -filter }
  88. # Technical documentation is likely to contain strings that might
  89. # erroneously get altered by the JavaScript-oriented filters:
  90. #
  91. #.tldp.org
  92. #/(.*/)?selfhtml/
  93. # And this stupid host sends streaming video with a wrong MIME type,
  94. # so that Privoxy thinks it is getting HTML and starts filtering:
  95. #
  96. stupid-server.example.com/
  97. # Example of a simple "block" action. Say you've seen an ad on your
  98. # favourite page on example.com that you want to get rid of. You have
  99. # right-clicked the image, selected "copy image location" and pasted
  100. # the URL below while removing the leading http://, into a { +block{reason} }
  101. # section. Note that { +handle-as-image } need not be specified, since
  102. # all URLs ending in .gif will be tagged as images by the general rules
  103. # as set in default.action anyway:
  104. #
  105. { +block{Nasty ads.} }
  106. www.example.com/nasty-ads/sponsor.gif
  107. # The URLs of dynamically generated banners, especially from large banner
  108. # farms, often don't use the well-known image file name extensions, which
  109. # makes it impossible for Privoxy to guess the file type just by looking
  110. # at the URL.
  111. # You can use the +block-as-image alias defined above for these cases.
  112. # Note that objects which match this rule but then turn out NOT to be an
  113. # image are typically rendered as a "broken image" icon by the browser.
  114. # Use cautiously.
  115. #
  116. { +block-as-image }
  117. #.doubleclick.net
  118. #/Realmedia/ads/
  119. #ar.atwola.com/
  120. # Now you noticed that the default configuration breaks Forbes
  121. # Magazine, but you were too lazy to find out which action is the
  122. # culprit, and you were again too lazy to give feedback, so you just
  123. # used the fragile alias on the site, and -- whoa! -- it worked. The
  124. # 'fragile' aliases disables those actions that are most likely to break
  125. # a site. Also, good for testing purposes to see if it is Privoxy that
  126. # is causing the problem or not.
  127. #
  128. { fragile }
  129. #.forbes.com
  130. # Here are some sites we wish to support, and we will allow their ads
  131. # through.
  132. #
  133. { allow-ads }
  134. #.sourceforge.net
  135. #.slashdot.org
  136. #.osdn.net
  137. # user.action is generally the best place to define exceptions and
  138. # additions to the default policies of default.action. Some actions are
  139. # safe to have their default policies set here though. So let's set a
  140. # default policy to have a 'blank' image as opposed to the checkerboard
  141. # pattern for ALL sites. '/' of course matches all URLs.
  142. # patterns:
  143. #
  144. { +set-image-blocker{blank} }
  145. #/
  146. # Enable the following section (not the regression-test directives)
  147. # to rewrite and redirect click-tracking URLs on news.google.com.
  148. # Disabling JavaScript should work as well and probably works more reliably.
  149. #
  150. # 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
  151. # Redirect Destination = http://online.wsj.com/article/SB10001424052970204485304576640791304008536.html
  152. # Ignore = Yes
  153. #
  154. #{+fast-redirects{check-decoded-url}}
  155. #news.google.com/news/url.*&url=http.*&
  156. # Enable the following section (not the regression-test directives)
  157. # to block various Facebook "like" and similar tracking URLs. At the
  158. # time this section was added it was reported to not break Facebook
  159. # itself but this may have changed by the time you read this. This URL
  160. # list is probably incomplete and if you don't have an account anyway,
  161. # you may prefer to block the whole domain.
  162. #
  163. # 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
  164. # Ignore = Yes
  165. # 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
  166. # Ignore = Yes
  167. # 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
  168. # Ignore = Yes
  169. # 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
  170. # Ignore = Yes
  171. #
  172. #{+block{Facebook "like" and similar tracking URLs.}}
  173. #www.facebook.com/(extern|plugins)/(login_status|like(box)?|activity|fan)\.php
  174. ######### Examples for SSL actions #########
  175. # Following section enables TLS/SSL filtering for all sites defined by pattern and requested by HTTPS.
  176. # {+https-inspection}
  177. # privoxy.org
  178. # Following section turns off certificate verification for all sites defined by pattern.
  179. # {+ignore-certificate-errors}
  180. # privoxy.org