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.
- MediaWiki 1.35+
- Clone the repository into your
extensionsfolder - Add
wfLoadExtension( 'BlockInactive' )to the bottom of yourLocalSettings.php - Run
php maintenance/update.php --quick - Configure
cronto runBlockInactive/maintenance/blockinactive.phpscript@daily--delay- parameter allows to specify delay (in seconds) between outgoing emails--dry- parameter runs script in dry mode not performing any email sending or blocks
- Navigate to
Special:BlockInactiveto see details
$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
blockinactive-config-mail-subject- Warning email subjectblockinactive-config-mail-body- Warning email bodyblockinactive-config-mail-block-body- Post-block email subjectblockinactive-config-mail-block-body- Post-block email body
blockinactive- allows to view theSpecial:BlockInactivepage, by default is granted tosysopandbureaucratgroups.
The extension adds a special alwaysactive right, users having this right will be fully ignored by the extension.
By default, the right is granted to the sysop group.