222fb361117901f266ebb6e59e5e24474fc33c98
[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 #                IJBSWA team.  http://ijbswa.sourceforge.net
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.10  2002/03/03 10:29:12  swa
36 #    point users to the right feedback forms,
37 #    not necessarily the developer list.
38 #
39 #    Revision 1.9  2002/01/23 00:26:45  jongfoster
40 #    Reducing length of URLs
41 #    Where encoded and unencoded versions of a string existed, removing
42 #    the unencoded one.
43 #
44 #    Revision 1.8  2002/01/17 21:33:00  jongfoster
45 #    Replacing all references to the URL of the config interface
46 #    with @default-cgi@
47 #
48 #    Revision 1.7  2002/01/17 21:21:03  jongfoster
49 #    DOS->Unix line endings
50 #
51 #    Revision 1.6  2001/11/22 21:58:41  jongfoster
52 #    Adding action +no-cookies-keep
53 #
54 #    Revision 1.5  2001/11/13 21:12:17  jongfoster
55 #    Added support for the following actions:
56 #    +downgrade, +limit-connect, +no-compression
57 #
58 #    Revision 1.4  2001/11/13 00:58:18  jongfoster
59 #    New version of actions file editor templates
60 #
61 #
62 ##############################################################################
63 #
64 # Browser support for the JavaScript on this page:
65 #   MS Internet Explorer 5.5 - Tested,   Yes
66 #   Netscape 6.0             - Tested,   Yes
67 #   Netscape 4.75            - Tested,   NO
68 #   Opera 5.12               - Tested,   NO
69 #   MS Internet Explorer 4+  - Untested, Yes
70 #   MS IE 3.x, NS3.x         - Untested, NO
71 #   Mozilla >=0.6            - Untested, Yes
72 #
73 # All browsers should work, you just might not get the pretty DHTML effects.
74 #
75 # The effects that only work under the browsers marked "Yes" above are:
76 #  - Text edit boxes that won't have any effect are disabled.
77 #  - Table rows containing additional settings are hidden if the feature in
78 #    question is disabled.
79 #
80 # There are major kludges to get around these problems with NS4, but they
81 # screw up the HTML too much for other browsers.  If anyone wants to try,
82 # here's some descriptions of the kludges:
83 #    http://www.webreference.com/js/tips/991114.html
84 #    http://www.webreference.com/dhtml/column12/outDisplay.html
85 #
86 # If you're favorite browser isn't listed, please test and add it.
87 #
88 #
89 #############################################################################
90 #
91 # Standard support:
92 #
93 # This file currently produces valid HTML 4.01 Strict.
94 #
95 # If you change it, please save the generated page from your web browser
96 # and then upload it to http://validator.w3.org/ for checking.
97 #
98 #############################################################################
99 #
100 # Available variables include:
101 #
102 # action-name-y
103 # action-name-n
104 # action-name-x
105 #
106 # deanimate-gifs-param-first
107 # deanimate-gifs-param-last
108 # hide-from-param-block
109 # hide-from-param-custom
110 # hide-from-param
111 # hide-referer-param-forge
112 # hide-referer-param-block
113 # hide-referer-param-custom
114 # hide-referer-param
115 # hide-user-agent-param
116 # image-blocker-param-pattern
117 # image-blocker-param-logo
118 # image-blocker-param-blank
119 # image-blocker-param-custom
120 #
121 #
122 #############################################################################
123 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
124 <html>
125
126 <head>
127 <meta http-equiv="Content-Style-Type" content="text/css">
128 <meta http-equiv="Content-Script-Type" content="text/javascript">
129 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
130 <meta name="robots" content="noindex,nofollow">
131
132 <title>JunkBuster: Edit actions</title>
133
134 <style type="text/css">
135 body         { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif;
136                background-color: #ffffff;
137                color: #000000            }
138 td.action    { font-weight: bold;
139                font-style: italic;
140                white-space: nowrap       }
141 th           { font-weight: bold;        }
142 # This is the key to the color names below:
143 # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header
144 # 1=odd rows, 2=even rows, h=Table header
145 tr.hdr       { background-color: #999999 }
146 tr.bg1       { background-color: #eeeeee }
147 td.en1       { background-color: #eeffee }
148 td.dis1      { background-color: #ffeeee }
149 td.noc1      { background-color: #eeeeff }
150 tr.bg2       { background-color: #dddddd }
151 td.en2       { background-color: #ddffdd }
152 td.dis2      { background-color: #ffdddd }
153 td.noc2      { background-color: #ddddff }
154 th.enh       { background-color: #99ff99 }
155 th.dish      { background-color: #ff9999 }
156 th.noch      { background-color: #9999ff }
157 table.wide   { border-color: white;
158                border-style: solid;
159                border-left-width: 10px;
160                border-right-width: 10px;
161                border-top-width: 0px;
162                border-bottom-width: 0px  }
163 td.light     { background-color: #eeeeee }
164 td.dark      { background-color: #dddddd }
165 td.green     { background-color: #ddffdd }
166 </style>
167
168 <script type="text/javascript">
169 <!--
170
171 function hide_from_param_disable(tf)
172 {
173     if (document.getElementById) {
174         // NS6 or IE5
175         document.getElementById("hide_from_param").disabled = tf;
176     } else if (document.all) {
177         // IE4
178         document.myform.hide_from_param.disabled = tf;
179     }
180 }
181
182 function hide_referer_param_disable(tf)
183 {
184     if (document.getElementById) {
185         document.getElementById("hide_referer_param").disabled = tf;
186     } else if (document.all) {
187         document.myform.hide_referer_param.disabled = tf;
188     }
189 }
190
191 function image_blocker_param_disable(tf)
192 {
193     if (document.getElementById) {
194         document.getElementById("image_blocker_param").disabled = tf;
195     } else if (document.all) {
196         document.myform.image_blocker_param.disabled = tf;
197     }
198 }
199
200 function show_add_header_opts(tf)
201 {
202     if (document.getElementById) {
203         target = document.getElementById("add_header_opts");
204     } else if (document.all) {
205         target = document.add_header_opts;
206     } else {
207         return;
208     }
209     target.style.display = (tf ? "" : "none");
210 }
211
212 function show_deanimate_opts(tf)
213 {
214     if (document.getElementById) {
215         target = document.getElementById("deanimate_opts");
216     } else if (document.all) {
217         target = document.deanimate_opts;
218     } else {
219         return;
220     }
221     target.style.display = (tf ? "" : "none");
222 }
223
224 function show_hide_from_opts(tf)
225 {
226     if (document.getElementById) {
227         target = document.getElementById("hide_from_opts");
228     } else if (document.all) {
229         target = document.hide_from_opts;
230     } else {
231         return;
232     }
233     target.style.display = (tf ? "" : "none");
234 }
235
236 function show_hide_referer_opts(tf)
237 {
238     if (document.getElementById) {
239         target = document.getElementById("hide_referer_opts");
240     } else if (document.all) {
241         target = document.hide_referer_opts;
242     } else {
243         return;
244     }
245     target.style.display = (tf ? "" : "none");
246 }
247
248 function show_user_agent_opts(tf)
249 {
250     if (document.getElementById) {
251         target = document.getElementById("user_agent_opts");
252     } else if (document.all) {
253         target = document.user_agent_opts;
254     } else {
255         return;
256     }
257     target.style.display = (tf ? "" : "none");
258 }
259
260 function show_image_blocker_opts(tf)
261 {
262     if (document.getElementById) {
263         target = document.getElementById("image_blocker_opts");
264     } else if (document.all) {
265         target = document.image_blocker_opts;
266     } else {
267         return;
268     }
269     target.style.display = (tf ? "" : "none");
270 }
271
272 function show_limit_connect_opts(tf)
273 {
274     if (document.getElementById) {
275         target = document.getElementById("limit_connect_opts");
276     } else if (document.all) {
277         target = document.limit_connect_opts;
278     } else {
279         return;
280     }
281     target.style.display = (tf ? "" : "none");
282 }
283
284 function show_wafer_opts(tf)
285 {
286     if (document.getElementById) {
287         target = document.getElementById("wafer_opts");
288     } else if (document.all) {
289         target = document.wafer_opts;
290     } else {
291         return;
292     }
293     target.style.display = (tf ? "" : "none");
294 }
295
296 //-->
297 </script>
298 </head>
299
300 <body>
301
302 <form method="GET" action="edit-actions-submit" id="myform" name="myform">
303
304   <table cellpadding="20" cellspacing="10" border="0" width="100%">
305     <tr>
306       <td class="dark">
307         <p><b><big><big>This is the Internet 
308           J</big>UNK</big><i style="color: #ff0000">BUSTER</i><big><big>
309           @version@ on @my-hostname@ (@my-ip-address@),
310           port @my-port@, 
311           @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</big></big></b></p>
312       </td>
313     </tr>
314
315 <!-- @if-unstable-start -->
316 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
317     <tr>
318       <td style="background-color: #ffdddd" >
319         <p><b>Please note that this <span style="color: #ff0000">@code-status@</span> release
320           of the proxy software is not intended for production systems!
321           <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b>
322         </p>
323
324         <p>
325 <h2>Support and Service via Sourceforge</h2>
326 <p>
327 We value your feedback. However, to provide you with the best support,
328 please note:
329 <ul>
330   <li>Use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">support forum</a> to get
331   help.</li>
332   <li>Submit bugs only thru our <a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug
333       forum</a>. Make sure that the bug has not yet been submitted.</li>
334   <li>Submit feature requests only thru our <a
335       href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature request forum</a>.</li>
336 </ul>
337 </p>
338 <p>
339 For any other issues, feel free to use the <a
340 href="http://sourceforge.net/mail/?group_id=11118">mailing lists</a>.
341 </p>
342       </td>
343     </tr>
344 <!-- if-unstable-end@ -->
345
346     <tr>
347       <td class="light">
348         <h2>Edit Actions
349           <input type="hidden" name="f" value="@f@">
350           <input type="hidden" name="v" value="@v@">
351           <input type="hidden" name="s" value="@s@">
352         </h2>
353       </td>
354     </tr>
355   </table>
356
357   <table border="0" width="100%" cellspacing="0" class="wide">
358     <tr class="hdr" align="left">
359       <th>Action
360       </th>
361       <th>Description</th>
362       <th class="enh" align="center">Enable</th>
363       <th class="dish" align="center">Disable</th>
364       <th class="noch" align="center">No Change</th>
365     </tr>
366     <tr class="bg1" align="left" valign="top">
367       <td class="action">+add-header</td>
368       <td>Adds HTTP headers.</td>
369       <td class="en1" align="center" valign="middle"><input type="radio"
370         name="add_header" id="add_header_y" value="Y" @add-header-y@
371         onclick="show_add_header_opts(true)"></td>
372       <td class="dis1" align="center" valign="middle"><input type="radio"
373         name="add_header" value="N" @add-header-n@
374         onclick="show_add_header_opts(false)"></td>
375       <td class="noc1" align="center" valign="middle"><input type="radio"
376         name="add_header" value="X" @add-header-x@
377         onclick="show_add_header_opts(false)"></td>
378     </tr>
379     <tr class="bg1" align="left" valign="top" id="add_header_opts">
380       <td>&nbsp;</td>
381       <td colspan="4">Editing the settings for this option, or turning
382         it on if it was off, is not yet supported using this web-based
383         editor.</td>
384     </tr>
385     <tr class="bg2" align="left" valign="top">
386       <td class="action">+block</td>
387       <td>Block the request</td>
388       <td class="en2" align="center" valign="middle"><input type="radio"
389         name="block" value="Y" @block-y@
390         ></td>
391       <td class="dis2" align="center" valign="middle"><input type="radio"
392         name="block" value="N" @block-n@
393         ></td>
394       <td class="noc2" align="center" valign="middle"><input type="radio"
395         name="block" value="X" @block-x@
396         ></td>
397     </tr>
398     <tr class="bg1" align="left" valign="top">
399       <td class="action">+deanimate-gifs</td>
400       <td>Replace animated GIFs with their (first/last) frame.</td>
401       <td class="en1" align="center" valign="middle"><input type="radio"
402         name="deanimate_gifs" id="deanimate_gifs_y" value="Y" @deanimate-gifs-y@
403         onclick="show_deanimate_opts(true)"></td>
404       <td class="dis1" align="center" valign="middle"><input type="radio"
405         name="deanimate_gifs" value="N" @deanimate-gifs-n@
406         onclick="show_deanimate_opts(false)"></td>
407       <td class="noc1" align="center" valign="middle"><input type="radio"
408         name="deanimate_gifs" value="X" @deanimate-gifs-x@
409         onclick="show_deanimate_opts(false)"></td>
410     </tr>
411     <tr class="bg1" align="left" valign="top" id="deanimate_opts">
412       <td>&nbsp;</td>
413       <td colspan="4">Use the <input type="radio" name="deanimate_gifs_mode"
414         value="first" id="deanimate_first" @deanimate-gifs-param-first@><label
415         for="deanimate_first">first frame</label>&nbsp;&nbsp; <input
416         type="radio" name="deanimate_gifs_mode" value="last" 
417         id="deanimate_last" @deanimate-gifs-param-last@><label
418         for="deanimate_last">last frame</label></td>
419     </tr>
420     <tr class="bg2" align="left" valign="top">
421       <td class="action">+fast-redirects</td>
422       <td>Bypass some tracking URLs.</td>
423       <td class="en2" align="center" valign="middle"><input type="radio"
424         name="fast_redirects" value="Y" @fast-redirects-y@
425         ></td>
426       <td class="dis2" align="center" valign="middle"><input type="radio"
427         name="fast_redirects" value="N" @fast-redirects-n@
428         ></td>
429       <td class="noc2" align="center" valign="middle"><input type="radio"
430         name="fast_redirects" value="X" @fast-redirects-x@
431         ></td>
432     </tr>
433     <tr class="bg1" align="left" valign="top">
434       <td class="action">+downgrade</td>
435       <td>Change HTTP/1.1 requests to HTTP/1.0.  Only change if you know
436         what you're doing!</td>
437       <td class="en1" align="center" valign="middle"><input type="radio"
438         name="downgrade" value="Y" @downgrade-y@></td>
439       <td class="dis1" align="center" valign="middle"><input type="radio"
440         name="downgrade" value="N" @downgrade-n@></td>
441       <td class="noc1" align="center" valign="middle"><input type="radio"
442         name="downgrade" value="X" @downgrade-x@></td>
443     </tr>
444     <tr class="bg2" align="left" valign="top">
445       <td class="action">+filter</td>
446       <td>Filter the website through the re_filterfile</td>
447       <td class="en2" align="center" valign="middle"><input type="radio"
448         name="filter" value="Y" @filter-y@
449         ></td>
450       <td class="dis2" align="center" valign="middle"><input type="radio"
451         name="filter" value="N" @filter-n@ 
452         ></td>
453       <td class="noc2" align="center" valign="middle"><input type="radio"
454         name="filter" value="X" @filter-x@
455          ></td>
456     </tr>
457     <tr class="bg1" align="left" valign="top">
458       <td class="action">+hide-forwarded</td>
459       <td>Block any existing X-Forwarded-for header, and do not add a new one.</td>
460       <td class="en1" align="center" valign="middle"><input type="radio"
461         name="hide_forwarded" value="Y" @hide-forwarded-y@
462         ></td>
463       <td class="dis1" align="center" valign="middle"><input type="radio"
464         name="hide_forwarded" value="N" @hide-forwarded-n@
465         ></td>
466       <td class="noc1" align="center" valign="middle"><input type="radio"
467         name="hide_forwarded" value="X" @hide-forwarded-x@
468         ></td>
469     </tr>
470     <tr class="bg2" align="left" valign="top">
471       <td class="action">+hide-from</td>
472       <td>Stop old web browsers from sending the user's e-mail address with
473         every request.</td>
474       <td class="en2" align="center" valign="middle"><input type="radio"
475         name="hide_from" id="hide_from_y" value="Y" @hide-from-y@
476         onclick="show_hide_from_opts(true)"></td>
477       <td class="dis2" align="center" valign="middle"><input type="radio"
478         name="hide_from" value="N" @hide-from-n@
479         onclick="show_hide_from_opts(false)"></td>
480       <td class="noc2" align="center" valign="middle"><input type="radio"
481         name="hide_from" value="X" @hide-from-x@
482         onclick="show_hide_from_opts(false)"></td>
483     </tr>
484     <tr class="bg2" align="left" valign="top" id="hide_from_opts">
485       <td>&nbsp;</td>
486       <td colspan="4"><input type="radio" name="hide_from_mode" value="block"
487         onclick="hide_from_param_disable(true);"
488         @hide-from-param-block@ id="from_mode_block"><label
489         for="from_mode_block">Remove completely</label><br>
490         <input type="radio" name="hide_from_mode" value="CUSTOM" 
491         onclick="hide_from_param_disable(false);"
492         @hide-from-param-custom@ id="from_mode_set"><label
493         for="from_mode_set">Fake e-mail address:</label><br>
494         <input type="text" name="hide_from_param" id="hide_from_param"
495         size="40" value="@hide-from-param@"></td>
496     </tr>
497     <tr class="bg1" align="left" valign="top">
498       <td class="action">+hide-referer</td>
499       <td>Helps prevent tracking by not sending the URL of the previous web
500         page.&nbsp;</td>
501       <td class="en1" align="center" valign="middle"><input type="radio"
502         name="hide_referer" id="hide_referer_y" value="Y" @hide-referer-y@
503         onclick="show_hide_referer_opts(true)"></td>
504       <td class="dis1" align="center" valign="middle"><input type="radio"
505         name="hide_referer" id="hide_referer_n" value="N" @hide-referer-n@
506         onclick="show_hide_referer_opts(false)"></td>
507       <td class="noc1" align="center" valign="middle"><input type="radio"
508         name="hide_referer" id="hide_referer_x" value="X" @hide-referer-x@
509         onclick="show_hide_referer_opts(false)"
510         ></td>
511     </tr>
512     <tr class="bg1" align="left" valign="top" id="hide_referer_opts">
513       <td>&nbsp;</td>
514       <td colspan="4"><input type="radio" name="hide_referer_mode" value="block"
515         onclick="hide_referer_param_disable(true)"
516         @hide-referer-param-block@ id="referer_mode_block"><label
517         for="referer_mode_block">Remove completely</label> (breaks images
518         on some free web hosts).<br>
519         <input type="radio" name="hide_referer_mode" value="forge"
520         onclick="hide_referer_param_disable(true)"
521         @hide-referer-param-forge@ id="referer_mode_forge"><label
522         for="referer_mode_forge">Fake as the root directory of the
523         site</label> (fools checks for in-site links.)<br>
524         <input type="radio" name="hide_referer_mode" value="CUSTOM"
525         onclick="hide_referer_param_disable(false)"
526         @hide-referer-param-custom@ id="referer_mode_set"><label
527         for="referer_mode_set">Fake as this web address:</label><br>
528         <input type="text" name="hide_referer_param" 
529         id="hide_referer_param" size="40"
530         value="@hide-referer-param@"></td>
531     </tr>
532     <tr class="bg2" align="left" valign="top">
533       <td class="action">+hide-user-agent</td>
534       <td>Pretend to be using a different web browser.&nbsp; (Breaks many web
535         sites).</td>
536       <td class="en2" align="center" valign="middle"><input type="radio"
537         name="hide_user_agent" id="hide_user_agent_y" value="Y" @hide-user-agent-y@
538         onclick="show_user_agent_opts(true)"></td>
539       <td class="dis2" align="center" valign="middle"><input type="radio"
540         name="hide_user_agent" value="N" @hide-user-agent-n@
541         onclick="show_user_agent_opts(false)"></td>
542       <td class="noc2" align="center" valign="middle"><input type="radio"
543         name="hide_user_agent" value="X" @hide-user-agent-x@
544         onclick="show_user_agent_opts(false)"></td>
545     </tr>
546     <tr class="bg2" align="left" valign="top" id="user_agent_opts">
547       <td>&nbsp;</td>
548       <td colspan="4">User Agent string to send:<br>
549         <input type="text" name="hide_user_agent_mode" size="40"
550         value="@hide-user-agent-param@"></td>
551     </tr>
552     <tr class="bg1" align="left" valign="top">
553       <td class="action">+image</td>
554       <td>Request is for an image (only useful in conjunction with the <i><b>+block</b></i>
555         and <i><b>+image-blocker</b></i> options).</td>
556       <td class="en1" align="center" valign="middle"><input type="radio"
557         name="image" value="Y" @image-y@
558         ></td>
559       <td class="dis1" align="center" valign="middle"><input type="radio"
560         name="image" value="N" @image-n@
561         ></td>
562       <td class="noc1" align="center" valign="middle"><input type="radio"
563         name="image" value="X" @image-x@
564         ></td>
565     </tr>
566     <tr class="bg2" align="left" valign="top">
567       <td class="action">+image-blocker</td>
568       <td>Specifies how to block images.&nbsp; Disable to always send a HTML
569         &quot;blocked&quot; page.</td>
570       <td class="en2" align="center" valign="middle"><input type="radio"
571         name="image_blocker" id="image_blocker_y" value="Y" @image-blocker-y@
572         onclick="show_image_blocker_opts(true)"></td>
573       <td class="dis2" align="center" valign="middle"><input type="radio"
574         name="image_blocker" value="N" @image-blocker-n@
575         onclick="show_image_blocker_opts(false)"></td>
576       <td class="noc2" align="center" valign="middle"><input type="radio"
577         name="image_blocker" value="X" @image-blocker-x@
578         onclick="show_image_blocker_opts(false)"></td>
579     </tr>
580     <tr class="bg2" align="left" valign="top" id="image_blocker_opts">
581       <td>&nbsp;</td>
582       <td colspan="4"><input type="radio" name="image_blocker_mode"
583         onclick="image_blocker_param_disable(true)"
584         value="pattern" id="image_blocker_mode_pattern"
585         @image-blocker-param-pattern@><label
586         for="image_blocker_mode_pattern">Send a pattern (<img
587         src="send-banner?type=p" width="12" height="12"
588         alt="pattern">)</label><br>
589         <input type="radio" name="image_blocker_mode"
590         onclick="image_blocker_param_disable(true)"
591         value="logo" id="image_blocker_mode_logo" @image-blocker-param-logo@><label
592         for="image_blocker_mode_logo">Send Junkbuster logo
593         (<img src="send-banner?type=l" alt="logo">)</label><br>
594         <input type="radio" name="image_blocker_mode" value="blank"
595         onclick="image_blocker_param_disable(true)"
596         id="image_blocker_mode_blank" @image-blocker-param-blank@><label 
597         for="image_blocker_mode_blank">Send a 1x1 transparent GIF</label><br>
598         <input type="radio" name="image_blocker_mode" value="CUSTOM"
599         onclick="image_blocker_param_disable(false)"
600         id="image_blocker_mode_set" @image-blocker-param-custom@><label
601         for="image_blocker_mode_set">Redirect
602         the browser to this image URL:</label><br>
603         <input type="text" name="image_blocker_param" id="image_blocker_param"
604         size="40" value="@image-blocker-param@"></td>
605     </tr>
606     <tr class="bg1" align="left" valign="top">
607       <td class="action">+limit-connect</td>
608       <td>Specify which ports are allowed for SSL (HTTP CONNECT) access.
609         Note that this allows arbitrary tunnelling, so opening all
610         ports would be a security hole.</td>
611       <td class="en1" align="center" valign="middle"><input type="radio"
612         name="limit_connect" id="limit_connect_y" value="Y" @limit-connect-y@
613         onclick="show_limit_connect_opts(true)"></td>
614       <td class="dis1" align="center" valign="middle"><input type="radio"
615         name="limit_connect" value="N" @limit-connect-n@
616         onclick="show_limit_connect_opts(false)"></td>
617       <td class="noc1" align="center" valign="middle"><input type="radio"
618         name="limit_connect" value="X" @limit-connect-x@
619         onclick="show_limit_connect_opts(false)"></td>
620     </tr>
621     <tr class="bg1" align="left" valign="top" id="limit_connect_opts">
622       <td>&nbsp;</td>
623       <td colspan="4">Legal SSL ports (comma separated, ranges allowed):<br>
624         <input type="text" name="limit_connect_mode" size="40"
625         value="@limit-connect-param@"></td>
626     </tr>
627     <tr class="bg2" align="left" valign="top">
628       <td class="action">+no-compression</td>
629       <td>Disables compression.  Compressed web pages are faster to
630         download, but cannot be filtered with +filter or +no-popups.
631         This setting only affects the few web sites which support
632         compression.</td>
633       <td class="en2" align="center" valign="middle"><input type="radio"
634         name="no_compression" value="Y" @no-compression-y@
635         ></td>
636       <td class="dis2" align="center" valign="middle"><input type="radio"
637         name="no_compression" value="N" @no-compression-n@
638         ></td>
639       <td class="noc2" align="center" valign="middle"><input type="radio"
640         name="no_compression" value="X" @no-compression-x@
641         ></td>
642     </tr>
643     <tr class="bg1" align="left" valign="top">
644       <td class="action">+no-cookies-keep</td>
645       <td>Any cookies set by the website are changed to temporary
646         ("per-session") ones, which only last until you close your web
647         browser.  This will allow you to use sites that require cookies, but
648         sites will not be able to track you across sessions.  For this to
649         be useful, you should disable <b><i>no-cookies-read</i></b> and
650         <b><i>no-cookies-set</i></b>.</td>
651       <td class="en1" align="center" valign="middle"><input type="radio"
652         name="no_cookies_keep" value="Y" @no-cookies-keep-y@
653         ></td>
654       <td class="dis1" align="center" valign="middle"><input type="radio"
655         name="no_cookies_keep" value="N" @no-cookies-keep-n@
656         ></td>
657       <td class="noc1" align="center" valign="middle"><input type="radio"
658         name="no_cookies_keep" value="X" @no-cookies-keep-x@
659         ></td>
660     </tr>
661     <tr class="bg2" align="left" valign="top">
662       <td class="action">+no-cookies-read</td>
663       <td>Prevent the website from reading cookies.</td>
664       <td class="en2" align="center" valign="middle"><input type="radio"
665         name="no_cookies_read" value="Y" @no-cookies-read-y@
666         ></td>
667       <td class="dis2" align="center" valign="middle"><input type="radio"
668         name="no_cookies_read" value="N" @no-cookies-read-n@
669         ></td>
670       <td class="noc2" align="center" valign="middle"><input type="radio"
671         name="no_cookies_read" value="X" @no-cookies-read-x@
672         ></td>
673     </tr>
674     <tr class="bg1" align="left" valign="top">
675       <td class="action">+no-cookies-set</td>
676       <td>Prevent the website from setting cookies.</td>
677       <td class="en1" align="center" valign="middle"><input type="radio"
678         name="no_cookies_set" value="Y" @no-cookies-set-y@
679         ></td>
680       <td class="dis1" align="center" valign="middle"><input type="radio"
681         name="no_cookies_set" value="N" @no-cookies-set-n@
682         ></td>
683       <td class="noc1" align="center" valign="middle"><input type="radio"
684         name="no_cookies_set" value="X" @no-cookies-set-x@
685         ></td>
686     </tr>
687     <tr class="bg2" align="left" valign="top">
688       <td class="action">+no-popups</td>
689       <td>Filter the website through a built-in filter to disable JavaScript
690         pop-up windows.</td>
691       <td class="en2" align="center" valign="middle"><input type="radio"
692         name="no_popups" value="Y" @no-popups-y@
693         ></td>
694       <td class="dis2" align="center" valign="middle"><input type="radio"
695         name="no_popups" value="N" @no-popups-n@
696         ></td>
697       <td class="noc2" align="center" valign="middle"><input type="radio"
698         name="no_popups" value="X" @no-popups-x@
699         ></td>
700     </tr>
701     <tr class="bg1" align="left" valign="top">
702       <td class="action">+vanilla-wafer</td>
703       <td>If you use a jarfile, automatically adds a special wafer.</td>
704       <td class="en1" align="center" valign="middle"><input type="radio"
705         name="vanilla_wafer" value="Y" @vanilla-wafer-y@
706         ></td>
707       <td class="dis1" align="center" valign="middle"><input type="radio"
708         name="vanilla_wafer" value="N" @vanilla-wafer-n@
709         ></td>
710       <td class="noc1" align="center" valign="middle"><input type="radio"
711         name="vanilla_wafer" value="X" @vanilla-wafer-x@
712         ></td>
713     </tr>
714     <tr class="bg2" align="left" valign="top">
715       <td class="action">+wafer</td>
716       <td>Adds user-specified cookies.</td>
717       <td class="en2" align="center" valign="middle"><input type="radio"
718         name="wafer" id="wafer_y" value="Y" @wafer-y@
719         onclick="show_wafer_opts(true)"></td>
720       <td class="dis2" align="center" valign="middle"><input type="radio"
721         name="wafer" id="wafer_n" value="N" @wafer-n@
722         onclick="show_wafer_opts(false)"></td>
723       <td class="noc2" align="center" valign="middle"><input type="radio"
724         name="wafer" id="wafer_x" value="X" @wafer-x@
725         onclick="show_wafer_opts(false)"></td>
726     </tr>
727     <tr class="bg2" align="left" valign="top" id="wafer_opts">
728       <td>&nbsp;</td>
729       <td colspan="4">Editing the settings for this option, or turning
730         it on if it was off, is not yet supported using this web-based
731         editor.</td>
732     </tr>
733   </table>
734
735
736 <script type="text/javascript">
737 <!--
738
739 if (document.getElementById) {
740     // alert("Netscape 6 or IE5");
741     document.getElementById("hide_from_param").disabled = !(document.getElementById("from_mode_set").checked);
742     document.getElementById("hide_referer_param").disabled = !(document.getElementById("referer_mode_set").checked);
743     document.getElementById("image_blocker_param").disabled = !(document.getElementById("image_blocker_mode_set").checked);
744
745     show_add_header_opts    (document.getElementById("add_header_y").checked);
746     show_deanimate_opts     (document.getElementById("deanimate_gifs_y").checked);
747     show_hide_from_opts     (document.getElementById("hide_from_y").checked);
748     show_hide_referer_opts  (document.getElementById("hide_referer_y").checked);
749     show_user_agent_opts    (document.getElementById("hide_user_agent_y").checked);
750     show_image_blocker_opts (document.getElementById("image_blocker_y").checked);
751     show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
752     show_wafer_opts         (document.getElementById("wafer_y").checked);
753 } else if (document.all) {
754     // alert("IE4");
755     document.myform.hide_from_param.disabled = !(document.myform.from_mode_set.checked);
756     document.myform.hide_referer_param.disabled = !(document.myform.referer_mode_set.checked);
757     document.myform.image_blocker_param.disabled = !(document.myform.image_blocker_mode_set.checked);
758
759     show_add_header_opts    (document.myform.add_header_y.checked);
760     show_deanimate_opts     (document.myform.deanimate_gifs_y.checked);
761     show_hide_from_opts     (document.myform.hide_from_y.checked);
762     show_hide_referer_opts  (document.myform.hide_referer_y.checked);
763     show_user_agent_opts    (document.myform.hide_user_agent_y.checked);
764     show_image_blocker_opts (document.myform.image_blocker_y.checked);
765     show_limit_connect_opts (document.myform.limit_connect_y.checked);
766     show_wafer_opts         (document.myform.wafer_y.checked);
767 } else if (document.layers) {
768     // alert("Netscape 4");
769 }
770 //-->
771 </script>
772
773   <table cellpadding="20" cellspacing="10" border="0" width="100%">
774     <tr>
775       <td class="green" align="center">
776         <p><input type="submit" value="Submit" name="Submit"></p>
777       </td>
778     </tr>
779
780     <tr>
781       <td class="dark">
782         <h2>More Junkbuster:</h2>
783         <ul>@menu@</ul>
784       </td>
785     </tr>
786
787 <!-- @if-have-help-info-start -->
788     <tr>
789       <td class="light">
790         <h2>Local Junkbuster support:</h2>
791
792 <!-- @if-have-proxy-info-start -->
793         <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Junkbuster installation.
794 <!-- if-have-proxy-info-end@ -->
795
796 <!-- @if-have-adminaddr-info-start -->
797         <p>Address e-mail questions about this service to
798           <a href="mailto:@admin-address@"><code>@admin-address@</code></a>,
799           who will be glad to help you.
800 <!-- if-have-adminaddr-info-end@ -->
801
802         </p>
803       </td>
804     </tr>
805 <!-- if-have-help-info-end@ -->
806     
807     <tr>
808       <td>
809         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
810       </td>
811     </tr>
812
813   </table>
814 </form>
815
816 </body>
817
818 </html>
819