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