Skip to Content
Platform.Ontology

Visited link (:visited) history sniffing

Used to detect which links the person had visited by styling :visited links.

Used to track youSpeed and timingSide channelsWeb browsersWhile you use it

In one line

Can't find which links you visited by testing link colours anymore

Used to detect which links the person had visited by styling :visited links.

Browsers lie to getComputedStyle for :visited since 2010, but timing, scroll and rendering side channels remained. Chrome 136 partitions :visited links, ending cross-site history probing.

What it can and can't do

What the user does: Nothing. Chrome 136 and other browsers already block it

It can

  • Show visited links in a different colour that you can see
  • Try timing and scroll tricks, which now work far less in current browsers

It cannot

  • See which sites you visited from link colours
  • Work across sites in Chrome 136 and later
  • Work in Firefox and Safari, which hide the answer

How it differs between platforms: Chrome 136 now keeps visited links separate per site. Firefox and Safari blocked the main trick earlier.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeRemoved1362025-04-29Partitioned :visited links
EdgeRemoved1362025-05-01Partitioned :visited links
FirefoxRemoved42011-03-22getComputedStyle protections since 4 (2010)
SafariRemoved52010-06-07Protections since 5 (2010)
Safari on iPhoneRemoved52011-10-12Protections since 5 (2010)
Chrome on AndroidRemoved1362025-04-29Partitioned :visited links
Samsung InternetRemoved29.02025-10-25Partitioned :visited links

How a site asks for it

API:visited CSS; getComputedStyle; paint timing; scroll-to-text
How access is grantednone
What the user seesNot listed
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Render a link
  2. Check style or timing for visited state
  3. Repeat per candidate URL

Data you get

What comes back: Per URL visited bit
Shape: boolean

FieldTypeUnitRangePrecision
visitedbooleanNonetrue or falseper URL

Technical limits

  • Same-site history probing still possible if site is the history owner
  • Lie-based mitigation not perfect for rendering side channels

The story

What it is

Old trick: a site styled links so visited and unvisited ones looked different, then read which pages you had seen.

For you

Today you are mostly protected. Browsers tell pages that every link looks unvisited, so a page cannot learn which sites you saw. It is why visited links only change color on your own screen.

For makers

In the past, ad and data sellers used it to learn which banks, shops or news sites a visitor had been to. Browsers fixed it around 2010 and later, so it now works as a security lesson more than a tool.

Where you see it

TypeExampleApps
securityBefore the fix, a malicious page could list which bank sites you had visited by testing their links.None named
adsOlder ad scripts checked which shopping sites you visited to target ads.None named
shoppingA store could check for competitor links in your history to adjust its price or coupon.None named
socialA social network could guess your interests from visited links to other sites.None named
newsA news site could see if you had read a rival's story, and tailor its message.None named
developerBrowser makers lock down which styles can use visited links, so apps still show purple links but pages cannot read them.Chrome, Firefox, Safari
educationA security course shows how the old attack worked to explain browser privacy design.None named

Risks

  • Fixed in modern browsers
  • Old browsers still exposed

What the platform says

Good uses and abuse

Legitimate uses

  • None

Known abuse

  • History sniffing, login detection

Scores

ScoreValueMeaning
Sensitivity3 of 5How revealing the data is
Utility1 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits4Rough identifying entropy, when known

History

  • 2010-03, Firefox 4: getComputedStyle lies for :visited (Baron)
  • 2025-04, Chrome 136: Partitioned :visited link history by top frame and link origin

Sources

How well checked: Based on official documentation.

On this page