Cookie Law Introduction – This law protects the privacy of users on the Internet.
The next step is to block cookies, and then unlock after obtaining consent. This step is the most difficult from a technical point of view.
Cookies are simple text files that are created and stored on the user's computer when visiting the site. They store user data: login credentials and temporary session information.
In general, cookies enhance the user experience and make it more personalized. But they can also be used when displaying retargeted ads. At the same time, cookies often become available to several sites or advertising providers.
By default, WordPress generates two different types of cookies: for the session and for the comments. The first ones are set when the user visits the site and saves their authentication data. The latter include a username, email address and a URL to automatically fill out a form when commenting on a post.
Cookies notification plugins
Below are three of the best plugins you can use to make cookies easier.
In addition, the plugin has not been tested with the latest versions of WordPress. It can also cause security problems.
But, like the previous version, this plugin also does not block cookies. It just shows a banner and a link to the usage policy.
How to block cookies on a WordPress site
Let's consider setting up the iubenda Cookie Solution plugin in more detail. Installation and activation of the plugin occur in a standard way. After that, click on the iubenda icon on the left side of the WordPress admin panel. After that, you will be taken to the plugin settings page.
Below there will be a large field requesting your iubenda code to activate the plugin.
To get the code, you need to create an account on the official iubenda website and activate the Cookie Solution tool.
After entering the activation code, you can proceed to additional settings. The plugin automatically blocks some of the most popular scripts. Others can be added in the Scripts section.
This guide covers three plugins for blocking cookies and obtaining consent to their use on the site:
- Illmenite Cookie Consent. A lightweight solution to add a cookie notification. But it does not allow full compliance with EU law.
- GDPR Cookie Consent Banner. The plugin is easy to configure, but it does not block cookies directly.