this post was submitted on 19 Jun 2023
13 points (100.0% liked)

Lemmy Support

157 readers
5 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Just deleted over 800 users from my database that joined in the last few hours from obviously fake emails and botted usernames. Make sure to either close registration or have some sort of safety check in place because things are getting hairy out here.

top 11 comments
sorted by: hot top controversial new old
[–] animist@lemmy.one 2 points 1 year ago
[–] kev@mcr.town 1 points 1 year ago (1 children)

Hey! I've been caught up in this. Have closed registration for now but what do I do with the created accounts? Unless I'm missing something I can't find the admin tools to deal with users except through their posts (and they haven't posted anything).

[–] RGB@lemmyfi.com 1 points 1 year ago (1 children)

What worked for me is manually deleting those entries from the database through the console. Gotta delete it from the postgresql database if you don't have any real user sign ups during the spam sign ups, you can just delete all entries after a certain point. That's how I did it.

[–] kev@mcr.town 2 points 1 year ago (1 children)

Did you actually delete them or set the deleted column? I'm anxious of leaving dangling references which might cause errors to pop up elsewhere but I'd rather get rid of them completely if that doesn't seem to cause problems.

I also found it wasn't reflected in the user count until I manually manipulated the site_aggregates table. I don't know if that would have caught up eventually.

[–] RGB@lemmyfi.com 1 points 1 year ago (1 children)

You have to delete them from local_users and person tables. Be careful with person table to not delete entries from users outside your Instance. It worked for me and fixed the user count in my sidebar.

[–] kev@mcr.town 1 points 1 year ago (1 children)

Cool. I think I'm going to give it a few days in case I deleted someone I didn't want to. If I hear no complaints (I'm pretty sure I'm the only real local user on my instance anyway 😂) I'll delete out the db. Thanks!

[–] RGB@lemmyfi.com 2 points 1 year ago

No problem! Hopefully others that had this problem can fix their instance too. Since we don't know when the spam accounts will become active and start posting or if that spam attack was just to mess with us.

[–] thatcasualgamingguy@lemmy.nerdcore.social 0 points 1 year ago (1 children)

Luckily caught it relatively early and only had to remove 120 fake users. The registrations stopped immediately after I turned on "require registration application".

[–] RGB@lemmyfi.com 0 points 1 year ago (1 children)

this happened overnight for me. I turned on captcha and email verification. captcha is important. I was watching the logs and all activity stopped after captcha got enabled.

[–] thatcasualgamingguy@lemmy.nerdcore.social 1 points 1 year ago (1 children)

Bad news: the capture functionality is going to be removed. https://github.com/LemmyNet/lemmy/issues/2922

[–] RGB@lemmyfi.com 2 points 1 year ago

so i've heard. very unfortunate. I left a comment on the bring back captchas open issue on github.

load more comments
view more: next ›