Giter VIP home page Giter VIP logo

anti-spam's People

Contributors

flarum-bot avatar imorland avatar stylecibot avatar

Watchers

 avatar  avatar  avatar  avatar

anti-spam's Issues

Configurable rules that automatically marks users as a spammer

Feature Request

Is your feature request related to a problem? Please describe.
We have a lot of spam daily and moderators needs to mark user as spammer manually. It would be nice to have a configurable set of rules that automatically marks users as a spammer when there are met.

Describe the solution you'd like
I can handle this in PR.
However, before I create a PR, I need to know whether the solution I am proposing is a good one and the PR is likely to be accepted. @imorland

A detailed description of your proposed solution.
Something similar to configuring Cloudflare rules.
Admin can add many independent rulesets. When admin ads a rule, it can have multiple checks:

  • post has links from specific domain
  • post contains specific text
  • user has post count less than n
  • user account is younger than n hours
  • user IP is x
  • etc...

There are 3 fields for each rule.

  • type: post content, user post count, user IP address, etc.
  • operator: contains, starts with, does not starts with, matches regex, less than, more than, equals, etc.
  • value

Frame 1

admin settings page showing up as empty with no settings or permissions

Bug Report

The admin settings page is showing up as empty with "This extension has no settings." and "This extension has no permissions." despite the extension having both. The permission for marking users as spammer does appear in the permissions configuration.

Perhaps this is a compatibility issue with PHP 8.2. We don't have this issue with any other extensions. Have tried clearing cache, running migrate, publishing assets, etc. multiple times.

Environment

  • Flarum version: 1.8.3
  • Extension version: 1.1.2
  • Website URL: https://discuss.grapheneos.org/
  • Webserver: nginx 1.24.0
  • Hosting environment: VPS
  • PHP version: 8.2.13
  • Browser: any
Flarum core: 1.8.3
PHP version: 8.2.13
MySQL version: 11.2.2-MariaDB
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, ctype, dom, fileinfo, filter, hash, json, mbstring, pcntl, SPL, session, PDO, standard, posix, random, readline, Reflection, Phar, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, curl, gd, pdo_mysql, zip, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions    |         |        |
+----------------------+---------+--------+
| ID                   | Version | Commit |
+----------------------+---------+--------+
| flarum-flags         | v1.8.0  |        |
| flarum-suspend       | v1.8.1  |        |
| flarum-tags          | v1.8.0  |        |
| flarum-approval      | v1.8.1  |        |
| fof-user-bio         | 1.3.1   |        |
| fof-sitemap          | 2.2.1   |        |
| fof-nightmode        | 1.5.3   |        |
| fof-filter           | 1.1.3   |        |
| fof-anti-spam        | 1.1.2   |        |
| flarum-subscriptions | v1.8.0  |        |
| flarum-sticky        | v1.8.0  |        |
| flarum-statistics    | v1.8.0  |        |
| flarum-mentions      | v1.8.2  |        |
| flarum-markdown      | v1.8.0  |        |
| flarum-lock          | v1.8.0  |        |
| flarum-likes         | v1.8.0  |        |
| flarum-lang-english  | v1.8.0  |        |
+----------------------+---------+--------+
Base URL: https://discuss.grapheneos.org
Installation path: /opt/flarum
Queue driver: sync
Session driver: file
Scheduler status: Active
Mail driver: smtp
Debug mode: off

Ability to utilize StopForumSpam database in an offline way

Feature Request

Is your feature request related to a problem? Please describe.

As far as I can tell, in order to be able to check new registrations against the StopForumSpam database, you currently have to send that sign-up information to a server and check. This poses a privacy issue and makes it a non-workable solution for our community (discuss.grapheneos.org).

Describe the solution you'd like

Would it be possible for the checks to be done in an offline manner where the database is downloaded and checked against instead of sending information to an online service?

Describe alternatives you've considered

The current way we do things is by banning specific keywords that are commonly used by spam accounts and manually getting rid of them, but being able to benefit from the database would be a tremendous help to our community.

disable permanent deletion options for moderators without the permanent deletion permission

Feature Request

We don't give most moderators access to permanent deletion since it's unnecessary and can result in mistakes that cannot be undone. Our moderators do make mistakes, and it's common to need to undo a ban. The same thing is going to apply to use of the spammer action. Anti-spam currently always provides these permanent deletion options. Our moderators find it confusing and we'll have to tell each one not to enable the options, which is a lot harder than just explaining to use the spammer action. This seems like an oversight since there's meant to be a permission for this and it can be bypassed through this extension.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.