[thelist] emailing reports of 404 errors to myself

Chris Hayes chris at lwcdial.net
Thu Apr 20 18:16:11 CDT 2006

As I remember it in CF, somewhat annoyingly, the script_name cgi var on a 
page is the 404 page, not the missing page.

In some ways this makes sense.

How about an XHR call to a CF script, sending what javascript thinks is the
location.href in the URL param.  You won't get any search engines hitting
your 404 email, which might be good or bad, depending.

<tip type="Email: error notification" authror="Chris Hayes">
Whan sending yourself autogenerated email notifications of errors,  use a
special email address.

This could save any useful address you have from being innundated after a
minor mistake.

----- Original Message ----- 
From: "Sarah Adams" <mrsanders at designshift.com>
To: "thelist" <thelist at lists.evolt.org>
Sent: Thursday, April 20, 2006 4:45 PM
Subject: [thelist] emailing reports of 404 errors to myself

> I'm running a site in ColdFusion that contains a lot of documents (doc,
> pdf, xls, ppt, etc). I'd like to set up a 404 notifier, so that every
> time a ColdFusion page or other file that doesn't exist is requested, I
> receive an email with the details. The closest I've been able to come to
> this is setting up a custom 404 in ColdFusion, and using it to email me
> the referrer, so that at least I know where the broken link is. Is
> there a better/easier way to do this, something that doesn't require
> looking through log files to find 404 errors?
> -- 
> sarah adams
> web developer & programmer
> portfolio: http://sarah.designshift.com
> blog: http://hardedge.ca
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.4/319 - Release Date: 19/04/2006

More information about the thelist mailing list