checklink - check the validity of links in an HTML or XHTML document
checklink [ options ] URI ...
This manual page documents briefly the checklink command.
checklink is a program that reads an HTML or XHTML document, extracts a list of anchors and lists and checks that no anchor is defined twice and that all the links are dereferenceable, including the fragments. It warns about HTTP redirects, including directory redirects, and can check recursively a part of a web site.
The program can be used either as a command-line version or as a CGI script.
This program follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below.
Trusted specifies a regular expression for
matching trusted domains (ie. domains where HTTP basic authentication, if
any, will be sent). For example, the following configures only the w3.org
domain as trusted:
Trusted = \.w3\.org$
Allow_Private_IPs is a boolean flag indicating whether checking links
on non-public IP addresses is allowed. The default is true in command line
mode and false when run as a CGI script. For example, to disallow checking
non-public IP addresses, regardless of the mode, use:
Allow_Private_IPs = 0
checklink uses the libwww-perl library which has a number of environment variables affecting its behaviour. See SEE ALSO for some pointers.
The documentation for this program is available on the web at http://www.w3.org/2000/07/checklink.
LWP(3), the Net::FTP(3) manpage, the Net::NNTP(3) manpage, the Net::IP manpage.
This program was originally written by Hugo Haas <hugo@w3.org>, based on Renaud Bruyeron's checklink.pl. It has been enhanced by Ville Skyttä and many other volunteers since. Use the <www-validator@w3.org> mailing list for feedback, see http://validator.w3.org/docs/checklink.html#csb for more information.
This manual page was written by Frédéric Schütz <schutz@mathgen.ch>, for the Debian GNU/Linux system (but may be used by others).
This program is licensed under the W3C® Software License, http://www.w3.org/Consortium/Legal/copyright-software.