Mobile app version of vmapp.org
Login or Join
Heady270

: How to batch remove spamming users and pages they created on MediaWiki? I'm trying to clean up a MediaWiki instance which has been subjected to spamming and vandalism for a period of time.

@Heady270

Posted in: #Mediawiki #Spam #SpamPrevention

I'm trying to clean up a MediaWiki instance which has been subjected to spamming and vandalism for a period of time. The current status is that there are a large number of users which only created spam pages but typically not altered legitimate pages. And there is only < 10 users which I know are legitimate users and created a small number of legitimate pages. Abstractly, my idea of fixing the messy situation is to find the complete list of users that are not in that small set of legitimate users, and use RenameUser extension to rename them all to a Spammer user, and use Nuke extension to mass delete all pages it created. Any practical advice on how to proceed? Since there are hundreds of spammer users, how do I effectively rename them? It seems Renameuser extension does not support automated batch renaming of users by allowing users to be renamed with a list or file.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Chiappetta492

I suggest installing Extension:BlockAndNuke to stop spam. It lets you instantly block users as well as nuke their contribs. A whitelist of legitimate users can be provided to be exempt from being shown on the list of nukable users. You'd whitelist your allowed users then use ctrl-a to select all and click the relevant button to block and nuke the user.

10% popularity Vote Up Vote Down


 

@Chiappetta492

To delete all the spam pages, instead install extension DeleteBatch. Edit a script file from Special:AllPages of all the page names you want deleted. Load this into Special:DeleteBatch. Use PHPmyAdmin to mass delete the unwanted users.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme