# particular section in an actions file.
#
#
-# Copyright : Written by and Copyright (C) 2001 the SourceForge
+# Copyright : Written by and Copyright (C) 2001-2007 the SourceForge
# Privoxy team. http://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
#
# Revisions :
# $Log: edit-actions-for-url,v $
+# 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{}.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
+ <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<title>Privoxy@@my-hostname@: Edit actions</title>
<body>
+<!-- @if-one-form-only-start -->
<form method="GET" action="edit-actions-submit" id="myform" name="myform">
+<!-- if-one-form-only-end@ -->
- <table cellpadding="20" cellspacing="10" border="0" width="100%">
+ <table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
</tr>
<!-- if-unstable-end@ -->
+<!-- @if-one-form-only-start -->
<tr>
<td class="box">
<h2>Edit Actions
<p><input type="submit" value="Submit" name="Submit"></p>
</td>
</tr>
+<!-- if-one-form-only-end@ -->
<tr><td class="wrapbox">
- <table border="0" cellspacing="2" width="100%" class="wide">
+<!-- @if-multiple-forms-start -->
+<form method="GET" action="edit-actions-submit" id="myform" name="myform">
+ <h2>Edit Actions (Section 1)</h2>
+<!-- if-multiple-forms-end@ -->
+
+ <table summary="Action section 1" border="0" cellspacing="2" width="100%" class="wide">
<tr class="hdr" align="left">
<th class="enh" align="center">Enable</th>
<th class="dish" align="center">Disable</th>
<td class="action"><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></td>
<td>Block the request</td>
</tr>
+
+@client-header-filter-params@
+@client-header-tagger-params@
+
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio"
name="content_type_overwrite" value="Y" @content-type-overwrite-y@
id="fast_redirects_check_decoded_url" @fast-redirects-param-check-decoded-url@><label
for="fast_redirects_check_decoded_url">Decode URL before checking.</label></td>
</tr>
+<!-- @if-multiple-forms-start -->
+ </table>
+ <p>
+ <input type="hidden" name="f" value="@f@">
+ <input type="hidden" name="v" value="@v@">
+ <input type="hidden" name="s" value="@s@">
+ <input type="submit" value="Submit changes in Section 1" name="Submit">
+ </p>
+ </form>
+ </td></tr>
+ <tr><td class="wrapbox">
+ <form method="GET" action="edit-actions-submit" id="myform-2" name="myform">
+ <h2>Edit Actions (Section 2)</h2>
+ <table summary="Action section 2" border="0" cellspacing="2" width="100%" class="wide">
+ <tr class="hdr" align="left">
+ <th class="enh" align="center">Enable</th>
+ <th class="dish" align="center">Disable</th>
+ <th class="noch" align="center">No Change</th>
+ <th>Action</th>
+ <th>Description</th>
+ </tr>
+<!-- if-multiple-forms-end@ -->
<tr class="bg1" align="left" valign="top">
<td class="en1"> </td>
<td class="dis1" align="center" valign="middle"><input type="radio"
all filters applied by previous rules, and/or you can enable or
disable the filters individually below.</td>
</tr>
-@filter-params@
- <tr class="bg1" align="left" valign="top">
- <td class="en1" align="center" valign="middle"><input type="radio"
- name="filter_client_headers" value="Y" @filter-client-headers-y@
- ></td>
- <td class="dis1" align="center" valign="middle"><input type="radio"
- name="filter_client_headers" value="N" @filter-client-headers-n@
- ></td>
- <td class="noc1" align="center" valign="middle"><input type="radio"
- name="filter_client_headers" value="X" @filter-client-headers-x@
- ></td>
- <td class="action"><a href="@user-manual@@actions-help-prefix@FILTER-CLIENT-HEADERS">filter-client-headers</a></td>
- <td>Apply filters to the client headers as well. Only enable this if you know what you're doing.</td>
- </tr>
- <tr class="bg1" align="left" valign="top">
- <td class="en1" align="center" valign="middle"><input type="radio"
- name="filter_server_headers" value="Y" @filter-server-headers-y@
- ></td>
- <td class="dis1" align="center" valign="middle"><input type="radio"
- name="filter_server_headers" value="N" @filter-server-headers-n@
- ></td>
- <td class="noc1" align="center" valign="middle"><input type="radio"
- name="filter_server_headers" value="X" @filter-server-headers-x@
- ></td>
- <td class="action"><a href="@user-manual@@actions-help-prefix@FILTER-SERVER-HEADERS">filter-server-headers</a></td>
- <td>Apply filters to the server headers as well. Only enable this if you know what you're doing.</td>
- </tr>
+@content-filter-params@
+
+<!-- @if-multiple-forms-start -->
+ </table>
+ <p>
+ <input type="hidden" name="f" value="@f@">
+ <input type="hidden" name="v" value="@v@">
+ <input type="hidden" name="s" value="@s@">
+ <input type="submit" value="Submit changes in Section 2" name="Submit">
+ </p>
+ </form>
+ </td></tr>
+ <tr><td class="wrapbox">
+ <form method="GET" action="edit-actions-submit" id="myform-3" name="myform">
+ <h2>Edit Actions (Section 3)</h2>
+ <table summary="Action section 3" border="0" cellspacing="2" width="100%" class="wide">
+ <tr class="hdr" align="left">
+ <th class="enh" align="center">Enable</th>
+ <th class="dish" align="center">Disable</th>
+ <th class="noch" align="center">No Change</th>
+ <th>Action</th>
+ <th>Description</th>
+ </tr>
+<!-- if-multiple-forms-end@ -->
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio"
name="force_text_mode" value="Y" @force-text-mode-y@
name="hide_if_modified_since" value="X" @hide-if-modified-since-x@
></td>
<td class="action"><a href="@user-manual@@actions-help-prefix@HIDE_IF_MODIFIED_SINCE">hide-if-modified-since</a></td>
- <td>Remove or randomize If-Modified-Since header.</td>
+ <td>Remove or randomize the If-Modified-Since header.</td>
</tr>
<tr class="bg1" align="left" valign="top" id="hide_if-modifed-since_opts">
<td class="en1"> </td>
for="hide_if_modified_since_mode_set">Add random amount of seconds in the range of</label>
<input type="text" name="hide_if_modified_since_param"
id="hide_if_modified_since_param" size="4"
- value="@hide-if-modified-since-param@"> hour(s).
+ value="@hide-if-modified-since-param@"> 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.
</td>
</tr>
-
+<!-- @if-multiple-forms-start -->
+ </table>
+ <p>
+ <input type="hidden" name="f" value="@f@">
+ <input type="hidden" name="v" value="@v@">
+ <input type="hidden" name="s" value="@s@">
+ <input type="submit" value="Submit changes in Section 3" name="Submit">
+ </p>
+ </form>
+ </td></tr>
+ <tr><td class="wrapbox">
+ <form method="GET" action="edit-actions-submit" id="myform-4" name="myform">
+ <h2>Edit Actions (Section 4)</h2>
+ <table summary="Action section 4" border="0" cellspacing="2" width="100%" class="wide">
+ <tr class="hdr" align="left">
+ <th class="enh" align="center">Enable</th>
+ <th class="dish" align="center">Disable</th>
+ <th class="noch" align="center">No Change</th>
+ <th>Action</th>
+ <th>Description</th>
+ </tr>
+<!-- if-multiple-forms-end@ -->
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio"
name="hide_referrer" id="hide_referrer_y" value="Y" @hide-referrer-y@
name="overwrite_last_modified" value="X" @overwrite-last-modified-x@
></td>
<td class="action"><a href="@user-manual@@actions-help-prefix@OVERWRITE_LAST_MODIFIED">overwrite-last-modified</a></td>
- <td>Remove or randomize If-Modified-Since header.</td>
+ <td>Remove or randomize the Last-Modified header.</td>
</tr>
<tr class="bg1" align="left" valign="top" id="overwrite_last_modified_opts">
<td class="en1"> </td>
<td class="dis1"> </td>
<td class="noc1"> </td>
<td> </td>
- <td>Address to redirect to:<br>
+ <td>Static address or a single pcrs command to redirect to a rewritten version of the original URL:<br>
<input type="text" name="redirect_mode" size="40"
value="@redirect-param@"></td>
</tr>
it on if it was off, is not yet supported using this web-based
editor.</td>
</tr>
+
+@server-header-filter-params@
+@server-header-tagger-params@
+
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio"
name="session_cookies_only" value="Y" @session-cookies-only-y@
</tr>
</table>
+<!-- @if-multiple-forms-start -->
+ <p>
+ <input type="hidden" name="f" value="@f@">
+ <input type="hidden" name="v" value="@v@">
+ <input type="hidden" name="s" value="@s@">
+ <input type="submit" value="Submit changes in Section 4" name="Submit">
+ </p>
+ </form>
+<!-- if-multiple-forms-end@ -->
</td></tr>
-
+<!-- @if-one-form-only-start -->
<tr>
<td class="green" align="center">
<p><input type="submit" value="Submit" name="Submit"></p>
</td>
</tr>
-
+<!-- if-one-form-only-end@ -->
<tr>
<td class="box">
<h2>More Privoxy:</h2>
</tr>
<!-- if-have-help-info-end@ -->
- <tr>
- <td>
- <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
- </td>
- </tr>
-
</table>
+<!-- @if-one-form-only-start -->
</form>
-
+<!-- if-one-form-only-end@ -->
<script type="text/javascript">
<!--
show_user_agent_opts (document.getElementById("hide_user_agent_y").checked);
show_set_image_blocker_opts (document.getElementById("set_image_blocker_y").checked);
show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
- show_send_wafer_opts (document.getElementById("wafer_y").checked);
+ show_send_wafer_opts (document.getElementById("send_wafer_y").checked);
} else if (document.all) {
// alert("IE4");
document.myform.hide_from_header_param.disabled = !(document.myform.hide_from_header_mode_set.checked);
show_user_agent_opts (document.myform.hide_user_agent_y.checked);
show_set_image_blocker_opts (document.myform.set_image_blocker_y.checked);
show_limit_connect_opts (document.myform.limit_connect_y.checked);
- show_send_wafer_opts (document.myform.wafer_y.checked);
+ show_send_wafer_opts (document.myform.send_wafer_y.checked);
} else if (document.layers) {
// alert("Netscape 4");
}