1 ##########################################################
3 # "Blocked" Error Output template for Privoxy.
5 # NOTE: UNLIKE THE OTHER TEMPLATES, THIS ONE USES
6 # JavaScript write() TO GENERATE THE PAGE IN JS_AWARE
7 # BROWSERS. SYMBOL SUBSTITUTIONS THAT RESULT IN MULTILINE
8 # STRINGS WILL BREAK THE JavaScript SYNTAX.
11 # USING HTML TEMPLATES:
12 # ---------------------
14 # Template files are written in plain HTML, with a few
17 # - Lines that start with a '#' character like this one
20 # - Each item in the below list of exported symbols will
21 # be replaced by dynamically generated text, if they
22 # are enclosed in '@'-characters. E.g. The string @version@
23 # will be replaced by the version number of Privoxy.
25 # - One special application of this is to make whole blocks
26 # of the HTML template disappear if the condition <name>
27 # is not given. Simply enclose the block between the two
28 # strings @if-<name>start and if-<name>-end@. The strings
29 # should be placed in HTML comments (<!-- -->), so the
30 # html structure won't be messed when the magic happens.
32 # USABLE SYMBOLS IN THIS TEMPLATE:
33 # --------------------------------
36 # The IP-address that the client used to reach this proxy
38 # The hostname associated with my-ip-addr
40 # The email address of the pxoxy's administrator, as configured
43 # The URL for the "main menu" builtin CGI of this proxy
46 <li> elements linking to the other available CGIs
48 # The version number of the proxy software
50 # The development status of the proxy software: "alpha", "beta",
53 # The URL of the SourceForge ijbswa project, who maintains this
57 # The request's protocol: http:// or https://
59 # The host and port part of the request that lead to this problem
61 # The path part of the request that lead to this problem
64 # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
65 # ------------------------------------------------------------------
68 # This is an alpha or beta release of the proxy software
69 # have-adminaddr-info:
70 # An e-mail address for the local Privoxy adminstrator has
71 # been specified and is available through the "admin-address"
74 # A URL for online documentation about this proxy has been
75 # specified and is available through the "proxy-info-url"
78 # If either have-proxy-info is true or have-adminaddr-info is
79 # true, have-help-info is true. Used to conditionally include
80 # a grey box for any and all help info.
82 # Privoxy has been compiled with support for forced loading
83 # of blocked content. In that case, the symbol "force-prefix" is
84 # avaiable, which translates to the FORCE_PREFIX
86 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
89 <title>Request blocked (Privoxy@@my-hostname@)</title>
90 <meta http-equiv="Content-Style-Type" content="text/css">
91 <meta http-equiv="Content-Script-Type" content="text/javascript">
92 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
93 <meta name="robots" content="noindex,nofollow">
94 <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
95 <script type="text/javascript" language="javascript">
98 * Is this window or frame too small
99 * for the full-blown "blocked" page?
101 function isSmallFrame()
107 * Navigator, Mozilla, Opera
109 if (window.innerWidth
110 && (window.innerWidth >= minWidth)
111 && (window.innerHeight >= minHeight))
119 else if (document.body && document.body.clientWidth
120 && (document.body.clientWidth >= minWidth)
121 && (document.body.clientHeight >= minHeight))
127 * Small window or unsupported browser
135 <script type="text/javascript" language="javascript">
137 # Note: The same small version is used at the bottom
138 # of this file in the <noscript> context. If you
139 # make changes here, keep the other version in sync!
144 <p class="small" align="center"> \
145 <a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>. \
146 <br><a href="@default-cgi@show-url-info?url=@hostport@@path@" target="_blank">See why</a> \
147 <!-- @if-force-support-start --> \
148 or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
149 <!-- if-force-support-end@ --> \
157 <table cellpadding="20" cellspacing="10" border="0" width="100%">\
159 <td class="status"> \
162 <td class="title" width=100%> \
164 This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, \
165 @if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@ \
170 <!-- @if-unstable-start --> \
171 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in \
173 <td class="warning" colspan="2"> \
176 <b>Please note that this <font color=red>@code-status@</font> release \
177 of the proxy software is not intended for production systems! \
178 <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b> \
182 <!-- if-unstable-end@ --> \
185 <td class="box" colspan="2"> \
186 <h2>Request for blocked URL</h2> \
187 <p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
188 <br><a href="@default-cgi@show-url-info?url=@hostport@@path@">See why</a> \
189 <!-- @if-force-support-start --> \
190 or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
191 <!-- if-force-support-end@ --> \
197 <td class="box" colspan="2"> \
198 <h2>More Privoxy:</h2> \
200 <li><a href="@user-manual@">Documentation</a></li>
206 <td class="info" colspan="2"> \
207 <big><b>Support and Service via Sourceforge:</b></big> \
209 We value your feedback. To provide you with the best support, \
215 use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">support forum</a> or (better) the \
216 <a href="http://sourceforge.net/mail/?group_id=11118">mailing lists</a> to get help. \
220 submit banners and all problems with the actions file only through the \
221 <a href="javascript:void(window.open(\'http://www.privoxy.org/actions\',\'Feedback\',\'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no\').focus());">actions \
222 file feedback system</a>. \
226 submit bugs only through our <a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug tracker</a>. \
227 Make sure that the bug has not yet been submitted. \
231 submit feature requests only through our <a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature \
232 request tracker</a>. \
239 <!-- @if-have-help-info-start --> \
241 <td class="info" colspan="2"> \
242 <h2>Local Privoxy support:</h2> \
244 <!-- @if-have-proxy-info-start --> \
245 <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p> \
246 <!-- if-have-proxy-info-end@ --> \
248 <!-- @if-have-adminaddr-info-start --> \
249 <p>Address e-mail questions about this service to \
250 <a href="mailto:@admin-address@"><code>@admin-address@</code></a>, \
251 who will be glad to help you. \
253 <!-- if-have-adminaddr-info-end@ --> \
256 <!-- if-have-help-info-end@ --> \
264 # Note: The same small version is used above via JavaScript
265 # If you make changes here, keep the other version in sync!
268 <p class="small" align="center">
269 <a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>.
270 <br><a href="@default-cgi@show-url-info?url=@hostport@@path@" target="_blank">See why</a>
271 <!-- @if-force-support-start -->
272 or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>.
273 <!-- if-force-support-end@ -->