- Be a bit more descriptive about why CGI access
authorFabian Keil <fk@fabiankeil.de>
Mon, 22 Jan 2007 15:15:08 +0000 (15:15 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 22 Jan 2007 15:15:08 +0000 (15:15 +0000)
  has been denied and what the user can do about it.
- Add a "go there anyway" link to pass the referrer check.
- Add empty table summary to silence validator warning.
- Remove the useless W3C validator link.

templates/cgi-error-disabled

index 74d553b..1a64b88 100644 (file)
@@ -1,6 +1,6 @@
 ##########################################################
 #
 ##########################################################
 #
-# No-Such-Domain Error Output template for Privoxy.
+# Feature disabled or referrer untrusted Error Output template for Privoxy.
 #
 #
 # USING HTML TEMPLATES:
 #
 #
 # USING HTML TEMPLATES:
@@ -79,7 +79,7 @@
 
 <body>
 
 
 <body>
 
-  <table cellpadding="20" cellspacing="10" border="0" width="100%">
+  <table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
     <tr>
       <td class="title">
 
     <tr>
       <td class="title">
 
     <tr>
       <td class="warning">
         <h2>Privoxy Configuration access denied</h2>
     <tr>
       <td class="warning">
         <h2>Privoxy Configuration access denied</h2>
-          <p>The feature you are trying to access has either been disabled
-             by the Privoxy administrator, or you came here by following an
-             unsafe external link.</p>
+          <p>Access to <b>@url@</b> has been denied because:</p>
+
+          <ul>
+            <li>it requires a feature that has been disabled by the Privoxy administrator,</li>
+            <li>you didn't come here through one of Privoxy's CGI pages, or</li>
+            <li>the <q>Referer:</q> header is blocked.</li>
+          </ul>
 
           <p>All enabled features are accessible from the
 
           <p>All enabled features are accessible from the
-             <a href="@default-cgi@">main menu</a>.</p>
+             <a href="@default-cgi@">main menu</a>, some of them
+             are <em>protected</em> with a referrer check though.
+             If you got caught by the referrer check, but are <strong>absolutely</strong> sure
+             you know what you are doing, please <a title="Retry from a trusted referrer"
+              href="@url@">try again</a>.</p>
+
+          <p>If the <q>Referer:</q> header is blocked, you'll have to make an exception for
+             Privoxy's web interface first. Note that <em>dumb</em> referrer blocking
+             is a bad idea anyway, as it makes it easier to fingerprint your
+             requests. Consider using Privoxy's conditional referrer block instead.</p>
       </td>
     </tr>
 
       </td>
     </tr>
 
     </tr>
 <!-- if-have-help-info-end@ -->
     
     </tr>
 <!-- if-have-help-info-end@ -->
     
-    <tr>
-      <td>
-        <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
-      </td>
-    </tr>
-
   </table>
 
 </body>
   </table>
 
 </body>