Broken Link Checker for WordPress

Notice: This plugin has been transferred to ManageWP. I am no longer working on it. Please direct any feedback to the new developer. See the plugin homepage for more information.

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.

Features

  • Detects links that don’t work, missing images, deleted YouTube videos and other problems.
  • Periodically checks links in posts, pages, comments, custom fields 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.

Download

broken-link-checker.zip (412 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.

    Installation

    Install “Broken Link Checker” just like any other WordPress plugin :

    1. Download the .zip file (see below).
    2. Unzip.
    3. Upload the broken-link-checker folder to you /wp-content/plugins directory.
    4. Activate the plugin in the Plugins tab.
    Related posts :

    2,584 Responses to “Broken Link Checker for WordPress”

    1. Rob Vegas says:

      i have the problem that my wordpress blog is now running on new webspace and of course your plugin found morgen than 500 broken links.

      so it would be great to change all broken links at the same time.

      http://www.xyz.de/wordpress to http://www.123.de/wordpress

      so maybe you can include this possibility to your plugin! 🙂 would be great!

      change all xyz to 123 !

    2. White Shadow says:

      @Rob Vegas – That’s a good idea, but I think there are already plugins that can do this. I’m pretty certain I’ve seen some “global search & replace” plugins before, Google may turn some up.

    3. Hey, I’ve got some oddball stuff going on here with version 0.3.5. Specifically it seems to run for a while, and then gets stuck at, for instance, “3 posts and 9278 links in the work queue.” It’s been sitting here for four days, despite having the setting to recheck everything every 72 hours. Any idea how I can figure out what’s going on?

    4. Er, excuse me, I seem to have version 0.4.4. not 0.3.5.

    5. White Shadow says:

      @Michael Hampton – I’ve thought about your problem for a while and haven’t thought up anything useful. I don’t know why it’s stalling. I’ll let you know if I get any ideas.

    6. Kate says:

      I think this is an excellent plugin, thanks so much for your work on it.

      Our blog has many levels of users. We’d like to allow editors to use the Broken Link Checker, but they have “insufficient permissions.” Is there a way to extend permissions beyond just administrators? Thank you.

    7. White Shadow says:

      @Kate – It’s not easily extendable – you’d need to edit the source code. If you’re up for that, what you need to do is replace two references to ‘manage_options’ (around line 340) with ‘edit_others_posts’. This should give editor-level users access to the plugin.

    8. Denis says:

      Hello! I think that this plugin is really useful… However, I noticed that with wordpress 2.6 can give some problems. Watch this post in my blog:aggiornamento-a-wordpress-26

      I think this can help to solve the problem.

      Thank you and see you soon,
      Denis

    9. White Shadow says:

      @Denis – Riiight. I can’t really read that (as I don’t know the language), but if you mean the “Internal Server Error” thing it’s probably caused by some tricky server configuration conflict. For example, it could be some security-related Apache module that causes this, or a .htaccess thing.

    10. Denis says:

      @White Shadow@White Shadow – Sure, it’s italian 😛 However if I deactive the plugin, all things works right again… See you

    11. […] for almost 6 years and have not made many changes to it recently. I had, however, installed the Broken Link Checker plugin and thought that was the culprit. Anyway, I told my host that I would remove the problematic […]

    12. […] Broken Link Checker – This plugin will monitor your blog and looks for any broken links and let you know if any broken links are found. […]

    13. […] Broken Link Checker scans all your articles and their internal links to verify that none of them are broken. I haven’t kept this plugin continuously active, though did check my entire site after upgrading and changing many of my categories, and, happily, there were no broken links. […]

    14. […] the WordPress Broken Link Plug In, I found that along with the hundreds of links to my old web site I had over 160 broken links on my […]

    15. Bleh says:

      BLOATWARE ALERT… caused my blog to take FOREVER to load… probably because I have LOTS of content… but still! This is hardly “running invisibly in the background”!!!

    16. White Shadow says:

      @Bleh – Depends on your browser… I’ve had no problems with it 😛

    17. hillman says:

      This is a great plugin! Except that it’s reporting links to nearly all Wikipedia pages as broken, while they not. Such as:

      http://en.wikipedia.org/wiki/Pandora
      http://ja.wikipedia.org/wiki/%E7%A5%9E%E3%81%AE%E9%9B%AB

      Is there something funny about these Wikipedia pages? Or is it just that the Wikipedia web sites can’t be reached from my host?

    18. White Shadow says:

      @hillman – Wikipedia links work okay (i.e. not detected as “broken”) on my blogs, but some other users seem to have problems with them. Maybe it’s really a problem with your server, or maybe Wiki is blocking certain ranges of IP addresses.

    19. hillman says:

      @White Shadow – I see. Perhaps I’ll just discard those errors. Thanks for the reply!

      Does Broken Link Checker keep a log of the checking result? Like, whether it reports the link as broken coz it gets a 404 or 503 when checking?

      Also, one of the link in my blog is linking to:

      http://en.wikipedia.org/wiki/Pandora's_box

      but BLC is reporting the link as:

      http://en.wikipedia.org/wiki/Pandora

      Does it stumble on single quote in the URL?

    20. Xenu Link Sleuth produces some sort of error message on Wikipedia links (“forbidden”), I am guessing the same thing that stops XLS also blocks the BLC4WP.

    Leave a Reply