: MediaWiki spam, deleting last days 2 days ago I did the mistake of updating my MediaWiki site, without transfering my old user management plugin. My site was shut down from my host for mail
2 days ago I did the mistake of updating my MediaWiki site, without transfering my old user management plugin.
My site was shut down from my host for mail spam and there are now over 14 million new pages and so many users that i can't go through and delete them by hand.
I tried using the Nuke extention, but after deleting 150000 items it cant do pattern search, giving the error "There are no new pages in recent changes."
Is there a way to delete all new pages and users created within x number of days or by filtering the Nuke extention by date?
More posts by @Odierno851
1 Comments
Sorted by latest first Latest Oldest Best
See the comments, but if you're set on this solution you can use deleteBatch.php.
Assuming the timing of the attack is what you said, it would be something like:
mysql -e "select page_title from page where page_touched between 20150319000000 and 20150322000000 into outfile '/tmp/pagelist.csv'"
php maintenance/deleteBatch.php --conf LocalSettings.php -r "Mass deletion of spam attack pages." /tmp/pagelist.csv
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.