Cookies are small text files that a website stores on your computer. They remember things about you, like your preferences or your login session. Cookies make websites easier to use. Managed badly, they’re a risk.
One risk is that cookies can hold private data, such as session tokens or personal details. If that cookie isn’t protected, attackers can steal it. That’s why websites should use HTTPS and set the “secure” flag on any cookie that holds login or personal data.
Cookies also track what you do online. Advertisers use them this way all the time, and the same tracking can be used to build a detailed profile of your interests and habits that gets sold to third parties or used to target you with malicious content you never asked to see.
You can take a few precautions. Disable cookies in your browser settings, though some sites will break. Or use private browsing.
Reading an older article? Use the brief to stay current.
Get the free 5-minute weekday brief
Scam alerts you can act on, major breaches, and our free Scam Survival Kit (PDF). Free, every weekday.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.
Browser extensions can also help you manage cookies. You can block or delete cookies from specific sites, or block all cookies except those from sites you trust. Some extensions block tracking cookies or third-party cookies specifically.
A virtual private network (VPN) encrypts your internet connection, which protects cookies from being intercepted on public Wi-Fi. It won’t stop a website from setting cookies. Browse carefully anyway.
Websites have a job to do too. They should use secure connections and set the “secure” flag on cookies that hold private data. They should also prevent cross-site scripting (XSS) attacks, where an attacker injects malicious code into a site and steals cookies.
Cookies make browsing easier, but they need managing. Block third-party cookies, clear the rest now and then, and use a VPN on untrusted networks. Websites should do their part with HTTPS and XSS protection.
Newer CyberExperts coverage on this topic
This article still works as background. If you want the current picture, start with the freshest related coverage below and today's brief.
CEH Certification Cost: Fees, Retakes and Renewal
What does the CEH certification cost? See the eligibility fee, retake rules, renewal credits and annual fee EC-Council publishes.
How to Tell If Your Phone Is Hacked
Signs your phone may be hacked, signs that are usually harmless, how to check an iPhone and an Android, what to do...
How to Opt Out of Data Broker Sites
How to opt out of data broker and people-search sites, including California's DROP tool, why it matters after a breach, and a...
Friday’s brief: Linux firewall flaw, fake Meta apps, and a UK ransom ban
The fastest way to catch up on what changed after this article was published.
Start your morning with the signal that matters.
Get the biggest cybersecurity developments, why they matter, and where to go deeper on CyberExperts.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.