Go-http-client/1.1 in Your Access Log: Go's Default HTTP User Agent
Published
The header a program written in Go sends when it uses the standard library's HTTP client and never sets a User-Agent of its own, so it names a library rather than an operator — on our server it arrived with both ordinary requests and probes for secrets, DNS-over-HTTPS endpoints and admin APIs.
What it looks like
Go-http-client/1.1 Go-http-client/2.0
The User-Agent header as an access log records it — in nginx's and Apache's combined format, the last quoted field.
On our own server, the 30 days to 23 November 2026
809
requests · about 27 a day
89
source addresses
| Most requested paths | Requests |
|---|---|
| /mcp | 119 |
| / | 103 |
| /.env | 72 |
| /.git/config | 22 |
| /cgi-bin/authLogin.cgi | 19 |
| /solr/admin/info/system | 19 |
| /solr/admin/cores | 19 |
| /v2/_catalog | 19 |
LogTriage's production API server (Hetzner, Germany): port 22 open to the internet, key-only since 6 October 2026 (password and keyboard-interactive authentication off); nginx in front of the API on ports 80 and 443. Requests nobody asked for (API traffic and our own monitoring left out); paths as requested, query strings dropped and identifiers redacted; counted weekly from the nginx access log. Linked paths are scanner probes explained on their own pages. More in the monthly attack report, and you can check the addresses in your own log against free blocklists.
Sources on who sends it
The operator's or the researchers' own pages; what this page says about the sender comes from them.
What it is
Go-http-client/1.1 is the User-Agent that Go’s standard-library HTTP client sends when the program using it sets no header of its own. The name points at net/http, the package whose documentation begins “Package http provides HTTP client and server implementations” — pkg.go.dev records it as imported by more than 1.7 million packages. Requests over HTTP/2 carry Go-http-client/2.0; the package has “transparent support for the HTTP/2 protocol”.
So the header identifies a library, not a product and not an operator. Any Go program that calls http.Get or builds a Client and never touches the User-Agent header looks exactly like any other. The same documentation shows how easily it is changed — req.Header.Add, Header.Set — which is why tools whose authors want to be recognised send their own name instead.
On our server this was one of the busier headers of the last 30 days: roughly a thousand requests from about a hundred addresses (counts above). The most frequent eight paths are only part of what it asked for, but they show the spread: the home page; /query, /dns-query and /resolve, the paths public DNS-over-HTTPS resolvers answer on; /.env, the file that holds an application’s database passwords and API keys; /solr/admin/info/system and /solr/admin/cores, Apache Solr’s administrative API paths that report a server’s version and list its cores; and /cgi-bin/authLogin.cgi, an endpoint from QNAP NAS web interfaces.
Who sends it
Unknown, and the header cannot tell you. net/http is maintained by the Go project as part of the standard library; it is not a scanner and publishes no address ranges, no contact URL and no opt-out, because there is no single sender to opt out from. Everything that reaches you with this header — uptime checkers, cloud SDKs, webhook deliveries, CI jobs, link previewers, your own microservices — shares it with every scanner written in Go. Anyone can also set the string by hand to blend into that crowd.
That means there is no published range to confirm a request against, as there is for a named research scanner. Attribution has to come from the source address and from what the request asked for.
Is it a threat?
The header is not; some of the traffic wearing it is. Requests for /.env, Solr admin APIs and NAS CGI endpoints are reconnaissance (MITRE ATT&CK T1595, with wordlist scanning T1595.003) regardless of which library sent them. Requests for your API routes from addresses you recognise are your own plumbing.
Split the log by path and status code before deciding anything. A 404 for /solr/admin/cores means you do not run Solr there. A 200 for /.env means the file was served to a stranger and every credential in it should be treated as stolen.
How to handle it
- Check status codes first. Any 200 or 301-to-a-file on a secret or admin path is an incident; rotate the keys in that file and move it out of the web root.
- Do not blanket-block the user agent. Legitimate integrations use the same default header, and blocking it tends to break webhooks and monitoring before it stops a scanner.
- Deny dot-files for every client, and rate-limit this header’s addresses if the volume costs you anything.
- Set an explicit
User-Agentin your own Go services, so your traffic stops hiding in this bucket.
Count its requests, paths and answers:
grep -i 'go-http-client' /var/log/nginx/access.log \
| awk '{print $9, $7}' | sort | uniq -c | sort -rn | head -20
Deny dot-files, and rate-limit only this user agent (the map and limit_req_zone go in the http block, the rest in the server block):
map $http_user_agent $go_client {
default "";
"~*^go-http-client/" $binary_remote_addr;
}
limit_req_zone $go_client zone=goclients:10m rate=10r/m;
location ~ /\.(?!well-known/) {
deny all;
}
location / {
limit_req zone=goclients burst=5 nodelay;
try_files $uri $uri/ =404;
}
The free log analyzer separates the secret-file and admin-API probes in an access log from ordinary traffic and flags any that were answered with a 200.
Probes it sends
- GET /.env Requests in Your Logs: Scanners Hunting for App Secrets An automated scan for application .env files, which hold database passwords, API keys and other secrets in plain text whenever the web server hands one back.
Other user agents in the same logs
- curl/8.x in Your Access Log: Script, Health Check or Scanner? The default header of curl, the command line tool and transfer library, sent in equal measure by monitoring scripts and API callers and by people working a long list of paths against a server they do not own.
- "Go web pentest tool" in Your Access Log: Database Panel Hunting An undocumented scanner, sender unknown, that works through a long list of directory names where web database administration panels such as phpMyAdmin are usually installed, asking each one for its index.php.
- "Mozilla/5.0 zgrab/0.x" in Your Access Log: The ZGrab Scanner The default user agent of ZGrab 2.0, the open-source application-layer scanner from the ZMap project, which anyone can run — research teams mapping the internet and attackers hunting for vulnerable apps alike.
Detect it
Frequently Asked Questions
- What is Go-http-client/1.1?
- It is the User-Agent that Go's standard-library HTTP client sends when the program using it does not set one. The Go package it names, net/http, "provides HTTP client and server implementations" and is imported by well over a million packages, so the header tells you the request was written in Go and nothing about who wrote it.
- Should I block Go-http-client?
- Not by default. Monitoring agents, webhook senders, cloud SDKs and partner integrations all use the same library, so a blanket block can break traffic you depend on. Judge the requests by path and status code instead, and block or rate-limit the addresses whose requests are clearly probes.
- Why does it ask for /dns-query and /resolve?
- Those are the paths public DNS-over-HTTPS resolvers answer queries on, and they were among the most requested paths from this user agent on our server. A host that answers them is usable by strangers as a resolver; one that returns 404, like ours, is not. Treat the requests as a check on whether you run a resolver on that name.
- How do I tell our own Go services apart from scanners using the same header?
- By source address and path. Your own services and known partners come from addresses you can enumerate and request your API routes; scanners come from addresses you do not recognise and ask for files such as .env or vendor admin endpoints you never published. Set an explicit User-Agent in your own Go code so the distinction shows up in the log.
See which scanners are hitting your server
Drop an nginx or Apache access log into the free browser analyzer: scanners and probes are grouped by source with the evidence lines, any probe that got a 200 back is flagged, and known user agents and probes link back here. Nothing is uploaded.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The counts come from the logs of our own internet-facing server, refreshed weekly. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]