Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

HTTrack

$ httrack Community Med Risk
Xavier Roche · Browser & Web · GPL-3.0-or-later · macos / linux / windows

HTTrack (httrack) is a classic C-based offline browser that recursively mirrors websites into navigable local HTML directories by rewriting links for offline browsing. While reliable for static archival mirrors, its CLI predates JSON stdout conventions and enters an interactive wizard if invoked without a URL.

FCRS-1.0 Score
64 /100
Usable w/ Caveats
High Confidence
Zero-Friction Install
brew install httrack
CLI vs MCP Decision CLI Only

Performs recursive local HTML mirror downloading and link rewriting; not an interactive browser automation tool.

Agent-Readiness Checklist

Local Probe Evidence
— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
HTTrack version 3.49-2
Startup
47 ms
Exit Codes (help / invalid)
0 / 255
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --help excerpt
HTTrack version 3.49-2
	usage: httrack <URLs> [-option] [+<URL_FILTER>] [-<URL_FILTER>] [+<mime:MIME_FILTER>] [-<mime:MIME_FILTER>]
	with options listed below: (* is the default value)

General options:
  O  path for mirror/logfiles+cache (-O path_mirror[,path_cache_and_logfiles]) (--path <param>)

Action options:
  w *mirror web sites (--mirror)
  W  mirror web sites, semi-automatic (asks questions) (--mirror-wizard)
  g  just get files (saved in the current directory) (--get-files)
  i  continue an interrupted mirror using the cache (--continue)
  Y   mirror ALL links located in the first level pages (mirror links) (--mirrorlinks)

Proxy options:
  P  proxy use (-P proxy:port or -P user:pass@proxy:port) (--proxy <param>)
 %f *use proxy for ftp (f0 don't use) (--httpproxy-ftp[=N])
 %b  use this local hostname to make/send requests (-%b hostname) (--bind <param>)

Limits options:
  rN set the mirror depth to N (* r9999) (--depth[=N])
 %eN set the external links depth to N (* %e0) (--ext-depth[=N])
  mN maximum file length for a non-html file (--max-files[=N])
  mN,N2 maximum file length for non html (N) and html (N2)
  MN maximum overall size that can be uploaded/scanned (--max-size[=N])
  EN maximum mirror time in seconds (60=1 minute, 3600=1 hour) (--max-time[=N])
  AN maximum transfer rate in bytes/seconds (1000=1KB/s max) (--max-rate[=N])
 %cN maximum number of connections/seconds (*%c10) (--connection-per-second[=N])
  GN pause transfer if N bytes reached, and wait until lock file is deleted (--max-pause[=N])

Flow control:
  cN number of multiple connections (*c8) (--sockets[=N])
  TN timeout, number of seconds after a non-responding link is shutdown (--timeout[=N])
  RN number of retries, in case of timeout or non-fatal errors (*R1) (--retries[=N])
  JN traffic jam control, minimum transfert rate (bytes/seconds) tolerated for a link (--min-rate[=N])
  HN host is abandonned if: 0=never, 1=timeout, 2=slow, 3=timeout or slow (--host-control[=N])

Links options:
 %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use) (--extended-parsing[=N])
  n  get non-html files 'near' an html file (ex: an image located outside) (--near)
  t  test all URLs (even forbidden ones) (--test)
 %L <file> add all URL located in this text file (one URL per line) (--list <param>)
 %S <file> add all scan rules located in this text file (one scan rule per line) (--urllist <param>)

Build options:
  NN structure type (0 *original stru

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 13 / 25

Invoking httrack without arguments enters an interactive prompt wizard, flags use terse legacy syntax (-%v0, -r2), and there is no JSON stdout output.

  • Interactive prompt wizard when run bare; no JSON stdout flag
  • Requires -q and explicit URL/flags to run non-interactively
Trust & Safety 17 / 25

Respects robots.txt by default and scopes writes to -O <dir>, though unbounded recursive mirroring can download gigabytes if -r depth is omitted.

  • Requires -r<N> depth cap to prevent full-site recursive downloads
Setup & Portability 11 / 15

Available via Homebrew, Linux packages, and Windows installers, though upstream binaries/builds are aging on modern platforms.

  • Installable via brew install httrack and apt
Utility & Efficiency 10 / 15

Effective link-rewriting engine for static HTML sites, but lacks modern JS/SPA rendering.

  • Static HTML parser; rewrites links for offline viewing
Maintenance & Lineage 6 / 10

Legacy community codebase (xroche/httrack) with minimal recent upstream activity.

  • Infrequent commits in xroche/httrack
Docs & Verifiability 7 / 10

Complete legacy HTML user guide (fcguide.html) and httrack --help.

  • Users guide hosted at httrack.com/html/fcguide.html

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Stores optional cookies in cookies.txt inside each mirror's hts-cache/ folder.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, GPL-3.0-or-later open-source C utility.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# HTTrack Agent Rules
- Never run bare `httrack` with no arguments (it launches an interactive text wizard that blocks stdin).
- Always pass an explicit URL, `-O <dir>`, depth cap (`-r2`), and `-q` (`--quiet`).

Agent-Ready Command Recipes

Safe Read-Only Queries

Display HTTrack CLI options without starting wizard
httrack --help

Prints the non-interactive flag reference without entering HTTrack's interactive prompt loop.

Controlled Writes & Previews

Mirror a site with depth limit and quiet mode
httrack https://example.com -O ./mirror -r2 -q -%v0

Recursively mirrors up to depth 2 (-r2) quietly (-q -%v0) into ./mirror without interactive prompts.

Strengths for Agents

  • + Battle-tested static HTML link rewriting and incremental mirror updates (--update).
  • + Respects robots.txt and rate controls out of the box.

Caveats & Pitfalls

  • ! Running httrack without arguments triggers an interactive stdin prompt that hangs agents.
  • ! No JSON stdout output and cryptic legacy single-letter/% flags; cannot render JS-heavy SPAs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI