OS username and home folder
Pages cannot see your computer login name.
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
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Not supported | Not available | None |
| Edge | Not supported | Not available | None |
| Firefox | Not supported | Not available | None |
| Safari | Not supported | Not available | None |
| Safari on iPhone | Not supported | Not available | None |
| Chrome on Android | Not supported | Not available | None |
| Samsung Internet | Not supported | Not available | None |
How a site asks for it
| API | none |
| How access is granted | not-exposed |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | not applicable |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: none
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
proxy: File System Access picker | string | None | page gets file name and handle only after user choice, never a full path | Not listed |
proxy: file:// URL | string | None | pages loaded from disk can show a path in location | Not 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
| Type | Example | Apps |
|---|---|---|
| productivity | A web app wanted the computer user name to greet you and asks for a profile name. | None named |
| enterprise | A company portal wanted the login name for single sign on and uses an identity provider. | None named |
| security | A malicious page wanted to read the name from file paths and cannot. | None named |
| games | A browser game wanted your OS name for a leaderboard and uses a typed nickname. | None named |
| ads | An ad vendor wanted a real name for matching and uses email hashes instead. | None named |
| education | An exam site wanted to confirm the logged in student and uses school sign-in. | None named |
| developer | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 5 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | 0 | Rough identifying entropy, when known |
Related capabilities
Related
- File system paths and directories. Can't see your folders or where your files are stored
Sources
How well checked: Based on official documentation.