TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Shouldn't web browsers ask us before storing cookies?

74 pointsby jakemorover 5 years ago
Every time we visit a GDPR compliant site, we are greeted with the all too familiar (yet far from homogeneous) popup asking us to either accept or deny the site&#x27;s privacy policy and cookie behavior.<p>I&#x27;d like to point out how this law is hurting the web.<p>When the onus is on the developer to ask a user for permission, the user is forced to trust the developer. For example when a website asks me if they can store cookies in my browser, and I say no, there is no easy way of me knowing if that site is actually listening to me.<p>Wouldn&#x27;t it be cleaner if the burden was on the browser to ask us for permission?<p>In iOS for example, the operating system asks you if you&#x27;d like to grant an app access to your camera... not the app itself! Imagine we had to blindly trust an app to not use our camera, without any help from Apple. Mayhem!<p>Instead, the EU mandates that developers ask permission. Developers place a stupid looking div filled with legal jargon on their homepage. We roll our eyes and click accept. Good actors (who respected our privacy in the first place) continue to respect our privacy. Bad actors continue to ignore it.

26 comments

fitzroyover 5 years ago
Instead of asking for each site, just allow first-party cookies and delete them by default when the last tab of that domain is closed. The user should be able to favorite cookies to keep indefinitely, with the rest being cleared on a user-defined schedule (onTabClose, 1 hour, 24 hours, 1 week, etc). There was a free Safari extension called Safari Cookies that handled the favoriting but it stopped working several years ago. <a href="https:&#x2F;&#x2F;sweetpproductions.com&#x2F;safaricookies&#x2F;index.htm" rel="nofollow">https:&#x2F;&#x2F;sweetpproductions.com&#x2F;safaricookies&#x2F;index.htm</a><p>I&#x27;m surprised this isn&#x27;t a standard feature built into browsers. Seems like it would be obvious to have a level of granularity between accept all first-party cookies and accept none.<p>Edit: to clarify, I don&#x27;t think setting cookies is the issue (and not worth the UX hassle to ask everytime); the issue is storing the cookies for longer than the interaction persists. To me, it&#x27;s analogous to someone remembering who you are during a conversation vs adding you to their rolodex and storing that info indefinitely.
评论 #21429937 未加载
评论 #21430075 未加载
proofofconceptover 5 years ago
As I remember it, this was an option you could enable in Netscape Navigator back in the dialup days. In practice it meant that every time you went to a new website you&#x27;d have to click ok on a dozen popup menus asking for permission to store each individual cookie before the page would load. I&#x27;m sure there are ways to make that process go a little more smoothly but in practice it&#x27;s still probably something that most users would immediately turn right off.
评论 #21429874 未加载
评论 #21429761 未加载
hos234over 5 years ago
It used to be an option in Firefox. You have to go dig around bugzilla to find the reasons they removed it -<p><a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1249151" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1249151</a><p><a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=606655" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=606655</a>
评论 #21429888 未加载
评论 #21429859 未加载
tempestnover 5 years ago
From my perspective, a lot of the problem is that there are very legitimate uses for cookies and other types of local storage, outside of advertising and other sorts of tracking. IE remembering user preferences, knowing what messages they&#x27;ve seen, that kind of thing. It would be a huge hindrance to not be able to persist any kind of state between visits. The real issue in most cases are third party cookies from ads and other trackers, but in almost everyone&#x27;s understanding these are all lumped together into the single category of &#x27;cookies&#x27;.<p>Of course, it&#x27;s not quite as simple as &quot;first party cookies fine, third party bad&quot;, since when you&#x27;re on a domain like google.com for example, a whole lot of tracking goes on with first party cookies. But still, that can be dealt with. If I were coming up with a regulation (be it enforced at the browser or site level) it would make a distinction between first party cookies on domains serving up to X users per month, first party cookies on domains serving over X users per month, and third party cookies on all domains. The first of those categories could, I think, be unregulated. Save messages and&#x2F;or restrictions for the other two and I think it would go a lot further toward achieving the goals of these sorts of initiatives, while being much less of a useless annoyance.<p>Firefox is going in this direction somewhat with their default blocking of third party cookies, but there&#x27;s nothing they can really do unilaterally to treat first party cookies on google.com differently from bobsblog.com.
neilobremskiover 5 years ago
I agree that &quot;this law is hurting the web&quot; but I don&#x27;t see how shifting that from the website to the application is going to solve the root issue. Prompts like these are annoying speed bumps that I have a hard time believing are in anyway effective -- paranoid people already deeply evaluate the software and services they use whereas the casual user is likely to just to &quot;yah yah, get this out of my face&quot; click it.
评论 #21430343 未加载
morpheuskafkaover 5 years ago
How about, if you install software such as a web browser on your computer that has a certain functionality intentionally exposed via an API, and you then visit sites that make use of that API, you have given consent for them to use it. And if you don&#x27;t like it, you can reconfigure said browser to block them.
评论 #21429870 未加载
评论 #21429878 未加载
评论 #21429830 未加载
_jomoover 5 years ago
I&#x27;d like to point out that GDPR compliant sites don&#x27;t need to ask permission for strictly necessary cookies.<p>I also recommend using Cookie AutoDelete for Chrome [0] or Firefox [1]. You can define a whitelist of websites where you actually need Cookies (because you want to stay logged in), and the rest will be forgotten when you close the tab. It even allows different rules in Firefox Containers.<p>0: <a href="https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;cookie-autodelete&#x2F;fhcgjolkccmbidfldomjliifgaodjagh" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;cookie-autodelete&#x2F;...</a><p>1: <a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;cookie-autodelete&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;cookie-autode...</a>
评论 #21429768 未加载
Nextgridover 5 years ago
The GDPR consent prompts are less about technicalities (are you using cookies or local storage) and more about giving the side permission to stalk you no matter what method they use.<p>The real problem here is the lack of enforcement of the regulations. The majority of GDPR consent prompts are obnoxious because they aren&#x27;t actually compliant - compliant ones are much more pleasant. See this comment I just posted on another GDPR thread: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21429666" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21429666</a><p>Finally there&#x27;s this misconception (it could be a lie perpetuated by companies looking to profit from GDPR-related consulting, or those looking to push back on the regulation by making it seem more annoying than it actually is) that <i>all</i> cookies require consent. That is blatantly false. Cookies to store site preferences (like language, font size), shopping carts or login sessions don&#x27;t require consent as they&#x27;re necessary for the functionality you&#x27;re trying to use.
评论 #21430057 未加载
评论 #21429765 未加载
userbinatorover 5 years ago
IE had it up to version 11:<p><a href="https:&#x2F;&#x2F;www.technipages.com&#x2F;wp-content&#x2F;uploads&#x2F;2014&#x2F;07&#x2F;IE-Advanced-Cookies-Settings.png" rel="nofollow">https:&#x2F;&#x2F;www.technipages.com&#x2F;wp-content&#x2F;uploads&#x2F;2014&#x2F;07&#x2F;IE-Ad...</a><p>Edge is dumbed-down and removes, among other things, that option:<p><a href="https:&#x2F;&#x2F;answers.microsoft.com&#x2F;en-us&#x2F;edge&#x2F;forum&#x2F;all&#x2F;cookie-controls-in-edge&#x2F;082462e6-0746-48db-bcdc-0c03373d8a4e" rel="nofollow">https:&#x2F;&#x2F;answers.microsoft.com&#x2F;en-us&#x2F;edge&#x2F;forum&#x2F;all&#x2F;cookie-co...</a>
oliwarnerover 5 years ago
Storing data in a cookie is not the dangerous bit, it&#x27;s the intent, the <i>what you&#x27;re storing that data for</i> which matters.<p>A browser popping up a prompt saying &quot;google.com wants to store a cookie, is that okay?&quot; isn&#x27;t enough.<p>The design of these cookie and enhanced data protection laws is that websites need to spell out their intent. To tell people what data they&#x27;re storing <i>any why</i>. Yes, you could code that into headers and have the browser relay that information, but that&#x27;s the stalemate we&#x27;re in.
wronexover 5 years ago
How about Firefox Temporary Containers?<p><a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;temporary-containers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;temporary-con...</a><p>I think they compartmentalize each tap until it is closed. Dunno if it only clears cookies or all other forms of storage.<p>Cookies get all the bad press when there is many other ways to store data. Or does the word &quot;cookie&quot; encompass all forms of persistent storage?
Bugeover 5 years ago
100% agree, I&#x27;ve argued for this same thing in the past.<p><a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;worldnews&#x2F;comments&#x2F;7h28hi&#x2F;google_could_be_forced_to_pay_over_five_million&#x2F;dqoj1g6&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;worldnews&#x2F;comments&#x2F;7h28hi&#x2F;google_co...</a>
kd5bjoover 5 years ago
Note that the GDPR isn’t just about cookies, it’s about <i>all</i> collection of personalized information, in any form. It also outlines plenty of scenarios that don’t require a separate permission request beyond simply doing business with a company.<p>We’re only in the midgame of this particular regulation— the rules changed “suddenly” and specified outcomes rather than methods. Regulators and businesses are in the messy stage of negotiating best practices as businesses change as little as possible and regulators give fines for misconduct.<p>The hope is twofold: that enough users will opt out to make problematic business models less profitable, and that the lower user friction of models that don’t require tracking will become relatively more successful. Neither of these goals is served by allowing a blanket permission setting.
diminotenover 5 years ago
&quot;Shouldn&#x27;t&quot; implies some kind of higher authority capable of enforcing such a feature universally across browsers, when no such authority exists.<p>Browsers give you all kinds of opt-out capabilities, if that&#x27;s something you&#x27;re interested in. The fact is, most people aren&#x27;t interested.
评论 #21429598 未加载
gpvosover 5 years ago
IIRC, in the early days, they did ask for every cookie.
评论 #21429868 未加载
dynomover 5 years ago
Your suggestion makes a lot of good sense. Cookies aren&#x27;t the real threat though. Surely cookies are used for both wanted and unwanted tracking. Passive tracking however (fingerprinting of any form) will remain the threat we can&#x27;t block and we won&#x27;t know is happening.<p>If we add a mechanism to allow the OS to handle cookies, bypassing possible untrusty browser vendors. We won&#x27;t solve much and create a false expectation, while (arguably) break more than we fix.<p>This doesn&#x27;t mean we shouldn&#x27;t, but if a method is found, it should include a significantly more comprehensive form of anonymity.<p>--2 cents
rolphover 5 years ago
I usually right click and select an element blocker.<p>There was a time wayy back when a browser would prompt user when site requests to push out a cookie [up to about mid 90&#x27;s AFAIR], but that was before the web was hijacked for commercial interests.<p>now there are often so many cookies with the typical website that a manual dialogue would waste all your user time.<p>so i think thats where the decision was made to include all cookies, in one broad permission setting.
Rarokover 5 years ago
Internet Explorer (in the time of Windows 95) did that and people didn&#x27;t liked and always checked the &quot;Never ask my again&quot; checkbox
ecesenaover 5 years ago
Browse in anonymous&#x2F;private mode.<p>There’s unfortunately little difference between cookies used to keep you logged in and to track you. Therefore no cookies = log in every time. As long as you’re ok with that, go for it!
simpssover 5 years ago
GDPR does not require &quot;cookie consents forms&quot; and neither do the EU e-privacy rules. There are clear exemptions for authentication and other technical cookies.<p>Basically, the form is only required if you&#x27;re doing something nastier, like tracking.<p>I&#x27;ve never understood why sites just run with the concept and implement the &quot;permission form&quot; when it really isn&#x27;t required for good actors.<p><a href="https:&#x2F;&#x2F;wikis.ec.europa.eu&#x2F;display&#x2F;WEBGUIDE&#x2F;04.+Cookies#section_2" rel="nofollow">https:&#x2F;&#x2F;wikis.ec.europa.eu&#x2F;display&#x2F;WEBGUIDE&#x2F;04.+Cookies#sect...</a><p>ps: for firefox I use &quot;cookie autodelete&quot; extension <a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;cookie-autodelete&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;cookie-autode...</a>
butzover 5 years ago
Upcoming ePrivacy law should fix this nonsense with cookie banners. Although, having cookies permissions settings, like notifications and location in browser UI would be great.
frippledippsover 5 years ago
It&#x27;s just the beginning. Given the logic of the allmighty regime, each web link has to have a label describing all privacy impacts it might have if you click on it. The link will only open if you confirm.
johnchristopherover 5 years ago
But that would place the responsibility to enforce GDPR on browsers vendors, not publishers. GDPR is about private information, the browser isn&#x27;t interested in that, the publisher is, so the responsibility falls on the publishers.
JohnTHallerover 5 years ago
They used to. Everyone hated it. They stopped.
tinus_hnover 5 years ago
Do you really want 120 questions for each site you open?
评论 #21430103 未加载
评论 #21429746 未加载
DoubleGlazingover 5 years ago
It would be almost impossible to enforce. Publishers have a point of contact, an address or a hosting company, some sort of physical place where you can find whoever is in charge of the site. In other words, somewhere to send legal documents and summonses should a government wish to pursue legal action.<p>This is only partly true for web browsers. Google, Mozilla and Microsoft have addresses. But what all the browsers that have forked from open source projects? If someone forks Chromium and adds nasty features, how do you track them down if they did everything anonymously?<p>More to the point, if a law is passed that says &quot;all browsers must do X,Y and Z&quot;. How to you enforce that in a world where open source is so prevalent? The big players may add the requirements to their flagship browsers, but if those browsers have open source underpinnings they have no control over the forked versions.<p>It&#x27;s the publishers who are abusing browser capabilities, its much easier to force them in to compliance rather than trying to legislate how browsers work.
评论 #21430381 未加载