Yes, a website can port scan localhost from your browser, within limits. Script on any public page may fire requests at 127.0.0.1, or at the router at 192.168.1.1, one port after another, and note which ones answer and how fast the rest fail. It usually can't read what comes back, and it doesn't have to: a listener on a well-known number tells the page what is installed.
For an anti-detect browser that is about as bad as a leak gets. The fingerprint can be flawless and one open port still names the product the profile runs in. Ours did exactly that for a while, and the block we had for it turned out to do nothing at all.
What a page can learn from 127.0.0.1
You call fetch('http://127.0.0.1:<port>/', { mode: 'no-cors' }) for each port on a list and time it. Closed ports throw almost at once. An open one hands back an opaque response, which is empty to script but is still a reply, and after a few dozen ports the page has an inventory of the machine.
Mosaic was its own worst case here. The local REST API used to send access-control-allow-origin: *, so a page running inside a profile could call the health route and read {"ok":true,"name":"mosaic"}. No inference needed; the product told the page its name.
The server now turns away anything a web page sent. Browsers stamp those requests with a Sec-Fetch-Site header that page script has no way to forge, and curl, Node and automation clients leave it off entirely, so a value other than same-origin or none gets a 403. That includes the preflight. Our companion extension is the single exception, and it still has to present an API key. All of that fixed what the server says. A page could still see that the port was open.
Our old block was two unrelated switches
Every profile has a Block local network access switch, on by default, and the editor says it stops "a page port-scanning 127.0.0.1 and your LAN". For a while the only thing behind it was two launch flags, --block-new-web-contents and --restrict-gamepad-access. The first blocks popups. The second blocks gamepads. The comment above them described a port-scan defence that no line of code implemented, and pages reached 127.0.0.1 as freely as before.
Your profiles, cookies and proxies stay on your computerIn Mosaic: Local first. Profiles, cookies and proxies stay on your computer. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.
Mosaic is a desktop app
Email yourself the link and open it on your computer.
Chrome's own feature did not hold up
The obvious repair was Chromium's own mechanism. What used to be called Private Network Access is now Local Network Access, and the Chrome team describes it as putting a public site's requests to the local network behind a permission prompt. We switched it on two ways.
First with BlockInsecurePrivateNetworkRequests, the name older documentation still gives. That feature name no longer exists in the build, and Chromium accepts an unknown name in silence, so the flag looked like a fix and did nothing. Searching the engine binary for the string is how we found out.
Then with the real one, LocalNetworkAccessChecks, warning mode off and the prompt auto-denied. A no-cors fetch could still tell an open loopback port from a closed one, so we took both out rather than keep them as insurance. Stock Chrome ships that feature disabled, and turning it on can change what a page reads (navigator.permissions among other things). Paying for protection we measured as missing with a fingerprint difference is a bad trade for a browser meant to look ordinary.
What works: a PAC file that points at a dead port
Chromium asks a proxy auto-config (PAC) file where to send each request before it opens any connection. A profile without a proxy now launches with --proxy-pac-url aimed at a small PAC file in its own folder, and that file sends every loopback and private destination to PROXY 127.0.0.1:1, where nothing listens. Everything else goes DIRECT. It catches localhost, 127.*, 10.*, 192.168.*, 172.16.* through 172.31.*, 169.254.*, names ending in .local, plus the IPv6 loopback, unique-local and link-local ranges. Only the companion's own host is let through.
Where the file lives turned out to matter. Chromium re-reads a PAC file whenever its network service restarts, and if the file has gone by then (a temp directory cleaned up, say) the browser fails open and every private address is reachable again. So it sits in the profile folder, for as long as the profile does.
It also matches addresses as plain text and never calls isInNet, which resolves the hostname before comparing and would put a DNS lookup in front of every request the profile makes. The cost is that a public name resolving to a private address slips past. Scanners work from addresses, though, since they have to enumerate them.
Profiles that do have a proxy skip the PAC file. They already launch with --proxy-bypass-list=<-loopback>, which sends loopback through the proxy, so 127.0.0.1 means the proxy's machine and not yours. One residential gateway we measured simply refuses: 464 Connection to the specified target is not permitted.
What it does not hide
We hoped the dead port would make an open port and a closed one indistinguishable. It doesn't. Against a test server on an open loopback port, with a closed port next to it:
stock Chrome, no PAC open: resolved in 4ms closed: TypeError in 1ms
with the PAC file open: never resolves closed: TypeError in 1ms
Reading is closed off: a response in four milliseconds becomes no response, and the page never sees a byte. Timing is not. The closed port fails before any proxy gets consulted, which is why a dead port and a tarpit that accepts the connection and stalls produced identical rows when we built and measured both. An untouched Chrome on the same machine tells open from closed just as easily, so this does not single out Mosaic, and we list it as a limit instead of calling it solved.
WebRTC is the other way a page can reach toward your network, and WebRTC local addresses and mDNS covers how Chrome masks local addresses there. Which callers the local API should answer at all, and with what, is in the anti-detect browser local API guide.
Sources
- Chrome for Developers: New permission prompt for Local Network Access, read November 3, 2026
- WICG: Local Network Access explainer, read November 3, 2026






