Hi Ben,
Only tangentially answering your
question, this is more about preventing spam account creation
than removing them.
We had issues with spam accounts for a while as well, until I realised they all used a url in their account names, so I added a spam scoring rule to block such account names at creation, and the problem stopped. I don't know if it is the case for you, but just in case:
patch https://github.com/mysociety/alaveteli/blob/develop/config/initializers/user_spam_scorer.rb#L7 to replace its content with
settings = YAML.load(File.read(path), permitted_classes: [Regexp])['user_spam_scorer']
This allows defining regexps in
the following config file, otherwise ruby will crash.
Then update config/user_spam_scorer.yml with something like what we have here: https://gitlab.com/madada-team/dada-core/-/blob/master/ansible/roles/alaveteli/templates/config_user_spam_scorer.yml#L63
In our case, we just added the
last line to the default values alaveteli defines to prevent
urls like https:// which does not seem like a useful account
name anyway.
Good luck!
Laurent
--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/64104a4b-f3b6-47b6-9864-ae2e834a6d31n%40googlegroups.com.