The EU’s Court of Justice has ruled that consumers must actively agree to have cookies installed on their computers.

In a judgment handed down on Tuesday, the court said websites cannot legally obtain permission to install cookies simply by having computer users accept a pre-checked box. Instead, the users must actively consent to the storing or accessing of non-essential cookies, such as tracking cookies for targeted advertising, before any cookies can be installed.