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