[SlugBug] Testing server links

Bruno Postle bruno at postle.net
Fri Jul 18 11:02:33 BST 2003


On Thu 17-Jul-2003 at 10:36:31AM +0100, Bill Best wrote:
>
> I have a fairly large site running on a server and I'd like to
> test _all_ the weblinks that it serves including links to files
> that it hosts.

You can check for broken internal links just by looking at the logs;
basically you are looking for all the 40x errors that have a local
referrer.  So assuming a 'combined' log format:

  egrep '" 40[0-5] [1-9]+ "' /path/to/log | grep http://www.exampl..

-- 
Bruno


More information about the SlugBug mailing list