Check 05.07 · HTTP and redirects

Fix broken external links

Find outbound links that no longer work, rule out false positives, then replace, archive or remove each link and schedule a regular check.

Priority
Critical
Difficulty
Easy
Estimated time
1 h to 1 day, then ongoing
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A broken external link is a link from your site to another site that no longer leads to the expected resource: a 404 or 410 error, an expired domain, a server that no longer responds, or a redirect to an unrelated page. This check consists of finding them, telling genuine failures apart from crawler blocks, then replacing each link with the current source or an archived version, or removing it. Once it is done, every source you cite can be viewed and a regular check detects new failures.

Why it matters

Outbound links do not break because you changed something, but because other sites change: redesigns, deleted articles, relocated studies, companies that have closed. A piece of content that cites ten sources loses a few of them every year without anyone noticing.

The problem is not primarily technical. A source that no longer opens weakens the argument it supported: the reader can no longer check the figure, the quote or the rule. Google asks for reliable, verifiable content, and generative engines favor pages whose claims are attributed to identifiable sources. No public study measures a direct effect of broken outbound links on rankings or on AI citations; what is at stake is the content's credibility, and the reader's wasted time.

An expired domain carries an extra risk: it can be bought up and serve unrelated, sometimes dubious, content, which your page then recommends without knowing it.

What it improves

  • Credibility Every sourced claim remains verifiable. An indirect effect on readers' trust and on quality assessment.
  • Visitor experience Fewer clicks that lead to an error or to an unrelated page.
  • Citability by generative engines Content whose sources are up to date and accessible lends itself better to being reused. A plausible but unmeasured effect.
  • Editorial safety You no longer send readers to a domain bought up by a third party.
  • Rankings No proven direct effect.

How to check

With Screaming Frog, external links are checked by default during a crawl. Open the External tab, filter on Client Error (4xx), Server Error (5xx) and No Response, then open the Inlinks tab at the bottom to see the pages that contain each link. The free version is limited to 500 URLs.

From the command line, linkinator crawls your site and checks every link it finds, including those to other domains, without crawling those domains:

npx linkinator https://www.example.com --recurse --concurrency 5 --timeout 15000 --format CSV > liens.csv
awk -F, '$3 == "BROKEN" && $1 !~ /^https:\/\/www\.example\.com/' liens.csv | head -n 50

The second command keeps only failed links that point outside the site; the exact column format may vary by version, so check the first line of the file.

The W3C Link Checker, free and online, checks a page or a small site by following links down to the depth you set; it is slow but requires no installation.

For a single suspicious URL, read the code and the final destination:

curl -s -o /dev/null -L --max-time 20 -A "Mozilla/5.0" -w "%{http_code} %{url_effective}\n" "https://site-cite.example.org/etude-2022.pdf"

Compliant result: 200 and a final URL that does match the cited resource. A 200 that ends up on the cited site's homepage is a soft 404: the link is broken even though the code is fine.

How to implement

Step 1 — Rule out false positives

Some of the “errors” reported are not broken links, but sites that turn crawlers away:

Code or symptom Likely meaning Action
403, 429, challenge page Anti-bot protection on the cited site Open the link in a browser; if it works, ignore it
999 Non-standard response that some social networks return to crawlers Manual check
Timeout Site slow or blocked from your country or your hosting provider Try again later, then check manually
301 to another page on the same site Resource moved Update the link to the new URL
301 to the homepage or to another domain Resource deleted or domain sold Treat it as a broken link
404, 410, DNS error Resource or site gone Fix it

Keep an exclusion list (domains that always block) so you do not process them again at every audit.

Step 2 — Choose the fix

For each genuinely broken link, in this order:

  1. Find the new address: search for the resource's exact title on the original site or in a search engine. Institutions and publishers often move their pages without deleting them.
  2. Replace with an equivalent or more recent source: preferably the primary source (official text, original study, vendor documentation) rather than an article that summarizes it. Update the claim if the figures have changed.
  3. Point to an archived version: for a historical resource with no replacement, the Wayback Machine (https://web.archive.org/web/*/LINK_URL) often keeps a copy. Say so in the text: “(archived version)”.
  4. Remove the link: if the resource no longer adds anything, delete the link, and the sentence too if it no longer stands without its source.

Tip: for the sources you depend on (studies, regulatory texts), save a copy in the Wayback Machine as soon as your content is published, with the “Save Page Now” form. The archived version will exist on the day the original disappears.

Tracking table:

Source page Broken link Code Genuine failure? Fix New link Done on
/blog/guide-rgpd/ cnil.fr/fr/ancienne-fiche 404 Yes New address found cnil.fr/fr/nouvelle-fiche 2026-11-25
/blog/etude-marche/ cabinet-x.example/etude.pdf DNS Yes Archived version web.archive.org/web/2023… 2026-11-25
/a-propos/ linkedin.com/company/… 999 No None — —

For content where the sources carry the argument, see also update links and references (opens in a new tab) and identify outdated sources (opens in a new tab).

Step 3 — Schedule the check

External links break all the time. Schedule a monthly check, or a weekly one for a source-heavy site (media, documentation, comparisons). This check must not block a release: a third-party site that is down is not an error in your code.

WordPress

Versions WordPress 6.4 to 7.1; Broken Link Checker plugin 2.x.

The Broken Link Checker plugin checks the links in content and comments on a schedule, with a local engine or a cloud engine (free account with its publisher). From its list, you can edit the URL, unlink while keeping the text, or mark a false positive as valid. On modest hosting, prefer the cloud engine or an occasional external crawl. To replace a URL cited in many posts, use Better Search Replace or wp search-replace, after a backup.

Shopify

Versions Shopify admin, all plans, November 2026.

No built-in check: start from an external crawl. Outbound links are mostly found in blog posts, pages and product descriptions (links to manufacturers, manuals, certifications). Fix them in the editor of each resource; also check the footer links in Online Store > Themes > Customize.

Wix

Versions Wix Editor, all plans, November 2026.

No built-in check here either: start from an external crawl, then fix the links in the editor or in the blog posts. Links to documents hosted elsewhere (partners' PDFs) are the most exposed.

Laravel

Versions Laravel 10 to 13.

For content stored in the database, a scheduled command can check outbound links and record failures, without ever blocking deployment:

use Illuminate\Support\Facades\Http;

$response = Http::timeout(15)
    ->withUserAgent('Mozilla/5.0 (compatible; LinkCheck)')
    ->withOptions(['allow_redirects' => ['max' => 5, 'track_redirects' => true]])
    ->get($url);

$isBroken = $response->status() === 404 || $response->status() === 410 || $response->serverError();

Space out requests to the same domain, and treat 403 and 429 as “to be checked”, not as failures. Only the place where the command is scheduled changes from one version to another.

Laravel 11 to 13

Schedule the command weekly in routes/console.php:

use Illuminate\Support\Facades\Schedule;

Schedule::command('app:check-external-links')->weekly();

Laravel 10

Schedule the command in the schedule() method of app/Console/Kernel.php:

protected function schedule(Schedule $schedule): void
{
    $schedule->command('app:check-external-links')->weekly();
}

Next.js

Versions all versions of Next.js; linkinator-action GitHub Action v2.

For a static site or a Markdown blog, a scheduled workflow with linkinator's GitHub Action checks the published site every week, without blocking deployments:

name: External links

on:
  schedule:
    - cron: '0 6 * * 1'
  workflow_dispatch:

jobs:
  liens:
    runs-on: ubuntu-latest
    steps:
      - uses: JustinBeckwith/linkinator-action@v2
        with:
          paths: https://www.example.com
          recurse: true
          concurrency: 5
          timeout: 15000
          statusCodes: '{"403": "warn", "429": "warn", "999": "warn"}'

The same workflow suits any published site, whatever the framework.

Common mistakes

  • Blindly fixing every 403: many sites block checking tools but open normally in a browser.
  • Relying on the 200 code alone: a deleted resource redirected to the cited site's homepage, or a bought-up domain showing something else, both return 200.
  • Replacing the source with any old article: a link to a second-hand summary weakens the argument; look for the primary source.
  • Keeping the figure and changing only the link: if the new source gives a different figure, update the text.
  • Checking too fast: dozens of simultaneous requests to the same site trigger blocks and false positives.
  • Confusing them with broken backlinks: links from other sites to your deleted pages belong to another check, reclaim broken links (opens in a new tab).

Frequently asked questions

Updated on

Topic checklist (PDF)

And now?

In the “HTTP and redirects” topic

  1. Check that active pages return 200
  2. Use 301/308 for permanent moves
  3. Use 302/307 for temporary moves
  4. Fix redirect chains
  5. Fix redirect loops
  6. Fix broken internal links
  7. Fix broken external links
  8. Create a helpful 404 page
  9. Return 404/410 for removed content with no equivalent
  10. Avoid redirecting all removed pages to the homepage
  11. Fix unjustified 403s
  12. Fix excessive 429s
  13. Fix 5xx errors
  14. Monitor server errors
  15. Use 503 during temporary maintenance