Skip to content

httpx

110 commands

ProjectDiscovery’s HTTP toolkit: probes lists of hosts for live web servers and reports status, title, technologies, TLS details and more.

  • probing
  • web recon
  • ProjectDiscovery

Install httpx

sudo apt install httpx-toolkit

Basic HTTP Probing3

httpx -u https://example.com

Probes a single target URL to check for service availability.

httpx -list targets.txt

Runs httpx against a list of targets provided in a file.

cat targets.txt | httpx

Accepts targets from standard input (STDIN) via a pipe.

Status Code Detection1

httpx -u https://example.com -sc

Displays the HTTP status code returned by the target.

Title and Technology Fingerprinting3

httpx -u https://example.com -title

Extracts and displays the page title from the HTTP response.

httpx -u https://example.com -server

Displays the 'Server' header value to identify the web server software.

httpx -u https://example.com -td

Enables technology detection to identify frameworks and CMS used by the target.

Content Analysis4

httpx -u https://example.com -cl

Displays the Content-Length of the HTTP response body.

httpx -u https://example.com -ct

Displays the Content-Type header (e.g., text/html, application/json).

httpx -u https://example.com -wc

Counts and displays the number of words in the response body.

Link
httpx -u https://example.com -lc

Counts and displays the number of lines in the response body.

Link

Network Metadata5

httpx -u https://example.com -ip

Resolves and displays the IP address of the target web server.

Link
httpx -u https://example.com -cname

Displays the CNAME DNS record if one exists for the target.

Link
httpx -u https://example.com -asn

Displays the Autonomous System Number (ASN) organization details.

Link
httpx -u https://example.com -cdn

Checks if the target is served via a Content Delivery Network (CDN).

Link
httpx -u https://example.com -rt

Displays the response time (latency) taken to receive the response.

Link

Method Handling3

httpx -u https://example.com -method

Displays the allowed HTTP method used for the probe.

Link
httpx -u https://example.com -x POST

Changes the HTTP request method to POST instead of the default GET.

Link
httpx -u https://example.com -x PUT

Sends a PUT request to the target URL.

Link

Redirect Handling4

httpx -u https://example.com -location

Displays the 'Location' header value for 3xx redirect responses.

Link
httpx -u https://example.com -follow-redirects

Automatically follows HTTP redirects to reach the final destination.

Link
httpx -u https://example.com -follow-host-redirects

Follows redirects only if they stay on the same host.

Link
httpx -u https://example.com -max-redirects 5

Sets a limit on the number of redirects to follow (default is 10).

Link

Port Scanning4

httpx -u https://example.com -p 80,443,8080

Probes specific ports on the target URL.

Link
httpx -u https://example.com -p 80-90

Probes a range of ports on the target URL.

Link
httpx -u https://example.com -ports http

Probes standard HTTP ports defined in the tool's predefined list.

Link
httpx -u https://example.com -ports https

Probes standard HTTPS ports defined in the tool's predefined list.

Link

Path Probing2

httpx -u https://example.com -path /admin

Appends a specific path to the target URL before probing.

Link
httpx -u https://example.com -path /login,/dashboard

Probes multiple paths for the target URL.

Link

Header Customization2

httpx -u https://example.com -H "User-Agent: CustomBot"

Sends a custom header with the request.

Link
httpx -u https://example.com -H "Cookie: session=123"

Includes a Cookie header in the request for authenticated probing.

Link

TLS and Certificate Analysis3

httpx -u https://example.com -tls-grab

Extracts and displays TLS certificate data.

Link
httpx -u https://example.com -tls-probe

Performs a TLS probe to gather detailed SSL/TLS configuration.

Link
httpx -u https://example.com -csp-probe

Probes and displays the Content Security Policy (CSP) of the target.

Link

Pipeline & Automation3

httpx -u https://example.com -pipeline

Enables HTTP pipelining to send multiple requests in a single connection.

Link
httpx -u https://example.com -http2

Forces the probe to use the HTTP/2 protocol.

Link
httpx -u https://example.com -vhost

Probes for VHOSTs by checking for differences in response when modifying the Host header.

Link

Matchers (Inclusion)8

httpx -l targets.txt -mc 200

Matches and displays only targets returning a 200 OK status code.

Link
httpx -l targets.txt -mc 200,302,403

Matches targets returning status codes 200, 302, or 403.

Link
httpx -l targets.txt -ms "admin"

Matches targets containing the specific string 'admin' in the response body.

Link
httpx -l targets.txt -mr "root:.*:0:0"

Matches targets where the response body matches the provided regex.

Link
httpx -l targets.txt -ml 100

Matches targets with a Content-Length exactly equal to 100.

Link
httpx -l targets.txt -mwc 50

Matches targets with exactly 50 words in the response body.

Link
httpx -l targets.txt -mlc 10

Matches targets with exactly 10 lines in the response body.

Link
httpx -l targets.txt -mrt <1s

Matches targets where the response time is less than 1 second.

Link

Filters (Exclusion)7

httpx -l targets.txt -fc 404

Filters out (hides) targets returning a 404 status code.

Link
httpx -l targets.txt -fc 500,502

Filters out targets returning 500 or 502 status codes.

Link
httpx -l targets.txt -fs "Forbidden"

Filters out targets containing the string 'Forbidden' in the response.

Link
httpx -l targets.txt -fr "error"

Filters out targets matching the regex 'error' in the response.

Link
httpx -l targets.txt -fl 0

Filters out targets with a Content-Length of 0.

Link
httpx -l targets.txt -fwc 0

Filters out targets with 0 words in the response.

Link
httpx -l targets.txt -flc 0

Filters out targets with 0 lines in the response.

Link

Data Extraction1

httpx -l targets.txt -er "title"

Extracts the response content matching the regex for 'title'.

Link

Rate Limiting and Performance3

httpx -l targets.txt -t 50

Sets the number of concurrent threads to 50 (default is usually 50).

Link
httpx -l targets.txt -rl 150

Limits the rate of requests to 150 requests per second.

Link
httpx -l targets.txt -rlm 300

Limits the rate of requests to 300 requests per minute.

Link

Timeout and Retries2

httpx -l targets.txt -timeout 10

Sets the connection timeout to 10 seconds.

Link
httpx -l targets.txt -retries 3

Retries failed requests up to 3 times.

Link

Output Formatting5

httpx -l targets.txt -o output.txt

Saves the results to a text file.

Link
httpx -l targets.txt -json

Outputs the results in JSON format to stdout.

Link
httpx -l targets.txt -json -o output.json

Saves the results in JSON format to a file.

Link
httpx -l targets.txt -csv

Outputs the results in CSV format to stdout.

Link
httpx -l targets.txt -csv -o output.csv

Saves the results in CSV format to a file.

Link

Response Storage3

httpx -l targets.txt -sr

Stores the full HTTP response.

Link
httpx -l targets.txt -srd responses/

Specifies a directory to store the saved HTTP responses.

Link
httpx -l targets.txt -store-chain

Stores the entire chain of requests and responses (useful for redirects).

Link

Visualization2

httpx -l targets.txt -ss

Takes a screenshot of the target page (requires headless browser setup).

Link
httpx -l targets.txt -screenshot-timeout 10

Sets the timeout for taking a screenshot to 10 seconds.

Link

Proxy and Network4

httpx -l targets.txt -proxy http://127.0.0.1:8080

Routes all traffic through an HTTP proxy (e.g., Burp Suite).

Link
httpx -l targets.txt -proxy socks5://127.0.0.1:9050

Routes all traffic through a SOCKS5 proxy.

Link
httpx -l targets.txt -r 8.8.8.8

Uses a custom DNS resolver (Google DNS) for resolution.

Link
httpx -l targets.txt -r resolvers.txt

Uses a list of custom DNS resolvers from a file.

Link

Display and Debug7

httpx -l targets.txt -silent

Suppresses output and shows only the valid results (ideal for piping).

Link
httpx -l targets.txt -verbose

Displays verbose output including request and response details.

Link
httpx -l targets.txt -debug

Enables debug mode to show detailed internal request processing.

Link
httpx -l targets.txt -debug-req

Displays only the raw HTTP requests sent in debug mode.

Link
httpx -l targets.txt -debug-resp

Displays only the raw HTTP responses received in debug mode.

Link
httpx -l targets.txt -no-color

Disables colored output in the terminal.

Link
httpx -version

Displays the installed version of httpx.

Link

Input Handling1

httpx -request raw_request.txt

Loads a raw HTTP request from a file and sends it to the target.

Link

Advanced Probing6

httpx -l targets.txt -favicon

Calculates and displays the mmh3 hash of the /favicon.ico file.

Link
httpx -l targets.txt -jarm

Calculates and displays the JARM fingerprint hash of the SSL server.

Link
httpx -l targets.txt -hash sha256

Calculates and displays the SHA256 hash of the response body.

Link
httpx -l targets.txt -hash md5

Calculates and displays the MD5 hash of the response body.

Link
httpx -l targets.txt -websocket

Probes for WebSocket connections on the target.

Link
httpx -l targets.txt -probe

Displays the probe status (SUCCESS/FAILED) for the target.

Link

Combined Probing3

httpx -l targets.txt -sc -title -tech-detect

Combines status code, title, and technology detection in a single run.

Link
httpx -l targets.txt -sc -cl -wc -lc

Combines status code, content length, word count, and line count stats.

Link
httpx -l targets.txt -status-code -title -server -ip -cname -asn

Runs a full reconnaissance probe covering status, server info, and network data.

Link

Match and Extract1

httpx -l targets.txt -mc 200 -er "token:[a-zA-Z0-9]+"

Matches 200 OK responses and extracts patterns looking like tokens.

Link

Filter and Save1

httpx -l targets.txt -fc 404,403 -o live_hosts.txt

Filters out 404/403 errors and saves accessible hosts to a file.

Link

Automation Integration2

subfinder -d example.com | httpx -sc -title

Chains subfinder results into httpx to probe discovered subdomains.

Link
cat urls.txt | httpx -silent -json > results.json

Quietly processes URLs and outputs pure JSON to a file for automation.

Link

Advanced Network2

httpx -l targets.txt -interface eth0

Specifies the network interface to use for sending traffic.

Link
httpx -l targets.txt -source-ip 192.168.1.50

Spoofs or sets the source IP address for the requests.

Link

Probe Tuning4

httpx -l targets.txt -delay 100ms

Adds a 100ms delay between each request to avoid rate limiting.

Link
httpx -l targets.txt -random-agent

Uses a random User-Agent header for each request.

Link
httpx -l targets.txt -unsafe

Enables unsafe mode to handle invalid HTTP implementations or raw packets.

Link
httpx -l targets.txt -resume resume_file.cfg

Resumes a scan using a previously generated resume configuration file.

Link

Filtering1

httpx -l targets.txt -filter-regex "default page"

Filters out targets whose response body matches the regex 'default page'.

Link

Red Team Operations1

httpx -l targets.txt -path /admin -mc 200 -ss

Probes for admin panels, matches 200 OK, and takes screenshots of hits.

Link

Blue Team Validation1

httpx -l internal_hosts.txt -status-code -title -tech-detect -json -o inventory.json

Generates a detailed JSON inventory of internal services for auditing.

Link

Advanced4

httpx -l targets.txt -bp

Enables the Burp Suite proxy integration mode.

Link
httpx -l targets.txt -tlsi

Displays the TLS handshake client hello info (TLS Imprint).

Link
httpx -l targets.txt -cdn-check

Checks if the target is behind a CDN and displays the provider name.

Link
httpx -l targets.txt -exclude-cdn

Skips probing targets that are identified as being behind a CDN.

Link

Output1

httpx -l targets.txt -no-fallback

Prevents httpx from probing HTTP if HTTPS fails (or vice versa).

Link

Filter1

httpx -l targets.txt -fhr

Filters out responses that are host redirects.

Link

Rate Limiting1

httpx -l targets.txt -rate-limit-minute 60

Strictly limits the scan to 60 requests per minute.

Link

Tagging1

httpx -l targets.txt -tags customized_scan

Adds a custom tag field to the JSON output for identification.

Link