• The eternal confessions of a beautiful mind...
  • DamianM.Co.UK
  • Home
  • About
  • Archives
  • Contact
  • Sitemap
  • My Flickr

    IMG_2038IMG_2037IMG_1929IMG_1858IMG_1832IMG_1826IMG_1824IMG_1815IMG_1729IMG_1722IMG_1649IMG_1602IMG_1595IMG_1594IMG_1578IMG_1454IMG_1446IMG_1438IMG_1422IMG_1407

  • Recent Posts

    • Good News
    • Another Toy Recalled
    • Excuse my French
    • A good catholic lightswitch
    • What they would look like if they weren’t famous!!
    • Funniest Valedictorian Speech Ever
    • Can you spot the bands?
    • Strictly for the office
    • Failing the exam with dignity
    • New Ohio Roller Coaster - INSANE!!!
    • Speeding
    • Captions not required
    • Unfortunate Backgrounds
    • Unfortunate Signs
    • OMG!!
  • My Tools

    • Blog_LinkIt
    • DCoda Theme
    • DCoda Widgets
    • RSS_Sticky
    • WordPress.org
    • WP_BlogNetworking
    • WP_BoilerPlate
    • WP_Censor
    • WP_ContactMe
    • WP_DeliciousPost
    • WP_EasyReply
    • WP_HeadNFoot
    • WP_LinkIt
    • WP_LinkSync
    • WP_OneInstall
    • WP_PostDate
    • WP_PostNotes
    • WP_RssSticky
    • WP_Spoiler
    • WP_Submission
  • My Web

    • ASPAlliance
    • ClaimID
    • del.ico.us
    • Digg
    • DSLRBlog
    • DVDProfiler
    • Flickr
    • Honeyed SPAM
    • My Blog
    • My company
    • MYSpace
    • WordPress.org
    • YouTube

    How to Check URLs Using .NET

    So you display links to other sites on your site, sooner or later one is bound
    to end up a dead link, or you may have lots of bookmarks and you cannot be
    bothered to weed out all the old ones that no longer point where they used to.


    Here is a solution to your problem, an automated link checking routine.

    In the code which you can access on the right, you will see that it uses four ways to identify problem URLs.




    • Check the URL for errors, e.g. invalid address or “404 page not found”.

    • Check the URL is not redirected either server side or client side, indicating
      the site has moved


    These next two require some prior knowledge of the site.




    • Check the title has not change, indicating the site is not what it used to be

    • Check the page has not changed, this only works for static pages

    Leave a Reply

    Related Posts from the Past:

    • A new look
    • Everything's shaping up
    • Hello, I must be going.
    • OpenDNS
    • Google Maps, Street View