# We Checked 3,454 Government Links on This Blog. A Naive Checker Said 1,124 Were Broken. 75 Were

A simple link checker flagged 32% of our government links as broken. The real figure was 2.2%. The traps that inflate the count, and how federal sites actually break links.

Author: J.A. Watte
Published: December 4, 2026
Source: https://jwatte.com/blog/government-link-rot-check-blog/

---

This blog cites government sources constantly: statutes, regulations, agency guidance, court opinions, inspector general reports. Yesterday's post on [free government software](/blog/free-government-software-beyond-nasa/) found that several federal tools had moved or disappeared in the past year, including code.gov and the old nrel.gov addresses. That raised the obvious question about our own archive. So we checked every government link in every post: 1,407 posts and 3,454 unique government URLs.

A plain HTTP checker reported 1,124 of them as broken, 32%. After checking each failure the way a reader would, in a real browser, the true count was 75, or 2.2%. We fixed 40 by finding the same resource at its new address, replaced 16 with archived copies where the page is gone for good, and kept a list of the 19 that remain. This post covers what made the naive count wrong, how government links actually break, and the checks we now run before every publish.

## Key takeaways

*   **Most "broken" government links are not broken.** Agencies block scripts and rate-limit them. 853 pages that refused our checker loaded normally in a real browser.
*   **Some sites answer scripts with a 404 for pages that exist.** On one agency site, 39 of 43 reported 404s were live in a browser.
*   **Real rot comes in batches.** One site changed its URL scheme and broke 16 of our links at once with no redirects. Another dropped its short document links. One agency closed and its domain disappeared.
*   **Check a link when you publish it, not only years later.** Seven of the dead links had never been captured by the Internet Archive at all, which suggests they were wrong on the day they were published.
*   **Only call a link dead after a browser confirms it.** Our gate blocks a deploy only for a link the change adds that has no DNS or that a real browser confirms is gone.

## What we checked

Every outbound link in the Markdown source of every post whose host is a government domain: `.gov`, `.mil`, `.fed.us`, state `.us` hosts, foreign government hosts, plus a few government-run sites on other domains (OpenEI, agency GitHub organizations). Links were deduplicated, so a link used in ten posts was checked once, with the list of posts kept for reporting.

The first pass was the obvious one: request each URL with a normal User-Agent, at most about one request per second per host, follow redirects, and record the status. A cold run of all 3,454 took about 24 minutes. A rerun with a 7-day cache takes seconds.

## Why the naive count was 15 times too high

### 1. Agencies refuse scripts but serve browsers

The plain pass recorded 956 blocked responses: 902 with status 403 and 54 with 429 (too many requests). None of those mean the page is gone. When we loaded the same URLs in a real Chrome browser, 853 of them opened normally. The biggest sources were sec.gov (287), gao.gov (178), bls.gov (81), congress.gov (56), ecfr.gov (49, which returned 429 even at one request per second), ssa.gov (28), army.mil (22) and fema.gov (15).

A further 105 pages still refused the browser, from hosts such as cbo.gov, cftc.gov and the California legislature's site. Those stay "blocked, unknown," never "dead."

### 2. A 404 that is not a 404

ftc.gov returned 404 to the script for 43 pages. In a browser, 39 of them were fine. Two more on consumer.ftc.gov behaved the same way. If your checker trusts a 404 from a site that is also blocking you, it will tell you to delete good citations.

### 3. HEAD requests lie

Checking with a HEAD request saves bandwidth, and many checkers use it. 85 URLs failed on HEAD but worked on GET; 26 of those returned 405 (method not allowed). Ten returned 404 to HEAD and 200 to GET, including four PDF reports on a federal standards site. Always retry with GET before believing a HEAD failure.

### 4. Certificate errors are usually the checker's problem

21 URLs failed TLS in Node.js, mostly military sites using Department of Defense certificate authorities that a default trust store does not include, and a few servers with incomplete certificate chains. 17 of the 21 loaded in a browser. A TLS error is a reason to look, not a verdict.

### 5. A DNS failure from one resolver proves little

One inspector general's domain failed to resolve through Google's public DNS and through the local resolver, but resolved through Cloudflare's. Google's resolver also failed intermittently on `.mil` names, which at one point made a genuinely dead military domain look merely flaky. Our rule now: a host is dead only when no resolver can find it and at least two of three report that the name does not exist.

### 6. Your link extractor can break the link

Two parsing shortcuts produced false 404s. Stripping trailing punctuation from URLs broke links that legitimately end in a period, such as defense acquisition regulation sections, a Medicare page ending in `travel-outside-the-u.s.` and California code sections like `1798.135.`. Cutting URLs at an apostrophe truncated three real PDFs whose file names contain one. Check the exact Markdown link target as written.

### 7. The checker can get itself blocked

One agency's content network started returning 403 to our browser after a few repeat visits during testing, and the browser on our server occasionally failed with `net::ERR_NETWORK_CHANGED`. Cache results, keep the rate low, and treat a failure during a retry burst as unknown.

### 8. The report itself can leak credentials

Some redirects end on pre-signed cloud storage URLs, which carry an access key ID and a signature in the query string. NASA's technical reports server sends PDF requests through such links. Our first report file tripped the secret scanner with 30 hits. The checker now strips signed query strings from every URL it writes to a report. If you commit link reports to a repository, scan them like code.

## How government links actually rot

The 75 real failures were not random. Most came from a handful of events:

*   **A whole site changed its URL scheme.** The U.S. Code site, uscode.house.gov, stopped serving its `view.xhtml` section links. Sixteen of our links broke at once, with no redirects. Each section now lives at a path like `/us/usc/t26/s501/`, and we confirmed every page title matched before editing. The site's banner says it is in a "temporary format," so these may move again.
*   **Short links were dropped.** The Federal Register's short document URLs now return 404. The full URL, which the Federal Register's own API returns, still works. Seven links fixed.
*   **Pages were renamed or reorganized.** The FTC moved case pages, guidance and rulemaking pages to new slugs (seven fixes). The Senate Ethics Committee rebuilt its site. The Thrift Savings Plan moved its fund pages. An IRS publication moved from one file folder to another.
*   **Whole agencies or offices disappeared.** The Special Inspector General for Afghanistan Reconstruction has closed, and sigar.mil no longer resolves. Eight of our links pointed there. A former senator's site is gone. A Small Business Administration certification subdomain was folded into a new portal.
*   **A host vanished very recently.** One flood insurance subdomain stopped resolving within the two days before our run, though the Internet Archive captured it on December 1. That may be an outage, so we left those links alone and will recheck.
*   **Some were never right.** Seven dead URLs had no Internet Archive capture at any date. A government page that was cited publicly is very likely to have been captured at least once, so the most plausible explanation is that these URLs were wrong when they were written. That is the strongest argument for checking at publish time.

## What we did with the 75

*   **40 fixed with verified moves.** For each, we opened the new address and confirmed it was the same document: same title, same section, and where the post quoted a figure, the same figure. One moved page no longer carries a figure a post had cited, and no archived copy of the old page exists, so that claim now needs a new source.
*   **16 replaced with archived copies.** Where the resource itself is gone (the closed inspector general, a removed news release, a retired guide), the link now points to a dated Internet Archive capture of the exact original URL, chosen as the newest capture that still contained the figure or wording the post cites. A dated capture URL looks like `web.archive.org/web/20250115000000/https://...` and does not change.
*   **The rest are listed, not deleted.** Nine have a similar but not identical page (a newer edition of a handbook, a bound court volume instead of the slip opinion). Replacing a citation with a different document changes what the post claims, so those are an editor's decision, not a script's. The seven never-captured links need a fresh source or a rewrite.

No prose was changed by the automated pass. Only URLs, and only after a person-style check of the target.

That check paid off twice in a way we did not expect. Every archived copy of one dead inspector general PDF turned out to be a different report from the one the post described, so the citation had been wrong from the start, not just broken. And an archived press release confirmed the bill a post described but not a quote the post attributed to its sponsor. Both are now on an editor's list. A link checker that only asks "does it load?" would have missed both.

## The checks we run now

**Before every deploy.** The checker looks at posts changed in the release. It fails the deploy only when the change adds a government link that has no DNS or that a real browser confirms is a 404. A link that was already broken in an edited post prints a warning instead of blocking, so fixing one typo in an old post does not hold the whole release hostage. Blocked, rate-limited and timed-out links never fail the gate, and the gate stops itself after four minutes so it cannot hang a deploy.

**Every week.** A scheduled job runs the full check across all posts with a real browser, publishes the report as an artifact, and changes nothing. That catches the batch events above, like a site changing its URL scheme, within a week instead of whenever a reader complains.

**A moves file.** Verified replacements are recorded in a file with the date and the reason, separate from candidates and archived copies. The checker suggests from it but never rewrites a post on its own.

## Run your own

The [government link check rules](/downloads/government-link-check-rules.md) download is a one-page checklist of the rules above: what to treat as broken, what to retry and how, how to verify a replacement, how to form a stable archive link, and a sample weekly job. It works for any site that cites official sources, not only blogs.

If you publish cited content for a business, the related book is [The $97 Launch](/books/), which makes the case for checking your own work with free tools before paying someone else to.

## Related reading

*   [NASA Isn't the Only Agency Giving Software Away](/blog/free-government-software-beyond-nasa/): the post whose "what moved" table started this check.
*   [The Check Was Green Because It Measured a State No Visitor Is Ever In](/blog/blog-green-checks-that-cannot-fail/): why a checker has to see what a reader sees.
*   [A 200 With an Empty Body Is the Most Expensive Response You Can Get](/blog/blog-feed-ingestion-accounting/): the same "status code is not the answer" lesson for data feeds.
*   [CISA's Free 34-Goal Security Checklist, Run on a One-Admin Business in an Afternoon](/blog/cisa-cpg-2-security-self-assessment-small-business/): another check of our own systems this week.

## Fact-check notes and sources

*   **Our run:** December 3 and 4, 2026, over the Markdown source of 1,407 posts: 3,454 unique government URLs; plain pass flagged about 1,124 (956 blocked: 902 × 403, 54 × 429; about 100 × 404; about 50 errors; 16 DNS failures); 853 blocked URLs loaded in a real Chrome browser (sec.gov 287, gao.gov 178, bls.gov 81, congress.gov 56, ecfr.gov 49, ssa.gov 28, army.mil 22, fema.gov 15); 105 still blocked in a browser; ftc.gov 39 of 43 reported 404s live in a browser; 85 HEAD-only failures (26 × 405, 10 × 404 on HEAD and 200 on GET); 21 TLS failures in Node.js, 17 fine in a browser; 75 real failures before fixes; 40 verified moves applied; cold run about 24 minutes.
*   **U.S. Code paths:** [uscode.house.gov](https://uscode.house.gov/), section pages at `/us/usc/tN/sM/` and the site's "temporary format" banner, checked December 3, 2026.
*   **Federal Register full document URLs:** from the [Federal Register API](https://www.federalregister.gov/developers/documentation/api/v1).
*   **SIGAR:** sigar.mil did not resolve on December 3, 2026 on any of three resolvers; archived captures at the [Internet Archive](https://web.archive.org/web/2025/https://www.sigar.mil/).
*   **Archive link format:** [Internet Archive Wayback Machine](https://web.archive.org/), timestamped capture URLs.
*   **Pre-signed URLs:** AWS documents query-string authentication with `AWSAccessKeyId` and `Signature` parameters in [Amazon S3 presigned URLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html).

_This post is informational. Agencies and sites are named for identification only; no affiliation with or endorsement by any of them is implied._


---

Canonical HTML: https://jwatte.com/blog/government-link-rot-check-blog/
RSS: https://jwatte.com/feed.xml
JSON Feed: https://jwatte.com/feed.json
Hero image: https://jwatte.com/images/government-link-rot-check-blog.webp
