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. Lance says:

      You were right; after logging out and back in, everything is now working. Thank you so much for your assistance!

    2. […] Broken Link Checker for WordPress – As your blog gets more and more posts, it can be difficult to go back and look for what has broken with time.  This plugin will check images and links and notify you via the dashboard when it locates something. […]

    3. هذه هي بلدي وليس من المستغرب بعد ذلك ، ولكن بفضل..

    4. Steve says:

      I have been using your broken link checker plugin on a few WP sites and it seems to be randomly putting a strikethrough line through some of my affiliate links. At least that is what the developer of the paid for link cloaker says. So I’m going to leave your plugin active until the next time an affiliate link gets the strikethrough and then I will deactivate it to confirm if it is in fact the culprit. Has anyone else had this same problem?

    5. […] para determinadas palavras-chave. Se por ventura utiliza WordPress, procure instalar o plugin Broken Link Checker, que faz uma análise completa ao seu blog, detectando imediatamente links que não consegue seguir […]

    6. White Shadow says:

      @Steve – Yes, the plugin will show a “strikethrough” line on links it considers broken. You can turn off this feature by going to Settings -> Link Checker and unchecking the “Apply class=”broken_link” to broken links” box.

    7. Wagner Reis says:

      Great plugin!
      Congratulation an thaks from Brazil!

    8. Steve says:

      @White Shadow

      Okay great! That is good to know and thanks for taking the time to reply!

    9. Robert@PNG says:

      Hi,

      Been using your plugin for a little while now and have found it very handy (especially when I moved my blog about six months ago).

      I have a question:

      I would like to display the number of broken links on a stats page I have put together and basically want to show my readers the number of broken links on my blog.

      Any ideas?

      R

    10. White Shadow says:

      @Robert@PNG – Hmm, it can be done, but probably not easily. There isn’t any built-in API useful for this purpose.

      In a nutshell, you can get the number of broken links by running this MySQL query : “SELECT count(*) FROM [linkdata_name] WHERE broken=1”, where “[linkdata_name]” is the name of the plugin’s link metadata table (usually it is “wp_blc_linkdata”).

      I don’t know if this helps any 🙂

    11. Robert@PNG says:

      That did the trick mate!

      Thanks,

      R

    12. @AJ

      I’m having the same problem. I have WordPress 2.6

    13. ghprod says:

      So you have Wp plugin too!!!

      Man you’re so great 🙂

      Thnx for this useful plugin ..

      regards

    14. […] Check for broken links Search engines and your blog readers do not like broken links so use the Broken Link Checker WordPress plugin to check for broken […]

    15. G’day from Australia

      Have you been getting any problems with this plugin on GoDaddy Hosting? I have a couple of blogs (2.65 and 2.7) and they are both failing on GoDaddy.

      My other blogs on other hosting servers are fine.

      Any ideas.

      Dave

    16. White Shadow says:

      @David from the Jewelry Appraisal Center – What kind of problem are you having exactly?

    17. @White Shadow – G’day again and many thanks for your swift reply.

      When I first installed it there was a FATAL ERROR – probably due to activating 2 plugins at the same time. Once I did them one at a time it seemed to just hang but eventually (after kicking me out of the Admin area and asking me to download the edit file?) I managed to get back in.

      Everything was extremely slow – but with some patience (I went for coffee) found it was simply checking all my posts and links. There were 79 broken links – Wow and I thought I had everything under control 🙁

      Now all is well and so I put it down to PHP4 on GoDaddy PLUS two plugins clashing.

      Many thanks anyway – great plugin.

      Dave.

    18. White Shadow says:

      @Dave at the Jewelry Appraisal Center – Hmm, yes, it can slow down the site for some users, but I haven’t been able to figure out why. Glad to hear it’s working now.

    19. […] Broken Link Checker – Este plugin faz-me lembrar a minha avó: podia estar um calor do caraças, mas quando eu saía de casa dizia-me sempre para levar uma camisola porque «pode fazer frio». O Broken Link Checker examina todos os links existentes nos teus posts e informa-te quais os que se encontram inválidos, incluindo alguns que estão a funcionar bem. Tens a opção de editar a morada e corrigi-la sem necessidade de abrir o post, de «esquecer» o assunto quando refere como inválido um link válido (mas depois o falso alarme regressa) ou simplesmente remover o link. É uma ferramenta interessante se fores um tipo picuinhas como eu, mas de vez em quando exagera e é preciso muita paciência. […]

    20. […] Broken Link Checker for WordPress | W-Shadow.com (tags: tools wordpress web plugin plugins php 404 brokenlink) […]

    Leave a Reply