Overview
ProjectDiscovery’s httpx is an ultra-fast, multi-purpose HTTP probing toolkit engineered to query and analyze numerous web hosts and URLs simultaneously. Security researchers and system administrators rely on it to fingerprint technology stacks, inspect response headers, and evaluate status codes at scale. This walk-through details how to deploy httpx on Ubuntu Linux and harness its advanced switches to streamline your infrastructure reconnaissance.
Installing and Setting Up httpx on Ubuntu
Before retrieving the precompiled binary, ensure your system possesses the essential utilities for remote fetching and archive extraction by running sudo apt-get update -qq && sudo apt-get install -y curl tar.

Fetch the official release tarball directly from ProjectDiscovery’s GitHub repository using curl -sL https://github.com/projectdiscovery/httpx/releases/download/v1.6.9/httpx_1.6.9_linux_amd64.tar.gz -o httpx.tar.gz.

Extract the executable from the downloaded archive by running tar -xzf httpx.tar.gz.

Place the extracted binary into a system-wide execution path with sudo mv httpx /usr/local/bin/ so it can be called seamlessly from any shell session.

Clean up the remaining archive and accompanying documentation files using rm -f httpx.tar.gz README.md LICENSE.md.

Execute httpx -version to confirm that the installation was successful and to inspect the deployed release build.
⚙️ [Essential CLI Flags]
-title : Grabs and prints HTML <title> tags from targeted web applications.-status-code : Displays the exact numerical HTTP response code.-tech-detect : Identifies underlying software components, CMS engines, and JavaScript frameworks.-follow-redirects : Follows HTTP 3xx redirection chains through to the terminal destination.-mc : Filters output to match only explicitly specified HTTP status codes (e.g., 200, 302).-silent : Suppresses diagnostic logging and ASCII art to output pure data streams.-threads : Configures the concurrency limit to scale scan speeds up or down.

Basic HTTP Probing: Single and Bulk Targets
Passing a single domain directly into the tool via a standard Unix pipeline—such as echo 'example.com' | httpx—evaluates whether an active HTTP or HTTPS listener exists immediately.
Because standard input (stdin) is supported natively, you can easily integrate httpx into downstream command sequences to validate target reachability on the fly.

To explore batch-scanning capabilities, prepare a sample target manifest named targets.txt.

Running httpx -l targets.txt instructs the utility to iterate through every entry in the file and isolate responsive web endpoints across the entire domain collection.
This automated batch validation strips away non-responsive entries, isolating live web services within seconds.

Deep Fingerprinting: Status Codes, Page Titles, and Tech Stacks
Executing httpx -l targets.txt -status-code -title -tech-detect conducts an in-depth sweep across your inventory, concurrently printing response codes, page titles, and detected web architectures.
Gathering this intelligence en masse offers immediate visibility into sprawling attack surfaces and third-party software dependencies during technical reconnaissance.

Issuing httpx -u https://example.com -status-code -content-length -response-time targets a single URL to evaluate HTTP status codes alongside raw payload sizes and server latency.
This level of insight allows engineers to spot sluggish endpoints, anomalous payloads, or unexpected server behavior during routine diagnostic sweeps.

Port Scanning, Response Filtering, and JSON Output
The command httpx -u example.com -ports 80,443,8080,8443 -status-code scans both standard and alternate web communication ports (80, 443, 8080, and 8443) on the target host while logging corresponding response statuses.
This capability rapidly exposes internal dashboards, secondary staging portals, and administration consoles running on non-standard ports.

Using httpx -l targets.txt -match-code 200 -silent refines the target feed by filtering strictly for healthy HTTP 200 responses, discarding redirections, dead links, and server faults while suppressing extraneous log noise.
Focusing exclusively on confirmed operational endpoints keeps subsequent assessment steps noise-free and reliable.

To format probe results into structured machine-readable records, invoke httpx -l targets.txt -status-code -json -o results.json.
Writing directly to a JSON file enables frictionless ingestion into automated CI/CD security stages or downstream post-processing with utilities like jq.

Inspect the integrity and schema of your newly exported data by reviewing the first twenty records with head -n 20 results.json.

This guide covered foundational and advanced techniques for deploying and orchestrating httpx under Linux to accelerate web surface enumeration.
By tuning these flags and chaining them inside defensive or offensive workflows, you can conduct robust, scalable diagnostics across modern web environments.