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
45 # List of <li> elements linking to the other available CGIs
47 # The version number of the proxy software
49 # The development status of the proxy software: "alpha", "beta",
52 # The URL of the SourceForge ijbswa project, who maintains this
56 # The request's protocol: http:// or https://
58 # The host and port part of the blocked request's URL.
60 # The path part of the blocked request's URL.
62 # The path part of the blocked request's URL, url-encoded.
65 # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
66 # ------------------------------------------------------------------
69 # This is an alpha or beta release of the proxy software
70 # have-adminaddr-info:
71 # An e-mail address for the local Privoxy adminstrator has
72 # been specified and is available through the "admin-address"
75 # A URL for online documentation about this proxy has been
76 # specified and is available through the "proxy-info-url"
79 # If either have-proxy-info is true or have-adminaddr-info is
80 # true, have-help-info is true. Used to conditionally include
81 # a grey box for any and all help info.
83 # Privoxy has been compiled with support for forced loading
84 # of blocked content. In that case, the symbol "force-prefix" is
85 # avaiable, which translates to the FORCE_PREFIX
87 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
90 <title>Request blocked (Privoxy@@my-hostname@)</title>
91 <meta http-equiv="Content-Style-Type" content="text/css">
92 <meta http-equiv="Content-Script-Type" content="text/javascript">
93 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
94 <meta name="robots" content="noindex,nofollow">
95 <link rel="shortcut icon" href="@default-cgi@error-favicon.ico" type="image/x-icon">
96 <style type="text/css">
97 #include cgi-style.css
99 <script type="text/javascript" language="javascript">
102 * Is this window or frame too small
103 * for the full-blown "blocked" page?
105 function isSmallFrame()
111 * Navigator, Mozilla, Opera
113 if (window.innerWidth
114 && (window.innerWidth >= minWidth)
115 && (window.innerHeight >= minHeight))
123 else if (document.body && document.body.clientWidth
124 && (document.body.clientWidth >= minWidth)
125 && (document.body.clientHeight >= minHeight))
131 * Small window or unsupported browser
139 <script type="text/javascript" language="javascript">
141 # Note: The same small version is used at the bottom
142 # of this file in the <noscript> context. If you
143 # make changes here, keep the other version in sync!
148 <p class="small" align="center"> \
149 Request blocked by <a href="@default-cgi@" target="_blank">Privoxy</a>: @block-reason@ \
150 <br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
151 target="_blank">why this block applies</a> \
152 <!-- @if-force-support-start --> \
153 or <a href="http://@hostport@@force-prefix@@path@">go \
154 <!-- if-force-support-end@ --> \
155 to <b>@protocol@@hostport@@path@</b> \
156 <!-- @if-force-support-start --> \
158 <!-- if-force-support-end@ --> \
166 <table cellpadding="20" cellspacing="10" border="0" width="100%">\
168 <td class="status"> \
171 <td class="title" width=100%> \
173 This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, \
174 @if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@ \
179 <!-- @if-unstable-start --> \
180 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in \
182 <td class="warning" colspan="2"> \
185 <b>Please note that this <font color=red>@code-status@</font> release \
186 of the proxy software is not intended for production systems! \
187 <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b> \
191 <!-- if-unstable-end@ --> \
194 <td class="box" colspan="2"> \
195 <h2>Request for blocked URL</h2> \
196 <p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
197 <br>Block reason: @block-reason@ \
198 <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
199 target="_blank">See why this block applies</a> \
200 <!-- @if-force-support-start --> \
201 or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
202 <!-- if-force-support-end@ --> \
208 <td class="box" colspan="2"> \
209 <h2>More Privoxy:</h2> \
210 <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul> \
215 <td class="info" colspan="2"> \
216 <big><b>Support and Service via Sourceforge:</b></big> \
218 We value your feedback. To provide you with the best support, \
223 use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">support forum</a> or (better) the \
224 <a href="http://sourceforge.net/mail/?group_id=11118">mailing lists</a> to get help. \
227 submit banners and all problems with the actions file only through the \
228 <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 \
229 file feedback system</a>. \
232 submit bugs only through our <a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug tracker</a>. \
233 Make sure that the bug has not yet been submitted. \
236 submit feature requests only through our <a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature \
237 request tracker</a>. \
243 <!-- @if-have-help-info-start --> \
245 <td class="info" colspan="2"> \
246 <h2>Local Privoxy support:</h2> \
248 <!-- @if-have-proxy-info-start --> \
249 <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p> \
250 <!-- if-have-proxy-info-end@ --> \
252 <!-- @if-have-adminaddr-info-start --> \
253 <p>Address e-mail questions about this service to \
254 <a href="mailto:@admin-address@"><code>@admin-address@</code></a>, \
255 who will be glad to help you. \
257 <!-- if-have-adminaddr-info-end@ --> \
260 <!-- if-have-help-info-end@ --> \
268 # Note: The same small version is used above via JavaScript
269 # If you make changes here, keep the other version in sync!
272 <p class="small" align="center">
273 Request blocked by <a href="@default-cgi@" target="_blank">Privoxy</a>: @block-reason@
274 <br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@"
275 target="_blank">why this block applies</a>
276 <!-- @if-force-support-start -->
277 or <a href="http://@hostport@@force-prefix@@path@">go
278 <!-- if-force-support-end@ -->
279 to <b>@protocol@@hostport@@path@</b>
280 <!-- @if-force-support-start -->
282 <!-- if-force-support-end@ -->