Glossary

Web archiving

Web archiving is the practice of capturing web pages and sites as they existed at a point in time and preserving those captures so they can be replayed, cited and studied later.

Web archiving is the practice of capturing web pages, and sometimes whole websites, as they existed at a particular moment, and preserving those captures so that people can view, cite and study them later. The web changes constantly: pages are edited, moved and deleted, and whole sites disappear. Archives keep a record that survives those changes. The best known is the Internet Archive’s Wayback Machine, but national libraries, universities, courts, newsrooms, companies and individual researchers all archive the web for their own reasons, from legal deposit to evidence, compliance and research.

Web archiving uses many of the same tools as web scraping, but the goal differs. A scraper extracts specific data and discards the page. An archive keeps the page itself, with its HTML, images, styles, scripts and the HTTP responses that delivered them, so that it can be replayed later as it looked and behaved at capture time.

Why the web needs archiving

Pages decay faster than most people expect. Link rot, where a link stops resolving, and content drift, where a URL still works but its content has changed, affect citations in academic papers, court judgments, news articles and documentation. Studies of link rot repeatedly find that a large share of links break within a few years; a 2024 Pew Research Center analysis reported that roughly a quarter of pages that existed at some point between 2013 and 2023 were no longer accessible. Without archives, much of what the web recorded in its first decades would already be gone.

There are also practical reasons for organisations. Regulated firms archive their own websites and social media to show what they told customers on a given date. Legal teams capture pages as evidence before they change. Brands track competitors’ claims and pricing over time. Researchers need fixed versions of sources to make findings reproducible. Each of these needs a capture that is complete, dated and trustworthy.

How web archiving works

Most archiving follows three steps: capture, storage and replay.

Capture

Capture starts from a list of seed URLs. A web crawler built for archiving, such as Heritrix, which the Internet Archive and many national libraries use, fetches each page, records the full HTTP request and response, and follows links within a defined scope, for example one domain to a set depth. Unlike most scrapers, an archival crawler saves every resource the page needs: images, stylesheets, fonts, scripts and media.

Traditional crawlers fetch raw HTML and miss content that JavaScript builds in the browser. Browser-based capture tools, such as Webrecorder’s ArchiveWeb.page and Browsertrix, load pages in a real or headless browser and record every network request the browser makes, which captures far more of a modern site. Some scroll, click or play media to trigger additional requests. Even so, interactive features that depend on a live server, such as search boxes and logged-in views, are hard to preserve.

Archival crawlers usually identify themselves, follow robots.txt in many configurations, and pace their requests, though policies vary: some national libraries operating under legal deposit law collect sites regardless of robots.txt, and some public archives take down captures on request.

Storage

Captures are stored in WARC files, the Web ARChive format standardised as ISO 28500. A WARC file is a container of records: each HTTP request and response, along with metadata such as the capture time, the target URL and checksums. Keeping the raw responses, rather than a cleaned or rendered version, is what lets an archive reproduce the page faithfully and prove what the server sent. Collections can grow to petabytes, so archives store WARC files in object storage with indexes, usually CDX files, that map each URL and timestamp to its record. Deduplication by content hash avoids storing an unchanged image or script again on every crawl.

Replay

Replay software, such as pywb or the Wayback Machine’s own system, serves archived pages back to a browser. It rewrites links so that they point into the archive at the nearest capture time, rather than to the live web, and injects a banner showing when the page was captured. The Memento protocol, published as RFC 7089, standardises how a client can ask for a URL as it existed at a given time, and lets tools search several archives at once.

Approach

What it keeps

Best for

Crawler capture to WARC

Full HTTP responses and all page resources

Faithful replay, evidence, legal deposit

Browser-based capture

Every request a real browser made, including scripted content

Modern JavaScript-heavy sites and social media

Screenshot or PDF capture

A fixed image or document of the rendered page

Quick visual records and attachments to case files

Text or reader-mode capture

Main content and metadata, without layout

Search, AI retrieval and research notes

The hard cases

Archiving the modern web is harder than archiving the web of 2005. Sites built on client-side frameworks need JavaScript rendering before there is anything to capture, and some load content through APIs that replay cannot reproduce. Infinite scroll, carousels and other dynamic content hide most of a page until someone interacts with it. Personalised and logged-in content differs for every visitor. Streaming video, embedded third-party widgets and social media posts are fragile. Paywalls and consent walls may be all a crawler sees.

There are policy questions too. Archiving can involve copyrighted material and personal data, and practice varies by country: legal deposit laws in the UK, France and elsewhere let national libraries collect their national web domains, while other archives rely on fair use or permission and offer takedown routes. Organisations archiving for compliance have to reconcile their data retention duties with data protection rights, such as requests to erase personal data.

Web archiving compared with related practices

Archiving overlaps with several nearby ideas, and the differences matter when choosing tools. Scraping extracts data and discards the page, as set out in web scraping vs web crawling. Reader mode and boilerplate removal keep the main content and discard the rest, which is ideal for search and AI retrieval but loses the page as it appeared. A snapshot of a storage system records state at a point in time for recovery rather than for citation, and backups protect your own data rather than third-party pages, a distinction covered in snapshot vs backup. Version history tracks edits to a document you control. Web archiving is the version of these ideas applied to pages you do not control.

A worked example

A compliance team at a financial services firm must be able to show what its public product pages said on any date in the past five years. It runs a browser-based capture of 400 pages every night and after each content release, storing WARC files with checksums in write-once storage and indexing them by URL and date. A separate job saves a screenshot and a text version of each page, which the team’s search tool indexes so that staff can find every page that mentioned a particular rate or promise.

When a customer complaint cites a claim the firm says it never made, the team searches the text index, finds the three dates when the wording appeared, and replays the full captures to confirm exactly how the page looked, including the small print. The WARC record shows the capture time and the server’s response, which gives the evidence weight. The same archive lets the marketing team see how pages changed over time, which supports a cleaner audit trail for regulators. The details in this example are illustrative.

Where Exabase fits

Exabase is not a web archive. It does not create WARC files, crawl sites on its own or replay pages, and archives that need evidential captures should use dedicated archiving tools. It can, however, hold the searchable layer that sits alongside an archive, and it gives agents a lightweight record of what they read.

When you save a URL as a bookmark through Resources with the bookmarks endpoint, Exabase fetches the page and stores a capture with its title, description, site name, favicon, a screenshot and a reader-mode version, then indexes the content so Deep Search can find passages by meaning. That gives a research agent a dated, searchable copy of a source it used, which helps with source attribution when the live page later changes. Each tenant’s material can sit in its own Base, and filesystem snapshotting records changes to resource metadata, such as names, folders and deletions, for up to seven days; it does not record file content, so it complements rather than replaces an archive.

Extract returns page content as text chunks or Markdown, but its stored files are retained for one day, so anything you want to keep should be saved as a resource. To revisit sources on a schedule, a Worker can save fresh bookmarks of an approved list of pages, a pattern that suits the compliance audit and research agents use cases. For tracking how quickly sources go stale, see how long do documents stay true. For screenshot-based capture, compare the screenshot API with services in the best screenshot APIs roundup.

Frequently asked questions

What is the Wayback Machine?

It is the Internet Archive’s public interface to its web archive, which has captured pages since 1996. You can look up a URL and replay captures from different dates.

What is a WARC file?

A WARC file is the standard web archive container, defined in ISO 28500. It stores the HTTP requests and responses of a capture with metadata such as the capture time and checksums.

How do I archive a web page?

For a single page, submit it to a public archive such as the Wayback Machine, or use a browser-based tool that saves a WARC file. For many pages or regular captures, use an archival crawler or a managed archiving service.

Is web archiving legal?

It depends on the country, the content and the purpose. Legal deposit laws let national libraries archive their national web, while other archives rely on fair use, permission or takedown policies. Take legal advice for your own case.

What is the difference between web archiving and web scraping?

Archiving keeps whole pages and their resources so they can be replayed later. Scraping extracts specific data and usually discards the page. See web scraping.

Why can’t archives capture some websites properly?

Pages that build content with JavaScript, load more on scroll, require a login or depend on live server APIs are hard to capture and replay faithfully.

Can Exabase archive web pages?

Exabase stores bookmarked pages with a screenshot and a reader-mode version and makes them searchable, which suits research and retrieval. It does not create WARC files or replay pages, so use dedicated tools for evidential archiving.

Related pages: Link rot, Web crawler, Reader mode extraction, Snapshot, Version history, robots.txt, Snapshot vs backup, Agent undo, Screenshot API, Sitemap.xml

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.