We already have that, the Do Not Track header. Advertising companies ignore it because they're not legally obliged to honor it. Reminder that these companies do not care about you or your user experience and will do anything they can to skirt the law to make an extra buck off you. And we can't rely on the competence of legislators because their answer is always more popups.
However, you do have weapons to defend yourself. My favorite is uMatrix. You can set it up to automatically block cookies from any site you don't have whitelisted. And you can make it only accept first party cookies. You can also have it block javascript, cross origin requests, frames by default. If a site doesn't work without scripts, you can easily enable them temporarily.
Ironically enough, they don't ignore it. They instead just use it as another bit of entropy to differentiate you from everyone else who doesn't include the DNT header.
The European ePrivacy regulation was meant to make DNT legally binding and enabled by default but it has been stuck in the European Council for about 3 (?) years now due to massive pressure from publishers. It's a real shame because it would improve the situation a lot.
The problem is that instead of stopping their abusive behaviour, tracking companies will make whole ranges of services as hard to use as possible and point towards lawmakers when people complain about them. Their flawed business model has collapsed because privacy has finally gotten attention and they're fighting tooth and nail to keep their awful businesses afloat.
There's a perfect setting in most browsers that the popups can already use, called "do-not-track". However, they don't want to use that because it's too easy to turn it on. So instead of listening to your preference, they will show the popup regardless and follow the rules to the most annoying extent of the law.
Really, people should just stop clicking through these goddamn popups and leave the website when they encounter them. The only way to stop this madness is to take away traffic from websites with shitty practices. This includes those damn notification scripts and those auto-playing videos.
You can choose not to be asked by any app in the settings.
In theory, what could possibly be wrong with explicitly warning users that they're being tracked with a hidden piece of data stored on their machines? However, in practice this has just led to a proliferation of popups on every website on earth. I'd bet that pretty much everyone just annoyingly clicks through whatever button gets them to the content. I wonder how many could even describe what a cookie is, let alone how it affects their privacy. And at the end of a day, people are perfectly willing to give up a little bit of their privacy in exchange for all the services available for free to the general consumer on the web.
I wish that the powers that be could see that the law has not had its intended effect and has instead just led to a degraded web experience for everyone.
Wether it was the intended effect or not, it has made it very clear just how scummy advertising companies are.
we need a law enforcing the standard to have teeth. otherwise it's just yet another standard not doing anything.
Christ almighty I don't think I can take more pop-ups.
They're just cancer. Cookies, newsletters, forced logins, individual folder permissions... how many bullshit popups do I have to deal with per day? It's just popup fatigue.
Pretty much the only popups I ever want to deal with are when apps need access to my private hardware (webcam etc.) or info (location, photos, contacts, etc.). You know, the actually important ones.
Things like cookies, tracking, etc. should be a browser- or OS-wide setting. Asking me individually for every site, for every app, is the absolute worst user experience ever. Sorry but this pattern just has to DIE.
My only hope is that the more that popups proliferate, the likelier there will be legislation against them, requiring system-wide settings instead. Kind of like legislation against unsolicited robocalls.