Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
[privoxy.git] / templates / edit-actions-for-url
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-for-url,v $
4 #
5 # Purpose     :  Template used to edit the actions associated with a
6 #                particular section in an actions file.
7
8 #
9 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
10 #                Privoxy team. http://www.privoxy.org/
11 #
12 #                Original Author: Copyright (C) 2001 Jonathan Foster
13 #                http://www.jon-foster.co.uk/
14 #
15 #                This program is free software; you can redistribute it 
16 #                and/or modify it under the terms of the GNU General
17 #                Public License as published by the Free Software
18 #                Foundation; either version 2 of the License, or (at
19 #                your option) any later version.
20 #
21 #                This program is distributed in the hope that it will
22 #                be useful, but WITHOUT ANY WARRANTY; without even the
23 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
24 #                PARTICULAR PURPOSE.  See the GNU General Public
25 #                License for more details.
26 #
27 #                The GNU General Public License should be included with
28 #                this file.  If not, you can view it at
29 #                http://www.gnu.org/copyleft/gpl.html
30 #                or write to the Free Software Foundation, Inc., 59
31 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
32 #
33 # Revisions   :
34 #    $Log: edit-actions-for-url,v $
35 #    Revision 1.29.2.5  2004/10/05 03:17:26  david__schmidt
36 #    Typo: inspect_jpegs, not inspect-jpegs in form
37 #
38 #    Revision 1.29.2.4  2004/10/03 12:53:46  david__schmidt
39 #    Add the ability to check jpeg images for invalid
40 #    lengths of comment blocks.  Defensive strategy
41 #    against the exploit:
42 #       Microsoft Security Bulletin MS04-028
43 #       Buffer Overrun in JPEG Processing (GDI+) Could
44 #       Allow Code Execution (833987)
45 #    Enabled with +inspect-jpegs in actions files.
46 #
47 #    Revision 1.29.2.3  2002/08/23 02:22:53  hal9
48 #    Fix a perl brain fart with <li> in comments.
49 #
50 #    Revision 1.29.2.1  2002/08/02 12:51:42  oes
51 #    Added top submit button; Consistency with docs: Change default name for action from hide-referer to hide-referrer
52 #
53 #    Revision 1.29  2002/05/21 19:10:57  oes
54 #    Fixed JavaScript error
55 #
56 #    Revision 1.28  2002/05/14 21:36:38  oes
57 #     - Renamed prevent-(setting/reading)-cookies to
58 #       crunch-(incoming/outgoing)-cookies
59 #     - Renamed helplink export to actions-help-prefix
60 #     - Restored alphabetical order of actions
61 #
62 #    Revision 1.27  2002/04/26 22:55:26  jongfoster
63 #    Removing the alternating colors because they've been wrong
64 #    since the actions renames, they're high maintenance, they
65 #    don't look particularly good, and now there are gaps between
66 #    the table cells we don't need them.
67 #
68 #    Revision 1.26  2002/04/26 21:55:17  jongfoster
69 #    Cosmetic change: Making the +filter UI look the same as
70 #    the other actions.
71 #
72 #    Revision 1.25  2002/04/26 21:37:50  jongfoster
73 #    Fixing all(?) the substitutions that were broken in the
74 #    recent actions rename.
75 #
76 #    Revision 1.24  2002/04/26 18:24:28  jongfoster
77 #    Fixing typos in help hyperlinks
78 #
79 #    Revision 1.23  2002/04/26 12:57:02  oes
80 #    Actions renamed, alphabetically sorted, comments fixed, and names linked to help
81 #
82 #    Revision 1.22  2002/04/10 13:32:53  oes
83 #    Made templates modular
84 #
85 #    Revision 1.21  2002/04/08 17:05:18  oes
86 #    Inline a style exception
87 #
88 #    Revision 1.20  2002/04/05 16:01:30  oes
89 #    Correct HTML, external Stylesheets, eye candy, some fixes
90 #
91 #    Revision 1.19  2002/03/26 22:29:56  swa
92 #    we have a new homepage!
93 #
94 #    Revision 1.18  2002/03/24 16:32:08  jongfoster
95 #    Removing logo option
96 #
97 #    Revision 1.17  2002/03/24 15:23:33  jongfoster
98 #    Name changes
99 #
100 #    Revision 1.16  2002/03/24 11:01:06  swa
101 #    name change
102 #
103 #    Revision 1.15  2002/03/23 16:18:15  swa
104 #    renamed every reference to the old name with foobar.
105 #    fixed "application foobar application" tag, fixed
106 #    "the foobar" with "foobar". left junkbuster in cvs
107 #    comments and remarks to history untouched. should
108 #    make final rename easier.
109 #
110 #    Revision 1.14  2002/03/16 15:22:19  jongfoster
111 #    Moving 'alpha' warning to the end of the page
112 #
113 #    Revision 1.13  2002/03/16 14:28:38  jongfoster
114 #    First version of modular filters support
115 #
116 #    Revision 1.12  2002/03/12 01:42:50  oes
117 #    Introduced modular filters
118 #
119 #    Revision 1.11  2002/03/08 18:19:14  jongfoster
120 #    Adding +image-blocker{pattern} option to edit interface
121 #
122 #    Revision 1.10  2002/03/03 10:29:12  swa
123 #    point users to the right feedback forms,
124 #    not necessarily the developer list.
125 #
126 #    Revision 1.9  2002/01/23 00:26:45  jongfoster
127 #    Reducing length of URLs
128 #    Where encoded and unencoded versions of a string existed, removing
129 #    the unencoded one.
130 #
131 #    Revision 1.8  2002/01/17 21:33:00  jongfoster
132 #    Replacing all references to the URL of the config interface
133 #    with @default-cgi@
134 #
135 #    Revision 1.7  2002/01/17 21:21:03  jongfoster
136 #    DOS->Unix line endings
137 #
138 #    Revision 1.6  2001/11/22 21:58:41  jongfoster
139 #    Adding action +no-cookies-keep
140 #
141 #    Revision 1.5  2001/11/13 21:12:17  jongfoster
142 #    Added support for the following actions:
143 #    +downgrade, +limit-connect, +no-compression
144 #
145 #    Revision 1.4  2001/11/13 00:58:18  jongfoster
146 #    New version of actions file editor templates
147 #
148 #
149 ##############################################################################
150 #
151 # Browser support for the JavaScript on this page:
152 #   MS Internet Explorer 5.5 - Tested,   Yes
153 #   Netscape 6.0             - Tested,   Yes
154 #   Netscape 4.75            - Tested,   NO
155 #   Opera 5.12               - Tested,   NO
156 #   MS Internet Explorer 4+  - Untested, Yes
157 #   MS IE 3.x, NS3.x         - Untested, NO
158 #   Mozilla >=0.6            - Untested, Yes
159 #
160 # All browsers should work, you just might not get the pretty DHTML effects.
161 #
162 # The effects that only work under the browsers marked "Yes" above are:
163 #  - Text edit boxes that won't have any effect are disabled.
164 #  - Table rows containing additional settings are hidden if the feature in
165 #    question is disabled.
166 #
167 # There are major kludges to get around these problems with NS4, but they
168 # screw up the HTML too much for other browsers.  If anyone wants to try,
169 # here's some descriptions of the kludges:
170 #    http://www.webreference.com/js/tips/991114.html
171 #    http://www.webreference.com/dhtml/column12/outDisplay.html
172 #
173 # If you're favorite browser isn't listed, please test and add it.
174 #
175 #
176 #############################################################################
177 #
178 # Standard support:
179 #
180 # This file currently produces valid HTML 4.01 Strict.
181 #
182 # If you change it, please save the generated page from your web browser
183 # and then upload it to http://validator.w3.org/ for checking.
184 #
185 #############################################################################
186 #
187 # Available variables include:
188 #
189 # action-name-y
190 # action-name-n
191 # action-name-x
192 #
193 # deanimate-gifs-param-first
194 # deanimate-gifs-param-last
195 # hide-from-param-block
196 # hide-from-param-custom
197 # hide-from-param
198 # hide-referrer-param-forge
199 # hide-referrer-param-block
200 # hide-referrer-param-custom
201 # hide-referrer-param
202 # hide-user-agent-param
203 # image-blocker-param-pattern
204 # image-blocker-param-blank
205 # image-blocker-param-custom
206 #
207 #
208 #############################################################################
209 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
210 <html>
211
212 <head>
213   <meta http-equiv="Content-Style-Type" content="text/css">
214   <meta http-equiv="Content-Script-Type" content="text/javascript">
215   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
216   <meta name="robots" content="noindex,nofollow">
217   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
218
219   <title>Privoxy@@my-hostname@: Edit actions</title>
220
221 <style type="text/css">
222 td.action    { font-weight: bold;
223                font-style: italic;
224                white-space: nowrap       }
225 td.subaction { font-style: italic        }
226 th           { font-weight: bold;        }
227 # This is the key to the color names below:
228 # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header
229 # 1=odd rows, 2=even rows, h=Table header
230 tr.hdr       { background-color: #999999 }
231 tr.bg1       { background-color: #eeeeee }
232 td.en1       { background-color: #ddffdd }
233 td.dis1      { background-color: #ffdddd }
234 td.noc1      { background-color: #ddddff }
235 th.enh       { background-color: #99ff99 }
236 th.dish      { background-color: #ff9999 }
237 th.noch      { background-color: #9999ff }
238 table.wide   { padding: 5px; }
239 td.green     { border: solid black 1px; background-color: #ddffdd; }
240 </style>
241
242 <!--
243 border-color: white;
244                border-style: solid;
245                border-left-width: 10px;
246                border-right-width: 10px;
247                border-top-width: 0px;
248                border-bottom-width: 0px  }
249 -->
250
251 <script type="text/javascript">
252 <!--
253
254 function hide_from_header_param_disable(tf)
255 {
256     if (document.getElementById) {
257         // NS6 or IE5
258         document.getElementById("hide_from_header_param").disabled = tf;
259     } else if (document.all) {
260         // IE4
261         document.myform.hide_from_header_param.disabled = tf;
262     }
263 }
264
265 function hide_referrer_param_disable(tf)
266 {
267     if (document.getElementById) {
268         document.getElementById("hide_referrer_param").disabled = tf;
269     } else if (document.all) {
270         document.myform.hide_referrer_param.disabled = tf;
271     }
272 }
273
274 function set_image_blocker_param_disable(tf)
275 {
276     if (document.getElementById) {
277         document.getElementById("set_image_blocker_param").disabled = tf;
278     } else if (document.all) {
279         document.myform.set_image_blocker_param.disabled = tf;
280     }
281 }
282
283 function show_add_header_opts(tf)
284 {
285     if (document.getElementById) {
286         target = document.getElementById("add_header_opts");
287     } else if (document.all) {
288         target = document.add_header_opts;
289     } else {
290         return;
291     }
292     target.style.display = (tf ? "" : "none");
293 }
294
295 function show_deanimate_opts(tf)
296 {
297     if (document.getElementById) {
298         target = document.getElementById("deanimate_opts");
299     } else if (document.all) {
300         target = document.deanimate_opts;
301     } else {
302         return;
303     }
304     target.style.display = (tf ? "" : "none");
305 }
306
307 function show_hide_from_header_opts(tf)
308 {
309     if (document.getElementById) {
310         target = document.getElementById("hide_from_header_opts");
311     } else if (document.all) {
312         target = document.hide_from_header_opts;
313     } else {
314         return;
315     }
316     target.style.display = (tf ? "" : "none");
317 }
318
319 function show_hide_referrer_opts(tf)
320 {
321     if (document.getElementById) {
322         target = document.getElementById("hide_referrer_opts");
323     } else if (document.all) {
324         target = document.hide_referrer_opts;
325     } else {
326         return;
327     }
328     target.style.display = (tf ? "" : "none");
329 }
330
331 function show_user_agent_opts(tf)
332 {
333     if (document.getElementById) {
334         target = document.getElementById("user_agent_opts");
335     } else if (document.all) {
336         target = document.user_agent_opts;
337     } else {
338         return;
339     }
340     target.style.display = (tf ? "" : "none");
341 }
342
343 function show_set_image_blocker_opts(tf)
344 {
345     if (document.getElementById) {
346         target = document.getElementById("set_image_blocker_opts");
347     } else if (document.all) {
348         target = document.set_image_blocker_opts;
349     } else {
350         return;
351     }
352     target.style.display = (tf ? "" : "none");
353 }
354
355 function show_limit_connect_opts(tf)
356 {
357     if (document.getElementById) {
358         target = document.getElementById("limit_connect_opts");
359     } else if (document.all) {
360         target = document.limit_connect_opts;
361     } else {
362         return;
363     }
364     target.style.display = (tf ? "" : "none");
365 }
366
367 function show_send_wafer_opts(tf)
368 {
369     if (document.getElementById) {
370         target = document.getElementById("send_wafer_opts");
371     } else if (document.all) {
372         target = document.send_wafer_opts;
373     } else {
374         return;
375     }
376     target.style.display = (tf ? "" : "none");
377 }
378
379 //-->
380 </script>
381 </head>
382
383 <body>
384
385 <form method="GET" action="edit-actions-submit" id="myform" name="myform">
386
387   <table cellpadding="20" cellspacing="10" border="0" width="100%">
388     <tr>
389       <td class="title">
390
391 #include mod-title
392
393       </td>
394     </tr>
395
396 <!-- @if-unstable-start -->
397 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
398     <tr>
399       <td class="warning">
400
401 #include mod-unstable-warning
402
403       </td>
404     </tr>
405 <!-- if-unstable-end@ -->
406
407     <tr>
408       <td class="box">
409         <h2>Edit Actions
410           <input type="hidden" name="f" value="@f@">
411           <input type="hidden" name="v" value="@v@">
412           <input type="hidden" name="s" value="@s@">
413         </h2>
414       </td>
415     </tr>
416
417     <tr>
418       <td class="green" align="center">
419         <p><input type="submit" value="Submit" name="Submit"></p>
420       </td>
421     </tr>
422
423 <tr><td class="wrapbox">
424
425   <table border="0" cellspacing="2" width="100%" class="wide">
426     <tr class="hdr" align="left">
427       <th class="enh" align="center">Enable</th>
428       <th class="dish" align="center">Disable</th>
429       <th class="noch" align="center">No Change</th>
430       <th>Action</th>
431       <th>Description</th>
432     </tr>
433     <tr class="bg1" align="left" valign="top">
434       <td class="en1" align="center" valign="middle"><input type="radio"
435         name="add_header" id="add_header_y" value="Y" @add-header-y@
436         onclick="show_add_header_opts(true)"></td>
437       <td class="dis1" align="center" valign="middle"><input type="radio"
438         name="add_header" value="N" @add-header-n@
439         onclick="show_add_header_opts(false)"></td>
440       <td class="noc1" align="center" valign="middle"><input type="radio"
441         name="add_header" value="X" @add-header-x@
442         onclick="show_add_header_opts(false)"></td>
443       <td class="action"><a href="@user-manual@@actions-help-prefix@ADD-HEADER">add-header</a></td>
444       <td>Adds HTTP headers.</td>
445     </tr>
446     <tr class="bg1" align="left" valign="top" id="add_header_opts">
447       <td class="en1">&nbsp;</td>
448       <td class="dis1">&nbsp;</td>
449       <td class="noc1">&nbsp;</td>
450       <td>&nbsp;</td>
451       <td>Editing the settings for this option, or turning
452         it on if it was off, is not yet supported using this web-based
453         editor.</td>
454     </tr>
455     <tr class="bg1" align="left" valign="top">
456       <td class="en1" align="center" valign="middle"><input type="radio"
457         name="block" value="Y" @block-y@
458         ></td>
459       <td class="dis1" align="center" valign="middle"><input type="radio"
460         name="block" value="N" @block-n@
461         ></td>
462       <td class="noc1" align="center" valign="middle"><input type="radio"
463         name="block" value="X" @block-x@
464         ></td>
465       <td class="action"><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></td>
466       <td>Block the request</td>
467     </tr>
468     <tr class="bg1" align="left" valign="top">
469       <td class="en1" align="center" valign="middle"><input type="radio"
470         name="crunch_incoming_cookies" value="Y" @crunch-incoming-cookies-y@
471         ></td>
472       <td class="dis1" align="center" valign="middle"><input type="radio"
473         name="crunch_incoming_cookies" value="N" @crunch-incoming-cookies-n@
474         ></td>
475       <td class="noc1" align="center" valign="middle"><input type="radio"
476         name="crunch_incoming_cookies" value="X" @crunch-incoming-cookies-x@
477         ></td>
478       <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES">crunch-incoming-cookies</a></td>
479       <td>Prevent the website from setting cookies on your system.</td>
480     </tr>
481     <tr class="bg1" align="left" valign="top">
482       <td class="en1" align="center" valign="middle"><input type="radio"
483         name="crunch_outgoing_cookies" value="Y" @crunch-outgoing-cookies-y@
484         ></td>
485       <td class="dis1" align="center" valign="middle"><input type="radio"
486         name="crunch_outgoing_cookies" value="N" @crunch-outgoing-cookies-n@
487         ></td>
488       <td class="noc1" align="center" valign="middle"><input type="radio"
489         name="crunch_outgoing_cookies" value="X" @crunch-outgoing-cookies-x@
490         ></td>
491       <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES">crunch-outgoing-cookies</a></td>
492       <td>Prevent the website from reading cookies from your system.</td>
493     </tr>
494     <tr class="bg1" align="left" valign="top">
495       <td class="en1" align="center" valign="middle"><input type="radio"
496         name="deanimate_gifs" id="deanimate_gifs_y" value="Y" @deanimate-gifs-y@
497         onclick="show_deanimate_opts(true)"></td>
498       <td class="dis1" align="center" valign="middle"><input type="radio"
499         name="deanimate_gifs" value="N" @deanimate-gifs-n@
500         onclick="show_deanimate_opts(false)"></td>
501       <td class="noc1" align="center" valign="middle"><input type="radio"
502         name="deanimate_gifs" value="X" @deanimate-gifs-x@
503         onclick="show_deanimate_opts(false)"></td>
504       <td class="action"><a href="@user-manual@@actions-help-prefix@DEANIMATE-GIFS">deanimate-gifs</a></td>
505       <td>Replace animated GIFs with their (first/last) frame.</td>
506     </tr>
507     <tr class="bg1" align="left" valign="top" id="deanimate_opts">
508       <td class="en1">&nbsp;</td>
509       <td class="dis1">&nbsp;</td>
510       <td class="noc1">&nbsp;</td>
511       <td>&nbsp;</td>
512       <td>Use the <input type="radio" name="deanimate_gifs_mode"
513         value="first" id="deanimate_first" @deanimate-gifs-param-first@><label
514         for="deanimate_first">first frame</label>&nbsp;&nbsp; <input
515         type="radio" name="deanimate_gifs_mode" value="last" 
516         id="deanimate_last" @deanimate-gifs-param-last@><label
517         for="deanimate_last">last frame</label></td>
518     </tr>
519     <tr class="bg1" align="left" valign="top">
520       <td class="en1" align="center" valign="middle"><input type="radio"
521         name="inspect_jpegs" value="Y" @inspect-jpegs-y@
522         ></td>
523       <td class="dis1" align="center" valign="middle"><input type="radio"
524         name="inspect_jpegs" value="N" @inspect-jpegs-n@
525         ></td>
526       <td class="noc1" align="center" valign="middle"><input type="radio"
527         name="inspect_jpegs" value="X" @inspect-jpegs-x@
528         ></td>
529       <td class="action"><a href="@user-manual@@actions-help-prefix@INSPECT-JPEGS">inspect-jpegs</a></td>
530       <td>Checks jpeg images for malicious content.</td>
531     </tr>
532     <tr class="bg1" align="left" valign="top">
533       <td class="en1" align="center" valign="middle"><input type="radio"
534         name="downgrade_http_version" value="Y" @downgrade-http-version-y@></td>
535       <td class="dis1" align="center" valign="middle"><input type="radio"
536         name="downgrade_http_version" value="N" @downgrade-http-version-n@></td>
537       <td class="noc1" align="center" valign="middle"><input type="radio"
538         name="downgrade_http_version" value="X" @downgrade-http-version-x@></td>
539       <td class="action"><a href="@user-manual@@actions-help-prefix@DOWNGRADE-HTTP-VERSION">downgrade-http-version</td>
540       <td>Change HTTP/1.1 requests to HTTP/1.0.  Only change if you know
541         what you're doing!</td>
542     </tr>
543     <tr class="bg1" align="left" valign="top">
544       <td class="en1" align="center" valign="middle"><input type="radio"
545         name="fast_redirects" value="Y" @fast-redirects-y@
546         ></td>
547       <td class="dis1" align="center" valign="middle"><input type="radio"
548         name="fast_redirects" value="N" @fast-redirects-n@
549         ></td>
550       <td class="noc1" align="center" valign="middle"><input type="radio"
551         name="fast_redirects" value="X" @fast-redirects-x@
552         ></td>
553       <td class="action"><a href="@user-manual@@actions-help-prefix@FAST-REDIRECTS">fast-redirects</a></td>
554       <td>Bypass some click-tracking URLs.</td>
555     </tr>
556
557     <tr class="bg1" align="left" valign="top">
558       <td class="en1">&nbsp;</td>
559       <td class="dis1" align="center" valign="middle"><input type="radio"
560         name="filter_all" id="filter_all_n" value="N" @filter-all-n@ ></td>
561       <td class="noc1" align="center" valign="middle"><input type="radio"
562         name="filter_all" id="filter_all_x" value="X" @filter-all-x@ ></td>
563       <td class="action"><a href="@user-manual@@actions-help-prefix@FILTER">filter</a> *</td>
564       <td>Filter the website through regular expression
565         filters.  You can use the radio buttons on this line to disable
566         all filters applied by previous rules, and/or you can enable or
567         disable the filters individually below.</td>
568     </tr>
569 @filter-params@
570     <tr class="bg1" align="left" valign="top">
571       <td class="en1" align="center" valign="middle"><input type="radio"
572         name="handle_as_image" value="Y" @handle-as-image-y@
573         ></td>
574       <td class="dis1" align="center" valign="middle"><input type="radio"
575         name="handle_as_image" value="N" @handle-as-image-n@
576         ></td>
577       <td class="noc1" align="center" valign="middle"><input type="radio"
578         name="handle_as_image" value="X" @handle-as-image-x@
579         ></td>
580       <td class="action"><a href="@user-manual@@actions-help-prefix@HANDLE-AS-IMAGE">handle-as-image</a></td>
581       <td>Request is for an image (only useful in conjunction with the <i><b><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></b></i>
582         and <i><b><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></b></i> actions).</td>
583     </tr>
584     <tr class="bg1" align="left" valign="top">
585       <td class="en1" align="center" valign="middle"><input type="radio"
586         name="hide_forwarded_for_headers" value="Y" @hide-forwarded-for-headers-y@
587         ></td>
588       <td class="dis1" align="center" valign="middle"><input type="radio"
589         name="hide_forwarded_for_headers" value="N" @hide-forwarded-for-headers-n@
590         ></td>
591       <td class="noc1" align="center" valign="middle"><input type="radio"
592         name="hide_forwarded_for_headers" value="X" @hide-forwarded-for-headers-x@
593         ></td>
594       <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FORWARDED-FOR-HEADERS">hide-forwarded-for-headers</a></td>
595       <td>Block any existing X-Forwarded-for header, and do not add a new one.</td>
596     </tr>
597     <tr class="bg1" align="left" valign="top">
598       <td class="en1" align="center" valign="middle"><input type="radio"
599         name="hide_from_header" id="hide_from_header_y" value="Y" @hide-from-header-y@
600         onclick="show_hide_from_header_opts(true)"></td>
601       <td class="dis1" align="center" valign="middle"><input type="radio"
602         name="hide_from_header" value="N" @hide-from-header-n@
603         onclick="show_hide_from_header_opts(false)"></td>
604       <td class="noc1" align="center" valign="middle"><input type="radio"
605         name="hide_from_header" value="X" @hide-from-header-x@
606         onclick="show_hide_from_header_opts(false)"></td>
607       <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FROM-HEADER">hide-from-header</a></td>
608       <td>Stop old web browsers from sending the user's e-mail address with
609         every request.</td>
610     </tr>
611     <tr class="bg1" align="left" valign="top" id="hide_from_header_opts">
612       <td class="en1">&nbsp;</td>
613       <td class="dis1">&nbsp;</td>
614       <td class="noc1">&nbsp;</td>
615       <td>&nbsp;</td>
616       <td><input type="radio" name="hide_from_header_mode" value="block"
617         onclick="hide_from_header_param_disable(true);"
618         @hide-from-header-param-block@ id="hide_from_header_mode_block"><label
619         for="hide_from_header_mode_block">Remove completely</label><br>
620         <input type="radio" name="hide_from_header_mode" value="CUSTOM" 
621         onclick="hide_from_header_param_disable(false);"
622         @hide-from-header-param-custom@ id="hide_from_header_mode_set"><label
623         for="hide_from_header_mode_set">Fake e-mail address:</label><br>
624         <input type="text" name="hide_from_header_param" id="hide_from_header_param"
625         size="40" value="@hide-from-header-param@"></td>
626     </tr>
627     <tr class="bg1" align="left" valign="top">
628       <td class="en1" align="center" valign="middle"><input type="radio"
629         name="hide_referrer" id="hide_referrer_y" value="Y" @hide-referrer-y@
630         onclick="show_hide_referrer_opts(true)"></td>
631       <td class="dis1" align="center" valign="middle"><input type="radio"
632         name="hide_referrer" id="hide_referrer_n" value="N" @hide-referrer-n@
633         onclick="show_hide_referrer_opts(false)"></td>
634       <td class="noc1" align="center" valign="middle"><input type="radio"
635         name="hide_referrer" id="hide_referrer_x" value="X" @hide-referrer-x@
636         onclick="show_hide_referrer_opts(false)"
637         ></td>
638       <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-REFERRER">hide-referrer</a></td>
639       <td>Helps prevent tracking by not sending the URL of the previous web
640         page.&nbsp;</td>
641     </tr>
642     <tr class="bg1" align="left" valign="top" id="hide_referrer_opts">
643       <td class="en1">&nbsp;</td>
644       <td class="dis1">&nbsp;</td>
645       <td class="noc1">&nbsp;</td>
646       <td>&nbsp;</td>
647       <td><input type="radio" name="hide_referrer_mode" value="block"
648         onclick="hide_referrer_param_disable(true)"
649         @hide-referrer-param-block@ id="hide_referrer_mode_block"><label
650         for="hide_referrer_mode_block">Remove completely</label> (breaks images
651         on some free web hosts).<br>
652         <input type="radio" name="hide_referrer_mode" value="forge"
653         onclick="hide_referrer_param_disable(true)"
654         @hide-referrer-param-forge@ id="hide_referrer_mode_forge"><label
655         for="hide_referrer_mode_forge">Fake as the root directory of the
656         site</label> (fools checks for in-site links.)<br>
657         <input type="radio" name="hide_referrer_mode" value="CUSTOM"
658         onclick="hide_referrer_param_disable(false)"
659         @hide-referrer-param-custom@ id="hide_referrer_mode_set"><label
660         for="hide_referrer_mode_set">Fake as this web address:</label><br>
661         <input type="text" name="hide_referrer_param" 
662         id="hide_referrer_param" size="40"
663         value="@hide-referrer-param@"></td>
664     </tr>
665     <tr class="bg1" align="left" valign="top">
666       <td class="en1" align="center" valign="middle"><input type="radio"
667         name="hide_user_agent" id="hide_user_agent_y" value="Y" @hide-user-agent-y@
668         onclick="show_user_agent_opts(true)"></td>
669       <td class="dis1" align="center" valign="middle"><input type="radio"
670         name="hide_user_agent" value="N" @hide-user-agent-n@
671         onclick="show_user_agent_opts(false)"></td>
672       <td class="noc1" align="center" valign="middle"><input type="radio"
673         name="hide_user_agent" value="X" @hide-user-agent-x@
674         onclick="show_user_agent_opts(false)"></td>
675       <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-USER-AGENT">hide-user-agent</a></td>
676       <td>Pretend to be using a different web browser.&nbsp; (Breaks many web
677         sites).</td>
678     </tr>
679     <tr class="bg1" align="left" valign="top" id="user_agent_opts">
680       <td class="en1">&nbsp;</td>
681       <td class="dis1">&nbsp;</td>
682       <td class="noc1">&nbsp;</td>
683       <td>&nbsp;</td>
684       <td>User Agent string to send:<br>
685         <input type="text" name="hide_user_agent_mode" size="40"
686         value="@hide-user-agent-param@"></td>
687     </tr>
688     <tr class="bg1" align="left" valign="top">
689       <td class="en1" align="center" valign="middle"><input type="radio"
690         name="kill_popups" value="Y" @kill-popups-y@
691         ></td>
692       <td class="dis1" align="center" valign="middle"><input type="radio"
693         name="kill_popups" value="N" @kill-popups-n@
694         ></td>
695       <td class="noc1" align="center" valign="middle"><input type="radio"
696         name="kill_popups" value="X" @kill-popups-x@
697         ></td>
698       <td class="action"><a href="@user-manual@@actions-help-prefix@KILL-POPUPS">kill-popups</td>
699       <td>Filter the website through a built-in filter to disable many JavaScript
700         pop-up windows.</td>
701     </tr>
702     <tr class="bg1" align="left" valign="top">
703       <td class="en1" align="center" valign="middle"><input type="radio"
704         name="limit_connect" id="limit_connect_y" value="Y" @limit-connect-y@
705         onclick="show_limit_connect_opts(true)"></td>
706       <td class="dis1" align="center" valign="middle"><input type="radio"
707         name="limit_connect" value="N" @limit-connect-n@
708         onclick="show_limit_connect_opts(false)"></td>
709       <td class="noc1" align="center" valign="middle"><input type="radio"
710         name="limit_connect" value="X" @limit-connect-x@
711         onclick="show_limit_connect_opts(false)"></td>
712       <td class="action"><a href="@user-manual@@actions-help-prefix@LIMIT-CONNECT">limit-connect</a></td>
713       <td>Specify which ports are allowed for SSL (HTTP CONNECT) access.
714         Note that this allows arbitrary tunnelling, so opening all
715         ports would be a security hole.</td>
716     </tr>
717     <tr class="bg1" align="left" valign="top" id="limit_connect_opts">
718       <td class="en1">&nbsp;</td>
719       <td class="dis1">&nbsp;</td>
720       <td class="noc1">&nbsp;</td>
721       <td>&nbsp;</td>
722       <td>Legal SSL ports (comma separated, ranges allowed):<br>
723         <input type="text" name="limit_connect_mode" size="40"
724         value="@limit-connect-param@"></td>
725     </tr>
726     <tr class="bg1" align="left" valign="top">
727       <td class="en1" align="center" valign="middle"><input type="radio"
728         name="prevent_compression" value="Y" @prevent-compression-y@
729         ></td>
730       <td class="dis1" align="center" valign="middle"><input type="radio"
731         name="prevent_compression" value="N" @prevent-compression-n@
732         ></td>
733       <td class="noc1" align="center" valign="middle"><input type="radio"
734         name="prevent_compression" value="X" @prevent-compression-x@
735         ></td>
736       <td class="action"><a href="@user-manual@@actions-help-prefix@PREVENT-COMPRESSION">prevent-compression</a></td>
737       <td>Disables compression.  Compressed web pages are faster to
738         download, but cannot be filtered with <a href="@user-manual@@actions-help-prefix@FILTER"><b>filter</b></a>
739         or <a href="@user-manual@@actions-help-prefix@KILL-POPUPS"><b>kill-popups</b></a>.
740         This setting only affects the few web sites which support
741         compression.</td>
742     </tr>
743     <tr class="bg1" align="left" valign="top">
744       <td class="en1" align="center" valign="middle"><input type="radio"
745         name="send_vanilla_wafer" value="Y" @send-vanilla-wafer-y@
746         ></td>
747       <td class="dis1" align="center" valign="middle"><input type="radio"
748         name="send_vanilla_wafer" value="N" @send-vanilla-wafer-n@
749         ></td>
750       <td class="noc1" align="center" valign="middle"><input type="radio"
751         name="send_vanilla_wafer" value="X" @send-vanilla-wafer-x@
752         ></td>
753       <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-VANILLA-WAFER">send-vanilla-wafer</a></td>
754       <td>Adds a special wafer (standard cookie) to all your requests.</td>
755     </tr>
756     <tr class="bg1" align="left" valign="top">
757       <td class="en1" align="center" valign="middle"><input type="radio"
758         name="send_wafer" id="send_wafer_y" value="Y" @send-wafer-y@
759         onclick="show_send_wafer_opts(true)"></td>
760       <td class="dis1" align="center" valign="middle"><input type="radio"
761         name="send_wafer" id="send_wafer_n" value="N" @send-wafer-n@
762         onclick="show_send_wafer_opts(false)"></td>
763       <td class="noc1" align="center" valign="middle"><input type="radio"
764         name="send_wafer" id="send_wafer_x" value="X" @send-wafer-x@
765         onclick="show_send_wafer_opts(false)"></td>
766       <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-WAFER">send-wafer</a></td>
767       <td>Adds user-specified cookies.</td>
768     </tr>
769     <tr class="bg1" align="left" valign="top" id="send_wafer_opts">
770       <td class="en1">&nbsp;</td>
771       <td class="dis1">&nbsp;</td>
772       <td class="noc1">&nbsp;</td>
773       <td>&nbsp;</td>
774       <td>Editing the settings for this option, or turning
775         it on if it was off, is not yet supported using this web-based
776         editor.</td>
777     </tr>
778     <tr class="bg1" align="left" valign="top">
779       <td class="en1" align="center" valign="middle"><input type="radio"
780         name="session_cookies_only" value="Y" @session-cookies-only-y@
781         ></td>
782       <td class="dis1" align="center" valign="middle"><input type="radio"
783         name="session_cookies_only" value="N" @session-cookies-only-n@
784         ></td>
785       <td class="noc1" align="center" valign="middle"><input type="radio"
786         name="session_cookies_only" value="X" @session-cookies-only-x@
787         ></td>
788       <td class="action"><a href="@user-manual@@actions-help-prefix@SESSION-COOKIES-ONLY">session-cookies-only</a></td>
789       <td>Any cookies set by the website are changed to temporary
790         ("per-session") ones, which only last until you close your web
791         browser.  This will allow you to use sites that require cookies, but
792         sites will not be able to track you across sessions.  For this to
793         be useful, you should disable 
794         <a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES"><b>crunch-outgoing-cookies</b></a> and
795         <a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES"><b>crunch-incoming-cookies</b></a>.</td>
796     </tr>
797     <tr class="bg1" align="left" valign="top">
798       <td class="en1" align="center" valign="middle"><input type="radio"
799         name="set_image_blocker" id="set_image_blocker_y" value="Y" @set-image-blocker-y@
800         onclick="show_set_image_blocker_opts(true)"></td>
801       <td class="dis1" align="center" valign="middle"><input type="radio"
802         name="set_image_blocker" value="N" @set-image-blocker-n@
803         onclick="show_set_image_blocker_opts(false)"></td>
804       <td class="noc1" align="center" valign="middle"><input type="radio"
805         name="set_image_blocker" value="X" @set-image-blocker-x@
806         onclick="show_set_image_blocker_opts(false)"></td>
807       <td class="action"><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></td>
808       <td>Specifies how to block images.</td>
809     </tr>
810     <tr class="bg1" align="left" valign="top" id="set_image_blocker_opts">
811       <td class="en1">&nbsp;</td>
812       <td class="dis1">&nbsp;</td>
813       <td class="noc1">&nbsp;</td>
814       <td>&nbsp;</td>
815       <td><input type="radio" name="set_image_blocker_mode"
816         onclick="set_image_blocker_param_disable(true)"
817         value="pattern" id="set_image_blocker_mode_pattern"
818         @set-image-blocker-param-pattern@><label
819         for="set_image_blocker_mode_pattern">Send a pattern (<img
820         src="send-banner?type=p" width="12" height="12"
821         alt="pattern">)</label><br>
822         <input type="radio" name="set_image_blocker_mode" value="blank"
823         onclick="set_image_blocker_param_disable(true)"
824         id="set_image_blocker_mode_blank" @set-image-blocker-param-blank@><label 
825         for="set_image_blocker_mode_blank">Send a 1x1 transparent GIF</label><br>
826         <input type="radio" name="set_image_blocker_mode" value="CUSTOM"
827         onclick="set_image_blocker_param_disable(false)"
828         id="set_image_blocker_mode_set" @set-image-blocker-param-custom@><label
829         for="set_image_blocker_mode_set">Redirect
830         the browser to this image URL:</label><br>
831         <input type="text" name="set_image_blocker_param" id="set_image_blocker_param"
832         size="40" value="@set-image-blocker-param@"></td>
833     </tr>
834   </table>
835
836 </td></tr>
837
838     <tr>
839       <td class="green" align="center">
840         <p><input type="submit" value="Submit" name="Submit"></p>
841       </td>
842     </tr>
843
844     <tr>
845       <td class="box">
846         <h2>More Privoxy:</h2>
847         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
848       </td>
849     </tr>
850
851     <tr>
852       <td class="info">
853
854 #include mod-support-and-service
855
856       </td>
857     </tr>
858
859 <!-- @if-have-help-info-start -->
860     <tr>
861       <td class="info">
862
863 #include mod-local-help
864
865       </td>
866     </tr>
867 <!-- if-have-help-info-end@ -->
868
869     <tr>
870       <td>
871         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
872       </td>
873     </tr>
874
875   </table>
876 </form>
877
878
879 <script type="text/javascript">
880 <!--
881
882 if (document.getElementById) {
883     // alert("Netscape 6 or IE5");
884     document.getElementById("hide_from_header_param").disabled = !(document.getElementById("hide_from_header_mode_set").checked);
885     document.getElementById("hide_referrer_param").disabled = !(document.getElementById("hide_referrer_mode_set").checked);
886     document.getElementById("set_image_blocker_param").disabled = !(document.getElementById("set_image_blocker_mode_set").checked);
887
888     show_add_header_opts    (document.getElementById("add_header_y").checked);
889     show_deanimate_opts     (document.getElementById("deanimate_gifs_y").checked);
890     show_hide_from_header_opts(document.getElementById("hide_from_header_y").checked);
891     show_hide_referrer_opts (document.getElementById("hide_referrer_y").checked);
892     show_user_agent_opts    (document.getElementById("hide_user_agent_y").checked);
893     show_set_image_blocker_opts (document.getElementById("set_image_blocker_y").checked);
894     show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
895     show_send_wafer_opts    (document.getElementById("wafer_y").checked);
896 } else if (document.all) {
897     // alert("IE4");
898     document.myform.hide_from_header_param.disabled = !(document.myform.hide_from_header_mode_set.checked);
899     document.myform.hide_referrer_param.disabled = !(document.myform.hide_referrer_mode_set.checked);
900     document.myform.set_image_blocker_param.disabled = !(document.myform.set_image_blocker_mode_set.checked);
901
902     show_add_header_opts    (document.myform.add_header_y.checked);
903     show_deanimate_opts     (document.myform.deanimate_gifs_y.checked);
904     show_hide_from_header_opts (document.myform.hide_from_header_y.checked);
905     show_hide_referrer_opts (document.myform.hide_referrer_y.checked);
906     show_user_agent_opts    (document.myform.hide_user_agent_y.checked);
907     show_set_image_blocker_opts (document.myform.set_image_blocker_y.checked);
908     show_limit_connect_opts (document.myform.limit_connect_y.checked);
909     show_send_wafer_opts    (document.myform.wafer_y.checked);
910 } else if (document.layers) {
911     // alert("Netscape 4");
912 }
913 //-->
914 </script>
915
916
917 </body>
918
919 </html>