Find Broken Links With Broken Link Checker

My favorite tool for checking broken links and 500 errors is the terminal utility broken-link-checker (BLC for short). It’s is an outstanding Node.js-powered utility for recursively checking for broken links.

  1. First make sure you have Node.js installed

  2. Install Broken Link Checker

    # Remove the `-g` option if you want it installed locally.
    npm install broken-link-checker -g
    

How To Use It

Use (-r) recursively scan both internal and external links the links in the output.

blc -r http://mysite.test

Some requests to external sites, like LinkedIn, is will be blocked by their hosts. To omit external links add (-e).

blc -re http://mysite.test