Privacy

What Are Third-Party Cookies? How Tracking Works and How to Block Them

Third-party cookies follow you from site to site. Here is what they are, why Chrome kept them, and how to block them in every major browser.

Cysoro Security TeamPublished · 7 min read
PRIVACY Third-partycookies Who is watching you across the web?
Quick answer

Third-party cookies are small text files set by a domain other than the website in your address bar, usually by an advertiser, analytics provider or embedded service. They let that third party recognize your browser across many different sites, which is how ad networks build a profile of your interests and show you retargeted ads.

Key takeaways

  • A third-party cookie comes from a domain other than the site in your address bar, which is what lets it track you across sites.
  • Safari blocks third-party cookies by default and Firefox isolates them per site, while Chrome still allows them by default.
  • You can block third-party cookies in your browser settings, but expect some logins and embedded content to break.

You visit a shoe shop once, and for the next week its shoes follow you around the internet. That is third-party cookies at work — and it is also why browsers, regulators and Google have spent years arguing about them.

What are third-party cookies?

A third-party cookie is a small text file set by a domain other than the website in your address bar. It is usually placed by something the page embeds or calls: an ad, a tracker, an analytics script or a social media button.

MDN, the web documentation project, puts the line this way: if the domain and scheme are different from the page you are looking at, the cookie is not from the same site, and it is referred to as a third-party cookie. MDN also calls them cross-site cookies.

Google Chrome Help describes them simply as cookies "created by other sites": a site you visit can embed content from other sites, for example images, ads and text, and those other sites can set cookies in your browser.

How do third-party cookies work?

When you load a page, your browser also loads content from other domains: ad networks, analytics providers, video players and social widgets. Each of those can set a cookie with a unique ID for your browser.

When you later visit a different site that uses the same tracker, your browser sends that same ID again. The tracker joins the visits together and builds a picture of your interests, even though you never visited the tracker itself.

That is how retargeting works. You looked at shoes on one site, the ad network noted the ID, and when you read the news later, the same network recognizes the ID and shows you the shoe ad again.

One tracker, three sites, one profileShoe shoptracker sets ID 4821News sitesame tracker reads ID 4821Recipe blogsame tracker reads ID 4821Ad network profile: ID 4821 likes shoesResult: shoe ads follow you everywhereYou never visited the tracker. It visited you, three times.
How one third-party cookie joins visits across unrelated sites. Illustration by Cysoro.

What is the difference between first-party and third-party cookies?

A first-party cookie is set by the site in your address bar and works only on that site. It remembers that you are logged in, keeps items in your shopping cart, and stores language or display preferences.

A third-party cookie is set by another domain and can work across many sites. Its typical purposes are interest-based advertising, conversion tracking, analytics across sites and social media integrations.

First-party cookieThird-party cookie
Set byThe site in your address barAnother domain embedded in the page
Typical purposeLogin state, cart, preferencesCross-site tracking, ads, analytics
Tracking scopeOne site onlyMany unrelated sites
Browser support in 2026Supported everywhereBlocked in Safari, isolated in Firefox, allowed in Chrome
Privacy riskLow — the site already knows you visitedHigher — builds a profile across sites

The distinction is about who sets the cookie, not what it stores. A first-party cookie can still be used for analytics, and a third-party cookie can serve a legitimate purpose such as a shared login.

What are third-party cookies used for?

Third-party cookies have honest uses as well as tracking uses. A sign-in shared by related sites, preferences that follow you across a group of sites, analytics across sites and counting ad impressions all rely on them.

The main commercial uses are advertising: showing ads based on interests, measuring whether an ad led to a sale, limiting how often you see the same ad, and retargeting people who viewed a product but did not buy it.

They also support embedded content: social media buttons, comment systems, video players and payment widgets that need to recognize you across sites. That is why blocking them can break some features.

Is Chrome getting rid of third-party cookies?

No. Google abandoned its plan to fully remove third-party cookies from Chrome in July 2024, and in April 2025 it confirmed that Chrome would not introduce a separate choice prompt either. Third-party cookies remain active in Chrome by default.

The history matters because many older articles still say Chrome will end them on a set date. Chrome began restricting them for 1% of browsers on January 4, 2024, as a test before a planned ramp to 100%. On July 22, 2024, Google changed course and said it would introduce a new choice experience instead of deprecation. On April 22, 2025, it dropped that prompt too.

Google's Privacy Sandbox tools, including Topics and Protected Audience, remain available as alternatives in some form, but in October 2025 Google said it would retire several Privacy Sandbox technologies, including Topics, Protected Audience and the Attribution Reporting API, as Cookiebot's review of the Chrome decision explains. Google said it would keep supporting CHIPS (partitioned cookies) and FedCM, which other browsers support too.

The UK Competition and Markets Authority had been involved throughout, after opening an investigation into the Privacy Sandbox in January 2021. It released its commitments in October 2025, the same day Google published its retirement update.

How do browsers handle third-party cookies in 2026?

Browsers now disagree sharply. Safari was the first mainstream browser to fully block third-party cookies by default, Firefox isolates them so each site gets its own separate cookie jar, and Chrome allows them unless you block them or browse in Incognito.

BrowserThird-party cookies by defaultWhat you can change
ChromeAllowed in regular browsing; blocked in IncognitoBlock all, or allow per site, in Settings
SafariBlocked by defaultCross-site tracking prevention is on by default
FirefoxIsolated per site (Total Cookie Protection)Strict mode blocks more trackers
EdgeAllowed by default, with tracking preventionBlock third-party cookies in Settings

Firefox's approach is worth understanding: instead of deleting third-party cookies outright, it keeps each one in a separate jar for each site, so a tracker cannot join your visits across sites, as Syntaqx's browser privacy guide describes. Safari blocks them outright and adds Intelligent Tracking Prevention to limit other tracking tricks.

Our guide to Tor Browser on iOS covers a stricter option for browsing where tracking protection matters most.

Our WebRTC leak test shows another way your real address can leak while you browse.

How do you block third-party cookies?

Blocking third-party cookies is a setting, not an app. It takes under a minute in each browser, and you can allow cookies for a specific site later if something breaks.

Block third-party cookies in under a minuteChromeSettings, Privacyand security,Third-party cookies,Block third-partycookiesSafariAlready blocked bydefault. CheckSettings, Privacy,Prevent cross-sitetracking is onFirefoxSettings, Privacy,Enhanced TrackingProtection, chooseStrict for thestrongest settingIf a site breaks, add it to the exceptions list instead of turning blocking off.
Where to find the third-party cookie setting in each major browser. Illustration by Cysoro.

Chrome

Open Settings, then Privacy and security, then Third-party cookies, and choose Block third-party cookies. Chrome Help says that if you block them, all third-party cookies from other sites are blocked unless the site is allowed on your exceptions list.

Safari

Safari blocks third-party cookies by default. On a Mac, check Settings, then Privacy, and make sure Prevent cross-site tracking is turned on. On iPhone, the same setting sits under Settings, Safari, Privacy and Security.

Firefox

Firefox isolates third-party cookies by default. For the strongest setting, open Settings, Privacy and Security, Enhanced Tracking Protection, and choose Strict. You can also clear cookies and site data from the same page.

Edge

Open Settings, Privacy, search, and services, then Cookies and site permissions, and choose Block third-party cookies. Edge also offers tracking prevention levels — Balanced is the default, Strict blocks more trackers but may break some sites.

What breaks when you block third-party cookies?

Most sites keep working, but a few things can break. Shared logins across related sites, embedded videos and payment widgets, some comment systems, and single sign-on flows that pass through a third-party identity provider are the usual casualties.

The fix is usually narrow: add the affected site to your browser's exceptions list and allow its cookies, rather than turning blocking off for every site. In Chrome, you can add a site exception on the same Third-party cookies settings page.

If a site still fails after an exception, try allowing cookies for that session only, or use a different browser for that one task. Keep blocking on everywhere else.

What tracking continues after you block third-party cookies?

Blocking third-party cookies does not stop tracking. Advertisers and analytics providers also use first-party cookies set by a tracking subdomain, browser fingerprinting, IP addresses, and link decoration that passes identifiers in URLs.

That is why browser makers also add bounce-tracking mitigation, link-decoration limits, fingerprinting protection and partitioned storage. No single setting covers everything, so layer your defenses: block third-party cookies, use a browser with strong tracking protection, and be careful what you log into.

Blocking cookies is not anonymityYour IP address and browser fingerprint can still identify you. For stronger privacy, combine cookie blocking with a VPN or Tor for sensitive browsing, and check what your browser leaks with our free tools.

Are third-party cookies legal?

Third-party cookies are not illegal by themselves, but their use is regulated. In the EU, the ePrivacy Directive requires websites to obtain consent before setting non-essential cookies, and GDPR rules apply to the personal data those cookies collect.

In the US, there is no single federal cookie law, but several states — including California under the CCPA and CPRA — give residents rights to opt out of the sale or sharing of personal information, which can include data collected through cookies.

Website owners must still get consent where the law requires it, even as browsers change the defaults. If you run a site, our security headers checker can help you review the basics of your site setup.

The bottom line

Third-party cookies are the mechanism behind cross-site tracking: a cookie from a domain other than the site you are visiting, read again on every other site that embeds the same tracker. Safari blocks them, Firefox isolates them, and Chrome still allows them by default.

Block them in your browser settings, add exceptions only for sites that genuinely break, and remember that cookie blocking is one layer — not a complete privacy solution. You can check what your browser reveals right now with our free what-is-my-IP tool.

Frequently asked questions

What are third-party cookies in simple terms?

They are small files a website you did not visit directly puts on your browser, usually through an ad, a tracker or embedded content. Because the same tracker appears on many sites, it can recognize your browser on each one.

Are third-party cookies bad?

Not always. They power useful things such as shared logins across related sites and ad measurement. The privacy concern is cross-site tracking: many different sites feeding one advertising profile without you seeing it happen.

What is the difference between first-party and third-party cookies?

A first-party cookie is set by the site in your address bar and works only there, for things like logins and shopping carts. A third-party cookie is set by another domain embedded in the page and can follow you across sites.

Is Chrome getting rid of third-party cookies?

No. Google abandoned its plan to remove third-party cookies from Chrome in July 2024, and in April 2025 it confirmed it would not add a separate choice prompt either. Chrome keeps offering users the choice in its privacy settings.

Does blocking third-party cookies break websites?

Sometimes. Shared logins, embedded videos, payment widgets and some comment systems rely on cross-site cookies. Most sites still work, and you can allow cookies for a specific site if something breaks.

Do third-party cookies track you in Incognito mode?

Chrome blocks third-party cookies by default in Incognito mode. That helps, but Incognito does not make you anonymous: your IP address, fingerprint and any logins you use can still identify you.

Are third-party cookies illegal?

Not by themselves. In the EU, the ePrivacy Directive requires consent before non-essential cookies are set, and GDPR rules apply to the personal data they collect. Laws vary by country and US state.

What replaced third-party cookies?

Nothing has fully replaced them. Google built Privacy Sandbox APIs such as Topics and Protected Audience, then retired several of them in October 2025. Partitioned cookies, the Storage Access API and FedCM remain for legitimate cross-site uses.

Sources

  1. Cookiebot — What Are Third-Party Cookies? Browsers, Google and Tracking
  2. Syntaqx — Third-Party Cookies and Browser Privacy
  3. Feedback Studios — What are third-party cookies?
  4. Curve Compliance — Third-Party Cookies on Health Websites: 2026 Status
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MDN documentation on third-party cookies, Google Chrome Help, Google's Privacy Sandbox updates and WebKit's third-party cookie blocking notes, as summarized in the sources.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free