How to Stop Cookies From Tracking You
In this article
Cookies are small text files websites store on your browser to remember your preferences, login state, and—most often—to track your activity across sites for advertising. Stopping them doesn't mean blocking all cookies (that breaks many sites); it means limiting cross-site tracking while keeping the useful ones. This guide shows you how to adjust browser settings, use built-in protections, and add simple extensions to regain control over your online privacy.
What You'll Need
- A modern web browser (Chrome, Firefox, Safari, Edge, or Brave)
- Access to your browser's settings menu
- Optional: a privacy-focused browser extension (like uBlock Origin or Privacy Badger)
Step-by-Step
- Open your browser's settings. In Chrome, click the three-dot menu → Settings. In Firefox, click the hamburger menu → Settings. In Safari, go to Preferences (Cmd+,). In Edge, click the three-dot menu → Settings. In Brave, click the three-line menu → Settings.
- Find the privacy or tracking section. Look for labels like "Privacy and Security," "Privacy," or "Trackers." In Chrome, it's under "Privacy and security" → "Cookies and other site data." In Firefox, it's under "Privacy & Security" in the left sidebar.
- Enable "Block third-party cookies" (or equivalent). This stops cookies from domains other than the one you're visiting—these are the main tracking cookies. In Chrome, choose "Block third-party cookies." In Firefox, select "Strict" under Enhanced Tracking Protection. In Safari, check "Prevent cross-site tracking." In Edge, turn on "Block third-party cookies." In Brave, it's already on by default under "Shields."
- Turn on "Do Not Track" (optional but weak). This sends a request to websites not to track you, but many ignore it. In Chrome, enable "Send a 'Do Not Track' request." In Firefox, it's under Enhanced Tracking Protection → "Send websites a 'Do Not Track' request." In Safari, it's in Privacy settings. It's not a strong defense, but it's a signal.
- Use a privacy extension (recommended). Install uBlock Origin or Privacy Badger. These block trackers at the network level, preventing cookies from being set in the first place. After installing, the extension works automatically—no configuration needed for basic blocking.
- Clear existing cookies (once). Go to your browser's cookie settings and clear all cookies. This removes already-stored tracking identifiers. In Chrome, click "See all cookies and site data" → "Remove all." In Firefox, "Clear data" → "Cookies and Site Data." In Safari, "Manage Website Data" → "Remove All." This logs you out of sites, so you'll need to log in again.
- Set your browser to clear cookies on exit (optional). This ensures no tracking cookies persist between sessions. In Chrome, under "Cookies and other site data," enable "Clear cookies and site data when you close all windows." In Firefox, under "Cookies and Site Data," check "Delete cookies and site data when Firefox is closed." In Safari, you can set this via the "Privacy" tab → "Block all cookies" (but that breaks many sites, so use the "prevent cross-site tracking" option instead).
- Use a private browsing mode for sensitive sessions. Incognito (Chrome), Private Window (Firefox), or Private Browsing (Safari) automatically block third-party cookies and don't store history. This is a quick way to avoid tracking for a single session, but it doesn't affect your normal browsing.
Common Mistakes
- Blocking all cookies. This breaks many websites—you'll be logged out constantly, and some sites won't load at all. Only block third-party cookies, not all.
- Assuming "Do Not Track" works. Most advertisers ignore it. It's a signal, not a legal requirement.
- Forgetting to clear existing cookies. If you only change settings, old tracking cookies remain until you clear them.
- Not updating your browser. Older browsers lack newer tracking protections. Keep your browser updated.
- Installing too many extensions. Multiple ad-blockers can conflict and slow down your browser. One good extension is enough.
Tips
- Use a dedicated privacy browser. Brave or Firefox with strict settings offer better built-in protections than Chrome or Edge.
- Check your browser's "tracking protection" report. Firefox shows how many trackers it blocked in the shield icon. This helps you see the effect.
- Use a search engine that doesn't track. DuckDuckGo or Startpage don't use tracking cookies for search history.
- Log out of sites you don't use. Logged-in sessions often set cookies that track you across the site.
- Consider a VPN for IP-level tracking. Cookies are only one part; your IP address also identifies you. A VPN hides that, but it's not a cookie solution.
Troubleshooting
- Sites say "cookies are required" and don't work. You likely blocked all cookies, not just third-party. Go back to settings and ensure you only blocked third-party cookies, not first-party.
- You're still seeing targeted ads. Cookies aren't the only tracking method—fingerprinting (using browser characteristics) still works. Enable your browser's fingerprinting protection if available (Firefox's Strict mode does this). Also, clear your cookies and restart the browser.
- You're logged out of every site after clearing cookies. That's normal. Log back in; your settings are saved on the server, not in cookies.
- Your browser is slower after installing an extension. Some extensions are heavy. Try a lighter one like Privacy Badger instead of a full ad-blocker.
- Mobile browsers behave differently. On iOS, Safari's "Prevent Cross-Site Tracking" is in Settings → Safari. On Android, Chrome's settings are similar to desktop but may have fewer options. Use Firefox Focus for stronger mobile blocking.
Frequently Asked Questions
Do cookies really track me?
Yes, third-party cookies are specifically designed to track your browsing across different websites. They're used for advertising, analytics, and personalization.
Will blocking cookies break my favorite websites?
Blocking third-party cookies usually doesn't break sites—it just stops cross-site tracking. Blocking all cookies will break login sessions and some site features.
What's the difference between first-party and third-party cookies?
First-party cookies come from the site you're visiting (like a login token). Third-party cookies come from other domains (like ad networks) that are embedded on that site.
Does incognito mode stop tracking?
Incognito mode blocks third-party cookies by default and doesn't save history, but it doesn't stop your ISP or the websites themselves from seeing your activity. It's not a full privacy solution.
Are there cookies that can't be blocked?
Some sites use "supercookies" or fingerprinting that are harder to block. However, modern browsers and extensions like uBlock Origin can block most of these.
Do I need to clear cookies regularly?
If you've enabled third-party blocking, you don't need to clear them often. But clearing them periodically removes any lingering tracking identifiers.