#8192 StopForumSpam filter and moderation+spam update

v1.8.1
closed
None
General
nobody
2018-03-14
2018-03-06
No

There's an existing SpamFilter interface we can use to implement filtering with StopForumSpam files. And it'd be good to expand the spam filters to support using multiple filters not just one.

Also posts that are already destined for moderation, and are also spam still just end up in the moderation queue. Changes here will put them directly into the 'spam' status and not show up in moderation.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2018-03-07
    • summary: StopForumSpam filter --> StopForumSpam filter and moderation+spam update
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     There's an existing SpamFilter interface we can use to implement filtering with StopForumSpam files.  And it'd be good to expand the spam filters to support using multiple filters not just one.
    +
    +Also posts that are already destined for moderation, and are also spam still just end up in the moderation queue.  Changes here will put them directly into the 'spam' status and not show up in moderation.
    
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2018-03-07

    db/8192 branch

    • new entry point for stopforumspam needs to be registered, so run: docker-compose run taskd python setup.py develop
    • download a file like listed_ip_180_all.txt from https://www.stopforumspam.com/downloads
    • add some settings to development.ini to test, e.g.:
    spam.method = stopforumspam
    spam.stopforumspam.ip_addr_file = /allura/listed_ip_180_all.txt
    
    • ip addresses within docker can be a bit weird. To test, I printed the ip result from StopForumSpamSpamFilter.check and then added that ip address to the .txt file
     
  • Kenton Taylor

    Kenton Taylor - 2018-03-07
    • status: review --> closed
     
  • Kenton Taylor

    Kenton Taylor - 2018-03-07

    Merged.

     
  • Kenton Taylor

    Kenton Taylor - 2018-03-14
    • Milestone: unreleased --> v1.8.1
     

Log in to post a comment.