From ead96f6b9250939e59fa98bd7a10eab22919af7d Mon Sep 17 00:00:00 2001 From: jongfoster Date: Sat, 16 Mar 2002 14:28:38 +0000 Subject: [PATCH] First version of modular filters support --- templates/edit-actions-for-url | 262 ++++++++++++++------------ templates/edit-actions-for-url-filter | 6 + 2 files changed, 144 insertions(+), 124 deletions(-) create mode 100644 templates/edit-actions-for-url-filter diff --git a/templates/edit-actions-for-url b/templates/edit-actions-for-url index eb69443b..8b65172d 100644 --- a/templates/edit-actions-for-url +++ b/templates/edit-actions-for-url @@ -32,6 +32,9 @@ # # Revisions : # $Log: edit-actions-for-url,v $ +# Revision 1.12 2002/03/12 01:42:50 oes +# Introduced modular filters +# # Revision 1.11 2002/03/08 18:19:14 jongfoster # Adding +image-blocker{pattern} option to edit interface # @@ -141,6 +144,7 @@ body { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif; td.action { font-weight: bold; font-style: italic; white-space: nowrap } +td.subaction { font-style: italic } th { font-weight: bold; } # This is the key to the color names below: # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header @@ -224,18 +228,6 @@ function show_deanimate_opts(tf) target.style.display = (tf ? "" : "none"); } -function show_filter_opts(tf) -{ - if (document.getElementById) { - target = document.getElementById("filter_opts"); - } else if (document.all) { - target = document.filter_opts; - } else { - return; - } - target.style.display = (tf ? "" : "none"); -} - function show_hide_from_opts(tf) { if (document.getElementById) { @@ -327,37 +319,6 @@ function show_wafer_opts(tf) - -# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in - - -

Please note that this @code-status@ release - of the proxy software is not intended for production systems! -
Use at your own risk. See the license for details.
-

- -

-

Support and Service via Sourceforge

-

-We value your feedback. However, to provide you with the best support, -please note: -

-

-

-For any other issues, feel free to use the mailing lists. -

- - - -

Edit Actions @@ -369,18 +330,15 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. - +
- - + + - - @@ -390,16 +348,19 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -409,10 +370,10 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -422,10 +383,15 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -444,40 +408,39 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - + + + + + - - + + + + + + name="filter_all" id="filter_all_n" value="N" @filter-all-n@ > - - - - + name="filter_all" id="filter_all_x" value="X" @filter-all-x@ > + +@filter-params@ - - @@ -487,11 +450,10 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -501,10 +463,16 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -529,10 +494,16 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. name="hide_referer" id="hide_referer_x" value="X" @hide-referer-x@ onclick="show_hide_referer_opts(false)" > + + + + + - - - @@ -563,17 +531,20 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -583,11 +554,11 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -597,10 +568,16 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -638,19 +611,21 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - - - @@ -660,15 +635,13 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -678,10 +651,15 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -691,10 +669,10 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -704,11 +682,10 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -718,10 +695,11 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -731,10 +709,10 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + - - @@ -744,10 +722,15 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. + + + + + - @@ -805,6 +788,37 @@ if (document.getElementById) { + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + + + + + + + -- 2.39.2
Action - Description Enable Disable No ChangeActionDescription
+add-headerAdds HTTP headers. +add-headerAdds HTTP headers.
     Editing the settings for this option, or turning + Editing the settings for this option, or turning it on if it was off, is not yet supported using this web-based editor.
+blockBlock the request +blockBlock the request
+deanimate-gifsReplace animated GIFs with their (first/last) frame. +deanimate-gifsReplace animated GIFs with their (first/last) frame.
     Use the Use the    mailing lists. for="deanimate_last">last frame
+fast-redirectsBypass some tracking URLs. +fast-redirectsBypass some tracking URLs.
+downgradeChange HTTP/1.1 requests to HTTP/1.0. Only change if you know - what you're doing! +downgradeChange HTTP/1.1 requests to HTTP/1.0. Only change if you know + what you're doing!
    +filterFilter the website through one or more regular expression filters.Filter the website through regular expression filters. + You can enable or disable the filters individually.
 
 Editing the settings for this option, or turning - it on if it was off, is not yet supported using this web-based - editor.  All filters applied by previous rules
+hide-forwardedBlock any existing X-Forwarded-for header, and do not add a new one. +hide-forwardedBlock any existing X-Forwarded-for header, and do not add a new one.
+hide-fromStop old web browsers from sending the user's e-mail address with - every request. +hide-fromStop old web browsers from sending the user's e-mail address with + every request.
     
@@ -516,9 +484,6 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. size="40" value="@hide-from-param@">
+hide-refererHelps prevent tracking by not sending the URL of the previous web - page.  +hide-refererHelps prevent tracking by not sending the URL of the previous web + page. 
      (breaks images @@ -551,9 +522,6 @@ href="http://sourceforge.net/mail/?group_id=11118">mailing lists. value="@hide-referer-param@">
+hide-user-agentPretend to be using a different web browser.  (Breaks many web - sites). +hide-user-agentPretend to be using a different web browser.  (Breaks many web + sites).
     User Agent string to send:
+
User Agent string to send:
+imageRequest is for an image (only useful in conjunction with the +block - and +image-blocker options). +imageRequest is for an image (only useful in conjunction with the +block + and +image-blocker options).
+image-blockerSpecifies how to block images.  Disable to always send a HTML - "blocked" page. +image-blockerSpecifies how to block images.  Disable to always send a HTML + "blocked" page.
     
+limit-connectSpecify which ports are allowed for SSL (HTTP CONNECT) access. - Note that this allows arbitrary tunnelling, so opening all - ports would be a security hole. +limit-connectSpecify which ports are allowed for SSL (HTTP CONNECT) access. + Note that this allows arbitrary tunnelling, so opening all + ports would be a security hole.
     Legal SSL ports (comma separated, ranges allowed):
+
Legal SSL ports (comma separated, ranges allowed):
+no-compressionDisables compression. Compressed web pages are faster to - download, but cannot be filtered with +filter or +no-popups. - This setting only affects the few web sites which support - compression. +no-compressionDisables compression. Compressed web pages are faster to + download, but cannot be filtered with +filter or +no-popups. + This setting only affects the few web sites which support + compression.
+no-cookies-keepAny cookies set by the website are changed to temporary - ("per-session") ones, which only last until you close your web - browser. This will allow you to use sites that require cookies, but - sites will not be able to track you across sessions. For this to - be useful, you should disable no-cookies-read and - no-cookies-set. +no-cookies-keepAny cookies set by the website are changed to temporary + ("per-session") ones, which only last until you close your web + browser. This will allow you to use sites that require cookies, but + sites will not be able to track you across sessions. For this to + be useful, you should disable no-cookies-read and + no-cookies-set.
+no-cookies-readPrevent the website from reading cookies. +no-cookies-readPrevent the website from reading cookies.
+no-cookies-setPrevent the website from setting cookies. +no-cookies-setPrevent the website from setting cookies.
+no-popupsFilter the website through a built-in filter to disable JavaScript - pop-up windows. +no-popupsFilter the website through a built-in filter to disable JavaScript + pop-up windows.
+vanilla-waferIf you use a jarfile, automatically adds a special wafer. +vanilla-waferIf you use a jarfile, automatically adds a special wafer.
+waferAdds user-specified cookies. +waferAdds user-specified cookies.
     Editing the settings for this option, or turning + Editing the settings for this option, or turning it on if it was off, is not yet supported using this web-based editor.
+

Please note that this @code-status@ release + of the proxy software is not intended for production systems! +
Use at your own risk. See the license for details.
+

+ +

+

Support and Service via Sourceforge

+

+We value your feedback. However, to provide you with the best support, +please note: +

+

+

+For any other issues, feel free to use the mailing lists. +

+
diff --git a/templates/edit-actions-for-url-filter b/templates/edit-actions-for-url-filter new file mode 100644 index 00000000..15aa2146 --- /dev/null +++ b/templates/edit-actions-for-url-filter @@ -0,0 +1,6 @@ +
  @name@