If the links are in a db you can run a scheduled task once a week to
cfhttp each record, and it the link is invalid flag the record.

-----Original Message-----
From: Pete Freitag [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:41 PM
To: CF-Talk
Subject: Re: CF Link Management

Justin Jefferson wrote:

> Is there a way to check links on complete dynamic website in Cold
> Fusion?  What is the best way to approach creating this
> application?  I understand each link has values like (i.e. 200, 404,
> 500, etc), so I could check each link and map each error code.  Do you

> check the site with a spider? Or could a application check a database
> for all links?
>
> How would ya'll do it?

You can use CFHTTP to check that the link is valid using the
cfhttp.statusCode variable, along with a try/catch (for timeouts) you
can determine if it is valid.

______________________________________
Pete Freitag
http://www.cfdev.com/
Author of the CFMX Developers Cookbook
http://www.petefreitag.com/bookshelf/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to