Publications / Law and cookies
“Accept all” and “Reject all” – how to design the choice in a cookie banner
Refusing must be as easy as consenting. What the GDPR, the CJEU and European data protection authorities say about buttons, colours, the close button and withdrawing consent – and how to check it on your own website.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
The visitor must get a real choice: refusing must be as easy as consenting. This follows from the definition of consent in the GDPR, and in practice European data protection authorities assess whether the “Reject all” button is as accessible as “Accept all”. Below are the rules you can check on your own website and the places where banners most often break them.
Where the rules come from
Consent to cookies that are not strictly necessary is required by Article 5(3) of the ePrivacy Directive (implemented in the national laws of each Member State). How that consent must look is set by the GDPR:
- Article 4(11) – consent must be freely given, specific, informed and unambiguous, given by a statement or by a clear affirmative action;
- Recital 32 – silence, pre-ticked boxes or inactivity are not consent;
- Article 7(3) – withdrawing consent must be as easy as giving it.
The Court of Justice of the EU confirmed in the Planet49 judgment (C-673/17, 2019) that a pre-ticked box is not valid consent to cookies. The European Data Protection Board (EDPB) set out the details in Guidelines 05/2020 on consent, and in 2023 its Cookie Banner Taskforce recorded the authorities' common position on the most frequent practices.
What a data protection authority assesses
1. Refusal on the first screen
If the first screen has “Accept all” but refusing requires going into the settings and unticking categories, refusing is harder than consenting. In the 2023 EDPB taskforce report, most authorities found that not offering refusal at the same level as consent is an infringement. The safe solution: “Reject all” next to “Accept all”, in the same place.
2. Equal appearance
The law does not specify colours, but authorities assess whether the design steers the visitor towards one answer. Typical objections:
- “Accept” as a large, coloured button and “Reject” as a small grey link;
- refusal in the background colour or with such low contrast that it is hard to notice;
- refusal hidden in the text (“you can also manage the settings”).
The simplest approach is to give both buttons the same style and size. The third button, “Settings”, can look different – it leads to the choice of categories and is neither consent nor refusal.
3. No pre-ticked boxes
In the settings, categories other than necessary must be off until the visitor turns them on (Recital 32, Planet49 judgment). The “Necessary” category can be permanently on – it does not require consent.
4. The × button, scrolling and continued browsing
Closing the banner with the × button, scrolling the page or moving on is not consent. If the banner has a × button, clicking it can at most close the banner without saving consent – scripts that require consent stay blocked.
5. Withdrawing consent at any time
Since consent is given with one click, withdrawing it cannot require searching the privacy policy for an email address. A permanent icon in the corner of the page or a “Cookie settings” link in the footer that opens the same settings as the banner is enough.
6. Real categories
The EDPB taskforce also pointed to labelling analytics or advertising tools as “necessary” and to relying on “legitimate interest” instead of consent. The classification depends on what the tool actually does, not on the name of the category in the banner.
How it works in consetgo
The module's default banner (since version 1.3.36) has three buttons in one row: Accept all · Settings · Reject all. On a phone the buttons are stacked one below the other, in the same order.
- The option “Enforce parity of ‘accept’ and ‘reject’” (on by default) gives the reject button the same style as the accept button.
- In the settings, categories other than necessary are off until the visitor turns them on; saving requires clicking “Save choices” or “Accept all”.
- The × button and the Esc key do not save consent. Closing the settings window saves only a withdrawal of earlier consent that the visitor made themselves.
- The icon in the corner of the page and a link with the
data-consent-openattribute open the settings at any time; changing consent reloads the page so that withdrawn scripts stop running.
You set the look, order and colours of the buttons in the Banner appearance tab. You can check this in the panel demo.
Checklist
- “Accept all” and “Reject all” on the first screen, next to each other.
- Both buttons the same size and the same style; refusal is not a link in the text.
- In the settings, categories other than necessary off at the start.
- The × button, scrolling and Esc do not save consent.
- A permanent icon or footer link opens the settings on every page.
- Analytics and advertising tools are not in the “Necessary” category.
- After rejection, scripts that require consent do not load – check this with the test from the article How to check whether a website sets cookies before consent.
This article describes EU law and the positions of European authorities; it is not legal advice. Details and sources: EDPB guidelines, case law and the cookie banner guide.
Questions and answers
Does the “Reject all” button have to be on the first screen of the banner?
In 2023 most data protection authorities in the EDPB Cookie Banner Taskforce found that not offering refusal at the same level as consent infringes the rules. The safest option is to place “Reject all” next to “Accept all” on the first screen.
Do the buttons have to be the same colour?
The law does not specify colours. Authorities do, however, assess whether the design discourages refusal – e.g. refusal as a barely visible link next to a highlighted consent button. Giving both buttons an equal look removes this problem.
Is closing the banner with the × button consent?
No. Consent requires a clear affirmative action (Article 4(11) GDPR). Closing the banner or scrolling the page does not mean consent – scripts that require consent must stay blocked.
How easy must it be to withdraw consent?
As easy as it was to give it (Article 7(3) GDPR). In practice: a permanent icon or footer link that opens the settings at any time, without searching through the privacy policy.
This is general information, not legal advice.