SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    May 2003
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link validator / checker ?

    I would like to be able to validate / check all links on a domain, by starting at the main page, and then following every link on the site. The return code (200, 404, 301, 302, etc needs to be evaluated).

    This needs to be handled in two ways (where the website is http://example.com )

    1. If the link is for the domain http://example.com, then the link validation is to be "deep", that is, follow every link on all pages, for the entire site.

    2. If the link is to an external site, only do the validation / check, and evaluate the return code.

    I need to know, for external links, if the link causes a redirect, as I have noticed on some "online link validation" tools, a 200 is returned on a link, whereas if I follow the (external) link, it gets redirected. For example, site ownership has changed since the last validation, and now the link is redirected to another domain, or another link on the same domain.

    All checking / validation would need to be, I assume, by examining the '<a href="...">link description</a>' tags.

    I have checked on Sourceforge, and there does seem to be a fairly popular tool called LinkChecker . Has anyone used this, will it suit my needs, is it a good tool for this type of validation ?

    Thanks,

    J

  2. #2
    SitePoint Evangelist
    Join Date
    May 2003
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, I notice with "LinkChecker", I have to compile the source with Python, the setup doesn't look easy for me.

    The site does mention other link validators ..........

    checkbot - written in Perl
    Checklinks - written in Perl
    Dead link check - written in Perl
    gURLChecker - written in C
    jchecklinks - written in Java
    link-checker - written in C
    linklint - written in Perl
    W3C Link Checker - HTML interface only
    webcheck - written in Python
    webgrep - written in Perl

    These are all apparently Open Source licenses.

  3. #3
    SitePoint Zealot DewChugr's Avatar
    Join Date
    Sep 2005
    Location
    Illinois
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are also some online sites where you can do this.

  4. #4
    SitePoint Evangelist
    Join Date
    May 2003
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DewChugr
    There are also some online sites where you can do this.
    Yes, I need one that I can install on a website.

    I can't seem to find one that is written in PHP ?

    J


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •