Course Content
Ethical Hacking – Starts Here
0/70
FREE Ethical Hacking from Entry to Expertise

HTTrack is a free, open-source tool used for offline browsing and website mirroring. It allows users to download entire websites (or specific parts) to local storage for offline viewing, analysis, or archival purposes. HTTrack is available for Windows and Linux (including Kali Linux).


HTTrack in Windows

Installation

  1. Download the installer from the official website:
    🔗 https://www.httrack.com

  2. Run the installer and follow the setup wizard.

  3. Launch WinHTTrack (GUI version) or use the command line (httrack).

Usage (GUI – WinHTTrack)

  1. Open WinHTTrack.

  2. Set a project name and destination path.

  3. Enter the URL(s) of the website(s) to mirror.

  4. Configure options:

    • Mirroring depth (how many levels deep to download).

    • Filters (include/exclude specific files).

    • Robots.txt compliance (respect or ignore).

  5. Click “Next” and start the mirroring process.

Command-Line Usage (Windows CMD)

httrack https://example.com -O “C:mirror” -v
  • -O: Output directory

  • -v: Verbose mode


HTTrack in Kali Linux

Installation

HTTrack is pre-installed in Kali Linux. If missing, install via:

sudo apt update && sudo apt install httrack

Usage (CLI)

Basic command:

httrack https://example.com -O /path/to/mirror -v

Common Options

Option Description
-O <dir> Output directory
-%v Verbose mode
-rN Max recursion depth (e.g., -r5 for 5 levels)
-F <UA> Custom user-agent (e.g., -F "Mozilla/5.0")
--robots=0 Ignore robots.txt restrictions
-i Continue interrupted mirroring

Example (Advanced)

httrack https://example.com -O ~/mirror_example -r3 -%v –robots=0 -F “MyBot/1.0”

GUI Version in Kali (Optional)

Install the GUI version (webhttrack):

sudo apt install webhttrack

Then run:

webhttrack

Key Features of HTTrack

Mirror entire websites (HTML, images, CSS, JS).
Resume interrupted downloads.
Custom filters (include/exclude file types).
Proxy support (for anonymity).
Cross-platform (Windows, Linux, macOS).


Legal & Ethical Considerations

Use responsibly!

  • Mirroring publicly available websites for personal use is generally acceptable.

  • Avoid unauthorized scraping of private/copyrighted content.

  • Check the website’s robots.txt before mirroring.

0% Complete
Select your currency
USD United States (US) dollar