Every website you visit seems to ask the same question: "This site uses cookies. Accept all?" Why do websites ask to accept cookies? The short answer is that the law makes them ask — and the reason the law exists is that cookies quietly became one of the most powerful tracking tools on the internet. A cookie is a small piece of data, and the banner is the price of a decade of invisible tracking. Here is what cookies actually are, why the banners exist, and what you should do the next time one pops up.
What is a cookie, exactly?
A cookie is a small text file — usually no more than about 4 KB — that a website asks your browser to store on your device. The mechanism is simple, and it has barely changed since cookies were invented in 1994 by Lou Montulli at Netscape:
- You visit a website. Its server includes a Set-Cookie instruction in its reply.
- Your browser saves that small piece of data.
- Every time you make another request to the same site, your browser sends the cookie back automatically.
That round trip is the whole mechanism, and it solves a real problem. The web's basic protocol, HTTP, is stateless — every request is a fresh start, and the server forgets you instantly. Without cookies, you would have to log in again on every single page, and your shopping cart would empty itself every time you clicked a link. Cookies give the web a memory.
Cookies come in a few varieties:
| Type | What it does | Example |
|---|---|---|
| Session cookie | Deleted when you close the browser | Keeping you logged in while you browse |
| Persistent cookie | Stays until it expires or you delete it | Remembering your language or login |
| First-party cookie | Set by the site you are actually visiting | Saving your shopping cart |
| Third-party cookie | Set by a different domain than the one in your address bar | An ad network tracking you across sites |
The distinction that matters most for your privacy is the last one. First-party cookies can only work on the site that created them — they cannot follow you anywhere else. Third-party cookies are the ones at the centre of the privacy debate.
How tracking cookies actually follow you
Here is how a third-party cookie works in practice. You visit a news site, and that site loads an advertisement served from adnetwork.com. When your browser fetches the ad, adnetwork.com sets a cookie on your browser. Later, you visit a completely different site — a cooking blog — that also loads content from adnetwork.com. The ad network reads the cookie it placed earlier and connects the dots: the same person visited both sites.
Multiply that across thousands of sites, and an ad network can build a remarkably detailed profile of your interests, shopping habits and browsing behaviour — often without you having any awareness it is happening. Even things you never click can track you: a "Share on X" button lets X know you visited the page, and an embedded YouTube video lets Google track every page where you watched a video.
This is not a theoretical risk. Before privacy laws existed, websites simply used cookies without asking, and tracking networks followed people across the web for years without their knowledge.
The law that created the banners
The banners exist because of two pieces of European law that became the world's standard:
- The ePrivacy Directive (2009), often called the "cookie law", says storing a cookie on someone's device requires their consent — except for cookies that are strictly necessary for the site to work.
- The GDPR (2018), the EU's data protection law, requires that consent to be freely given, specific and informed. It also set fines of up to €20 million or 4% of a company's global annual revenue, whichever is higher.
Because websites serve visitors globally, these rules effectively became worldwide standards. Similar laws followed elsewhere, including California's CCPA. The result is the banner you see on almost every site today.
Crucially, not all cookies require consent. Strictly necessary cookies — the ones that keep you logged in or remember what is in your shopping cart — are generally exempt. The consent requirement applies mainly to tracking and advertising cookies, analytics cookies, and third-party cookies from external services. That is why a well-designed banner offers choices: "Accept all", "Reject all", or "Manage preferences". You can find more on protecting your browsing in our guide to what a VPN actually does.
What happened to the plan to kill third-party cookies?
For years, the tech industry promised that third-party cookies would disappear. The timeline did not go as planned:
- January 2020: Google announces Chrome will phase out third-party cookies within two years.
- January 2024: Chrome restricts third-party cookies for 1% of users as a test.
- July 2024: Google drops the phase-out and proposes a user-choice prompt instead.
- April 2025: Google drops the prompt too. Chrome keeps its existing controls.
- October 2025: Google retires most of its Privacy Sandbox replacement technologies.
So in November 2026, the situation is this: Safari and Firefox block third-party cookies by default, and have for years. Chrome — with roughly two-thirds of the browser market — still allows them in normal windows (Incognito mode blocks them). You have to switch them off yourself in Chrome's settings. The consent banner, in other words, is not going away any time soon.
Should you accept cookies?
There is no single right answer, but there is a sensible default:
- "Strictly necessary" cookies — always accept. The site genuinely needs these to work. Rejecting them will break logins, carts and preferences.
- "Preferences" cookies — usually fine. These remember your language, theme or region. They are first-party and low-risk.
- "Analytics" cookies — your call. These help the site owner understand traffic, but they are not essential for you.
- "Marketing" or "advertising" cookies — usually reject. These are the third-party trackers that follow you across the web and build advertising profiles.
A few practical rules of thumb:
- Use "Reject all" when it is offered. It takes one click and blocks the tracking cookies while keeping the essential ones.
- Block third-party cookies in your browser settings. This stops most cross-site tracking and still keeps you signed in to the sites you use.
- Clear cookies occasionally. It logs you out of sites, but it also wipes the tracking profiles built up over months.
- Do not accept cookies on sites you do not trust. A shady site asking for marketing cookies is exactly the site you should say no to.
One warning: disabling all cookies, including first-party ones, will break most modern websites. The goal is not to block everything — it is to block the trackers while keeping the useful memory.
Takeaway checklist
- What a cookie is: a small text file (about 4 KB) a site asks your browser to store, sent back automatically with every request.
- Why banners exist: the EU's ePrivacy Directive and GDPR require consent before non-essential cookies are stored — fines reach €20 million or 4% of global revenue.
- First-party cookies come from the site you are visiting and handle logins, carts and preferences. They are mostly harmless.
- Third-party cookies come from another domain (usually an ad network) and follow you across the web. These are the ones the banners are really about.
- Strictly necessary cookies don't need consent — only tracking, analytics and advertising cookies do.
- The phase-out never happened: Google dropped its plan to remove third-party cookies from Chrome in July 2024, and the fallback prompt in April 2025. Safari and Firefox still block them by default.
- The sensible default: accept necessary cookies, reject marketing cookies, and block third-party cookies in your browser settings.