Mass blocking migrated spam users

I need to mass block a bunch of spam accounts, is it possible to do this via the admin interface?

Before or after the spam accounts have signed up?

If before, use Admin, Logs, IP to block IP ranges of spammers.

If after, use flag, spam, delete spammer (on one of their posts) or delete, delete spammer on their user profile.

This is after. Is there a way to do this as a batch operation?

If there are multiple from the same IP, you can go to their admin user page, click IP Lookup, then the “Delete 5 other” button that appears will clear out all other accounts with the same IP address.

Hmm… I don’t think I explained my situation correctly. Apologies for that.

Due to my limited knowledge in handling databases, I imported a set of users from a vanilla installation. From this set of users some were spam accounts that were not previously deleted. I was hoping to be able to do this after everything was up and running.

This is why I’m wondering if it can be done from Discourse’s admin interface.


I guess the best way to proceed would be to come up with a giant text file containing the usernames of all the users you want deleted, one per line, then using a small script to delete all of them.

Uhg, that’s going to be tough for me. Thanks anyway! I’ll compile the list and then follow up.


Just confirming that any kind of mass blocking is going to require a custom script of sorts at the moment.

1 Like