Post

ArchiveBox: Keep a Usable Copy of the Web You Depend On

How ArchiveBox captures web pages in multiple formats, and what to consider before running a private collection.

ArchiveBox: Keep a Usable Copy of the Web You Depend On

A bookmark is a pointer to someone else’s server. When a page moves, changes, or disappears, the bookmark may be all you have left. ArchiveBox gives that link a second life by collecting local snapshots in several formats: a page’s HTML, a screenshot, a PDF, and other outputs where the relevant capture tools succeed.

ArchiveBox is an MIT-licensed, self-hosted web archiver with a web interface and command-line tools. It is an established project worth discovering for a homelab, research collection, or personal reference library. It is also more work than saving a bookmark: captures consume disk, pages can resist automation, and private material needs careful handling.

One URL, several possible copies

ArchiveBox takes individual URLs and imports from sources such as browser bookmarks and feeds. Its documented outputs include original HTML and assets, single-file HTML, screenshots, PDFs, text, and WARC files. Depending on the URL and enabled tools, it can also fetch media or clone a Git repository. It uses tools including a browser, wget, and yt-dlp; the resulting files live alongside its collection database. See the project README for the input and output formats.

The different captures answer different questions. A screenshot preserves what was visible, while text is easier to search and a WARC can retain web responses. A working copy of an interactive site is a harder problem: scripts, logins, blocked requests, and external services can leave gaps. Open the outputs that matter to you after a capture and check them, especially before relying on an archive as your only copy.

This is different from a bookmark manager that stores links and notes. ArchiveBox can preserve content behind the links, but it needs processing time and storage for each capture. It also differs from a public web archive: you operate this collection and control access to its files. That control carries responsibility for backups, updates, and access policy.

Start with a small collection

The Docker guide recommends Docker Compose and requires Compose v2. On a Linux host with Docker installed, create a dedicated directory and download the project’s Compose file:

1
2
3
mkdir -p ~/archivebox/data
cd ~/archivebox
curl -fsSL 'https://docker-compose.archivebox.io' -o docker-compose.yml

Read the file before starting it. In particular, review the image tag, port mappings, volumes, and optional services. The documentation identifies archivebox/archivebox:dev as an unstable development build; choose an appropriate supported version and update policy for your environment rather than assuming the moving tag is a stable release. For a local-only first evaluation, bind port 5797 to loopback (for example, 127.0.0.1:5797:5797) in the Compose file, then start the stack:

1
2
docker compose pull
docker compose up -d --wait

The documented setup opens http://admin.archivebox.localhost:5797 for its first-run wizard. Create an admin account and follow the web-access setup. If the hostname does not resolve in your browser, consult the project’s Docker guide before exposing the service on your LAN. The bind mount under data/ must be writable by the collection owner.

With the service running, add a public page and inspect the result in the interface:

1
docker compose exec archivebox archivebox add 'https://example.com'

For a list of URLs, the documented input path avoids allocating a terminal to the piped command:

1
docker compose exec -T archivebox archivebox add < ~/Downloads/example_urls.txt

The URL list is read from the host. Check the snapshot’s capture status and open several outputs; a job completing does not mean every format captured the page perfectly. Start with a few ordinary public pages and watch disk usage before importing a large history or media-heavy feed.

Treat the archive as sensitive data

Self-hosted does not automatically mean that every request stays on your machine. The security overview says the public-content defaults include submitting URLs to Archive.org and using a favicon provider that receives domains. Check the active configuration and disable or change those integrations before adding URLs you do not want sent out. A secret embedded in a URL can be sensitive even if the page itself looks harmless.

For private collections, the documentation provides settings to require login for the index and submission view and to make new snapshots private:

1
2
3
docker compose exec archivebox archivebox config --set PUBLIC_INDEX=False
docker compose exec archivebox archivebox config --set PUBLIC_ADD_VIEW=False
docker compose exec archivebox archivebox config --set PERMISSIONS=private

Confirm the resulting access behavior with a separate unauthenticated browser session. Protect the host directory too: the SQLite database and saved files are readable by anyone with sufficient filesystem access. Back up the collection and test a restore; a single disk full of archived pages is still a single disk.

Authenticated captures need extra care. The maintainers recommend a dedicated browser profile and warn that cookies or tokens can end up in captured responses. Do not import your everyday browser profile into a collection you intend to share. Archived pages are untrusted content as well: the project’s default replay security mode isolates replay on localhost subdomains or uses a no-JavaScript policy on ordinary hosts. Follow its guidance for DNS, TLS, and origin isolation before publishing an archive; do not mount it under a shared application subdirectory.

A useful archive is a maintained one

The project’s v0.9.77 release notes describe fixes for fresh installs, browser extension updates, and browsing large collections. That release is from October 27, 2026; this is a project discovery, not a claim of a new launch. Review the release notes and upgrade instructions before changing an existing installation.

For a first collection, pick a handful of references you would actually miss: a technical article, a project guide, and a page with images. Compare the captured versions to the originals, decide which output formats you need, and set a backup schedule for the collection. That exercise reveals both the value of a local archive and the sites that need a different preservation strategy.

This post is licensed under CC BY 4.0 by the author.