On this page
Overview
Cookie law sets rules for storing or reading information on a visitor's device. It covers cookies and similar technologies, such as local storage, tracking pixels and device fingerprinting. In the UK the rules are in the Privacy and Electronic Communications Regulations (PECR). In the EU they come from the ePrivacy Directive, which each country puts into its own law.
This page is general guidance, not legal advice. Whether your website meets the law is your decision, so check with your own adviser if you're unsure.
The basic rule
Before your website stores or reads a cookie on a visitor's device, you must do two things:
- Tell the visitor clearly what the cookie does.
- Get their consent.
You don't need consent for cookies that are strictly necessary for something the visitor asked for. A shopping basket, a sign-in session and the cookie that remembers a visitor's choice are common examples.
In the UK, the Data (Use and Access) Act 2025 added more exceptions to PECR from 5 February 2026. Some cookies used only for statistics about your own website, or to remember how a visitor wants it to look, no longer need consent. You must still explain them, and give visitors a simple, free way to object.
What valid consent looks like
Consent for cookies has to meet the standard set by the UK GDPR and the EU GDPR. Regulators expect consent to be:
- Given by a clear action. The visitor selects a button or a switch. Carrying on browsing is not consent.
- Asked for first. Non-essential cookies wait until the visitor agrees.
- Off by default. Optional categories are not turned on or pre-ticked.
- No harder to refuse than to accept. Rejecting takes no more effort than accepting.
- Specific. Visitors can choose by purpose, not only all or nothing.
- Possible to withdraw. Visitors can change their mind at any time.
- Provable. You can show that a visitor gave consent.
What you need to do
Most websites follow the same five steps.
- Find out which cookies your website sets, and why.
- Tell visitors about them in a cookie notice and on your cookie banner.
- Ask for consent, and hold back non-essential cookies until visitors agree.
- Keep a record of each visitor's choice.
- Check again whenever your website changes.
How CookieScan helps
CookieScan gives you tools for each step. How you set them up, and whether that meets the law for your website, stays your decision.
| What the law asks | What CookieScan does |
|---|---|
| Know your cookies | Scans your website and sorts cookies into Necessary, Preference, Statistics, Marketing and Unclassified. |
| Tell visitors | Provides an automatic cookie notice, and lets you edit the banner's wording and links. |
| Ask first | Shows a cookie banner with Accept all, Reject all and Adjust. |
| Hold cookies back | Auto-blocking stops cookies it can block until the visitor agrees. |
| Keep records | Records each choice in the Consent Log, with a proof of consent download. |
For each tool, see:
Auto-blocking works only when you turn on Auto-block cookies. Cookies a visitor accepted earlier stay on their device after they choose Reject all. See Cookies are still there after Reject all.
Read the rules yourself
These are the regulators' own pages: