Extension:BlockInactive

From mediawiki.org
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
BlockInactive
Release status: stable
Description The extension helps wiki administrators to keep track of inactive users, send warning emails and block accounts.
Author(s) WikiWorks team
Maintainer(s) WikiTeq team
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35+
License MIT License
Download
README

  • $wgBlockInactiveThreshold
  • $wgBlockInactiveDaysBlock
  • $wgBlockInactiveWarningDaysLeft
users,block,inactive
blockinactive,alwaysactive
Translate the BlockInactive extension if it is available at translatewiki.net

Check usage and version matrix.

The extension is intended to help wiki administrators to keep track of inactive users, send warning emails to such users and then automatically block their account if no action were taken in time.

It's possible to configure number of days since last login to be considered as inactivity, number of days since last login to actually block a user account and setup a schedule for warning messages to be sent prior to blocking.

This extension was created for WikiWorks.

Installation[edit]

  • Download and place the file(s) in a directory called BlockInactive in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'BlockInactive' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

see Special:BlockInactive page.

Configuration[edit]

  • $wgBlockInactiveThreshold (default: 210) - Number of days since the last login to start considering user as inactive and begin sending reminders
  • $wgBlockInactiveDaysBlock (default: 270) - Number of days since the last login to actually block the user
  • $wgBlockInactiveWarningDaysLeft (default: 30, 5) - Schedule in form of days left before blocking to send warning emails on

Configure cron to run maintenance/blockinactive.php script @daily

Permissions[edit]

  • blockinactive - allows to view the Special:BlockInactive page, by default is granted to sysop and bureaucrat groups.