Page URL (location)
Reads the current page's full address.
In one line
Can see the full address of the page you are on
Reads the current page's full address.
The URL (up to 1500 chars) shows what profile or page the person is looking at, which is sensitive on a social network.
What it can and can't do
What the user does: Nothing. It happens as soon as the page loads.
It can
- See the whole address, including any search words or codes in it
- Use bits of the address to show the right content
- Send the address to its own server or to other companies it works with
It cannot
- See the address of other tabs
- Send the part after # to its server by itself; the browser keeps that part local
- See your history of earlier pages
- Change the address to a different site
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | window.location.href |
| Browser compat keys | api.Location.href |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Script reads the value
- Value joins the fingerprint payload
Data you get
What comes back: Page URL (location)
Shape: string
How often: per page
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
location | string | None | up to 1500 chars | exact |
Technical limits
- Cannot read other tabs
The story
What it is
A page can read its own full web address, including tracking parts.
For you
You never see it. The address of the page you are on, including bits after the question mark, may be read and sent to others.
For makers
Analytics and ad tools read it to know which page, campaign and referrer brought you. Sometimes the address holds private info like an email or a search term.
Where you see it
| Type | Example | Apps |
|---|---|---|
| analytics | A script reads campaign tags in the address to credit the right ad. | Google Analytics |
| ads | An ad pixel sends the page address to the ad network to match a purchase to an ad. | Meta Pixel |
| shopping | A store reads the discount code in a link and applies it to your cart. | None named |
| security | A phishing scanner compares the page address with known bad ones. | None named |
| social | A share button builds a link to the current page for you to post. | X, Facebook |
| developer | A single page app reads the address to know which view to show. | None named |
Risks
- Private info in links
- Leaks to third parties
Good uses and abuse
Legitimate uses
- Analytics
Known abuse
- Reading viewed profiles
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 4 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): location. dataLimit 1500.
Related capabilities
Related
- APFC / DNA device fingerprint (abuse prevention features). Can collect about 48 device traits and send them in secret with later requests
Sources
How well checked: Based on official documentation.