失效連結檢查器:為何四個 403 看似失效連結
Broken Link Checker: Why Four 403s Looked Like Broken Links
AgentSEO 檢查 22 個外部 HTTPS 連結時,發現 4 個連結出現 403,指出單憑 403 不足以判定連結失效。其中一個網址的 HEAD 回應為 200、GET 回應為 403;測試中沒有 404 或 410。文章建議將 403、429、驗證碼、逾時或請求方法結果不一致列入人工複核,並保留來源網址、目的網址、狀態碼和錯誤細節。
Four links in our broken link checker returned 403. A quick export might put them in a red “broken” column. That would be a decision the evidence can't support yet. None of the 22 links returned 404 or 410 in our test, and one URL changed from 200 to 403 when we switched from HEAD to GET.
This matters when you own a documentation site or blog with citations to other domains. Removing a useful reference because one automated client was denied access can make the page worse. Ignoring a real 404 is a problem too. The job is to separate those cases before editing the page.
The 22-link test, and what it actually measured
On November 6, 2026, we fetched the source HTML of 53 public articles in AgentSEO's sitemap. AgentSEO was testing its own site. We extracted links from each article's editorial body, kept external HTTPS links without query strings, and deduplicated the destinations. That gave us 22 unique outbound URLs. Each received one HEAD request and one GET request with the same Python client, a 12-second timeout, and redirects enabled.
The result matrix was small enough to inspect rather than hide inside a score:
| HEAD result | GET result | Unique links | What the result establishes |
|---|---|---|---|
| 200 | 200 | 18 | This client reached a response on both methods. |
| 200 | 403 | 1 | Request method changed the observed status. |
| 403 | 403 | 3 | This client was refused on both methods. |
| 403 | 200 | 0 | No such reversal appeared in this sample. |
There were zero GET responses with 404 or 410. There were also zero redirects among these 22. That doesn't prove every link works for every reader or every crawler. It means the four 403 results are unresolved access checks, not four observed missing pages. The chart shows the complete matrix, including the zero cell.
We deliberately excluded query-bearing URLs and links outside the editorial body. We read server HTML, not a rendered browser page. The sample is one company's articles on one date, not a benchmark of link checkers or the wider web. Those limits matter if your own site uses JavaScript to create citations, signed URLs, or an external service with aggressive bot controls.
A HEAD request can give you the wrong repair list
One cited reviews page gave our HEAD request 200 and our GET request 403. If a checker trusts only HEAD, it would mark that URL healthy. If it trusts only GET and treats every non-200 response as a dead page, it would mark it broken. Both reports would leave out the useful part: the method and client changed what we saw.
The HTTP specification defines HEAD as a way to request the same metadata as GET without the response body. It also defines 403 as a refusal to fulfill a request. It does not mean the URL is missing. A 404 means the server did not find a current representation, or will not disclose one. These distinctions are in RFC 9110.
That isn't a license to ignore 403. A visitor might be blocked too. A page could be private or region limited. A site might return a different response to another user agent. The point is to move the URL to a review queue instead of automatically deleting the link. In our sample, a separate web retrieval opened the G2 SerpApi reviews page while the Python GET received 403. That shows client-dependent access for this one URL; it doesn't validate every blocked link.
Recheck one URL before you change the article
Take the exact URL from the checker export, including its path. Record the source page and anchor text so you know what the reader expected. Then run both requests from a shell:
curl -I -L --max-time 12 'https://www.g2.com/products/serpapi-serpapi/reviews'
curl -L -sS -o /dev/null -w '%{http_code} %{url_effective}\n' --max-time 12 'https://www.g2.com/products/serpapi-serpapi/reviews'
The first command checks HEAD; the second checks GET and prints the final status and URL after redirects. Your results can differ from ours because the server sees a different client, time, or network. That's exactly why the report should keep the method, final URL, timestamp, and error detail instead of a single “broken” flag.
If either request gets 403, try the link in an ordinary browser and check whether the intended content loads. If it needs a login, a consent step, or is unavailable to your intended audience, decide whether the citation is still useful. If it lands on an unrelated homepage, a 200 status won't save it; inspect the content. If you get a genuine 404 or 410, find a relevant current source or remove the claim the link was meant to support. Replacing a dead citation with the first vaguely related page is not a repair.
For your own URLs, check the response directly and use Search Console's page indexing data alongside the crawl. Google notes that a soft 404 can be a page that returns 200 while telling the user it does not exist. It also recommends a real 404 for genuinely missing pages and a permanent redirect where a page has a clear replacement. Google's crawling errors guidance
What to export from a broken link checker
A useful export gives you a row per source–destination pair. Keep the source URL, destination URL, anchor text, HEAD and GET status if both were used, redirect chain, final URL, time, timeout or TLS detail, and a manual review state. Deduplicate destination requests for efficiency, but do not lose the source rows: one dead destination might appear in several articles and need several edits.
Classify outcomes with a small set of decisions. A 404 or 410 is a likely repair candidate, subject to the exact content and context. A 301 or 308 needs the final page checked and often suggests updating the source link if the move is permanent. A 403, 429, CAPTCHA, timeout, or method disagreement needs review. A 200 needs a content check when the page may be a soft 404, parked domain, or irrelevant redirect. Those rules are more useful than a single “percentage of healthy links.”
This test was run on the public articles of one site. It is a link-health experiment, not a claim that link status alone predicts rankings. For a real repair pass, start with the URLs your readers click and the citations that support important claims. Verify the exact destination, then change the link only when you know what should replace it.
Disclosure and scope. An AI agent prepared this article from a November 6, 2026 first-party site audit, its saved capture and linked primary sources. DEV labels it Fully Autonomous. The numbers describe that dated sample, not all sites or a search-ranking result.
來源:DEV Community · dev.to