Broken Link Checker for WordPress
Sometimes, links get broken. A page is deleted, a subdirectory forgotten, a site moved to a different domain. Most likely many of your blog posts contain links. It is almost inevitable that over time some of them will lead to a “404 Not Found” error page. Obviously you don’t want your readers to be annoyed by clicking a link that leads nowhere. You can check the links yourself but that might be quite a task if you have a lot of posts. You could use your webserver’s stats but that only works for local links.
So I’ve made a plugin for WordPress that will check your posts (and pages), looking for broken links, and let you know if any are found.
Download it now! (423 KB)
Features
- Detects links that don’t work and missing images.
- Periodically checks links in posts, pages, comments and the blogroll.
- New and modified entries are checked ASAP.
- Notifies you on the Dashboard if any problems are found.
- Lets you edit all instances of a specific link at once.
- Gives you a list of all links ever posted on your site, with the ability to search and filter it.
- Lets you apply custom CSS styles to broken and removed links.
- Highly configurable.
The broken links show up in the Tools -> Broken Links tab along. If any invalid URLs are found a notification will also show up on the Dashboard widget. To save screen real-estate, the widget can be configured to stay closed most of the time and automatically expand when broken links are detected.
Installation
Install “Broken Link Checker” just like any other WordPress plugin :
- Download the .zip file.
- Unzip.
- Upload the
broken-link-checkerfolder to you/wp-content/pluginsdirectory. - Activate the plugin in the Plugins tab.
Download
broken-link-checker.zip (423 Kb)
Requirements
- WordPress 3.0 or later
- MySQL 4.1 or later
The current version of this plugin is only compatible with WordPress 3.0 and up. If you have an older version of WP, try one of the older releases. Specifically, version 0.8.1 is the last one that’s still compatible with the WP 2.8 branch, and version 0.4.14 is the last one compatible with WP 2.1 – 2.6.x.
Related posts :
Very nce, thank u….
[...] Broken Link Checker リンク切れチェッカー。 データを移転しているので、どこかで切れてるかも~って思って導入。 20個ぐらいのリンク切れを一気に直しちゃいましたよ~。 [...]
Thanks for this very helpful plugin.
But there is one thing wrong when cheking pages: The plugin is unable to understand relativ links.
An example:
http://www.etes.de/informieren/unternehmen/ links to http://www.etes.de/informieren/unternehmen/systemhaus/. The href is just “systemhaus” because it is a subpage.
Is it possible to implement that? Do you need further informations from me?
The plugin was supposed to already understand relative URLs, but it appears I forgot to fully implement that feature. It should work better in the new version I’ve just uploaded to wordpress.org (0.5.6).
That is really a very useful tool, thanks.
Excelente plugin… ya lo he usado en varios sitios y funciona de maravilla, he logrado corregir una gran cantidad de vínculos rotos!
Saludos cordiales
I just wrote a review of your great plugin on my blog: http://www.word-ex-press.com/an-useful-plugin-broken-link-checker/.
Thanks for your job!
[...] können diese mit einem Klick entfernt werden. Das Plugin nennt sich Broken Link Checker von W-Shadow und prüft erstellte Artikel, Seiten und die Blogroll nach toten Links. Selbstverständlich [...]
Addition to your answer with id: 657
I updated to thew new version and most oft my “broken links” did disappear. I fixed the other ones manually.
But one thing which still does not work. If the relative link starts with “../” or “../../” etc. the link is reported to be broken.
Specific examples would be nice. It’s supposed to handle URLs like that, so I need to see a more specific situation where it fails to find the bug.
[...] can also use the ‘Broken Link Checker‘ plugin which makes it a breeze to find and fix broken [...]
Hi,
I was wondering if the plugin already had this capability or if it doesn’t it would be good to have it.
This plugin I think so far only checks official links that you can click on. But can it check just a simple url without being in a link format?
Like this: http://www.google.com
and not http://www.google.com
EDIT:
Hi,
I was wondering if the plugin already had this capability or if it doesn’t it would be good to have it.
This plugin I think so far only checks official links that you can click on. But can it check just a simple url without being in a link format?
Like this: http ://www. google.com (added spaces so it wouldn’t link) Basically urls that you have to copy and paste into your browser to get to it and now just one that you can click on.
and not http://www.google.com
Thanks.
[...] the link right there instead of hving to fish for it within HTML code or in visual mode! Thank you Broken Link Checker! addthis_url = [...]
@Pascal : I shall add that to my To-Do list
[...] Broken Link Checker – Search engines hate broken links. Whenever you add a link to an image or a trackback to another blog you’ll find that the host of the blog/image may move or remove that link. This plugin will tell you on your WordPress dashboard whenever it finds a broken link then give you the option to change it or de-link. Saves you the time of rummaging through your old posts checking for errors. [...]
[...] Auteur : http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/ [...]
[...] Broken link Checker – Like anything else links too get broken, this pluggin will scan your posts for that and report any broken links in the dashboard section of wordpress. There you can easily fix them. [...]
This is a fantastic plugin. Thank you so much!
I noticed that the font styling was a little off in the dashboard widget. (Why I notice these things, I do not know.) If you change the div tag to p, it’ll match the other widgets, and you won’t need the line-height style. The script still loads correctly.
Alright, it shall be done. And thank you for the donation
[...] been playing with the neat Broken Link Checker plugin today, I discovered a few links that had gone or changed and set about fixing them. During [...]
We are behind a huge firewall, and therefore we have to modify the code of Broken Link Checker, so that all links in our sites don’t become broken. But with each new release, we have to find out where to re-add the code
Here’s an example of the code we added from plugin version 0.4.14, Line 278:
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt( $ch, CURLOPT_PROXY, “http://our-firewall.domain.gov:1234″);
We’d certainly request a place to add the proxy in the admin interface. Please feel free to contact me directly with questions and I’ll relay them to our PHP expert.
Don’t post to websites in the morning before you’ve had your cup of tea!
Corrections to my previous post in brackets []:
“We are behind a huge firewall, and therefore we have had to modify the code of Broken Link Checker [with each upgrade], so that all links in our sites don’t [appear false postive] broken in BLC. But with each new release, we have to find out where to re-add the code.”
Here’s an example of the code we added from plugin version 0.4.14, Line 278:
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt( $ch, CURLOPT_PROXY, “http://our-firewall.domain.gov:1234″);
We’d certainly request a place to add the proxy in the admin interface. Please feel free to contact me directly with questions and I’ll relay them to our PHP expert.
I will donate to this plugin if you add a WP-blessed changelog to the Broken Links WP Plugins page
I shall add that to my To-Do list, too
But seriously, I’m currently working on updating another WP plugin, so these suggestions will have to wait. Though I will probably get around to implementing them within a week or two (at most).
@joebanks
Instead of making up new variables, you could just use the globally defined proxy settings in WordPress.
WP_PROXY_HOST
WP_PROXY_PORT
@joshglemza
I am such a n00b. Thanks, Josh.
[...] found this plugin, which seems to be quite good at finding the dead-ends. For other WordPressers ready for a little [...]
[...] keep them all up to date, especially if you’re changing categories, titles, etc. Download the broken link checker for this. You may be surprised at just how many dead links you have. Don’t forget to check [...]
[...] keep them all up to date, especially if you’re changing categories, titles, etc. Download the broken link checker for this. You may be surprised at just how many dead links you have. Don’t forget to check [...]