Extension:AnonPrivacy
AnonPrivacy Release status: stable |
|
---|---|
Implementation | User interface |
Description | Hides the IPs of anonymous users to everyone but admins. |
Author(s) | Sophivorustalk |
Latest version | 1.1 (2020-03-15) |
MediaWiki | 1.35+ |
License | GNU General Public License 3.0 |
Download | |
|
|
Quarterly downloads | 11 (Ranked 119th) |
Translate the AnonPrivacy extension if it is available at translatewiki.net | |
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.
If an anonymous user moves a page, their IP address will be shown even with anonprivacy
turned on.
Installation
- Download and move the extracted
AnonPrivacy
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AnonPrivacy - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'AnonPrivacy' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
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
:
$wgGroupPermissions['groupname'] = 'anonprivacy';
IPs can still be seen through the API via for example api.php?action=feedrecentchanges
.
Syndication feeds can be disabled by adding the following to the bottom of your LocalSettings.php
:
$wgFeed = false;
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
:
$wgEnableAPI = false;
Please notice that this feature is deprecated and will be removed in MediaWiki 1.32.
See also
- Manual:Preventing access - To prevent anonymous edits
- IP Editing: Privacy Enhancement and Abuse Mitigation on Meta