Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By IntnsRed on
Spammers mercilessly hammer my web site creating bogus accounts by script. Various anti-spam modules stop the spammers from posting, but I'm left with hundreds of bogus accounts in the database.
Is there a tool/module that would allow the mass deletion/cancellation of user accounts based on criteria I select -- such as last access date, or whether a user has content (either regular content or comments), and/or similar ideas?
TIA.
Comments
I am not familiar with any
I am not familiar with any modules that do that out-of-the-box. However. you could use Views to create a list of users with your criteria and Views Bulk Operations (with Rules) to delete them.
Admin Frosting
Thanks. Thinking I can't be the only one that has run into this type of issue, I did some more searches of modules.
The solution I found was the module Admin Frosting, which has a dev version for D7.
Looking at the module it functions exactly as you describe.
Good find! Glad you found a
Good find! Glad you found a solution.
I would recommend the User
I would recommend the User prune module. https://www.drupal.org/project/user_prune
It looks like it can do what you need, even can be set to do it automatically on cron run.
To prevent new the spam accounts to be created you could try to use honeypot module on the create account form.