https://github.com/w3c/link-checker
Check links and anchors in Web pages or full Web sites.
https://github.com/w3c/link-checker
Last synced: 10 days ago
JSON representation
Check links and anchors in Web pages or full Web sites.
- Host: GitHub
- URL: https://github.com/w3c/link-checker
- Owner: w3c
- Created: 2015-06-23T15:04:57.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T14:55:02.000Z (7 months ago)
- Last Synced: 2025-03-28T13:11:11.156Z (21 days ago)
- Language: Perl
- Homepage: https://validator.w3.org/checklink
- Size: 478 KB
- Stars: 126
- Watchers: 25
- Forks: 39
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
Awesome Lists containing this project
- jimsghstars - w3c/link-checker - Check links and anchors in Web pages or full Web sites. (Perl)
README
# W3C-LinkChecker
This distribution contains the W3C Link Checker.
The link checker can be run as a CGI script in a web server as well as
on the command line. The CGI version provides a HTML interface as
seen at [http://validator.w3.org/checklink](http://validator.w3.org/checklink).## Install
To install the distribution for command line use:
```sh
git clone https://github.com/w3c/link-checker.git
cd link-checker
#if you have cpanminus installed
cpanm --installdeps .
perl Makefile.PL
make
make test
make install # as root unless you are using local::lib
```To install the CGI version, in addition to the above, copy the
bin/checklink script into a location in your web server from where
execution of CGI scripts is allowed, and make sure that the web server
user has execute permissions to the script. The CGI directory is
typically named "cgi-bin" somewhere under your web server root
directory.For more information, please consult the POD documentation in the
checklink.pod file, typically (in the directory where you unpacked the
source):```sh
perldoc ./bin/checklink.pod
```...as well as the HTML documentation in docs/checklink.html.
## As a Docker container
You may want to use [@stupchiy](https://github.com/stupchiy)'s [Dockerfile](https://github.com/stupchiy/docker-w3c-checklink/blob/master/Dockerfile), which is
based on Ubuntu Linux, and follow his instructions:```sh
$ docker build -t link-checker . # Build an image
$ docker run -it --rm link-checker # Run a container
$ docker run -it --rm link-checker checklink https://foo.bar # Run script directly
$ docker run -it --rm -v "$PWD":/home/checklink link-checker checklink -H https://foo.bar > report.html # Write to HTML file
```## Useful links
- [Archived bug list](https://www.w3.org/Bugs/Public/buglist.cgi?product=LinkChecker&component=checklink) (Decommissioned Bugzilla)
- [www-validator MailingList](https://lists.w3.org/Archives/Public/www-validator/) used to discuss the W3C Markup Validation Service, Link Checker and Log Validator.## Copyright and License
Written by the following people for the W3C:
- Hugo Haas
- Ville Skyttä
- W3C QA-dev TeamCopyright (C) 1994-2023 World Wide Web Consortium Inc.
All Rights Reserved. This work is
distributed under the [W3C Software License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document) in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.