mediawiki

Is there a way to disallow Mediawiki users to edit any User: page?


I want to disallow that my registered Mediawiki users are able to modify their User page. Anything else should be editable by default as usual.


Solution

  • Two methods:

    1. Set limit in LocalSettings.php: Add them to bottom of LocalSettings.php:
    $wgNamespaceProtection[NS_USER] = "editprotected";
    

    Then, only sysop can edit it, if you want disable anyone to edit, replace editprotected to abcdefghijklmnopqrstuvwxyz or other undefined rights.

    1. Use AbuseFilter: Create thia filter:
    page_namespace = 2
    

    And set action of this filter to "block".