1 ##############################################################################
3 # File : $Source: /cvsroot/ijbswa//current/templates/edit-actions-for-url,v $
5 # Purpose : Template used to edit the actions associated with a
6 # particular section in an actions file.
9 # Copyright : Written by and Copyright (C) 2001 the SourceForge
10 # Privoxy team. http://www.privoxy.org/
12 # Original Author: Copyright (C) 2001 Jonathan Foster
13 # http://www.jon-foster.co.uk/
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.
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.
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.
34 # $Log: edit-actions-for-url,v $
35 # Revision 1.29.2.3 2002/08/23 02:22:53 hal9
36 # Fix a perl brain fart with <li> in comments.
38 # Revision 1.29.2.1 2002/08/02 12:51:42 oes
39 # Added top submit button; Consistency with docs: Change default name for action from hide-referer to hide-referrer
41 # Revision 1.29 2002/05/21 19:10:57 oes
42 # Fixed JavaScript error
44 # Revision 1.28 2002/05/14 21:36:38 oes
45 # - Renamed prevent-(setting/reading)-cookies to
46 # crunch-(incoming/outgoing)-cookies
47 # - Renamed helplink export to actions-help-prefix
48 # - Restored alphabetical order of actions
50 # Revision 1.27 2002/04/26 22:55:26 jongfoster
51 # Removing the alternating colors because they've been wrong
52 # since the actions renames, they're high maintenance, they
53 # don't look particularly good, and now there are gaps between
54 # the table cells we don't need them.
56 # Revision 1.26 2002/04/26 21:55:17 jongfoster
57 # Cosmetic change: Making the +filter UI look the same as
60 # Revision 1.25 2002/04/26 21:37:50 jongfoster
61 # Fixing all(?) the substitutions that were broken in the
62 # recent actions rename.
64 # Revision 1.24 2002/04/26 18:24:28 jongfoster
65 # Fixing typos in help hyperlinks
67 # Revision 1.23 2002/04/26 12:57:02 oes
68 # Actions renamed, alphabetically sorted, comments fixed, and names linked to help
70 # Revision 1.22 2002/04/10 13:32:53 oes
71 # Made templates modular
73 # Revision 1.21 2002/04/08 17:05:18 oes
74 # Inline a style exception
76 # Revision 1.20 2002/04/05 16:01:30 oes
77 # Correct HTML, external Stylesheets, eye candy, some fixes
79 # Revision 1.19 2002/03/26 22:29:56 swa
80 # we have a new homepage!
82 # Revision 1.18 2002/03/24 16:32:08 jongfoster
83 # Removing logo option
85 # Revision 1.17 2002/03/24 15:23:33 jongfoster
88 # Revision 1.16 2002/03/24 11:01:06 swa
91 # Revision 1.15 2002/03/23 16:18:15 swa
92 # renamed every reference to the old name with foobar.
93 # fixed "application foobar application" tag, fixed
94 # "the foobar" with "foobar". left junkbuster in cvs
95 # comments and remarks to history untouched. should
96 # make final rename easier.
98 # Revision 1.14 2002/03/16 15:22:19 jongfoster
99 # Moving 'alpha' warning to the end of the page
101 # Revision 1.13 2002/03/16 14:28:38 jongfoster
102 # First version of modular filters support
104 # Revision 1.12 2002/03/12 01:42:50 oes
105 # Introduced modular filters
107 # Revision 1.11 2002/03/08 18:19:14 jongfoster
108 # Adding +image-blocker{pattern} option to edit interface
110 # Revision 1.10 2002/03/03 10:29:12 swa
111 # point users to the right feedback forms,
112 # not necessarily the developer list.
114 # Revision 1.9 2002/01/23 00:26:45 jongfoster
115 # Reducing length of URLs
116 # Where encoded and unencoded versions of a string existed, removing
119 # Revision 1.8 2002/01/17 21:33:00 jongfoster
120 # Replacing all references to the URL of the config interface
123 # Revision 1.7 2002/01/17 21:21:03 jongfoster
124 # DOS->Unix line endings
126 # Revision 1.6 2001/11/22 21:58:41 jongfoster
127 # Adding action +no-cookies-keep
129 # Revision 1.5 2001/11/13 21:12:17 jongfoster
130 # Added support for the following actions:
131 # +downgrade, +limit-connect, +no-compression
133 # Revision 1.4 2001/11/13 00:58:18 jongfoster
134 # New version of actions file editor templates
137 ##############################################################################
139 # Browser support for the JavaScript on this page:
140 # MS Internet Explorer 5.5 - Tested, Yes
141 # Netscape 6.0 - Tested, Yes
142 # Netscape 4.75 - Tested, NO
143 # Opera 5.12 - Tested, NO
144 # MS Internet Explorer 4+ - Untested, Yes
145 # MS IE 3.x, NS3.x - Untested, NO
146 # Mozilla >=0.6 - Untested, Yes
148 # All browsers should work, you just might not get the pretty DHTML effects.
150 # The effects that only work under the browsers marked "Yes" above are:
151 # - Text edit boxes that won't have any effect are disabled.
152 # - Table rows containing additional settings are hidden if the feature in
153 # question is disabled.
155 # There are major kludges to get around these problems with NS4, but they
156 # screw up the HTML too much for other browsers. If anyone wants to try,
157 # here's some descriptions of the kludges:
158 # http://www.webreference.com/js/tips/991114.html
159 # http://www.webreference.com/dhtml/column12/outDisplay.html
161 # If you're favorite browser isn't listed, please test and add it.
164 #############################################################################
168 # This file currently produces valid HTML 4.01 Strict.
170 # If you change it, please save the generated page from your web browser
171 # and then upload it to http://validator.w3.org/ for checking.
173 #############################################################################
175 # Available variables include:
181 # deanimate-gifs-param-first
182 # deanimate-gifs-param-last
183 # hide-from-param-block
184 # hide-from-param-custom
186 # hide-referrer-param-forge
187 # hide-referrer-param-block
188 # hide-referrer-param-custom
189 # hide-referrer-param
190 # hide-user-agent-param
191 # image-blocker-param-pattern
192 # image-blocker-param-blank
193 # image-blocker-param-custom
196 #############################################################################
197 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
201 <meta http-equiv="Content-Style-Type" content="text/css">
202 <meta http-equiv="Content-Script-Type" content="text/javascript">
203 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
204 <meta name="robots" content="noindex,nofollow">
205 <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
207 <title>Privoxy@@my-hostname@: Edit actions</title>
209 <style type="text/css">
210 td.action { font-weight: bold;
212 white-space: nowrap }
213 td.subaction { font-style: italic }
214 th { font-weight: bold; }
215 # This is the key to the color names below:
216 # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header
217 # 1=odd rows, 2=even rows, h=Table header
218 tr.hdr { background-color: #999999 }
219 tr.bg1 { background-color: #eeeeee }
220 td.en1 { background-color: #ddffdd }
221 td.dis1 { background-color: #ffdddd }
222 td.noc1 { background-color: #ddddff }
223 th.enh { background-color: #99ff99 }
224 th.dish { background-color: #ff9999 }
225 th.noch { background-color: #9999ff }
226 table.wide { padding: 5px; }
227 td.green { border: solid black 1px; background-color: #ddffdd; }
233 border-left-width: 10px;
234 border-right-width: 10px;
235 border-top-width: 0px;
236 border-bottom-width: 0px }
239 <script type="text/javascript">
242 function hide_from_header_param_disable(tf)
244 if (document.getElementById) {
246 document.getElementById("hide_from_header_param").disabled = tf;
247 } else if (document.all) {
249 document.myform.hide_from_header_param.disabled = tf;
253 function hide_referrer_param_disable(tf)
255 if (document.getElementById) {
256 document.getElementById("hide_referrer_param").disabled = tf;
257 } else if (document.all) {
258 document.myform.hide_referrer_param.disabled = tf;
262 function set_image_blocker_param_disable(tf)
264 if (document.getElementById) {
265 document.getElementById("set_image_blocker_param").disabled = tf;
266 } else if (document.all) {
267 document.myform.set_image_blocker_param.disabled = tf;
271 function show_add_header_opts(tf)
273 if (document.getElementById) {
274 target = document.getElementById("add_header_opts");
275 } else if (document.all) {
276 target = document.add_header_opts;
280 target.style.display = (tf ? "" : "none");
283 function show_deanimate_opts(tf)
285 if (document.getElementById) {
286 target = document.getElementById("deanimate_opts");
287 } else if (document.all) {
288 target = document.deanimate_opts;
292 target.style.display = (tf ? "" : "none");
295 function show_hide_from_header_opts(tf)
297 if (document.getElementById) {
298 target = document.getElementById("hide_from_header_opts");
299 } else if (document.all) {
300 target = document.hide_from_header_opts;
304 target.style.display = (tf ? "" : "none");
307 function show_hide_referrer_opts(tf)
309 if (document.getElementById) {
310 target = document.getElementById("hide_referrer_opts");
311 } else if (document.all) {
312 target = document.hide_referrer_opts;
316 target.style.display = (tf ? "" : "none");
319 function show_user_agent_opts(tf)
321 if (document.getElementById) {
322 target = document.getElementById("user_agent_opts");
323 } else if (document.all) {
324 target = document.user_agent_opts;
328 target.style.display = (tf ? "" : "none");
331 function show_set_image_blocker_opts(tf)
333 if (document.getElementById) {
334 target = document.getElementById("set_image_blocker_opts");
335 } else if (document.all) {
336 target = document.set_image_blocker_opts;
340 target.style.display = (tf ? "" : "none");
343 function show_limit_connect_opts(tf)
345 if (document.getElementById) {
346 target = document.getElementById("limit_connect_opts");
347 } else if (document.all) {
348 target = document.limit_connect_opts;
352 target.style.display = (tf ? "" : "none");
355 function show_send_wafer_opts(tf)
357 if (document.getElementById) {
358 target = document.getElementById("send_wafer_opts");
359 } else if (document.all) {
360 target = document.send_wafer_opts;
364 target.style.display = (tf ? "" : "none");
373 <form method="GET" action="edit-actions-submit" id="myform" name="myform">
375 <table cellpadding="20" cellspacing="10" border="0" width="100%">
384 <!-- @if-unstable-start -->
385 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
389 #include mod-unstable-warning
393 <!-- if-unstable-end@ -->
398 <input type="hidden" name="f" value="@f@">
399 <input type="hidden" name="v" value="@v@">
400 <input type="hidden" name="s" value="@s@">
406 <td class="green" align="center">
407 <p><input type="submit" value="Submit" name="Submit"></p>
411 <tr><td class="wrapbox">
413 <table border="0" cellspacing="2" width="100%" class="wide">
414 <tr class="hdr" align="left">
415 <th class="enh" align="center">Enable</th>
416 <th class="dish" align="center">Disable</th>
417 <th class="noch" align="center">No Change</th>
421 <tr class="bg1" align="left" valign="top">
422 <td class="en1" align="center" valign="middle"><input type="radio"
423 name="add_header" id="add_header_y" value="Y" @add-header-y@
424 onclick="show_add_header_opts(true)"></td>
425 <td class="dis1" align="center" valign="middle"><input type="radio"
426 name="add_header" value="N" @add-header-n@
427 onclick="show_add_header_opts(false)"></td>
428 <td class="noc1" align="center" valign="middle"><input type="radio"
429 name="add_header" value="X" @add-header-x@
430 onclick="show_add_header_opts(false)"></td>
431 <td class="action"><a href="@user-manual@@actions-help-prefix@ADD-HEADER">add-header</a></td>
432 <td>Adds HTTP headers.</td>
434 <tr class="bg1" align="left" valign="top" id="add_header_opts">
435 <td class="en1"> </td>
436 <td class="dis1"> </td>
437 <td class="noc1"> </td>
439 <td>Editing the settings for this option, or turning
440 it on if it was off, is not yet supported using this web-based
443 <tr class="bg1" align="left" valign="top">
444 <td class="en1" align="center" valign="middle"><input type="radio"
445 name="block" value="Y" @block-y@
447 <td class="dis1" align="center" valign="middle"><input type="radio"
448 name="block" value="N" @block-n@
450 <td class="noc1" align="center" valign="middle"><input type="radio"
451 name="block" value="X" @block-x@
453 <td class="action"><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></td>
454 <td>Block the request</td>
456 <tr class="bg1" align="left" valign="top">
457 <td class="en1" align="center" valign="middle"><input type="radio"
458 name="crunch_incoming_cookies" value="Y" @crunch-incoming-cookies-y@
460 <td class="dis1" align="center" valign="middle"><input type="radio"
461 name="crunch_incoming_cookies" value="N" @crunch-incoming-cookies-n@
463 <td class="noc1" align="center" valign="middle"><input type="radio"
464 name="crunch_incoming_cookies" value="X" @crunch-incoming-cookies-x@
466 <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES">crunch-incoming-cookies</a></td>
467 <td>Prevent the website from setting cookies on your system.</td>
469 <tr class="bg1" align="left" valign="top">
470 <td class="en1" align="center" valign="middle"><input type="radio"
471 name="crunch_outgoing_cookies" value="Y" @crunch-outgoing-cookies-y@
473 <td class="dis1" align="center" valign="middle"><input type="radio"
474 name="crunch_outgoing_cookies" value="N" @crunch-outgoing-cookies-n@
476 <td class="noc1" align="center" valign="middle"><input type="radio"
477 name="crunch_outgoing_cookies" value="X" @crunch-outgoing-cookies-x@
479 <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES">crunch-outgoing-cookies</a></td>
480 <td>Prevent the website from reading cookies from your system.</td>
482 <tr class="bg1" align="left" valign="top">
483 <td class="en1" align="center" valign="middle"><input type="radio"
484 name="deanimate_gifs" id="deanimate_gifs_y" value="Y" @deanimate-gifs-y@
485 onclick="show_deanimate_opts(true)"></td>
486 <td class="dis1" align="center" valign="middle"><input type="radio"
487 name="deanimate_gifs" value="N" @deanimate-gifs-n@
488 onclick="show_deanimate_opts(false)"></td>
489 <td class="noc1" align="center" valign="middle"><input type="radio"
490 name="deanimate_gifs" value="X" @deanimate-gifs-x@
491 onclick="show_deanimate_opts(false)"></td>
492 <td class="action"><a href="@user-manual@@actions-help-prefix@DEANIMATE-GIFS">deanimate-gifs</a></td>
493 <td>Replace animated GIFs with their (first/last) frame.</td>
495 <tr class="bg1" align="left" valign="top" id="deanimate_opts">
496 <td class="en1"> </td>
497 <td class="dis1"> </td>
498 <td class="noc1"> </td>
500 <td>Use the <input type="radio" name="deanimate_gifs_mode"
501 value="first" id="deanimate_first" @deanimate-gifs-param-first@><label
502 for="deanimate_first">first frame</label> <input
503 type="radio" name="deanimate_gifs_mode" value="last"
504 id="deanimate_last" @deanimate-gifs-param-last@><label
505 for="deanimate_last">last frame</label></td>
507 <tr class="bg1" align="left" valign="top">
508 <td class="en1" align="center" valign="middle"><input type="radio"
509 name="downgrade_http_version" value="Y" @downgrade-http-version-y@></td>
510 <td class="dis1" align="center" valign="middle"><input type="radio"
511 name="downgrade_http_version" value="N" @downgrade-http-version-n@></td>
512 <td class="noc1" align="center" valign="middle"><input type="radio"
513 name="downgrade_http_version" value="X" @downgrade-http-version-x@></td>
514 <td class="action"><a href="@user-manual@@actions-help-prefix@DOWNGRADE-HTTP-VERSION">downgrade-http-version</td>
515 <td>Change HTTP/1.1 requests to HTTP/1.0. Only change if you know
516 what you're doing!</td>
518 <tr class="bg1" align="left" valign="top">
519 <td class="en1" align="center" valign="middle"><input type="radio"
520 name="fast_redirects" value="Y" @fast-redirects-y@
522 <td class="dis1" align="center" valign="middle"><input type="radio"
523 name="fast_redirects" value="N" @fast-redirects-n@
525 <td class="noc1" align="center" valign="middle"><input type="radio"
526 name="fast_redirects" value="X" @fast-redirects-x@
528 <td class="action"><a href="@user-manual@@actions-help-prefix@FAST-REDIRECTS">fast-redirects</a></td>
529 <td>Bypass some click-tracking URLs.</td>
532 <tr class="bg1" align="left" valign="top">
533 <td class="en1"> </td>
534 <td class="dis1" align="center" valign="middle"><input type="radio"
535 name="filter_all" id="filter_all_n" value="N" @filter-all-n@ ></td>
536 <td class="noc1" align="center" valign="middle"><input type="radio"
537 name="filter_all" id="filter_all_x" value="X" @filter-all-x@ ></td>
538 <td class="action"><a href="@user-manual@@actions-help-prefix@FILTER">filter</a> *</td>
539 <td>Filter the website through regular expression
540 filters. You can use the radio buttons on this line to disable
541 all filters applied by previous rules, and/or you can enable or
542 disable the filters individually below.</td>
545 <tr class="bg1" align="left" valign="top">
546 <td class="en1" align="center" valign="middle"><input type="radio"
547 name="handle_as_image" value="Y" @handle-as-image-y@
549 <td class="dis1" align="center" valign="middle"><input type="radio"
550 name="handle_as_image" value="N" @handle-as-image-n@
552 <td class="noc1" align="center" valign="middle"><input type="radio"
553 name="handle_as_image" value="X" @handle-as-image-x@
555 <td class="action"><a href="@user-manual@@actions-help-prefix@HANDLE-AS-IMAGE">handle-as-image</a></td>
556 <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>
557 and <i><b><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></b></i> actions).</td>
559 <tr class="bg1" align="left" valign="top">
560 <td class="en1" align="center" valign="middle"><input type="radio"
561 name="hide_forwarded_for_headers" value="Y" @hide-forwarded-for-headers-y@
563 <td class="dis1" align="center" valign="middle"><input type="radio"
564 name="hide_forwarded_for_headers" value="N" @hide-forwarded-for-headers-n@
566 <td class="noc1" align="center" valign="middle"><input type="radio"
567 name="hide_forwarded_for_headers" value="X" @hide-forwarded-for-headers-x@
569 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FORWARDED-FOR-HEADERS">hide-forwarded-for-headers</a></td>
570 <td>Block any existing X-Forwarded-for header, and do not add a new one.</td>
572 <tr class="bg1" align="left" valign="top">
573 <td class="en1" align="center" valign="middle"><input type="radio"
574 name="hide_from_header" id="hide_from_header_y" value="Y" @hide-from-header-y@
575 onclick="show_hide_from_header_opts(true)"></td>
576 <td class="dis1" align="center" valign="middle"><input type="radio"
577 name="hide_from_header" value="N" @hide-from-header-n@
578 onclick="show_hide_from_header_opts(false)"></td>
579 <td class="noc1" align="center" valign="middle"><input type="radio"
580 name="hide_from_header" value="X" @hide-from-header-x@
581 onclick="show_hide_from_header_opts(false)"></td>
582 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FROM-HEADER">hide-from-header</a></td>
583 <td>Stop old web browsers from sending the user's e-mail address with
586 <tr class="bg1" align="left" valign="top" id="hide_from_header_opts">
587 <td class="en1"> </td>
588 <td class="dis1"> </td>
589 <td class="noc1"> </td>
591 <td><input type="radio" name="hide_from_header_mode" value="block"
592 onclick="hide_from_header_param_disable(true);"
593 @hide-from-header-param-block@ id="hide_from_header_mode_block"><label
594 for="hide_from_header_mode_block">Remove completely</label><br>
595 <input type="radio" name="hide_from_header_mode" value="CUSTOM"
596 onclick="hide_from_header_param_disable(false);"
597 @hide-from-header-param-custom@ id="hide_from_header_mode_set"><label
598 for="hide_from_header_mode_set">Fake e-mail address:</label><br>
599 <input type="text" name="hide_from_header_param" id="hide_from_header_param"
600 size="40" value="@hide-from-header-param@"></td>
602 <tr class="bg1" align="left" valign="top">
603 <td class="en1" align="center" valign="middle"><input type="radio"
604 name="hide_referrer" id="hide_referrer_y" value="Y" @hide-referrer-y@
605 onclick="show_hide_referrer_opts(true)"></td>
606 <td class="dis1" align="center" valign="middle"><input type="radio"
607 name="hide_referrer" id="hide_referrer_n" value="N" @hide-referrer-n@
608 onclick="show_hide_referrer_opts(false)"></td>
609 <td class="noc1" align="center" valign="middle"><input type="radio"
610 name="hide_referrer" id="hide_referrer_x" value="X" @hide-referrer-x@
611 onclick="show_hide_referrer_opts(false)"
613 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-REFERRER">hide-referrer</a></td>
614 <td>Helps prevent tracking by not sending the URL of the previous web
617 <tr class="bg1" align="left" valign="top" id="hide_referrer_opts">
618 <td class="en1"> </td>
619 <td class="dis1"> </td>
620 <td class="noc1"> </td>
622 <td><input type="radio" name="hide_referrer_mode" value="block"
623 onclick="hide_referrer_param_disable(true)"
624 @hide-referrer-param-block@ id="hide_referrer_mode_block"><label
625 for="hide_referrer_mode_block">Remove completely</label> (breaks images
626 on some free web hosts).<br>
627 <input type="radio" name="hide_referrer_mode" value="forge"
628 onclick="hide_referrer_param_disable(true)"
629 @hide-referrer-param-forge@ id="hide_referrer_mode_forge"><label
630 for="hide_referrer_mode_forge">Fake as the root directory of the
631 site</label> (fools checks for in-site links.)<br>
632 <input type="radio" name="hide_referrer_mode" value="CUSTOM"
633 onclick="hide_referrer_param_disable(false)"
634 @hide-referrer-param-custom@ id="hide_referrer_mode_set"><label
635 for="hide_referrer_mode_set">Fake as this web address:</label><br>
636 <input type="text" name="hide_referrer_param"
637 id="hide_referrer_param" size="40"
638 value="@hide-referrer-param@"></td>
640 <tr class="bg1" align="left" valign="top">
641 <td class="en1" align="center" valign="middle"><input type="radio"
642 name="hide_user_agent" id="hide_user_agent_y" value="Y" @hide-user-agent-y@
643 onclick="show_user_agent_opts(true)"></td>
644 <td class="dis1" align="center" valign="middle"><input type="radio"
645 name="hide_user_agent" value="N" @hide-user-agent-n@
646 onclick="show_user_agent_opts(false)"></td>
647 <td class="noc1" align="center" valign="middle"><input type="radio"
648 name="hide_user_agent" value="X" @hide-user-agent-x@
649 onclick="show_user_agent_opts(false)"></td>
650 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-USER-AGENT">hide-user-agent</a></td>
651 <td>Pretend to be using a different web browser. (Breaks many web
654 <tr class="bg1" align="left" valign="top" id="user_agent_opts">
655 <td class="en1"> </td>
656 <td class="dis1"> </td>
657 <td class="noc1"> </td>
659 <td>User Agent string to send:<br>
660 <input type="text" name="hide_user_agent_mode" size="40"
661 value="@hide-user-agent-param@"></td>
663 <tr class="bg1" align="left" valign="top">
664 <td class="en1" align="center" valign="middle"><input type="radio"
665 name="kill_popups" value="Y" @kill-popups-y@
667 <td class="dis1" align="center" valign="middle"><input type="radio"
668 name="kill_popups" value="N" @kill-popups-n@
670 <td class="noc1" align="center" valign="middle"><input type="radio"
671 name="kill_popups" value="X" @kill-popups-x@
673 <td class="action"><a href="@user-manual@@actions-help-prefix@KILL-POPUPS">kill-popups</td>
674 <td>Filter the website through a built-in filter to disable many JavaScript
677 <tr class="bg1" align="left" valign="top">
678 <td class="en1" align="center" valign="middle"><input type="radio"
679 name="limit_connect" id="limit_connect_y" value="Y" @limit-connect-y@
680 onclick="show_limit_connect_opts(true)"></td>
681 <td class="dis1" align="center" valign="middle"><input type="radio"
682 name="limit_connect" value="N" @limit-connect-n@
683 onclick="show_limit_connect_opts(false)"></td>
684 <td class="noc1" align="center" valign="middle"><input type="radio"
685 name="limit_connect" value="X" @limit-connect-x@
686 onclick="show_limit_connect_opts(false)"></td>
687 <td class="action"><a href="@user-manual@@actions-help-prefix@LIMIT-CONNECT">limit-connect</a></td>
688 <td>Specify which ports are allowed for SSL (HTTP CONNECT) access.
689 Note that this allows arbitrary tunnelling, so opening all
690 ports would be a security hole.</td>
692 <tr class="bg1" align="left" valign="top" id="limit_connect_opts">
693 <td class="en1"> </td>
694 <td class="dis1"> </td>
695 <td class="noc1"> </td>
697 <td>Legal SSL ports (comma separated, ranges allowed):<br>
698 <input type="text" name="limit_connect_mode" size="40"
699 value="@limit-connect-param@"></td>
701 <tr class="bg1" align="left" valign="top">
702 <td class="en1" align="center" valign="middle"><input type="radio"
703 name="prevent_compression" value="Y" @prevent-compression-y@
705 <td class="dis1" align="center" valign="middle"><input type="radio"
706 name="prevent_compression" value="N" @prevent-compression-n@
708 <td class="noc1" align="center" valign="middle"><input type="radio"
709 name="prevent_compression" value="X" @prevent-compression-x@
711 <td class="action"><a href="@user-manual@@actions-help-prefix@PREVENT-COMPRESSION">prevent-compression</a></td>
712 <td>Disables compression. Compressed web pages are faster to
713 download, but cannot be filtered with <a href="@user-manual@@actions-help-prefix@FILTER"><b>filter</b></a>
714 or <a href="@user-manual@@actions-help-prefix@KILL-POPUPS"><b>kill-popups</b></a>.
715 This setting only affects the few web sites which support
718 <tr class="bg1" align="left" valign="top">
719 <td class="en1" align="center" valign="middle"><input type="radio"
720 name="send_vanilla_wafer" value="Y" @send-vanilla-wafer-y@
722 <td class="dis1" align="center" valign="middle"><input type="radio"
723 name="send_vanilla_wafer" value="N" @send-vanilla-wafer-n@
725 <td class="noc1" align="center" valign="middle"><input type="radio"
726 name="send_vanilla_wafer" value="X" @send-vanilla-wafer-x@
728 <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-VANILLA-WAFER">send-vanilla-wafer</a></td>
729 <td>Adds a special wafer (standard cookie) to all your requests.</td>
731 <tr class="bg1" align="left" valign="top">
732 <td class="en1" align="center" valign="middle"><input type="radio"
733 name="send_wafer" id="send_wafer_y" value="Y" @send-wafer-y@
734 onclick="show_send_wafer_opts(true)"></td>
735 <td class="dis1" align="center" valign="middle"><input type="radio"
736 name="send_wafer" id="send_wafer_n" value="N" @send-wafer-n@
737 onclick="show_send_wafer_opts(false)"></td>
738 <td class="noc1" align="center" valign="middle"><input type="radio"
739 name="send_wafer" id="send_wafer_x" value="X" @send-wafer-x@
740 onclick="show_send_wafer_opts(false)"></td>
741 <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-WAFER">send-wafer</a></td>
742 <td>Adds user-specified cookies.</td>
744 <tr class="bg1" align="left" valign="top" id="send_wafer_opts">
745 <td class="en1"> </td>
746 <td class="dis1"> </td>
747 <td class="noc1"> </td>
749 <td>Editing the settings for this option, or turning
750 it on if it was off, is not yet supported using this web-based
753 <tr class="bg1" align="left" valign="top">
754 <td class="en1" align="center" valign="middle"><input type="radio"
755 name="session_cookies_only" value="Y" @session-cookies-only-y@
757 <td class="dis1" align="center" valign="middle"><input type="radio"
758 name="session_cookies_only" value="N" @session-cookies-only-n@
760 <td class="noc1" align="center" valign="middle"><input type="radio"
761 name="session_cookies_only" value="X" @session-cookies-only-x@
763 <td class="action"><a href="@user-manual@@actions-help-prefix@SESSION-COOKIES-ONLY">session-cookies-only</a></td>
764 <td>Any cookies set by the website are changed to temporary
765 ("per-session") ones, which only last until you close your web
766 browser. This will allow you to use sites that require cookies, but
767 sites will not be able to track you across sessions. For this to
768 be useful, you should disable
769 <a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES"><b>crunch-outgoing-cookies</b></a> and
770 <a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES"><b>crunch-incoming-cookies</b></a>.</td>
772 <tr class="bg1" align="left" valign="top">
773 <td class="en1" align="center" valign="middle"><input type="radio"
774 name="set_image_blocker" id="set_image_blocker_y" value="Y" @set-image-blocker-y@
775 onclick="show_set_image_blocker_opts(true)"></td>
776 <td class="dis1" align="center" valign="middle"><input type="radio"
777 name="set_image_blocker" value="N" @set-image-blocker-n@
778 onclick="show_set_image_blocker_opts(false)"></td>
779 <td class="noc1" align="center" valign="middle"><input type="radio"
780 name="set_image_blocker" value="X" @set-image-blocker-x@
781 onclick="show_set_image_blocker_opts(false)"></td>
782 <td class="action"><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></td>
783 <td>Specifies how to block images.</td>
785 <tr class="bg1" align="left" valign="top" id="set_image_blocker_opts">
786 <td class="en1"> </td>
787 <td class="dis1"> </td>
788 <td class="noc1"> </td>
790 <td><input type="radio" name="set_image_blocker_mode"
791 onclick="set_image_blocker_param_disable(true)"
792 value="pattern" id="set_image_blocker_mode_pattern"
793 @set-image-blocker-param-pattern@><label
794 for="set_image_blocker_mode_pattern">Send a pattern (<img
795 src="send-banner?type=p" width="12" height="12"
796 alt="pattern">)</label><br>
797 <input type="radio" name="set_image_blocker_mode" value="blank"
798 onclick="set_image_blocker_param_disable(true)"
799 id="set_image_blocker_mode_blank" @set-image-blocker-param-blank@><label
800 for="set_image_blocker_mode_blank">Send a 1x1 transparent GIF</label><br>
801 <input type="radio" name="set_image_blocker_mode" value="CUSTOM"
802 onclick="set_image_blocker_param_disable(false)"
803 id="set_image_blocker_mode_set" @set-image-blocker-param-custom@><label
804 for="set_image_blocker_mode_set">Redirect
805 the browser to this image URL:</label><br>
806 <input type="text" name="set_image_blocker_param" id="set_image_blocker_param"
807 size="40" value="@set-image-blocker-param@"></td>
814 <td class="green" align="center">
815 <p><input type="submit" value="Submit" name="Submit"></p>
821 <h2>More Privoxy:</h2>
822 <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
829 #include mod-support-and-service
834 <!-- @if-have-help-info-start -->
838 #include mod-local-help
842 <!-- if-have-help-info-end@ -->
846 <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
854 <script type="text/javascript">
857 if (document.getElementById) {
858 // alert("Netscape 6 or IE5");
859 document.getElementById("hide_from_header_param").disabled = !(document.getElementById("hide_from_header_mode_set").checked);
860 document.getElementById("hide_referrer_param").disabled = !(document.getElementById("hide_referrer_mode_set").checked);
861 document.getElementById("set_image_blocker_param").disabled = !(document.getElementById("set_image_blocker_mode_set").checked);
863 show_add_header_opts (document.getElementById("add_header_y").checked);
864 show_deanimate_opts (document.getElementById("deanimate_gifs_y").checked);
865 show_hide_from_header_opts(document.getElementById("hide_from_header_y").checked);
866 show_hide_referrer_opts (document.getElementById("hide_referrer_y").checked);
867 show_user_agent_opts (document.getElementById("hide_user_agent_y").checked);
868 show_set_image_blocker_opts (document.getElementById("set_image_blocker_y").checked);
869 show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
870 show_send_wafer_opts (document.getElementById("wafer_y").checked);
871 } else if (document.all) {
873 document.myform.hide_from_header_param.disabled = !(document.myform.hide_from_header_mode_set.checked);
874 document.myform.hide_referrer_param.disabled = !(document.myform.hide_referrer_mode_set.checked);
875 document.myform.set_image_blocker_param.disabled = !(document.myform.set_image_blocker_mode_set.checked);
877 show_add_header_opts (document.myform.add_header_y.checked);
878 show_deanimate_opts (document.myform.deanimate_gifs_y.checked);
879 show_hide_from_header_opts (document.myform.hide_from_header_y.checked);
880 show_hide_referrer_opts (document.myform.hide_referrer_y.checked);
881 show_user_agent_opts (document.myform.hide_user_agent_y.checked);
882 show_set_image_blocker_opts (document.myform.set_image_blocker_y.checked);
883 show_limit_connect_opts (document.myform.limit_connect_y.checked);
884 show_send_wafer_opts (document.myform.wafer_y.checked);
885 } else if (document.layers) {
886 // alert("Netscape 4");