Websites cannot read your history list. Learn how :visited once leaked specific visits, what Chrome partitioning changes, and what sites still see.
Key Takeaways
- An ordinary webpage cannot open your browser's complete history list.
- History sniffing instead tried to infer visits to particular URLs through visited-link styling.
- Browsers restrict what scripts can learn from
:visited; Chrome added context-based partitioning beginning with version 136. - A site can still record your activity on its own pages. Blocking history sniffing does not remove account, referral or fingerprint signals.
Can websites see your browsing history? They do not get a list of every page you have opened. The historical :visited leak was narrower: a page could test suspected destinations and infer whether you had visited them. That difference matters when someone claims a website can “read your history.”
This article concerns ordinary website code. An extension with history permission or software installed on your device has a different access model.
How a link became a history clue
CSS uses :visited to distinguish links to previously visited destinations. That visual convenience once created a way to test specific URLs. A malicious page did not need to know your whole history in advance; it could supply candidate links and look for evidence that the browser treated them as visited.
Think of the difference between obtaining a complete diary and asking whether one particular appointment appears in it. A guessed destination can still reveal something sensitive, even when there is no way to enumerate every entry. A negative result also says less than a complete search of the diary would.
The security issue is the inference available to the page, rather than the fact that a human sees a differently colored link. A colored link is a navigation aid, not proof that the website has extracted a history record.
Two protections with different jobs
As MDN's :visited reference explains, browsers restrict visited-link styling and what scripts can read back. Only certain color properties can change; arbitrary layout or image changes are blocked. For those colors, getComputedStyle() returns the unvisited value even when the user sees a visited color. Scripts also cannot use querySelectorAll(':visited') to enumerate visited links: it returns an empty list. Neither result proves that a destination was never visited.
Chrome's Making :visited more private explains that earlier mitigations left residual attacks and introduces partitioning from Chrome 136. Chrome keys visited state by link URL, top-level site and frame origin. A link clicked on one site therefore does not automatically acquire visited styling on an unrelated site. A self-link exception lets a site show its own previously visited subpages as visited even if they were reached from elsewhere; third-party destinations and third-party iframes do not qualify.
For example, suppose you follow a link from a news site to a shop. Later, an unrelated forum displays a link to that same shop URL. Under Chrome's partitioning, that earlier click on the news site does not make the forum's link appear visited. The shop can still show links to its own previously visited pages under the self-link exception.
The distinction is between concealing a value from scripts and limiting where the value exists in the first place. Both support privacy, but they address different parts of the problem. The cited Chrome change does not establish current Firefox or Safari behavior; this article makes no version-specific claim for either.
What websites can still observe
“Cannot read my history list” should not be interpreted as “cannot know anything about my visits.” Separate these information routes:
| Information route | What it can tell a site |
|---|---|
| Requests and interactions on its own pages | Which of its pages you opened and actions its code records |
| Signed-in account | Which account those recorded actions belong to |
| Referrer information, when supplied | Where a navigation came from, with detail depending on policy |
| A tracking parameter in the destination URL | An identifier carried with that particular navigation |
| Browser attributes | Signals that may help associate visits without a history list |
A referrer may be absent or limited to an origin; it is not a transcript of prior tabs. Likewise, a click identifier is delivered with a link rather than recovered from browser history. See how fbclid and gclid track clicks for that separate mechanism.
How this fits the wider tracking picture
The shared principle with storage partitioning is context: browser state usable in one site should not automatically reveal activity in another. Visited-link state and stored identifiers are different surfaces, however. Do not assume a cookie setting describes both.
ETag and cache supercookies illustrate another way browser state can carry an identifier. Persistent visitor IDs explain the broader problem of joining visits across changing conditions. Closing one channel does not prove the others have closed.
The HTML-in-Canvas privacy explainer discusses excluding visited-link state from painted output. A proposed drawing feature should not become a shortcut around an existing privacy boundary; that is distinct from claiming a deployed canvas feature can read history.
For identification that relies on observable attributes, start with our browser fingerprinting guide. History sniffing asks about a past destination; fingerprinting compares characteristics of the browser making the current visit.
What you can check yourself
Keep the browser updated, and interpret any privacy demonstration according to the exact signal it measures. A test that shows a link changing color has demonstrated styling, not necessarily a script-readable leak. A test that recognizes your account has demonstrated account continuity, not access to your history database.
Open our fingerprint check to inspect browser attributes available to a page. It does not test history sniffing, retrieve your browsing history or certify that every tracking channel is blocked. Use the results to understand exposed attributes, rather than as a verdict about visited-link protection.
When evaluating a claim, ask for its browser version, the observation available to the website, and the difference between that observation and what the user can see. Those details make a history-leak claim assessable without handing an unfamiliar test site sensitive information.

