Mass blocking emails


(Ricardo Viteri) #1

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


(Jeff Atwood) #2

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.


(Ricardo Viteri) #3

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


(Kane York) #4

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.


(Ricardo Viteri) #5

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.

Thanks.


(Kane York) #6

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.


(Ricardo Viteri) #7

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

Cheers!