Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.
Regularly checking links on a Web site is or should be a staple activity of any Web developer or maintainer. Internal links may break because Web pages are moved or renamed; external links may get broken because Web sites are moved to a new server, or the URL address has changed, or they have shut-down altogether.
A useful and relatively easy tool to check both internal and external links is linklint, a perl program that runs both in Linux and Solaris.
linklint has many options, which may appear complicated and confusing. In this short article we describe first some basic usage, by looking at the shell script we run to check links in our [[SINFIN -> http://www.iac.es/sieinvens/SINFIN/] site; then we explain what output files to inspect for broken links.
The script is the following
The meaning of the flags is:
For advanced usage, please see the documentation in the linklint Web site.
linklint generated a lot of files in the doc directory. You may wish to have a look at each of those files to see what kind of information they give; however, the file you must absolutely check are:
Note that for each .html file there is a plain .txt file (useful if you wish to look at the linklint output from a terminal).
Apparently linklint is unable to check ftp:// links, and also fails with anchors inside a tag different from <a>
There are many linkchecker, some free, some not, some only for Windows, etc. Just look for them in Google. We have tried checkbot, however running it requires some additional perl modules not currently installed here at the IAC. We are currently testing linkchecker, if we like it we will update this page.