What Are Cookies? How Did They Work? What Is The Purpose Of Cookies? Read The Blog & Find Out Much More About Cookies.
We All Heard About How Companies Like Facebook And Google Can Use Cookies To Follow Us Around The Internet And Keep Track Of What We Are Interested In. They Do This To Sell Targeted Ads Or In Some Cases Even Share That Data With Others Without Our Permission. In Recent Months, There Has Been A Lot Of Fuss Around The Fact That Facebook Tracks Its Users Across The Internet.
So How Do They Do This? Before We Get Into This, Let’s Learn First What Cookies Are And Why They Exist.
Let’s Start With Some Quick History.
History Of Cookies
The Cookie Was Created In 1994 By An Employee Of Netscape Communications Name Lou Montulli, The Same Company That Made The Netscape Browser. He Was Creating An Online Shop, And He Didn’t Want To Store The Contents Of The Shopping Cart On The Server.
Instead, He Wanted A Way To Save It On The Computers Of The Visitors, Right Until They Made Their Purchase. The Reason For This Is Simple If The Server Doesn't Have To Keep Track Of Everyone’s Shopping Cart, It Has Less Work And Can Save Money.
In 1994 The Netscape Browser Implemented Cookies And The Next Year Internet Explorer Followed Suit. However, Two Years Later - In 1996 - The First Concerns Were Raised When It Was Discovered That Cookies Could Potentially Invade Our Privacy. That Would Turn Out To Be Very True, But We're Getting Ahead Of Ourselves Here.
How Cookies Work
Let’s Imagine We Have A Website That Requires People To Login To See The Contents Of The Site. When You Log In, Your Browser Sends Your Username And Password To The Server, Who Verifies Them And - If Everything Checks Out - Sends You The Requested Content.
However, There Is A Small Caveat. The HTTP Protocol - Which Is What We Used to Browse The Internet - Is Stateless. That Means That When You Make Another Request To That Same Server, It Has Forgotten Who You Are And Will Ask You To Log In Again.
Can You Imagine How Time-consuming It Would Be To Browse Around A Site Like Facebook And Having To Log In Again & Again, Every Time You Click On Something?
So Cookies To The Rescue! You Still Log In To The Website, And The Server Still Validates Your Credentials. If Everything Checks Out, However, The Server Not Only Responds With The Content But Also Sends A Cookie To Your Browser. The Cookie Is Then Stored On Your Computer And Submitted To The Server With Every Request You Make To That Website.
The Cookie Contains A Unique Identifier That Allows The Server To “remember” Who You Are And Keep You Logged In. As You Can See, Cookies Are Very Useful, And They Make Our Lives A Lot Easier. But It Doesn’t Stop There! Besides Keeping You Logged In, Cookies Can Also Be Used To Store Your Settings.
Let’s Say You Change The Number Of Results Your Favorite Search Engine Should Return. Chances Are High That They Save This Preference In A Cookie And Not On Their Servers. But There Are Also Some Restrictions On The Use Of Cookies. Most Browsers Only Allow Websites To Store A Maximum Of 300 Cookies And They Cannot Contain A Lot Of Data (just 4096 Bytes).
The Biggest Limitation, However, Is The Fact That Cookies Set By One Website, Cannot Be Read By Another And That Restriction Raises The Question - How Can Companies Use Cookies To Track Us Around The Internet? Especially If A Cookie From One Website Can Not Be Read By Another. How Can Facebook For Instance Track What Sites We Visit? Well, The Whole Process Starts When You Log In To Facebook. To Remember That You’re Logged In, Facebook Stores A Cookie On Your Computer, Nothing Unusual About That, Many Other Sites Do The Same Thing. This Cookie Is Scoped Or Bound To Facebook’s Domain Name, Meaning That No One Else Besides Facebook.com Can Read What Is In The Cookie.
Let’s Now Imagine That You Browse Away And You Land On Someone’s Blog. The Blog Cannot Read Your Facebook Cookie, And The Scope Prevents That. Facebook Also Can’t See That You’re On This Blog. All Is Well. But Let’s Now Assume That The Owner Of The Blog Places A Facebook Like Button On His Website. To Show This Like Button, Your Browser Has To Download Some Code From The Facebook Servers, And When It’s Talking To Facebook.com, It Sends Along With The Cookie That Facebook Set Earlier. Facebook Now Knows Who You Are And That You Visited This Blog.
I’m Using Facebook As The Example Here, But This Technique Is Used By Many Other Companies To Track You Around The Internet. The Trick Is Simple: Convince As Many Websites As Possible To Place Some Of Your Code On Their Sites. Facebook Has It Easy Because A Lot Of People Want A Like Or Share Button On Their Website. Google Also Has An Easy Job Because Of Many Websites Rely On Its Advertisement Network Or On Google Analytics. At This Stage, Cookies Are Getting Out Of Hand.
Not All Of These Cookies Track You Around. In Fact, A Handful Of Them Is Essential For The Site To Work Correctly, As A Session Cookie To Remember That You’re Logged In. However, The Majority Of Cookies On These Websites Don’t Serve The User. They Are There To Track You Or To Display More Targeted Ads.
How To Prevent Cookies From Tracking
So What Can We Do To Prevent These Cookies From Tracking Us On The Internet? As A User, You Can Protect Yourself From Trackers By Installing A Browser Extension That Blocks Them Like Privacy Badger Or Ghostery, Etc. You Could Also Switch To A Browser With Built-in Privacy Protection Tools Like Brave, Safari, Or Tor Browser And If You Don’t Want To Do Anything, The Law Is On Your Side. More And More Politicians Realize That Cookies Are A Threat To Privacy And That The Use Of Trackers Should Be Regulated. In India, There Is A Low Personal Data Protection Bill To Protect Our Privacy. In Europe, GDPR(General Data Protection Regulation) Which Requires Websites To Be Transparent About Their Use Of Cookies And Requires Sites To Offer Users A Simple Way To Opt-out.
You’ve Probably Seen These Annoying Cookie Banners Asking For Your Permission. Next Time You See Them, Don’t Just Click On Accept But Look At What Cookies The Website Wants To Place On Your Computer And For What Purpose.
Conclusion
Cookies Were Invented To Make Our Lives Easier And Allow Us To Stay Signed in to Websites Or Remember The Settings That We Changed. However, The Downside Is That Cookies, Along With Other Techniques, Can Be Used By Large Corporations To Follow Us Around On The Internet And Gather Data About Us That They Can Potentially Sell To Others.
0 Comments