
外掛標籤
開發者團隊
② 後台搜尋「Link Canary – Find and Fix Broken Links」→ 直接安裝(推薦)
原文外掛簡介
Link Canary finds broken links across your entire site and helps you fix them in bulk — without ever talking to a third-party service.
Everything runs on your server. The only outgoing requests Link Canary makes are the checks against the links themselves. There is no cloud dashboard, no account signup, no credit card, and no monthly link quota. Check ten links or a hundred thousand — it is your server, your data, your call.
What gets scanned
Link Canary scans the content and custom fields of every published post in every public post type. Because it walks post meta too, all of the following are covered automatically:
Posts, pages, and custom post types
Navigation menu items
Block theme navigation, template parts (headers/footers), and synced patterns
Links stored in custom fields (including serialized data such as ACF repeaters)
Post types registered as private are left alone, so data that never reaches your visitors — contact form submissions, shop orders, field definitions — is not read.
Careful checking
External links are checked over HTTP with redirects followed. Temporary failures — timeouts, DNS errors, server errors — must repeat several times before a link is called broken, so an outage never triggers a false alarm; a server answering 404 or 410 is reported straight away.
Internal links are resolved against your own database and filesystem — no self-inflicted HTTP traffic, no loopback issues on shared hosting.
Another site on your domain — a second WordPress in a subfolder, say, or anything outside the folder your site is installed in — is checked over HTTP like an external link, because your database knows nothing about its pages. If your server cannot reach itself, those links stay at “Needs review” instead of being reported broken.
Consecutive requests to the same host are rate-limited (configurable) to stay polite to other people’s servers.
Nothing is sent to private or local addresses or to unusual ports, so a link in a post cannot be used to probe the inside of your network. Those links stay at “Needs review”.
Healthy links are skipped for a configurable number of days; broken links are rechecked on every scan so recoveries are noticed.
When a link is reported broken but works in your browser, mark it “It works for me”. It stops counting as broken while still being checked on every scan, and the mark clears itself the moment the link answers normally again.
Hosts that refuse bots (401, 403, 429, 503) are filed separately as “Blocked by host” instead of being called broken. Those links work for your readers, so they stay out of the way — and out of your email — while still being rechecked.
Fixing links
Replace a URL everywhere it appears — with a mandatory dry-run preview showing every affected post and field before anything is written.
Remove the link instead: the text stays exactly where it is, only the surrounding link tag goes. Same mandatory preview, showing the markup that disappears and the text that survives.
Replacements go through the WordPress APIs (wp_update_post() / update_post_meta()), so serialized data is never corrupted.
Export the link list as CSV — one row for every place a link is used, with the post, the link text, and a link to the editor — to hand the fixes to whoever edits your posts.
Every replacement and removal is recorded in a history you can export as CSV.
Where post revisions are enabled, they act as an additional safety net for post content (revisions do not cover custom fields).
Notifications
Scheduled scans start with your first manual check (once a day) or when you pick a frequency in Settings, and can be turned off at any time. They email you when — and only when — new broken links are found. Manual scans never send email, and the same broken link is not reported again on every scan.
Source code
The JavaScript and CSS in build/ are generated from the readable files in src/, which ship with the plugin together with package.json and webpack.config.js. To rebuild them, run pnpm install and pnpm build in the plugin folder.
What Link Canary does not do
No cloud scanning, no external accounts, no paid limits.
Single site only — multisite network activation is not supported.
Comments and classic widgets are not scanned in this version.
