Guide · Open source
How to use httpx: probe lists of hosts for live web servers
Updated · written with AI from the project's own documentation and checked against our catalogue data
httpx is a command-line program that sends HTTP requests to a list of hosts, URLs or IP ranges and reports what each one returns, such as the status code, page title, server name and TLS certificate details. This guide is for people who need to survey many web servers at once, such as security testers working within their authorization or researchers gathering website metadata. By the end you will know how to install httpx, run it against a list, and use its probe, matcher and filter flags.
Quick start
- 1Check your Go version. Confirm Go 1.26.10 or newer is installed, as the README requires.
- 2Install httpx. Run the go install command from the README to put httpx on your system.
- 3Review the help. Run httpx -h to see the flags grouped by input, probes, matchers and filters.
- 4Create a target list. Save hosts, URLs or CIDR ranges to a text file, one per line.
- 5Probe the list. Run httpx with -l and the probe flags you need, such as -sc and -title.
- 6Filter the output. Add matchers like -mc or filters like -fc to keep only the responses you want.
Install httpx with Go
httpx requires Go 1.26.10 or newer to install successfully. If you have Go set up, the README gives a single install command that fetches the tool from its repository.
The project's install documentation, linked from the README, has more detail on installing httpx.
- Check that your Go version meets the minimum before installing.
- Run the install command from a terminal.
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latestCheck the help and available flags
Run httpx with the help flag to list every switch the tool supports. The flags are grouped into sections: INPUT, PROBES, HEADLESS, MATCHERS, EXTRACTOR and FILTERS.
Use the help output as your reference, since the flags are many and some are only needed for specific jobs.
httpx -hProbe a single target or a list of hosts
Use -u to probe one host or URL. To work through many targets, put one host per line in a file and pass it with -l. httpx accepts hosts, URLs and CIDR ranges as input.
Add probe flags such as -sc for status code, -title for page title, -server for the web server name, and -td for technology detection. Probes that are on by default include URL, title, status code and web server, so you only need flags for extra data.
- -u: probe a single target host or URL.
- -l: read targets from an input file, one per line.
- -sc: show the response status code.
- -title: show the page title.
- -server: show the server name.
- -td: detect technologies based on the Wappalyzer dataset.
httpx -l hosts.txt -sc -title -serverFilter results to the servers you care about
Matchers keep only responses that fit a rule, while filters remove responses that fit one. This is the main way to cut a long list of subdomains down to live web servers that match your criteria.
Matchers include -mc for status codes and -ms for a string in the response. Filters include -fc to drop status codes. The help output lists the full set, including regex matchers and filter options for duplicates.
- -mc 200,302: keep only responses with these status codes.
- -ms admin: keep responses containing the string admin.
- -fc 403,401: drop responses with these status codes.
- -fd: filter out near-duplicate responses, keeping only the first.
httpx -l subdomains.txt -mc 200,302 -title -scUse the output in other tools
httpx prints results you can read directly or pass on to other tools. The README notes that httpx supports JSON and CSV output, and it can be combined with pipes in a shell script. Keep your scripts simple and check results before acting on them.
Because httpx is a command-line tool, it fits into a script that runs on a schedule or chains with other commands. It has no graphical interface.
- Use the help output to find the exact output options your version supports.
- Pipe the list of results into another command for further processing.
Use httpx responsibly
Only probe systems you are authorized to test. httpx can generate heavy traffic when run against large lists, and the README notes it is widely used for pentesting, so unauthorized scanning can cause real harm.
The README also warns that running httpx as a service may pose security risks. The project was built mainly as a standalone CLI tool, so use it as one and add your own security measures if you do anything else.
What people use it for
- Filtering a long list of subdomains down to live web servers during bug bounty work.
- Checking which hosts return a specific status code or contain a given string.
- Collecting page titles, server names and TLS certificate details for many sites at once.
- Feeding a list of live URLs into another tool in a shell script.
Frequently asked questions
Is httpx free to use?
httpx is released under the MIT licence, which is an open-source licence. The source does not list any prices, so check the project's repository for the current terms of use.
What do I need to install httpx?
The README says httpx requires Go 1.26.10 or newer. Install it with the go install command shown in this guide.
Does httpx have a graphical interface?
No. httpx is a command-line tool, so it runs from a terminal and does not offer a visual browser or point-and-click interface.
What is the difference between httpx and httprobe?
Both check which hosts serve web content. This source describes httpx as a multi-purpose toolkit with many probes, matchers and filters, and it lists httprobe as a comparable project. The source does not give a direct benchmark comparison.
Can httpx run as a web service?
The README warns that running httpx as a service may pose security risks. It was built primarily as a standalone CLI tool and should be used with caution and additional security measures.
How do I filter out duplicate responses?
Use the -fd flag, described in the help as filtering out near-duplicate responses so that only the first response is kept.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
httpx suits security testers, bug bounty hunters, researchers and developers who are comfortable with the command line and need to survey many web servers quickly. If you want a visual browser, or need to scan systems you do not have permission to test, pick a different tool. Comparable projects named in this directory include Nmap, ffuf, httprobe and Aquatone.
Install options & downloads