Extension:BlockAndNuke
![]() |
This extension is incompatible with the current stable MediaWiki 1.23 release! You are advised against using this extension on a live site.
|
BlockAndNuke Release status: beta |
|||
---|---|---|---|
Implementation | Special page | ||
Description | Gives sysops the ability to mass block spam accounts and delete all contributions made by those accounts. | ||
Author(s) | Eliora Stahl, MarkAHershberger | ||
MediaWiki | 1.19+ | ||
PHP | 5.3+ | ||
Database changes | No | ||
License | GNU General Public License 3.0 or later | ||
Download |
README |
||
Example | http://thepetwiki.com/wiki/Special:Log/block | ||
|
|||
|
|||
|
|||
Translate the BlockAndNuke extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
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.
Contents
Installation[edit | edit source]
- Download and place the files under $IP/extensions/BlockAndNuke
- Add to the end of LocalSettings.php:
-
require_once "$IP/extensions/BlockAndNuke/BlockandNuke.php";
- 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");
-
- Installation can now be verified through Special:Version on your wiki.
Use[edit | edit source]
Edit file extensions/BlockAndNuke/whitelist.txt. List 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).
Integration with Extension:UserMerge[edit | edit source]
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".
Command line for mass action[edit | edit source]
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.
Logs and Unblock[edit | edit source]
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 | edit source]
- Extension:BlockBatch — Block a batch of users
- Extension:DeleteBatch and the deleteBatch.php maintenance script - Delete multiple pages using a text file containing the names
- Extension:NukeDPL — Delete multiple pages using 'Dynamic Page Lists'
- Manual:DeleteArchivedRevisions.php - Script to permanently blow away pages after deleting them (e.g. after using Extension:Nuke)
- Extension:DeletePagePermanently - Adds a tab for deleting an individual page permanently.