On Fri, Oct 03, 2003 at 05:34:05PM -0400, jeffrey.arnold quacked:
> 
> On Fri, 3 Oct 2003, Mike Tancsa wrote:
> 
> :: OK, so was ANYONE on NANOG happy with
> :: a) Verisign's site finder
> :: b) How they launched it
> :: 
> 
> Disregarding their "implementation issues", the product is pretty good. 
> I've actually used it to fix a few typos, etc... From an end user 
> perspective, it's certainly better than a squid error page.

  Yeah, but this is easy for you to provide as a service to users
who want it.
patch your squids with the following change to src/errorpage.c:

@@ -414,6 +414,7 @@
  * T - UTC                                      x
  * U - URL without password                     x
  * u - URL with password                        x
+ * V - URL without http method without password x
  * w - cachemgr email address                   x
  * z - dns server error message                 x
  */
@@ -546,6 +547,9 @@
     case 'u':
        p = r ? urlCanonical(r) : err->url ? err->url : "[no URL]";
        break;
+    case 'V':
+       p = r ? urlCanonicalStripped(r) : err->url ? err->url : "[no URL]";
+        break;
     case 'w':
        if (Config.adminEmail)
            memBufPrintf(&mb, "%s", Config.adminEmail);


And then modify errors/English/ERR_DNS_FAIL to say:

<H2>Alternatives</H2>
You can try to view this server through:
<ul>
<li> <a href="http://www.google.com/search?q=cache:%V";>Google's Cache</a>
<li> <a href="http://web.archive.org/web/*/%U";>The Internet Archive</a>
<li> <a href="http://sitefinder.verisign.com/lpc?url=%V";>Use Sitefinder to search for 
typos for this domain</a>
</ul>

If you're creative, have it send them with a redirect to a local
CGI script that tries obvious typos.  Very simple.  My users like
the link to the internet archive (also modify the "could not connect"
error page and others).  If you just want HTML, create a framed document
that auto-loads the sitefinder doc in the bottom half, and pops up
your own error page in the front.  I leave that as an exercise to
the HTML-clued reader, but it's not very hard.

  -Dave

-- 
work: [EMAIL PROTECTED]                          me:  [EMAIL PROTECTED]
      MIT Laboratory for Computer Science           http://www.angio.net/
      I do not accept unsolicited commercial email.  Do not spam me.

Reply via email to