Question

How to find broken links on a website

What techniques or tools are recommended for finding broken links on a website?

I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site.

 45  40430  45
1 Jan 1970

Solution

 31

Just found a wget script that does what you are asking for.

wget --spider  -o wget.log  -e robots=off --wait 1 -r -p http://www.example.com

Credit for this goes to this page.

2013-02-22