BulkSpamCleanup: Difference between revisions

From Yosemite Manifesto
Jump to navigation Jump to search
(Created page with "This is how I (DBooth) did a bulk cleanup of wiki spam: 1. Enabled the extensions for batch deletion in wiki/LocalSettings.php on the server: <nowiki> ################# Exte...")
 
No edit summary
Line 1: Line 1:
This is how I (DBooth) did a bulk cleanup of wiki spam:
This is how I (DBooth) did a bulk cleanup of wiki spam:


1. Enabled the extensions for batch deletion in wiki/LocalSettings.php on the server:
'''1. Enable the extensions for batch deletion''' in wiki/LocalSettings.php on the server:
  <nowiki>
  <nowiki>
################# Extensions for batch deletion ####################
################# Extensions for batch deletion ####################
Line 10: Line 10:
</nowiki>
</nowiki>


2. Checked the list of [PagesNotCreatedByAdmin]]
2. '''Check the list of [[PagesNotCreatedByAdmin]]'''


3. If it looked like they should all or almost all be deleted, go to [[Special:NukeDPL]] and paste into the form:
'''3. Nuke the pages not created by Admin.''' If it looked like they should all or almost all be deleted, go to [[Special:NukeDPL]] and paste into the form:
  <nowiki>
  <nowiki>
   notmodifiedby = Admin
   notmodifiedby = Admin
Line 19: Line 19:
and submit.
and submit.


4. Uncheck any that should NOT be deleted, and submit.
Then uncheck any that should NOT be deleted, and submit.


5. Delete all revision history.  WARNING: this applies to *all* pages!  No 'undo' will be possible for any page after this!  See http://www.mediawiki.org/wiki/Manual:DeleteArchivedRevisions.php
'''4. Delete all revision history.''' WARNING: this applies to *all* pages!  No 'undo' will be possible for any page after this!  See http://www.mediawiki.org/wiki/Manual:DeleteArchivedRevisions.php
  <nowiki>
  <nowiki>
cd wiki/maintenance
cd wiki/maintenance
Line 29: Line 29:
</nowiki>
</nowiki>


6. Delete unused accounts (see http://www.mediawiki.org/wiki/Manual:RemoveUnusedAccounts.php ):
'''5. Delete unused accounts''' (see http://www.mediawiki.org/wiki/Manual:RemoveUnusedAccounts.php ):
  <nowiki>
  <nowiki>
cd wiki/maintenance
cd wiki/maintenance
Line 37: Line 37:
</nowiki>
</nowiki>


7. Disable the extensions for batch deletion in wiki/LocalSettings.php on the server, because they are too dangerous to leave enabled:
'''6. Manually delete other spam users''' by merging them to Anonymous account and selecting the delete option:
* [[Special:ListUsers]]
* [[Special:UserMerge]]
 
'''7. Disable the extensions for batch deletion''' in wiki/LocalSettings.php on the server, because they are too dangerous to leave enabled:
  <nowiki>
  <nowiki>
################# Extensions for batch deletion ####################
################# Extensions for batch deletion ####################

Revision as of 03:16, 10 September 2014

This is how I (DBooth) did a bulk cleanup of wiki spam:

1. Enable the extensions for batch deletion in wiki/LocalSettings.php on the server:

################# Extensions for batch deletion ####################
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/DeleteBatch/DeleteBatch.php";
require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
require_once "$IP/extensions/NukeDPL/NukeDPL.php";

2. Check the list of PagesNotCreatedByAdmin

3. Nuke the pages not created by Admin. If it looked like they should all or almost all be deleted, go to Special:NukeDPL and paste into the form:

  notmodifiedby = Admin
  nottitlematch = Main\_Page

and submit.

Then uncheck any that should NOT be deleted, and submit.

4. Delete all revision history. WARNING: this applies to *all* pages! No 'undo' will be possible for any page after this! See http://www.mediawiki.org/wiki/Manual:DeleteArchivedRevisions.php

cd wiki/maintenance
php deleteArchivedRevisions.php
# And if the number of revisions to delete looks correct, do:
php deleteArchivedRevisions.php --delete

5. Delete unused accounts (see http://www.mediawiki.org/wiki/Manual:RemoveUnusedAccounts.php ):

cd wiki/maintenance
php removeUnusedAccounts.php
# And if the result looks correct, do:
php removeUnusedAccounts.php --delete

6. Manually delete other spam users by merging them to Anonymous account and selecting the delete option:

7. Disable the extensions for batch deletion in wiki/LocalSettings.php on the server, because they are too dangerous to leave enabled:

################# Extensions for batch deletion ####################
# require_once "$IP/extensions/Nuke/Nuke.php";
# require_once "$IP/extensions/DeleteBatch/DeleteBatch.php";
# require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
# require_once "$IP/extensions/NukeDPL/NukeDPL.php";

Background Info

These are pages that I used to figure out how to do the above.