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