Setting up your WordPress privacy-friendly
Published: â 1 Comment Last update:
By default, WordPress is not configured very privacy-friendly. However, you can improve it with tweaking settings and some plugins â because the community got you covered.
Default plugins
While not everybodyâs favor, WordPress comes with two preinstalled plugins, Akismet Anti-spam and Hello Dolly. While the latter has no privacy implications, the first one actually does. Akismet sends so many data to servers of Automattic in the US, that itâs hard to practically impossible to justify its usage. Aside of it, its privacy policy is nowhere near the requirements in the European Union.
Thus, uninstall the Akismet plugin. And since youâre already in the plugins screen, uninstall Hello Dolly, too.
Emojis
Who would have thought that emojis can have a negative impact on your visitorâs privacy? This is because, by default, WordPress loads emojis from WordPress.org if the current client doesnât support them natively. Since there is no valid reason to do so (since you could also just load them locally), you should disable that. Aside of it, itâs just no more thing. In practice, all devices nowadays support emojis out of the box. You can use the plugin Disable Emojis to have it disabled.
Avatars
All avatars in WordPress are loaded via Gravatar by default. Itâs a service to link email addresses to avatars (and some other features). Basically, if you have a Gravatar account, you can add your email address(es) there and define an avatar for it, which will then be displayed magically everywhere youâre using this email address (if Gravatar is supported). While this sounds like a cool idea â and it certainly is from this perspective â it leads to sending your email address (in hashed form) to Gravatar from every website youâve added it. Thus, Gravatar knows exactly, which websites youâve visited. Gravatar is also a service from Automattic and as already declared with the Akismet plugin problem, they donât really care for privacy laws outside of the US. Thus, sending such information â which are definitely personal â is problematic without consent from the user. But WordPress does it automatically, for every registered user and even for everyone commenting one of your posts.
There are two solutions for it.
Disable avatars
You can disable using avatars completely. To do so, go to Settings > Discussion > Avatars > Avatar Display and disable the checkbox of the option âShow Avatarsâ. This will disable any avatar logic and thus wonât send any data to Gravatar.
Avatar Privacy
You can use the plugin Avatar Privacy to enhance privacy for avatar usage. It comes with the following features:
- Load Gravatar images only after explicit consent by the user
- Cache Gravatar images to load them locally after the first request
- Donât leak hashed email addresses in Gravatar URLs
- Adds an option to upload avatars locally
In practice, you can install Avatar Privacy and are good to go, while still using the avatar functionality from WordPress.
Disable comment IP address storage
WordPress stores the IP address of anyone commenting in your site indefinitely. While it may be arguably to collect it for a short time, e.g. to check it for known spam IP addresses, storing it indefinitely is generally prohibited. Thus, you should disable it.
You can either use a plugin for it, called âRemove IPâ (donât be afraid regarding its latest update date, itâs just so small it doesnât need an update):
Or, you can use a code snippet and add it to your site via MU plugin in /wp-content/mu-plugins
:
<?php
\add_filter( 'pre_comment_user_ip', '__return_empty_string' );
Code language: PHP (php)
Delete stored IP addresses
If you already have comments on your site, you should delete already stored IP addresses now. Thereâs also a plugin for this, called âGDPR Tools: comment ip removementâ:
Comment spam
Since Akismet should be uninstalled immediately, you may suffer from comment spam. To solve this issue, the Pluginkollektiv is maintaining a free and privacy-friendly plugin called âAntispam Beeâ to fight comment spam.
Block embeds
Adding embeds to your site always means that youâre loading external resources. This has not only performance implications, but also generates problems regarding privacy. If you canât or donât want to do without it, use the plugin âEmbed Privacyâ. It adds an overlay over the embed and only loads the latter if a user explicitly enables it.
Disable REST API
WordPress comes with a REST API builtin and also needs it for internal functionality. However, it can also be used to easily extract data from your site, e.g. the names of all users. The plugin âDisable REST APIâ allows you to manage API access per user role and also for unregistered users to prevent such data leaks.
Analysis
Tracking is usually never privacy-friendly. Thus, maybe itâs the best to donât track your users at all. Especially with well-known tools like Google Analytics. They collect so many data that itâs even hard to define which. Aside of self-hosting options like Matomo, probably an even more privacy-friendly plugin is an option. While Statify collects only page visits and thus never even need a consent, Koko Analytics can be configured the same way (or it tracks users with a cookie or fingerprinting, which may need a consent again).
Newsletter
Using a newsletter itself is fine, if doing right. And itâs often done on a WordPress site, thatâs why itâs part of this guide. You definitely need to have a so called double opt-in mechanism. That means, that if a user registers to your newsletter, you need to send an email to the given email address, where the user has to click on a link to verify that the register process was indeed desired. Only after this confirmation, youâre allowed to send emails.
Additionally, while it may look friendly to call your newsletter subscribers by their actual name, never make such input fields required. They are not mandatory to send a newsletter at all. Itâs fine to make them optional for an improved user experience, but it should be up to them whether they want to give you their name.
Keep also in mind that the vast majority of newsletter providers use tracking links in their emails that are being sent to your subscribers to check whether and how they engaged with your newsletter. Make sure to use this functionality compliant with the privacy laws applicable to you, if you do use them.
WooCommerce
When using WooCommerce on your site, make sure to check the settings. Some of them are definitely neither desired, nor have any benefit for you â but for Automattic, the company mainly maintaining WooCommerce.
Some of these settings can be found in:
- WooCommerce > Settings > Advanced > WooCommerce.com > Usage Tracking > Enable tracking
- WooCommerce > Settings > Advanced > Features > Order Attribution
- WooCommerce > Settings > Advanced > Features > Remote Logging
This list is not necessarily complete. Additionally, each update can add new options, and sometimes even change existing options and (re-)enable them. So make sure to check the WooCommerce settings on a regular basis.
Privacy policy
Last, but definitely not least, your site likely needs a privacy policy, since any data is always collected/processed (thatâs how the networks and the internet work). You can get one by a lawyer, use an online generator or my plugin âImpressum Plusâ, which does most of the work automatically to generate a privacy policy, which is tailored to your site.
You can also find out more in my dedicated post regarding privacy policy in WordPress.
Conclusion
If you want to start your site with WordPress, thereâs definitely something to do when you want to have a privacy-friendly website. Luckily, nothing of it is magic and even possible without any technical knowledge. I hope, this list can guide you through the work.
đ WP-Statistics would be another tool to add