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.5 2004/10/05 03:17:26 david__schmidt
36 # Typo: inspect_jpegs, not inspect-jpegs in form
38 # Revision 1.29.2.4 2004/10/03 12:53:46 david__schmidt
39 # Add the ability to check jpeg images for invalid
40 # lengths of comment blocks. Defensive strategy
41 # against the exploit:
42 # Microsoft Security Bulletin MS04-028
43 # Buffer Overrun in JPEG Processing (GDI+) Could
44 # Allow Code Execution (833987)
45 # Enabled with +inspect-jpegs in actions files.
47 # Revision 1.29.2.3 2002/08/23 02:22:53 hal9
48 # Fix a perl brain fart with <li> in comments.
50 # Revision 1.29.2.1 2002/08/02 12:51:42 oes
51 # Added top submit button; Consistency with docs: Change default name for action from hide-referer to hide-referrer
53 # Revision 1.29 2002/05/21 19:10:57 oes
54 # Fixed JavaScript error
56 # Revision 1.28 2002/05/14 21:36:38 oes
57 # - Renamed prevent-(setting/reading)-cookies to
58 # crunch-(incoming/outgoing)-cookies
59 # - Renamed helplink export to actions-help-prefix
60 # - Restored alphabetical order of actions
62 # Revision 1.27 2002/04/26 22:55:26 jongfoster
63 # Removing the alternating colors because they've been wrong
64 # since the actions renames, they're high maintenance, they
65 # don't look particularly good, and now there are gaps between
66 # the table cells we don't need them.
68 # Revision 1.26 2002/04/26 21:55:17 jongfoster
69 # Cosmetic change: Making the +filter UI look the same as
72 # Revision 1.25 2002/04/26 21:37:50 jongfoster
73 # Fixing all(?) the substitutions that were broken in the
74 # recent actions rename.
76 # Revision 1.24 2002/04/26 18:24:28 jongfoster
77 # Fixing typos in help hyperlinks
79 # Revision 1.23 2002/04/26 12:57:02 oes
80 # Actions renamed, alphabetically sorted, comments fixed, and names linked to help
82 # Revision 1.22 2002/04/10 13:32:53 oes
83 # Made templates modular
85 # Revision 1.21 2002/04/08 17:05:18 oes
86 # Inline a style exception
88 # Revision 1.20 2002/04/05 16:01:30 oes
89 # Correct HTML, external Stylesheets, eye candy, some fixes
91 # Revision 1.19 2002/03/26 22:29:56 swa
92 # we have a new homepage!
94 # Revision 1.18 2002/03/24 16:32:08 jongfoster
95 # Removing logo option
97 # Revision 1.17 2002/03/24 15:23:33 jongfoster
100 # Revision 1.16 2002/03/24 11:01:06 swa
103 # Revision 1.15 2002/03/23 16:18:15 swa
104 # renamed every reference to the old name with foobar.
105 # fixed "application foobar application" tag, fixed
106 # "the foobar" with "foobar". left junkbuster in cvs
107 # comments and remarks to history untouched. should
108 # make final rename easier.
110 # Revision 1.14 2002/03/16 15:22:19 jongfoster
111 # Moving 'alpha' warning to the end of the page
113 # Revision 1.13 2002/03/16 14:28:38 jongfoster
114 # First version of modular filters support
116 # Revision 1.12 2002/03/12 01:42:50 oes
117 # Introduced modular filters
119 # Revision 1.11 2002/03/08 18:19:14 jongfoster
120 # Adding +image-blocker{pattern} option to edit interface
122 # Revision 1.10 2002/03/03 10:29:12 swa
123 # point users to the right feedback forms,
124 # not necessarily the developer list.
126 # Revision 1.9 2002/01/23 00:26:45 jongfoster
127 # Reducing length of URLs
128 # Where encoded and unencoded versions of a string existed, removing
131 # Revision 1.8 2002/01/17 21:33:00 jongfoster
132 # Replacing all references to the URL of the config interface
135 # Revision 1.7 2002/01/17 21:21:03 jongfoster
136 # DOS->Unix line endings
138 # Revision 1.6 2001/11/22 21:58:41 jongfoster
139 # Adding action +no-cookies-keep
141 # Revision 1.5 2001/11/13 21:12:17 jongfoster
142 # Added support for the following actions:
143 # +downgrade, +limit-connect, +no-compression
145 # Revision 1.4 2001/11/13 00:58:18 jongfoster
146 # New version of actions file editor templates
149 ##############################################################################
151 # Browser support for the JavaScript on this page:
152 # MS Internet Explorer 5.5 - Tested, Yes
153 # Netscape 6.0 - Tested, Yes
154 # Netscape 4.75 - Tested, NO
155 # Opera 5.12 - Tested, NO
156 # MS Internet Explorer 4+ - Untested, Yes
157 # MS IE 3.x, NS3.x - Untested, NO
158 # Mozilla >=0.6 - Untested, Yes
160 # All browsers should work, you just might not get the pretty DHTML effects.
162 # The effects that only work under the browsers marked "Yes" above are:
163 # - Text edit boxes that won't have any effect are disabled.
164 # - Table rows containing additional settings are hidden if the feature in
165 # question is disabled.
167 # There are major kludges to get around these problems with NS4, but they
168 # screw up the HTML too much for other browsers. If anyone wants to try,
169 # here's some descriptions of the kludges:
170 # http://www.webreference.com/js/tips/991114.html
171 # http://www.webreference.com/dhtml/column12/outDisplay.html
173 # If you're favorite browser isn't listed, please test and add it.
176 #############################################################################
180 # This file currently produces valid HTML 4.01 Strict.
182 # If you change it, please save the generated page from your web browser
183 # and then upload it to http://validator.w3.org/ for checking.
185 #############################################################################
187 # Available variables include:
193 # deanimate-gifs-param-first
194 # deanimate-gifs-param-last
195 # hide-from-param-block
196 # hide-from-param-custom
198 # hide-referrer-param-forge
199 # hide-referrer-param-block
200 # hide-referrer-param-custom
201 # hide-referrer-param
202 # hide-user-agent-param
203 # image-blocker-param-pattern
204 # image-blocker-param-blank
205 # image-blocker-param-custom
208 #############################################################################
209 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
213 <meta http-equiv="Content-Style-Type" content="text/css">
214 <meta http-equiv="Content-Script-Type" content="text/javascript">
215 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
216 <meta name="robots" content="noindex,nofollow">
217 <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
219 <title>Privoxy@@my-hostname@: Edit actions</title>
221 <style type="text/css">
222 td.action { font-weight: bold;
224 white-space: nowrap }
225 td.subaction { font-style: italic }
226 th { font-weight: bold; }
227 # This is the key to the color names below:
228 # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header
229 # 1=odd rows, 2=even rows, h=Table header
230 tr.hdr { background-color: #999999 }
231 tr.bg1 { background-color: #eeeeee }
232 td.en1 { background-color: #ddffdd }
233 td.dis1 { background-color: #ffdddd }
234 td.noc1 { background-color: #ddddff }
235 th.enh { background-color: #99ff99 }
236 th.dish { background-color: #ff9999 }
237 th.noch { background-color: #9999ff }
238 table.wide { padding: 5px; }
239 td.green { border: solid black 1px; background-color: #ddffdd; }
245 border-left-width: 10px;
246 border-right-width: 10px;
247 border-top-width: 0px;
248 border-bottom-width: 0px }
251 <script type="text/javascript">
254 function hide_from_header_param_disable(tf)
256 if (document.getElementById) {
258 document.getElementById("hide_from_header_param").disabled = tf;
259 } else if (document.all) {
261 document.myform.hide_from_header_param.disabled = tf;
265 function hide_referrer_param_disable(tf)
267 if (document.getElementById) {
268 document.getElementById("hide_referrer_param").disabled = tf;
269 } else if (document.all) {
270 document.myform.hide_referrer_param.disabled = tf;
274 function set_image_blocker_param_disable(tf)
276 if (document.getElementById) {
277 document.getElementById("set_image_blocker_param").disabled = tf;
278 } else if (document.all) {
279 document.myform.set_image_blocker_param.disabled = tf;
283 function show_add_header_opts(tf)
285 if (document.getElementById) {
286 target = document.getElementById("add_header_opts");
287 } else if (document.all) {
288 target = document.add_header_opts;
292 target.style.display = (tf ? "" : "none");
295 function show_deanimate_opts(tf)
297 if (document.getElementById) {
298 target = document.getElementById("deanimate_opts");
299 } else if (document.all) {
300 target = document.deanimate_opts;
304 target.style.display = (tf ? "" : "none");
307 function show_hide_from_header_opts(tf)
309 if (document.getElementById) {
310 target = document.getElementById("hide_from_header_opts");
311 } else if (document.all) {
312 target = document.hide_from_header_opts;
316 target.style.display = (tf ? "" : "none");
319 function show_hide_referrer_opts(tf)
321 if (document.getElementById) {
322 target = document.getElementById("hide_referrer_opts");
323 } else if (document.all) {
324 target = document.hide_referrer_opts;
328 target.style.display = (tf ? "" : "none");
331 function show_user_agent_opts(tf)
333 if (document.getElementById) {
334 target = document.getElementById("user_agent_opts");
335 } else if (document.all) {
336 target = document.user_agent_opts;
340 target.style.display = (tf ? "" : "none");
343 function show_set_image_blocker_opts(tf)
345 if (document.getElementById) {
346 target = document.getElementById("set_image_blocker_opts");
347 } else if (document.all) {
348 target = document.set_image_blocker_opts;
352 target.style.display = (tf ? "" : "none");
355 function show_limit_connect_opts(tf)
357 if (document.getElementById) {
358 target = document.getElementById("limit_connect_opts");
359 } else if (document.all) {
360 target = document.limit_connect_opts;
364 target.style.display = (tf ? "" : "none");
367 function show_send_wafer_opts(tf)
369 if (document.getElementById) {
370 target = document.getElementById("send_wafer_opts");
371 } else if (document.all) {
372 target = document.send_wafer_opts;
376 target.style.display = (tf ? "" : "none");
385 <form method="GET" action="edit-actions-submit" id="myform" name="myform">
387 <table cellpadding="20" cellspacing="10" border="0" width="100%">
396 <!-- @if-unstable-start -->
397 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
401 #include mod-unstable-warning
405 <!-- if-unstable-end@ -->
410 <input type="hidden" name="f" value="@f@">
411 <input type="hidden" name="v" value="@v@">
412 <input type="hidden" name="s" value="@s@">
418 <td class="green" align="center">
419 <p><input type="submit" value="Submit" name="Submit"></p>
423 <tr><td class="wrapbox">
425 <table border="0" cellspacing="2" width="100%" class="wide">
426 <tr class="hdr" align="left">
427 <th class="enh" align="center">Enable</th>
428 <th class="dish" align="center">Disable</th>
429 <th class="noch" align="center">No Change</th>
433 <tr class="bg1" align="left" valign="top">
434 <td class="en1" align="center" valign="middle"><input type="radio"
435 name="add_header" id="add_header_y" value="Y" @add-header-y@
436 onclick="show_add_header_opts(true)"></td>
437 <td class="dis1" align="center" valign="middle"><input type="radio"
438 name="add_header" value="N" @add-header-n@
439 onclick="show_add_header_opts(false)"></td>
440 <td class="noc1" align="center" valign="middle"><input type="radio"
441 name="add_header" value="X" @add-header-x@
442 onclick="show_add_header_opts(false)"></td>
443 <td class="action"><a href="@user-manual@@actions-help-prefix@ADD-HEADER">add-header</a></td>
444 <td>Adds HTTP headers.</td>
446 <tr class="bg1" align="left" valign="top" id="add_header_opts">
447 <td class="en1"> </td>
448 <td class="dis1"> </td>
449 <td class="noc1"> </td>
451 <td>Editing the settings for this option, or turning
452 it on if it was off, is not yet supported using this web-based
455 <tr class="bg1" align="left" valign="top">
456 <td class="en1" align="center" valign="middle"><input type="radio"
457 name="block" value="Y" @block-y@
459 <td class="dis1" align="center" valign="middle"><input type="radio"
460 name="block" value="N" @block-n@
462 <td class="noc1" align="center" valign="middle"><input type="radio"
463 name="block" value="X" @block-x@
465 <td class="action"><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></td>
466 <td>Block the request</td>
468 <tr class="bg1" align="left" valign="top">
469 <td class="en1" align="center" valign="middle"><input type="radio"
470 name="crunch_incoming_cookies" value="Y" @crunch-incoming-cookies-y@
472 <td class="dis1" align="center" valign="middle"><input type="radio"
473 name="crunch_incoming_cookies" value="N" @crunch-incoming-cookies-n@
475 <td class="noc1" align="center" valign="middle"><input type="radio"
476 name="crunch_incoming_cookies" value="X" @crunch-incoming-cookies-x@
478 <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES">crunch-incoming-cookies</a></td>
479 <td>Prevent the website from setting cookies on your system.</td>
481 <tr class="bg1" align="left" valign="top">
482 <td class="en1" align="center" valign="middle"><input type="radio"
483 name="crunch_outgoing_cookies" value="Y" @crunch-outgoing-cookies-y@
485 <td class="dis1" align="center" valign="middle"><input type="radio"
486 name="crunch_outgoing_cookies" value="N" @crunch-outgoing-cookies-n@
488 <td class="noc1" align="center" valign="middle"><input type="radio"
489 name="crunch_outgoing_cookies" value="X" @crunch-outgoing-cookies-x@
491 <td class="action"><a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES">crunch-outgoing-cookies</a></td>
492 <td>Prevent the website from reading cookies from your system.</td>
494 <tr class="bg1" align="left" valign="top">
495 <td class="en1" align="center" valign="middle"><input type="radio"
496 name="deanimate_gifs" id="deanimate_gifs_y" value="Y" @deanimate-gifs-y@
497 onclick="show_deanimate_opts(true)"></td>
498 <td class="dis1" align="center" valign="middle"><input type="radio"
499 name="deanimate_gifs" value="N" @deanimate-gifs-n@
500 onclick="show_deanimate_opts(false)"></td>
501 <td class="noc1" align="center" valign="middle"><input type="radio"
502 name="deanimate_gifs" value="X" @deanimate-gifs-x@
503 onclick="show_deanimate_opts(false)"></td>
504 <td class="action"><a href="@user-manual@@actions-help-prefix@DEANIMATE-GIFS">deanimate-gifs</a></td>
505 <td>Replace animated GIFs with their (first/last) frame.</td>
507 <tr class="bg1" align="left" valign="top" id="deanimate_opts">
508 <td class="en1"> </td>
509 <td class="dis1"> </td>
510 <td class="noc1"> </td>
512 <td>Use the <input type="radio" name="deanimate_gifs_mode"
513 value="first" id="deanimate_first" @deanimate-gifs-param-first@><label
514 for="deanimate_first">first frame</label> <input
515 type="radio" name="deanimate_gifs_mode" value="last"
516 id="deanimate_last" @deanimate-gifs-param-last@><label
517 for="deanimate_last">last frame</label></td>
519 <tr class="bg1" align="left" valign="top">
520 <td class="en1" align="center" valign="middle"><input type="radio"
521 name="inspect_jpegs" value="Y" @inspect-jpegs-y@
523 <td class="dis1" align="center" valign="middle"><input type="radio"
524 name="inspect_jpegs" value="N" @inspect-jpegs-n@
526 <td class="noc1" align="center" valign="middle"><input type="radio"
527 name="inspect_jpegs" value="X" @inspect-jpegs-x@
529 <td class="action"><a href="@user-manual@@actions-help-prefix@INSPECT-JPEGS">inspect-jpegs</a></td>
530 <td>Checks jpeg images for malicious content.</td>
532 <tr class="bg1" align="left" valign="top">
533 <td class="en1" align="center" valign="middle"><input type="radio"
534 name="downgrade_http_version" value="Y" @downgrade-http-version-y@></td>
535 <td class="dis1" align="center" valign="middle"><input type="radio"
536 name="downgrade_http_version" value="N" @downgrade-http-version-n@></td>
537 <td class="noc1" align="center" valign="middle"><input type="radio"
538 name="downgrade_http_version" value="X" @downgrade-http-version-x@></td>
539 <td class="action"><a href="@user-manual@@actions-help-prefix@DOWNGRADE-HTTP-VERSION">downgrade-http-version</td>
540 <td>Change HTTP/1.1 requests to HTTP/1.0. Only change if you know
541 what you're doing!</td>
543 <tr class="bg1" align="left" valign="top">
544 <td class="en1" align="center" valign="middle"><input type="radio"
545 name="fast_redirects" value="Y" @fast-redirects-y@
547 <td class="dis1" align="center" valign="middle"><input type="radio"
548 name="fast_redirects" value="N" @fast-redirects-n@
550 <td class="noc1" align="center" valign="middle"><input type="radio"
551 name="fast_redirects" value="X" @fast-redirects-x@
553 <td class="action"><a href="@user-manual@@actions-help-prefix@FAST-REDIRECTS">fast-redirects</a></td>
554 <td>Bypass some click-tracking URLs.</td>
557 <tr class="bg1" align="left" valign="top">
558 <td class="en1"> </td>
559 <td class="dis1" align="center" valign="middle"><input type="radio"
560 name="filter_all" id="filter_all_n" value="N" @filter-all-n@ ></td>
561 <td class="noc1" align="center" valign="middle"><input type="radio"
562 name="filter_all" id="filter_all_x" value="X" @filter-all-x@ ></td>
563 <td class="action"><a href="@user-manual@@actions-help-prefix@FILTER">filter</a> *</td>
564 <td>Filter the website through regular expression
565 filters. You can use the radio buttons on this line to disable
566 all filters applied by previous rules, and/or you can enable or
567 disable the filters individually below.</td>
570 <tr class="bg1" align="left" valign="top">
571 <td class="en1" align="center" valign="middle"><input type="radio"
572 name="handle_as_image" value="Y" @handle-as-image-y@
574 <td class="dis1" align="center" valign="middle"><input type="radio"
575 name="handle_as_image" value="N" @handle-as-image-n@
577 <td class="noc1" align="center" valign="middle"><input type="radio"
578 name="handle_as_image" value="X" @handle-as-image-x@
580 <td class="action"><a href="@user-manual@@actions-help-prefix@HANDLE-AS-IMAGE">handle-as-image</a></td>
581 <td>Request is for an image (only useful in conjunction with the <i><b><a href="@user-manual@@actions-help-prefix@BLOCK">block</a></b></i>
582 and <i><b><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></b></i> actions).</td>
584 <tr class="bg1" align="left" valign="top">
585 <td class="en1" align="center" valign="middle"><input type="radio"
586 name="hide_forwarded_for_headers" value="Y" @hide-forwarded-for-headers-y@
588 <td class="dis1" align="center" valign="middle"><input type="radio"
589 name="hide_forwarded_for_headers" value="N" @hide-forwarded-for-headers-n@
591 <td class="noc1" align="center" valign="middle"><input type="radio"
592 name="hide_forwarded_for_headers" value="X" @hide-forwarded-for-headers-x@
594 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FORWARDED-FOR-HEADERS">hide-forwarded-for-headers</a></td>
595 <td>Block any existing X-Forwarded-for header, and do not add a new one.</td>
597 <tr class="bg1" align="left" valign="top">
598 <td class="en1" align="center" valign="middle"><input type="radio"
599 name="hide_from_header" id="hide_from_header_y" value="Y" @hide-from-header-y@
600 onclick="show_hide_from_header_opts(true)"></td>
601 <td class="dis1" align="center" valign="middle"><input type="radio"
602 name="hide_from_header" value="N" @hide-from-header-n@
603 onclick="show_hide_from_header_opts(false)"></td>
604 <td class="noc1" align="center" valign="middle"><input type="radio"
605 name="hide_from_header" value="X" @hide-from-header-x@
606 onclick="show_hide_from_header_opts(false)"></td>
607 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-FROM-HEADER">hide-from-header</a></td>
608 <td>Stop old web browsers from sending the user's e-mail address with
611 <tr class="bg1" align="left" valign="top" id="hide_from_header_opts">
612 <td class="en1"> </td>
613 <td class="dis1"> </td>
614 <td class="noc1"> </td>
616 <td><input type="radio" name="hide_from_header_mode" value="block"
617 onclick="hide_from_header_param_disable(true);"
618 @hide-from-header-param-block@ id="hide_from_header_mode_block"><label
619 for="hide_from_header_mode_block">Remove completely</label><br>
620 <input type="radio" name="hide_from_header_mode" value="CUSTOM"
621 onclick="hide_from_header_param_disable(false);"
622 @hide-from-header-param-custom@ id="hide_from_header_mode_set"><label
623 for="hide_from_header_mode_set">Fake e-mail address:</label><br>
624 <input type="text" name="hide_from_header_param" id="hide_from_header_param"
625 size="40" value="@hide-from-header-param@"></td>
627 <tr class="bg1" align="left" valign="top">
628 <td class="en1" align="center" valign="middle"><input type="radio"
629 name="hide_referrer" id="hide_referrer_y" value="Y" @hide-referrer-y@
630 onclick="show_hide_referrer_opts(true)"></td>
631 <td class="dis1" align="center" valign="middle"><input type="radio"
632 name="hide_referrer" id="hide_referrer_n" value="N" @hide-referrer-n@
633 onclick="show_hide_referrer_opts(false)"></td>
634 <td class="noc1" align="center" valign="middle"><input type="radio"
635 name="hide_referrer" id="hide_referrer_x" value="X" @hide-referrer-x@
636 onclick="show_hide_referrer_opts(false)"
638 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-REFERRER">hide-referrer</a></td>
639 <td>Helps prevent tracking by not sending the URL of the previous web
642 <tr class="bg1" align="left" valign="top" id="hide_referrer_opts">
643 <td class="en1"> </td>
644 <td class="dis1"> </td>
645 <td class="noc1"> </td>
647 <td><input type="radio" name="hide_referrer_mode" value="block"
648 onclick="hide_referrer_param_disable(true)"
649 @hide-referrer-param-block@ id="hide_referrer_mode_block"><label
650 for="hide_referrer_mode_block">Remove completely</label> (breaks images
651 on some free web hosts).<br>
652 <input type="radio" name="hide_referrer_mode" value="forge"
653 onclick="hide_referrer_param_disable(true)"
654 @hide-referrer-param-forge@ id="hide_referrer_mode_forge"><label
655 for="hide_referrer_mode_forge">Fake as the root directory of the
656 site</label> (fools checks for in-site links.)<br>
657 <input type="radio" name="hide_referrer_mode" value="CUSTOM"
658 onclick="hide_referrer_param_disable(false)"
659 @hide-referrer-param-custom@ id="hide_referrer_mode_set"><label
660 for="hide_referrer_mode_set">Fake as this web address:</label><br>
661 <input type="text" name="hide_referrer_param"
662 id="hide_referrer_param" size="40"
663 value="@hide-referrer-param@"></td>
665 <tr class="bg1" align="left" valign="top">
666 <td class="en1" align="center" valign="middle"><input type="radio"
667 name="hide_user_agent" id="hide_user_agent_y" value="Y" @hide-user-agent-y@
668 onclick="show_user_agent_opts(true)"></td>
669 <td class="dis1" align="center" valign="middle"><input type="radio"
670 name="hide_user_agent" value="N" @hide-user-agent-n@
671 onclick="show_user_agent_opts(false)"></td>
672 <td class="noc1" align="center" valign="middle"><input type="radio"
673 name="hide_user_agent" value="X" @hide-user-agent-x@
674 onclick="show_user_agent_opts(false)"></td>
675 <td class="action"><a href="@user-manual@@actions-help-prefix@HIDE-USER-AGENT">hide-user-agent</a></td>
676 <td>Pretend to be using a different web browser. (Breaks many web
679 <tr class="bg1" align="left" valign="top" id="user_agent_opts">
680 <td class="en1"> </td>
681 <td class="dis1"> </td>
682 <td class="noc1"> </td>
684 <td>User Agent string to send:<br>
685 <input type="text" name="hide_user_agent_mode" size="40"
686 value="@hide-user-agent-param@"></td>
688 <tr class="bg1" align="left" valign="top">
689 <td class="en1" align="center" valign="middle"><input type="radio"
690 name="kill_popups" value="Y" @kill-popups-y@
692 <td class="dis1" align="center" valign="middle"><input type="radio"
693 name="kill_popups" value="N" @kill-popups-n@
695 <td class="noc1" align="center" valign="middle"><input type="radio"
696 name="kill_popups" value="X" @kill-popups-x@
698 <td class="action"><a href="@user-manual@@actions-help-prefix@KILL-POPUPS">kill-popups</td>
699 <td>Filter the website through a built-in filter to disable many JavaScript
702 <tr class="bg1" align="left" valign="top">
703 <td class="en1" align="center" valign="middle"><input type="radio"
704 name="limit_connect" id="limit_connect_y" value="Y" @limit-connect-y@
705 onclick="show_limit_connect_opts(true)"></td>
706 <td class="dis1" align="center" valign="middle"><input type="radio"
707 name="limit_connect" value="N" @limit-connect-n@
708 onclick="show_limit_connect_opts(false)"></td>
709 <td class="noc1" align="center" valign="middle"><input type="radio"
710 name="limit_connect" value="X" @limit-connect-x@
711 onclick="show_limit_connect_opts(false)"></td>
712 <td class="action"><a href="@user-manual@@actions-help-prefix@LIMIT-CONNECT">limit-connect</a></td>
713 <td>Specify which ports are allowed for SSL (HTTP CONNECT) access.
714 Note that this allows arbitrary tunnelling, so opening all
715 ports would be a security hole.</td>
717 <tr class="bg1" align="left" valign="top" id="limit_connect_opts">
718 <td class="en1"> </td>
719 <td class="dis1"> </td>
720 <td class="noc1"> </td>
722 <td>Legal SSL ports (comma separated, ranges allowed):<br>
723 <input type="text" name="limit_connect_mode" size="40"
724 value="@limit-connect-param@"></td>
726 <tr class="bg1" align="left" valign="top">
727 <td class="en1" align="center" valign="middle"><input type="radio"
728 name="prevent_compression" value="Y" @prevent-compression-y@
730 <td class="dis1" align="center" valign="middle"><input type="radio"
731 name="prevent_compression" value="N" @prevent-compression-n@
733 <td class="noc1" align="center" valign="middle"><input type="radio"
734 name="prevent_compression" value="X" @prevent-compression-x@
736 <td class="action"><a href="@user-manual@@actions-help-prefix@PREVENT-COMPRESSION">prevent-compression</a></td>
737 <td>Disables compression. Compressed web pages are faster to
738 download, but cannot be filtered with <a href="@user-manual@@actions-help-prefix@FILTER"><b>filter</b></a>
739 or <a href="@user-manual@@actions-help-prefix@KILL-POPUPS"><b>kill-popups</b></a>.
740 This setting only affects the few web sites which support
743 <tr class="bg1" align="left" valign="top">
744 <td class="en1" align="center" valign="middle"><input type="radio"
745 name="send_vanilla_wafer" value="Y" @send-vanilla-wafer-y@
747 <td class="dis1" align="center" valign="middle"><input type="radio"
748 name="send_vanilla_wafer" value="N" @send-vanilla-wafer-n@
750 <td class="noc1" align="center" valign="middle"><input type="radio"
751 name="send_vanilla_wafer" value="X" @send-vanilla-wafer-x@
753 <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-VANILLA-WAFER">send-vanilla-wafer</a></td>
754 <td>Adds a special wafer (standard cookie) to all your requests.</td>
756 <tr class="bg1" align="left" valign="top">
757 <td class="en1" align="center" valign="middle"><input type="radio"
758 name="send_wafer" id="send_wafer_y" value="Y" @send-wafer-y@
759 onclick="show_send_wafer_opts(true)"></td>
760 <td class="dis1" align="center" valign="middle"><input type="radio"
761 name="send_wafer" id="send_wafer_n" value="N" @send-wafer-n@
762 onclick="show_send_wafer_opts(false)"></td>
763 <td class="noc1" align="center" valign="middle"><input type="radio"
764 name="send_wafer" id="send_wafer_x" value="X" @send-wafer-x@
765 onclick="show_send_wafer_opts(false)"></td>
766 <td class="action"><a href="@user-manual@@actions-help-prefix@SEND-WAFER">send-wafer</a></td>
767 <td>Adds user-specified cookies.</td>
769 <tr class="bg1" align="left" valign="top" id="send_wafer_opts">
770 <td class="en1"> </td>
771 <td class="dis1"> </td>
772 <td class="noc1"> </td>
774 <td>Editing the settings for this option, or turning
775 it on if it was off, is not yet supported using this web-based
778 <tr class="bg1" align="left" valign="top">
779 <td class="en1" align="center" valign="middle"><input type="radio"
780 name="session_cookies_only" value="Y" @session-cookies-only-y@
782 <td class="dis1" align="center" valign="middle"><input type="radio"
783 name="session_cookies_only" value="N" @session-cookies-only-n@
785 <td class="noc1" align="center" valign="middle"><input type="radio"
786 name="session_cookies_only" value="X" @session-cookies-only-x@
788 <td class="action"><a href="@user-manual@@actions-help-prefix@SESSION-COOKIES-ONLY">session-cookies-only</a></td>
789 <td>Any cookies set by the website are changed to temporary
790 ("per-session") ones, which only last until you close your web
791 browser. This will allow you to use sites that require cookies, but
792 sites will not be able to track you across sessions. For this to
793 be useful, you should disable
794 <a href="@user-manual@@actions-help-prefix@CRUNCH-OUTGOING-COOKIES"><b>crunch-outgoing-cookies</b></a> and
795 <a href="@user-manual@@actions-help-prefix@CRUNCH-INCOMING-COOKIES"><b>crunch-incoming-cookies</b></a>.</td>
797 <tr class="bg1" align="left" valign="top">
798 <td class="en1" align="center" valign="middle"><input type="radio"
799 name="set_image_blocker" id="set_image_blocker_y" value="Y" @set-image-blocker-y@
800 onclick="show_set_image_blocker_opts(true)"></td>
801 <td class="dis1" align="center" valign="middle"><input type="radio"
802 name="set_image_blocker" value="N" @set-image-blocker-n@
803 onclick="show_set_image_blocker_opts(false)"></td>
804 <td class="noc1" align="center" valign="middle"><input type="radio"
805 name="set_image_blocker" value="X" @set-image-blocker-x@
806 onclick="show_set_image_blocker_opts(false)"></td>
807 <td class="action"><a href="@user-manual@@actions-help-prefix@SET-IMAGE-BLOCKER">set-image-blocker</a></td>
808 <td>Specifies how to block images.</td>
810 <tr class="bg1" align="left" valign="top" id="set_image_blocker_opts">
811 <td class="en1"> </td>
812 <td class="dis1"> </td>
813 <td class="noc1"> </td>
815 <td><input type="radio" name="set_image_blocker_mode"
816 onclick="set_image_blocker_param_disable(true)"
817 value="pattern" id="set_image_blocker_mode_pattern"
818 @set-image-blocker-param-pattern@><label
819 for="set_image_blocker_mode_pattern">Send a pattern (<img
820 src="send-banner?type=p" width="12" height="12"
821 alt="pattern">)</label><br>
822 <input type="radio" name="set_image_blocker_mode" value="blank"
823 onclick="set_image_blocker_param_disable(true)"
824 id="set_image_blocker_mode_blank" @set-image-blocker-param-blank@><label
825 for="set_image_blocker_mode_blank">Send a 1x1 transparent GIF</label><br>
826 <input type="radio" name="set_image_blocker_mode" value="CUSTOM"
827 onclick="set_image_blocker_param_disable(false)"
828 id="set_image_blocker_mode_set" @set-image-blocker-param-custom@><label
829 for="set_image_blocker_mode_set">Redirect
830 the browser to this image URL:</label><br>
831 <input type="text" name="set_image_blocker_param" id="set_image_blocker_param"
832 size="40" value="@set-image-blocker-param@"></td>
839 <td class="green" align="center">
840 <p><input type="submit" value="Submit" name="Submit"></p>
846 <h2>More Privoxy:</h2>
847 <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
854 #include mod-support-and-service
859 <!-- @if-have-help-info-start -->
863 #include mod-local-help
867 <!-- if-have-help-info-end@ -->
871 <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
879 <script type="text/javascript">
882 if (document.getElementById) {
883 // alert("Netscape 6 or IE5");
884 document.getElementById("hide_from_header_param").disabled = !(document.getElementById("hide_from_header_mode_set").checked);
885 document.getElementById("hide_referrer_param").disabled = !(document.getElementById("hide_referrer_mode_set").checked);
886 document.getElementById("set_image_blocker_param").disabled = !(document.getElementById("set_image_blocker_mode_set").checked);
888 show_add_header_opts (document.getElementById("add_header_y").checked);
889 show_deanimate_opts (document.getElementById("deanimate_gifs_y").checked);
890 show_hide_from_header_opts(document.getElementById("hide_from_header_y").checked);
891 show_hide_referrer_opts (document.getElementById("hide_referrer_y").checked);
892 show_user_agent_opts (document.getElementById("hide_user_agent_y").checked);
893 show_set_image_blocker_opts (document.getElementById("set_image_blocker_y").checked);
894 show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
895 show_send_wafer_opts (document.getElementById("wafer_y").checked);
896 } else if (document.all) {
898 document.myform.hide_from_header_param.disabled = !(document.myform.hide_from_header_mode_set.checked);
899 document.myform.hide_referrer_param.disabled = !(document.myform.hide_referrer_mode_set.checked);
900 document.myform.set_image_blocker_param.disabled = !(document.myform.set_image_blocker_mode_set.checked);
902 show_add_header_opts (document.myform.add_header_y.checked);
903 show_deanimate_opts (document.myform.deanimate_gifs_y.checked);
904 show_hide_from_header_opts (document.myform.hide_from_header_y.checked);
905 show_hide_referrer_opts (document.myform.hide_referrer_y.checked);
906 show_user_agent_opts (document.myform.hide_user_agent_y.checked);
907 show_set_image_blocker_opts (document.myform.set_image_blocker_y.checked);
908 show_limit_connect_opts (document.myform.limit_connect_y.checked);
909 show_send_wafer_opts (document.myform.wafer_y.checked);
910 } else if (document.layers) {
911 // alert("Netscape 4");