Extension:AnonPrivacy

The AnonPrivacy extension hides the IPs of anonymous users to everyone but admins, in the recent changes, related changes, watchlists, page histories, etc. IPs can still be found via the API.

Configuration
The extension introduces an extra user right called "anonprivacy". Any user with this right is able to see the IPs, while any user without it is not able to see them. Admins are given the right by default. To give the right to any other user groups, add the following to your LocalSettings.php:

IPs can still be seen through the API via for example. Syndication feeds can be disabled by adding the following to the bottom of your LocalSettings.php:

However, IPs will still visible through other API methods. Solving this issue should be a priority for future development. In the meantime, a workaround is to disable the API entirely by adding the following to the bottom of your LocalSettings.php:

Please notice that this feature is deprecated and will be removed in MediaWiki 1.32.