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

Anonymous’s picture

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.

IntnsRed’s picture

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.

Anonymous’s picture

Good find! Glad you found a solution.

Viktor-T’s picture

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.