0Pricing
Cyber Security Academy · Lesson

Tracking, Cookies, and Fingerprinting

Learn how websites track users via cookies, localStorage, and browser fingerprinting.

Tracking, Cookies, and Fingerprinting is a free Cyber Security Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

How Websites Track Users

Websites use multiple mechanisms to track users across sessions and sites: cookies, local storage, tracking pixels, and browser fingerprinting. This data is used for advertising, analytics, and sometimes malicious profiling.

First-Party Cookies

First-party cookies are set by the website you are visiting. They store session state, preferences, and authentication tokens. These are generally necessary for websites to function and are considered acceptable.

Third-Party Cookies

Third-party cookies are set by domains other than the one you're visiting — typically ad networks, analytics providers, or social media widgets. They track you across every site that includes their resources.

Major browsers are phasing out third-party cookies.

Cookie Attributes for Security

Important cookie security attributes:

  • HttpOnly — prevents JavaScript access (anti-XSS)
  • Secure — sent only over HTTPS
  • SameSite=Strict/Lax — prevents CSRF attacks
  • Max-Age/Expires — limits session lifetime

Tracking Pixels

A tracking pixel is a 1x1 transparent image embedded in emails or web pages. When loaded, it sends the user's IP address and load time to the tracker. Email clients that load images automatically reveal when emails are opened and from where.

LocalStorage and SessionStorage

Web APIs like localStorage and sessionStorage allow sites to store data in the browser. Unlike cookies, these don't automatically send to the server and can store more data. They persist after closing the browser (localStorage) until explicitly cleared.

Browser Fingerprinting

Browser fingerprinting identifies users without cookies by combining unique browser characteristics:

  • User-agent string
  • Screen resolution and color depth
  • Installed fonts and plugins
  • Canvas and WebGL rendering output
  • Timezone and language settings

Each combination is highly unique — often more reliable than cookies.

Canvas Fingerprinting

Canvas fingerprinting draws hidden graphics in an HTML canvas element. Different GPU/driver combinations render text slightly differently. The pixel data hash uniquely identifies the device without setting any cookies.

Defending Against Tracking

Anti-tracking measures:

  • Use Firefox with Enhanced Tracking Protection
  • uBlock Origin with tracking blocklists
  • Privacy Badger for learning-based blocking
  • Tor Browser for maximum anonymity
  • Disable JavaScript on sensitive sites (blocks fingerprinting)

The Tor Browser Approach

Tor Browser standardizes all fingerprinting values across users — everyone looks the same. It also routes traffic through three hops, hiding your IP. Trade-off: significant performance reduction and some sites block Tor exit nodes.

GDPR and Cookie Consent

The GDPR (EU) and ePrivacy Directive require obtaining consent before placing non-essential cookies. Cookie banners are the result. Despite banners, enforcement is inconsistent and many sites use dark patterns to nudge users into accepting all cookies.

Quick Check: Tracking

Which technique identifies users by combining unique browser properties like GPU rendering output and installed fonts, without setting any cookies?

Lesson Recap

Websites track users via first- and third-party cookies, tracking pixels, localStorage, and browser fingerprinting. Fingerprinting is especially persistent — it requires no cookies and survives cache clearing. Defenses include ETP (Firefox), uBlock Origin, Privacy Badger, and Tor Browser for high-privacy needs.

Frequently asked questions

Is the “Tracking, Cookies, and Fingerprinting” lesson free?

Yes — the full text of “Tracking, Cookies, and Fingerprinting” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Tracking, Cookies, and Fingerprinting”?

Learn how websites track users via cookies, localStorage, and browser fingerprinting. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Tracking, Cookies, and Fingerprinting” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Browser Security Settings and Extensions
  2. Tracking, Cookies, and Fingerprinting
  3. VPNs: What They Protect and What They Don't
  4. Operational Security (OPSEC) Basics
← Back to Cyber Security Academy