Skip to Content
Platform.Ontology

OS username and home folder

Pages cannot see your computer login name.

Blocked for appsDevice detailsIdentityWeb browsersWhen the page loadsWhile you use it

In one line

Can't see your computer login name or home folder

Pages cannot see your computer login name.

No web API exposes it. Proxies: file-picker display names after the user chooses a file, a downloaded file path in a native dialog, and rare leaks in error messages from extensions or file:// URLs.

What it can and can't do

What the user does: Nothing. Pages have no way to ask for this

It can

  • See the name of a file you pick, if it includes your name
  • Get your name only if you type it in
  • Get hints from rare leaks in extension or local file errors

It cannot

  • See the account name from the browser
  • See folder paths
  • See your home folder
  • See a path from a downloaded file

Browser support

BrowserStatusFirst versionNote
ChromeNot supportedNot availableNone
EdgeNot supportedNot availableNone
FirefoxNot supportedNot availableNone
SafariNot supportedNot availableNone
Safari on iPhoneNot supportedNot availableNone
Chrome on AndroidNot supportedNot availableNone
Samsung InternetNot supportedNot availableNone

How a site asks for it

APInone
How access is grantednot-exposed
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnot applicable
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: none
How often: static per session

FieldTypeUnitRangePrecision
proxy: File System Access pickerstringNonepage gets file name and handle only after user choice, never a full pathNot listed
proxy: file:// URLstringNonepages loaded from disk can show a path in locationNot listed

Technical limits

  • Real name often in username

The story

What it is

Pages cannot see your computer login name or home folder.

For you

A website does not know your computer user name. It might learn your name only if you type it or if you pick a file and the file name includes it.

For makers

The username often contains a real name. The web gives no API for it. Sites use sign-in forms instead.

Where you see it

TypeExampleApps
productivityA web app wanted the computer user name to greet you and asks for a profile name.None named
enterpriseA company portal wanted the login name for single sign on and uses an identity provider.None named
securityA malicious page wanted to read the name from file paths and cannot.None named
gamesA browser game wanted your OS name for a leaderboard and uses a typed nickname.None named
adsAn ad vendor wanted a real name for matching and uses email hashes instead.None named
educationAn exam site wanted to confirm the logged in student and uses school sign-in.None named
developerA web tool wanted the home folder path to suggest defaults and shows a file picker.None named

Risks

  • Names can leak through file names

Good uses and abuse

Legitimate uses

  • None: the browser deliberately withholds it

Known abuse

  • Sites attempt proxies to recover it

Scores

ScoreValueMeaning
Sensitivity5 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bits0Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page