Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
Created February 21, 2020 10:23
Show Gist options
  • Save niklaskeerl/d9be05b784a142c6c618a949a9bcb7d8 to your computer and use it in GitHub Desktop.
Save niklaskeerl/d9be05b784a142c6c618a949a9bcb7d8 to your computer and use it in GitHub Desktop.
Disable Gravatar requests on wordpress

What is the issue?

Even if you completely disable avatars on your wordpress website, it will still load avatars from https://secure.gravatar.com when members of your team log into the website. In order to fix this privacy issue we can use a plugin to use a locally stored avatar for scenarios where avatars can't be disabled completely.

Installation

Let's assume your wordpress website is: https://example.com

  1. Log into your worpress website:

Go to https://example.com/wp-admin and use your administrator credentials.

  1. Install the 'Redirect Gravatar requests' plugin:

Go to https://example.com/wp-admin/plugin-install.php?s=Redirect+Gravatar+requests&tab=search&type=term

  1. Disable avatars or use a standard avatar which is stored locally

You can find the settings for that here: https://example.com/wp-admin/options-discussion.php

Success

Congrats, now you won't have any more requests going to https://secure.gravatar.com .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment