Replace Broken Links With AI

Finds links in your posts that return 404 or 410, waits until they're truly dead, then has AI search Google and swap each one for the best live page on the same topic. Works with ChatGPT or Claude, with an approval mode and one-click undo.

Replace Broken Links With AI fixes dead links instead of just reporting them. When a page you linked to disappears, the plugin works out what that page was about, has an AI write a Google search for it, reads the top 10 results, and lets the AI pick the live page that best matches what your link promised. The new page is checked, then the link is swapped. Your reader lands on a working page that covers the same thing, and your post keeps a useful outbound link instead of a 404.

It's careful about what counts as dead. Only pages that answer 404 Not Found or 410 Gone count, twice in a row, to a request that looks like an ordinary browser, and you choose how long a link has to keep failing first: right away, a day, three days, a week, two weeks or a month. Timeouts, server errors and sites that block bots never count. It also catches the dead links other checkers miss: expired domains that now show a parked or for-sale page, redirect to someone else's homepage or have been taken over by spam.

Each lookup starts with the Wayback Machine's last good copy of the old page, searches the original website first in case the page just moved, and matches links to your own site against your own posts without using Google at all. Replacements go in automatically when the AI is confident, or wait for your approval; every change saves a revision and can be undone. You bring an OpenAI or Anthropic key and a Serper.dev key, choose the models, edit both prompts if you like, and set daily limits on lookups and spending. Find it under Content Powered > Replace Broken Links.

Features

  • Only truly dead links. 404 Not Found and 410 Gone only, twice in a row, from a request that looks like a browser. Timeouts, server errors and bot blocks never count.
  • A waiting period you choose. Right away, 24 hours, 3, 7, 14 or 30 days. A link is checked again when the wait is over, and once more right before it's swapped.
  • Dead domains that still load. Parked and for-sale pages, redirects to another site's homepage, spam takeovers and domains with no DNS are flagged for your review.
  • Knows what the page was. The Wayback Machine's last good copy gives the old page's title and opening text, so the search looks for the right thing.
  • AI-written Google searches. A low-cost model writes the search, and Serper.dev returns Google's top 10 results. The original site is searched first, in case the page just moved.
  • AI picks the best match. A stronger model chooses the result that fits the link text and the sentence around it, with a confidence level and a reason.
  • Verified before it's used. The new page has to load, can't be noindexed or parked, and is linked at its final address so it never adds a redirect.
  • Your own posts for your own links. A dead link to your own site is matched against your published posts and pages, with no Google search and no search cost.
  • ChatGPT or Claude. Pick OpenAI or Anthropic, choose a model for each step, and edit both prompts with placeholders and a test lookup.
  • Automatic or approved. Confident matches go in by themselves, the rest wait for you. Pick another result or paste your own link at any time.
  • Change log and undo. Only the link address changes; link text, rel and target stay. Every swap saves a revision and can be undone in one click.
  • Cost controls. One lookup per dead URL however many posts use it, preferred and blocked domains, and daily limits on lookups and spending.
  1. Click Download above to save replace-broken-links-ai.zip. Leave it zipped.
  2. In your WordPress dashboard, go to Plugins > Add New Plugin and click Upload Plugin.
  3. Choose the ZIP and click Install Now, then Activate Plugin.

To update later, upload a newer ZIP the same way. WordPress offers to replace the installed version and keeps your settings.

Which Links Count as Broken?

Only pages that answer 404 Not Found or 410 Gone to two requests in a row, made the way an ordinary browser would. A site that's down for a few minutes, a timeout, a server error or a page that blocks bots is never treated as broken. Links whose domain has changed hands, such as a parked page or a spam site on an old domain, are flagged separately and always wait for your approval.

Will It Replace a Link Before It's Really Dead?

No. You choose how long a link has to keep failing, from right away up to 30 days, and it's checked again at the end of that wait and once more right before it's swapped. If the page comes back at any point, it drops off the list.

What API Keys Do I Need?

An OpenAI or Anthropic API key for the AI, and a Serper.dev key for the Google results. You pay those services directly and only for what you use. Keys are stored encrypted, or you can put them in wp-config.php.

How Much Does Each Replacement Cost?

Each dead link uses two short AI requests and one or two searches, which is usually a few cents at most with the default models and a fraction of a cent with the cheapest ones. The Overview shows an estimate, and you can set daily limits on lookups and spending.

Can the AI Put a Bad Link in My Posts?

It can only choose one of the search results, by its number, so it can't invent an address. The chosen page is checked before it's used, domains you never want to link to are removed first, and anything the AI isn't sure about waits for your approval.

Can I Undo a Replacement?

Yes. Every change is listed with who made it, and Undo puts the old link back. Each change also saves a revision of the post, and the post's last-modified date doesn't move.

Does It Work With Page Builders?

It checks the content saved by the block editor and the classic editor. Page builders that store their layouts separately, such as Elementor or Divi, aren't scanned.

Does It Slow Down My Site?

No. Nothing runs for visitors: links are checked in short background batches, each URL once per scan however many posts use it, and lookups run a few at a time.

1.0.1

  • Wayback Machine lookups use the CDX API first (one request lists the last good copies before the link died), with the availability API as a fallback, so archive.org rate limits matter less.
  • Archived summaries no longer repeat a description that's the first paragraph cut short.
  • The "Used in" column is left-aligned again (it shared a class name with a core column).

1.0.0

Download

Download Plugin

By downloading, you agree to the .

All Time Downloads
53

Download activity

More Free WordPress Plugins

Let's Grow Your Business

Want some free consulting? Let's hop on a call and talk about what we can do to help.

WordPress Plugin Terms of Use

Last updated October 26, 2026

These terms apply to every free plugin you download from the WordPress Plugins section of contentpowered.com (the "plugins"). By downloading, installing or using a plugin, you agree to them. If you don't agree, please don't download or use the plugins.

1. Provided "as is"

The plugins are free and are provided "as is" and "as available", without warranty of any kind, express or implied. That includes any warranty of merchantability, fitness for a particular purpose, non-infringement or security, and any promise that a plugin will be free of errors, compatible with your site, or kept up to date.

2. You use them at your own risk

You're responsible for deciding whether a plugin is right for your site, for testing it, for keeping backups, and for keeping WordPress, your theme, your plugins (ours included) and your hosting up to date and secure. We recommend trying any new plugin on a staging copy of your site first.

3. No guarantee of updates or support

We may update, change or stop maintaining any plugin at any time, without notice. Older versions may contain bugs or security vulnerabilities, and it's up to you to install updates. We don't promise to fix problems, answer questions or provide support, though you're welcome to report issues from inside a plugin (Content Powered > Report a Bug in your WordPress dashboard).

4. Limitation of liability

To the fullest extent the law allows, Content Powered and its owners, employees and contractors are not liable for any direct, indirect, incidental, special, consequential or punitive damages, or for any loss of data, revenue, profits, search rankings, traffic or business, arising from downloading, installing, using or being unable to use a plugin. This includes hacks, security breaches, malware, downtime, conflicts with other software, and problems caused by outdated versions. If we are found liable despite this, our total liability is limited to the amount you paid us for the plugin.

5. You agree to hold us harmless

You agree to indemnify and hold harmless Content Powered and its owners, employees and contractors from any claims, losses, damages, liabilities and costs, including reasonable legal fees, that arise from your use of a plugin or your breach of these terms.

6. License

Each plugin is released under the license stated in its files, usually the GNU General Public License (GPL) version 2 or later. The GPL lets you use, study, change and share the plugin, and it also says the software comes with no warranty. Nothing in these terms takes away the rights a plugin's license gives you.

7. Third-party code and services

Some plugins include code from other projects or connect to services run by other companies, which have their own licenses and terms. We aren't responsible for them.

8. Changes to these terms

We may update these terms at any time. The version shown here applies from the date above.

9. Our other terms

These terms add to our website Terms and Conditions and Privacy Statement. Where they conflict, these terms apply to the plugins. Questions? Contact us.

Report an Issue

The best way to report an issue is from inside the plugin:

  1. Log in to your WordPress dashboard at yoursite.com/wp-admin/.
  2. In the left-hand menu, go to Content Powered > Report a Bug.

Can't get into your dashboard? Contact us instead.

Share
Tweet
Share
Pin
Email