Last active
August 29, 2015 14:16
-
-
Save thomascrepain/c8eefcbce291876e3f60 to your computer and use it in GitHub Desktop.
Test website for broken links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --spider -w 1 -r -p http://www.example.com 2>&1 | grep -B 2 -E '\.\.\. [45]\d{2}' | |
Use access log on the webserver to check for the referrer on the broken links: | |
tail -f access.log | grep -E 'HTTP/1.1" [45]\d{2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment