Lesson 6 of 13 · 12m
Wayback and Deleted History
The CDX API, robots.txt as a leads file, and why deletion is a UI operation, not an erasure.
Nothing public is ever really deleted. It is archived, mirrored, crawled, copied into a git history nobody pruned, or screenshot-and-reposted by someone you don't control. "We took the page down" is a statement about the live web; the archived web answers to different parties, and it keeps receipts.
The CDX API: enumerating what Wayback saw
The Wayback Machine's index is a queryable API, not just a search box:
https://web.archive.org/cdx/search/cdx?url=example.com/*&output=json&fl=timestamp,original,statuscode&collapse=digesturl=example.com/* returns every captured path under the domain — thousands of rows on an old property. fl= picks fields; collapse=digest dedupes captures whose response bodies were identical, so you see actual changes rather than cron-job re-crawls. Diff the returned URL set against the live site's sitemap and the deleted pages announce themselves: every captured path with no live counterpart is something the owner once published and later removed. Old admin/ panels, staging exports, sitemap_backup.xml, press releases walked back after a bad quarter.
Individual captures resolve as https://web.archive.org/web/<timestamp>/<url>. The timestamped snapshot URL is the one that goes in your ledger — it is stable, citable, and courts accept it routinely. Lawyers file Save Page Now captures of opposing parties' pages precisely because a snapshot with a third-party timestamp beats a screenshot you could have edited.
robots.txt is a leads file
Disallow: entries are a curated list of the places the owner did not want crawled — the first URLs worth checking against Wayback. The trap worth knowing: Wayback honors robots.txt for new crawls, but old captures from before the exclusion persist, and Save Page Now user saves go through regardless. A robots.txt that appeared in 2020 listing Disallow: /internal/ is both a confession that /internal/ exists and a promise that pre-2020 crawls may have archived it.
Beyond Wayback
Common Crawl (index.commoncrawl.org) publishes petabytes of crawl data on a monthly cadence, queryable by URL pattern against a per-crawl index — index.commoncrawl.org/CC-MAIN-2024-46-index?url=example.com/*&output=json lists every match in that crawl. Coverage is different from Wayback's — wider on the long tail, thinner on popular pages — and the payloads are bulk files you download rather than rendered pages. When Wayback coverage is thin, Common Crawl is the second opinion.
archive.today (archive.ph, archive.li — the mirrors rotate) saves JavaScript-heavy and login-adjacent pages that Wayback renders badly or misses, and it ignores robots.txt for user saves. Its legal posture and failure modes differ from Wayback's, which is exactly why the ledger rule is two independent archives: a target who gets one archive refreshed or excluded hasn't touched the other.
One workflow detail that pays off on live investigations: Save Page Now's "save outlinks" option crawls the page's outbound links in the same submission, which snapshots the source and its immediate neighborhood in one pass — the fast path for archiving a forum thread and every profile it links.
Deleted content lives in the deltas
The technique that catches quietly-edited pages: pull the full CDX timeline for a URL with collapse=digest, note where the digest changes, and diff those captures. Prices raised before a launch, a team page that quietly dropped a name, a terms-of-service clause that appeared after an incident — the deltas are the story, and digest collapses are how you find them without reading forty identical crawls.
Git history doesn't die either
The same principle applies to code: deleted files persist in git log --all, dangling commits, forks, and GitHub's public event archives. That surface gets its own lesson — source-code and secret leaks — because the tooling differs, but the mental model is identical. Publication is permanent; deletion is a UI operation.
The practice: for every source you cite, fresh-save it to Wayback and archive.today at capture time; for every claim about the past, check CDX and the live sitemap delta before calling something gone. Gone is a claim that requires evidence.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Healthcare Ransomware: Why Hospitals Can't Patch Fast Enough
The criminals behind the attack claim to have shared 400GB of patient data. The NHS stated it is working swiftly to confirm the validity of these files. The ransomware attack on the UK's National Health Service (NHS) continues to disrupt health services in London, with a significant amount of…
The 23andMe Breach Was Credential Stuffing
The joint investigation will thoroughly examine the extent of the data exposure in the massive breach and determine if 23andMe had sufficient safeguards in place to protect this sensitive information. UK and Canadian authorities have announced a collaborative investigation into the DNA testing…
How Fake Law-Enforcement Requests Steal Your Data
The hackers– who may have links to cybercrime group Lapsus$ – are said to have compromised accounts to make emergency data requests on people's accounts that are using Apple and Facebook services. Apple and Facebook parent company Meta provided user data to cybercriminals last year who…
LAPSUS$: How Teenagers Breached Microsoft and Okta
Claire Tills, senior research engineer at Tenable, describes the methods of the hacking group Lapsus$ as bold, illogical and poorly thought out. The criminals attacked renowned companies such as Microsoft, Samsung, Nvidia, Vodafone, Ubisoft and Okta. They stole data and sometimes used ransomware…