News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Mass delete spam comments, threads

Started by jcomeauictx, October 08, 2019, 09:44:25 PM

Previous topic - Next topic

jcomeauictx

Quote from: tuatara on February 12, 2013, 03:39:10 PM
I've got a ton of unwanted threads posted by a spammer. How do I mass delete them and prevent it from happening again?

Thanks
I just had this problem, hundreds of new users with hundreds of spam messages (about 1 per user). I found a pattern to the email addresses, there were about 5 primary domains in use. so I enabled maintenance mode, and from root on the server, I did:

su - postgres
psql smf
delete from smf_members where email_address like '%.fusdren.com';
delete from smf_messages where poster_email like '%.fusdren.com';

and repeated the last two lines for each domain.

it could have caused some problems, but if so we haven't noticed them yet.

Kindred

yes... that will cause problems.

You should NEVER delete things directly in the database. Really. Just don't do it.

There are interconnected tables and columns... which are now broken in your case.

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: