From mediawiki.org
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
MediaWiki extensions manual
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+
Tables blockinactive_emails
License MIT License

  • $wgBlockInactiveThreshold
  • $wgBlockInactiveDaysBlock
  • $wgBlockInactiveWarningDaysLeft
Quarterly downloads 0
Translate the BlockInactive extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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.


  • 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 file:
    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.


  • $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


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