26
May
Checking for broken links Using WGet
By Joseph Montanez
0 Comment

When ever we release a public site its always a good idea to run a spider on it, this way we can check for broken pages and bad urls. WGET has a recursive download command and mixed with --spider option it will just crawl the site.

    1) Download WGET

        Mac:
        http://www.statusq.org/archives/2008/07/30/1954/
        Or use macports and download wget.

        Windows:
        http://gnuwin32.sourceforge.net/packages/wget.htm

        Linux:
        Comes built in
        ----------------------------------------

    2) In your console / terminal, run (without the $):

        $ wget --spider -r -o log.txt http://yourdomain.com

    3) After that just locate you "log.txt" file and at the very bottom
     of the file will be a list of broken links, how many links there 
    are, etc.

« Back to my notebook
Next Note > Comment Pages: 1



by cislas

THIS IS MY 1 COMMENT

here, here it is.


by jm

sdfgsdfg sdfgsdfg sfgf

sfgsdgdfsedgfg fg gdf


by jm

fggsdfgsd f

gsdf gsdfg sdfg sdfgsdfg


esign