X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=templates%2Fedit-actions-for-url;h=2c9f470dcc5fd1458cca0996d12e5eaabdb1b2f5;hp=d1153320e2daeb1d149146ed8fc1be439fcc4496;hb=cf9f517a263476946c02425c48dcf9118314454a;hpb=1f5413e6ae84f622b4302b55d069108c9cc1c871 diff --git a/templates/edit-actions-for-url b/templates/edit-actions-for-url index d1153320..2c9f470d 100644 --- a/templates/edit-actions-for-url +++ b/templates/edit-actions-for-url @@ -6,7 +6,7 @@ # particular section in an actions file. # # -# Copyright : Written by and Copyright (C) 2001 the SourceForge +# Copyright : Written by and Copyright (C) 2001-2008 the SourceForge # Privoxy team. http://www.privoxy.org/ # # Original Author: Copyright (C) 2001 Jonathan Foster @@ -32,6 +32,81 @@ # # Revisions : # $Log: edit-actions-for-url,v $ +# Revision 1.54 2008/03/29 12:14:27 fabiankeil +# Remove send-wafer and send-vanilla-wafer actions. +# +# Revision 1.53 2008/03/28 15:13:45 fabiankeil +# Remove inspect-jpegs action. +# +# Revision 1.52 2008/03/15 14:52:36 fabiankeil +# Add CGI editor support for the "disable all filters of this type" +# directives "-client-header-filter", "-server-header-filter", +# "-client-header-tagger" and "-server-header-tagger". +# +# Revision 1.51 2008/03/07 16:46:49 fabiankeil +# Reword limit-connect{} entry. +# +# Revision 1.50 2008/03/04 18:30:44 fabiankeil +# Remove the treat-forbidden-connects-like-blocks action. We now +# use the "blocked" page for forbidden CONNECT requests by default. +# +# Revision 1.49 2008/03/01 14:00:47 fabiankeil +# Let the block action take the reason for the block +# as argument and show it on the "blocked" page. +# +# Revision 1.48 2007/12/11 21:18:55 fabiankeil +# Make forward-override accessible through the CGI editor. +# +# Revision 1.47 2007/12/06 18:21:55 fabiankeil +# Update hide-forwarded-for-headers description. +# +# Revision 1.46 2007/11/10 15:06:10 fabiankeil +# - Add support for +hide-referrer{conditional-forge}. +# - Minor rewordings. +# +# Revision 1.45 2007/05/24 13:38:45 fabiankeil +# Two minor fixes. +# +# Revision 1.44 2007/04/15 16:39:21 fabiankeil +# Introduce tags as alternative way to specify which +# actions apply to a request. At the moment tags can be +# created based on client and server headers. +# +# Revision 1.43 2007/03/29 11:40:34 fabiankeil +# Divide @filter-params@ into @client-header-filter-params@ +# @content-filter-params@ and @server-header-filter-params@. +# +# Revision 1.42 2007/03/20 15:40:00 fabiankeil +# Adjust to new world order with dedicated header-filter actions. +# +# Revision 1.41 2007/01/23 16:03:16 fabiankeil +# - Add favicon links. +# - Remove useless W3C validator links. +# +# Revision 1.40 2006/12/21 13:01:03 fabiankeil +# Prepare for "split-large-forms". +# +# Mention that redirect{} now also understands +# a single pcrs job as argument. +# +# Add some table summaries and remove useless validator link. +# +# Revision 1.39 2006/10/04 17:37:54 fabiankeil +# JavaScript fix for bug report #1570678. +# +# Revision 1.38 2006/09/08 12:06:35 fabiankeil +# Have hide-if-modified-since interpret the random +# range value as minutes instead of hours. Allows +# more fine-grained configuration. +# +# Revision 1.37 2006/09/05 18:20:14 fabiankeil +# Sorted alphabetically, fixed spelling mistakes +# and shortened some descriptions. +# +# Revision 1.36 2006/08/14 08:29:17 fabiankeil +# Split filter-headers{} into filter-client-headers{} +# and filter-server-headers{}. +# # Revision 1.35 2006/08/03 02:46:42 david__schmidt # Incorporate Fabian Keil's patch work: http://www.fabiankeil.de/sourcecode/privoxy/ # @@ -222,6 +297,7 @@ + Privoxy@@my-hostname@: Edit actions @@ -371,27 +447,17 @@ function show_limit_connect_opts(tf) target.style.display = (tf ? "" : "none"); } -function show_send_wafer_opts(tf) -{ - if (document.getElementById) { - target = document.getElementById("send_wafer_opts"); - } else if (document.all) { - target = document.send_wafer_opts; - } else { - return; - } - target.style.display = (tf ? "" : "none"); -} - //--> +
+ - +
+ + + + + - + - + - - - -
@@ -411,6 +477,7 @@ function show_send_wafer_opts(tf)

Edit Actions @@ -426,10 +493,16 @@ function show_send_wafer_opts(tf)

- + + +

Edit Actions (Section 1)

+ + +
@@ -470,8 +543,129 @@ function show_send_wafer_opts(tf) name="block" value="X" @block-x@ > - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@client-header-filter-params@ + + + + + + + +@client-header-tagger-params@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + - - - - - - - @@ -575,6 +779,28 @@ function show_send_wafer_opts(tf) id="fast_redirects_check_decoded_url" @fast-redirects-param-check-decoded-url@> + +
Enable Disable blockBlock the requestBlock the request.
    Block reason to tell the user:
+ +
change-x-forwarded-forSpecifies whether to block or add X-Forwarded-For headers.
    
+
+
 client-header-filter *Filter the client headers. + You can use the radio buttons on this line to disable + all client-header filters applied by previous rules, and/or + you can enable or disable the filters individually below.
 client-header-tagger *Create tags based on the client headers. + You can use the radio buttons on this line to disable + all client-header taggers applied by previous rules, and/or + you can enable or disable the taggers individually below.
content-type-overwriteReplace Content-Type header. By default it only applies to + text documents, but if you know what you're doing you + can enable force-text-mode to modify binary content types as well.
    New Content-Type:
+
crunch-client-headerRemove header(s) matching the supplied pattern.
    Header string to suppress:
+
crunch-if-none-matchRemove If-None-Match header. Useful for filter testing + and to make sure the header can't be used to track your visits.
crunch-incoming-cookiesPrevent the website from setting cookies on your system.Prevent the website from setting HTTP cookies on your system.
crunch-outgoing-cookiesPrevent the website from reading cookies from your system.Prevent the website from reading HTTP cookies from your system.
crunch-server-headerRemove server header(s) matching the supplied pattern.
    Header string to suppress:
+
inspect-jpegsChecks jpeg images for malicious content.
+

+ + + + +

+ +
+
+

Edit Actions (Section 2)

+ + + + + + + + + -@filter-params@ - - - - - - - - - - - - - + +@content-filter-params@ + + +
EnableDisableNo ChangeActionDescription
 
handle-as-imageRequest is for an image (only useful in conjunction with the block - and set-image-blocker actions).
hide-forwarded-for-headersBlock any existing X-Forwarded-for header, and do not add a new one.
+

+ + + + +

+
+
+
+

Edit Actions (Section 3)

+ + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - + + - + - - - - - - - - @@ -771,71 +897,22 @@ function show_send_wafer_opts(tf) Block with an empty document instead of an Image or HTML message. The empty document contains only a space and can safely be parsed as JavaScript or Style Sheet. Use content-type-overwrite to specify the - Content-Type, default is test/html. + Content-Type, default is text/html. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + but you may end up with content in the language you pretended to understand.) @@ -861,7 +938,7 @@ function show_send_wafer_opts(tf) onclick="hide_accept_language_param_disable(true)" @hide-accept-language-param-block@ id="hide_accept_language_mode_block"> - This isn't the option you're looking for.
+
- - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + +
EnableDisableNo ChangeActionDescription
hide-if-modified-sinceRemove or randomize If-Modified-Since header.
     - Useful for filter testing.
- - hour(s). - To appreciate this option a small amount of paranoia is required, - but at least in theory the If-Modified-Since header could be used - to keep track of your visits. -
overwrite-last-modifiedRemove or randomize If-Modified-Since header.
     - Useless.
- -
- -
- +
force-text-mode + Enable filtering on documents whose Content-Type wasn't recognized as text. + Do think twice, nothing is alright.
crunch-if-none-matchRemove If-None-Match header to circumvent browser cache. Useful for filter testing, - but hurts performance.
content-type-overwriteReplace Content-Type header. Useful to let the browser render broken - XHTML as broken - HTML. By default it only applies to - text documents, if you know what you're doing you - can enable force-text-mode to modify binary content types as well.forward-overrideOverride forward directives in the configuration file. + Note that the parameter syntax + isn't checked until the action is used. Syntax errors + will cause Privoxy to exit.
       New Content-Type:
-
force-text-mode - Enable filtering on documents whose Content-Type wasn't recognized as text. - Do think twice, nothing is alright. + Overriding forward directive:
+
treat-forbidden-connects-like-blocks - Answer forbidden Connect requests with the usual block message. - May be a protocol violation, but makes unblocking easier. -
crunch-client-headerRemove header(s) matching the supplied pattern. Together with add-header you can - build a custom header replacement action.
    Header string to suppress:
-
crunch-server-headerRemove server header(s) matching the supplied pattern.
    Header string to suppress:
-
handle-as-imageRequest is for an image (only useful in conjunction with the block + and set-image-blocker actions).
hide-accept-language Pretend to have different language settings. (Makes a fake User-Agent more believable, - but can lead to foreign content.)
 
redirectRedirect to another address. -
    Address to redirect to:
-
filter-client-headersApply filters to the client headers as well. Only enable this if you know what you're doing.
filter-server-headersApply filters to the server headers as well. Only enable this if you know what you're doing.hide-forwarded-for-headersRemove any existing X-Forwarded-for header.
hide-if-modified-sinceRemove or randomize the If-Modified-Since header.
     + Useful for filter testing.
+ + minute(s). + To appreciate this option a small amount of paranoia is required, + but at least in theory the If-Modified-Since header could be used + to keep track of your visits. +
+

+ + + + +

+
+
+
+

Edit Actions (Section 4)

+ + + + + + + + + + Less suspicious than the options above.
+
+ - + @@ -1050,20 +1156,6 @@ function show_send_wafer_opts(tf) - - - - - - - - + - + + + + + + + + + + + + + + + + or kill-popups + if your Privoxy version was build without zlib support. - + - - + + + + + + + + + - + + name="server_header_filter_all" id="server_header_filter_all_n" value="N" @server-header-filter-all-n@ > - - + name="server_header_filter_all" id="server_header_filter_all_x" value="X" @server-header-filter-all-x@ > + + - +@server-header-filter-params@ + - - - - + + + + +@server-header-tagger-params@ -
EnableDisableNo ChangeActionDescription

hide-user-agentPretend to be using a different web browser.  (Breaks many web - sites).Pretend to be using a different web browser.  (May cause problems with broken web sites).
 
kill-popupsFilter the website through a built-in filter to disable many JavaScript - pop-up windows.
limit-connectSpecify which ports are allowed for SSL (HTTP CONNECT) access. - Note that this allows arbitrary tunnelling, so opening all - ports would be a security hole.Limit which ports are allowed in HTTP CONNECT requests. These requests are + used to tunnel SSL and other protocols through HTTP proxies.
       Legal SSL ports (comma separated, ranges allowed):
+
Legal ports (comma separated, ranges allowed):
overwrite-last-modifiedRemove or randomize the Last-Modified header.
     +
+ +
+ +
prevent-compression Disables compression. Compressed web pages are faster to download, but cannot be filtered with filter - or kill-popups. - This setting only affects the few web sites which support - compression.
send-vanilla-waferAdds a special wafer (standard cookie) to all your requests.redirectRedirect to another address. +
    Static address or a single pcrs command to redirect to a rewritten version of the original URL:
+
  send-waferAdds user-specified cookies.server-header-filter *Filter the server headers. + You can use the radio buttons on this line to disable + all server-header filters applied by previous rules, and/or + you can enable or disable the filters individually below.
    Editing the settings for this option, or turning - it on if it was off, is not yet supported using this web-based - editor.server-header-tagger *Create tags based on the server headers. + You can use the radio buttons on this line to disable + all server-header taggers applied by previous rules, and/or + you can enable or disable the taggers individually below.
session-cookies-onlyAny cookies set by the website are changed to temporary + HTTP cookies set by the website are changed to temporary ("per-session") ones, which only last until you close your web browser. This will allow you to use sites that require cookies, but sites will not be able to track you across sessions. For this to @@ -1198,14 +1340,23 @@ function show_send_wafer_opts(tf)
+ +

+ + + + +

+
+

More Privoxy:

@@ -1231,15 +1382,10 @@ function show_send_wafer_opts(tf)
- Valid HTML 4.01 Strict -
+ - +