Shiny happy people coding

Coding with smile

Delete All Anonymous Message in Forum Redmine

| Comments

If you had open your redmine forum to anonymous, to avoid logged user to post in your forum, You can be attack by spam, because redmine haven't anti-spam. You can be in same position of me :

screenshot de mon forum redmine spammé

Once you have block anonymous message, you need delete all spam message. So you can delete each message one by one. Or use the rails console to delete all. Warning. if you have some real user to post in anonymous. My command delete this message too.

rails@shinydedi /var/rails/redmine/current $ ./script/console production Loading production environment (Rails 2.0.2) >> User.anonymous => # >> => 4 >> Message.find_all_by_author_id( => 1693 >> Message.find_all_by_author_id( { |me| me.destroy } => [.........] >>

Traduction Francaise