Stopping stupid or malicious users from breaking the actions
[privoxy.git] / ijb.action
index ba38496..3f894a6 100644 (file)
@@ -3,8 +3,35 @@
 #
 # For information, see http://ijbswa.sourceforge.net/
 #
-# $Id: ijb.action,v 1.3 2002/03/05 14:35:39 morcego Exp $
+# $Id: ijb.action,v 1.8 2002/03/12 01:42:50 oes Exp $
 #
+#  Purpose     :  Default actions file, see
+#                 http://ijbswa.sourceforge.net/faq/questions.html#CONFIGFILES
+# 
+# We value your feedback. However, to provide you with the best support,
+# please note:
+#  
+#  * Use the support forum to get help:
+#    http://sourceforge.net/tracker/?group_id=11118&atid=211118
+#  * Submit bugs only thru our bug forum:
+#    http://sourceforge.net/tracker/?group_id=11118&atid=111118 
+#    Make sure that the bug has not already been submitted. Please try
+#    to verify that it is a Junkbuster bug, and not a browser or site
+#    bug first. If you are using your own custom configuration, please
+#    try the stock configs to see if the problem is a configuration
+#    related bug. And if not using the latest development snapshot,
+#    please try the latest one. Or even better, CVS sources.
+#  * Submit feature requests only thru our feature request forum:
+#    http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse
+#      
+# For any other issues, feel free to use the mailing lists:
+# http://sourceforge.net/mail/?group_id=11118
+#    
+# Anyone interested in actively participating in development and related
+# discussions can join the appropriate mailing list here:
+# http://sourceforge.net/mail/?group_id=11118. Archives are available
+# here too.
+# 
 #############################################################################
 # Syntax
 #############################################################################
 #    request and send a local redirect back to your browser without
 #    contacting the remote site.
 #
-# +filter
-#    Filter the website through the re_filterfile
-#    FIXME: The syntax should be +filter{filename}
+# +filter{name}
+#    Filter the website through one or more regular expression filters.
+#    Repeat for multiple filters.
+#   
+#    Filters predefined in the supplied re_filterfile include:
+#
+#     html-annoyances:  Get rid of particularly annoying HTML abuse
+#     js-annoyances:    Get rid of particularly annoying JavaScript abuse
+#     no-poups:         Kill all popups in JS and HTML
+#     frameset-borders: Give frames a border
+#     webbugs:          Squish WebBugs (1x1 invisible GIFs used for user tracking)
+#     no-refresh:       Automatic refresh sucks on auto-dialup lines
+#     fun:              Text replacements  for subversive browsing fun!
+#     nimda:            Remove (virus) Nimda code.
+#     banners-by-size:  Kill banners by size
+#     crude-parental:   Kill all web pages that contain the words "sex" or "warez"
+#
 #
 # +hide-forwarded
 #    Block any existing X-Forwarded-for header, and do not add a new one.
 #
 # +image-blocker{logo}
 # +image-blocker{blank}
-# +image-blocker{http://i.j.b/send-banner}
+# +image-blocker{pattern}
+# +image-blocker{<URL>} with <url> being any valid image URL
 #    Decides what to do with URLs that end up tagged with {+block +image}.
-#    There are 4 options.  "-image-blocker" will send a HTML "blocked" page,
+#    There are 5 options.  "-image-blocker" will send a HTML "blocked" page,
 #    usually resulting in a "broken image" icon.  "+image-blocker{logo}"
 #    will send a "JunkBuster" image.  "+image-blocker{blank}" will send
-#    a 1x1 transparent GIF.  And finally, "+image-blocker{http://xyz.com}"
-#    will send a HTTP temporary redirect to the specified image - this 
-#    has the advantage of the icon being beeing cached by the browser,
-#    which will speed up the display.  
+#    a 1x1 transparent image, "+image-blocker{pattern}" will send a 4x4
+#    grey/white pattern which is less intrusive than the logo but easier
+#    to recognize than the transparent one. And finally, "+image-blocker{<URL>}"
+#    will send a HTTP temporary redirect to the specified image URL.
 #
 #
 # +limit-connect{portlist}
 +no-cookies = +no-cookies-set +no-cookies-read
 -no-cookies = -no-cookies-set -no-cookies-read
 +imageblock = +block +image
-+filter-all = +filter +no-compression
 
 # Fragile sites should have the minimum changes
 fragile     = -block -deanimate-gifs -fast-redirects -filter -hide-referer -no-cookies -no-popups
@@ -324,6 +365,11 @@ fragile     = -block -deanimate-gifs -fast-redirects -filter -hide-referer -no-c
 # Shops should be allowed to set persistent cookies
 shop        = -filter -no-cookies -no-cookies-keep
 
+# Your favourite blend of filters:
+#
+myfilters   = +filter{html-annoyances} +filter{js-annoyances} +filter{no-popups}\
+              +filter{webbugs} +filter{nimda} +filter{banners-by-size}
+
 #... etc.  Customize to your heart's content.
 
 #############################################################################
@@ -335,7 +381,7 @@ shop        = -filter -no-cookies -no-cookies-keep
 -deanimate-gifs \
 -downgrade \
 +fast-redirects \
-+filter \
+myfilters \
 +no-compression \
 +no-cookies-keep \
 +hide-forwarded \
@@ -496,6 +542,7 @@ ar.atwola.com # This serves all ads for CNN and AOL
 /?.*/ad(sdna_image|gifs?)/
 /?.*/ad(server|stream|juggler)\.(cgi|pl|dll|exe)
 /?.*/adbanners/
+/?.*/ad_banner/
 /?.*/adserver
 /?.*/adstream\.cgi
 /?.*/adv((er)?ts?|ertis(ing|ements?))?/