Under the new GDPR directives, we should provide ways to remove / block cookies that our sites send to the user's browsers upon user's request.

How to do it? Is there some HTML/javascipt solution to selectively remove the cookies?


  • Are you asking from a usability or implementation perspective? But either way, this seems too broad a question? "Is there some HTML/javascipt solution..." - what if you are setting cookies with your server-side code? What about 3rd-party cookies?
    – DocRoot
    Jun 19, 2018 at 20:37
  • I'm talking about the implementation of some tool to allow/disallow cookies being set, clicking on an Accept or Decline Cookies button. Here I found some ideas: stackoverflow.com/questions/10306254/…
    – Peanuts
    Jun 19, 2018 at 20:44
  • And even better would be having some customized optout links on the Cookies Policy page, to fine tune what people accepts and what not. Something like this, but applied to any cookie, not just Analytics: webgilde.com/en/analytics-opt-out
    – Peanuts
    Jun 19, 2018 at 20:49
  • 1
    I think the article at webglide.com is out of date. With regards to the new GDPR ruling, the overall logic is reversed. The user must now explicitly opt-in, not be implicitly opted-in, with an option to opt-out (as it used to be). By default, the user is implicitly opted-out.
    – DocRoot
    Jun 19, 2018 at 22:30


Browse other questions tagged or ask your own question.