This article is dedicated once again to a small self-creation. So it’s about a little tool of mine, which I have created acouple of days ago, as in most cases, out of necessity. So I was recently looking for a opportunity to check a large list of links as easy as possible to identify the dead links out of it.
The initial situation
At least if you have to check 20 or more links for their validity by hand, you realize that ther must be a better and faster solution. Therefore I have written a small program in C#, which helps you to check as many links/urls as you like for their validity. I have named the tool “404Checkr”, whereby 404 refers to the HTTP statuscode 404, which says that a page/file could not be found.
What does the 404Checkr?
The 404Checkr can handle an arbitrarily large list of links. These can be entered either manually or via copy and paste. After that you can choose the amount of threads. This means practically, how many pages are checked in parallel. The ideal value for this is always depending on the quality and speed of the users internet connection.
Next you can set the number of seconds which is needed before a timeout error is raised. This can be useful if you want to have only sites classified as “OK”, which answer within a certain time. Depending on your requirements, a page may be technically ok but practically unusable when it answers not unti after 15-20 seconds.
In addition, the user-agent can be specified and for the experts an alternative DNS service can be activated. In that case the IPs of the hosts won’t be determined by the Windows DNS system but by the 404Checkrs custom system.
If these settings are made, the analysis of the links can be started with one click. The current progress of the review process can be monitored bya progressbar and a text-based output. Although the result list refreshes in real-time.
When testing is completed, the results can be exported either as simple .txt-document or as a .csv-file. It is possible to select whether all links or only the good / bad should to be exported.
Download and instructions
Of course you can download and use the software (404Checkr) for free. Should you however want to use it commercially (for example in your company), so I would appreciate that you contact me or send me at least a small donation via Paypal.
Screencast – 404Checkr live!
Source code and developer information
Contrary to some of my other projects, I’m also providing you with the source code of 404Checkr. You are welcome to add new functions or work on the performance. Should you actually build something new from the project, I’d appreciate a comment or an email. (I, for myself, always like to see what others have for ideas that you didn’t come to my mind. Moreover, sometimes there are arinsing really interesting discussion out of such situations.)
Two more notes before I’ll give you the download link for the Visual Studio project.
- As I said, you are allowed to create something new from the existing project. What I do not like is when you only replace my name and add yours or your logo and then tell everybody that the program was “your genious idea”. I say this aware at this point, since I often times get such requests lately.
- Do not expect too much from the sources. The program is basically built between two coffee cups. If you get lost in the code, I can not be held responsible for. ;)