Extension:BlockAndNuke

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
BlockAndNuke

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Gives sysops the ability to mass block spam accounts and delete all contributions made by those accounts.
Author(s)Template:Extension#username
MediaWikiTemplate:Extension#mediawiki 1.25.x-1.27.x
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
README
ParametersTemplate:Extension#parameters
  • $wgBaNwhitelist
  • $wgBaNSpamUser
Added rightsTemplate:Extension#rights

blockandnuke

Hooks usedTemplate:Extension#hook
PerformRetroactiveAutoblockManual:Hooks/PerformRetroactiveAutoblock

Translate the BlockAndNuke extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The Block and Nuke extension allows sysops to mass block spam accounts and delete all contributions made by those spam accounts, in just two clicks.

Installation[edit]

  1. Download and place the files under $IP/extensions/BlockAndNuke
  2. Add to the end of LocalSettings.php:
    wfLoadExtension( 'BlockAndNuke' );
    
    And set the path for the "whitelist.txt" file, e.g.:
    $wgWhitelist = "$IP/extensions/BlockAndNuke/whitelist.txt";
    
    or
    $wgWhitelist = "http://www.mysite.com/extensions/BlockAndNuke/whitelist.txt";
    
  3. Installation can now be verified through Special:Version on your wiki.

Usage[edit]

Edit file "whitelist.txt" and add all registered users whose contributions to your wiki are not spam. This list must be edited manually. One username per line, e.g.

Admin
Dorris
Sam

Go to Special:BlockAndNuke. The special page is listed under Special:SpecialPages, under Page Tools, BlockAndNuke.

A checklist shows all users who made contributions since last use of this tool and are not listed in whitelist.txt. Default checklist: all checked. Select users you would like to block - all their contributions will be deleted. Click 'Select Users'. Then confirm by clicking the button 'BlockAndNuke'. Note: It is possible to use the 'Shift' and 'Control' keys on the keyboard to select ranges of users (particularly useful for long lists of users, when selecting and deselecting users one-by-one would be time consuming).

Command line for mass action[edit]

If you want to clean up hundreds or thousands of pages and accounts, there is a command line script -- ban.php -- that is easier to use.

Integration with Extension:UserMerge[edit]

If you have Extension:UserMerge installed, this blocked user's accounts will be merged with the user specified in $wgBaNSpamUser which, by default, is "Spammer". If you want this to work you will need to install code from here for UserMerge as the main branch of UserMerge does not have the necessary hooks in it.

Logs and Unblock[edit]

A log of all deletions and blocked users is maintained at Special:Log/delete.

If a user was blocked by mistake - to unblock a user go to Special:Unblock.

See also[edit]