Skip to main content

StopForumSpam

StopForumSpam integration for FlaskBB. Checks new registrations against StopForumSpam's database of known spammer usernames, email addresses and IP addresses, and lets moderators report new spammers back to it.

See flaskbb/flaskbb#391.

Installation

Install flaskbb-plugin-stopforumspam with pip install flaskbb-plugin-stopforumspam

For local development against a FlaskBB checkout, from FlaskBB's root folder:

uv pip install -e ../flaskbb-plugin-stopforumspam

Then install the plugin from the admin panel and run the migrations (flaskbb db upgrade).

Usage

Every registration is looked up on StopForumSpam. If the username, email address or IP address is listed with at least the configured confidence score, the registration is rejected with a generic message and the attempt is logged. Admins can review and clear that log from the admin panel's "StopForumSpam" page.

Users who can ban a member also get a "Report spammer" button on that member's profile. It submits the username, email address and the IP the member registered from to StopForumSpam, optionally with evidence, and can ban the member at the same time. Reporting needs an API key. FlaskBB doesn't store registration IPs itself, so only members who registered while this plugin was installed can be reported.

If FlaskBB runs behind a reverse proxy, configure it to pass on the client's address (for example with Werkzeug's ProxyFix), otherwise every registration is checked against the proxy's IP. Private and loopback addresses are never sent.

Settings

StopForumSpam Settings, under the admin panel's Plugin Settings:

  • Check registrations - master toggle for the lookup (default: on).
  • Check username / email address / IP address - which fields are looked up (default: all).
  • Minimum confidence (%) - reject a registration if any checked field is listed with at least this confidence (default: 50, 0 rejects any listing).
  • Send email addresses hashed - send an MD5 hash instead of the plain address. StopForumSpam skips its domain blacklists and address normalisation for hashed lookups (default: off).
  • Reject registrations when StopForumSpam is unreachable - fail closed instead of open (default: off).
  • Request timeout (seconds) - default: 5.
  • API key - only needed for reporting spammers.

The blueprint is mounted at /stopforumspam; override it with PLUGIN_STOPFORUMSPAM_URL_PREFIX in your FlaskBB config.

License

This project is licensed under the terms of the BSD License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flaskbb_plugin_stopforumspam-1.0.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flaskbb_plugin_stopforumspam-1.0.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file flaskbb_plugin_stopforumspam-1.0.0.tar.gz.

File metadata

  • Download URL: flaskbb_plugin_stopforumspam-1.0.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flaskbb_plugin_stopforumspam-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ed7932446b1bcd25583fdb6a0686d99f4414340ad6cf8a6001e545fab79aca6e
MD5 d4a2fcaa7bbdbae59d8086216751904e
BLAKE2b-256 8d2b875183543f1527758a9e0b54cae9b80fbb61809e612f2b0481d24e974986

See more details on using hashes here.

File details

Details for the file flaskbb_plugin_stopforumspam-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: flaskbb_plugin_stopforumspam-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flaskbb_plugin_stopforumspam-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42307612578944da17464213894db762a87bd83f74ced7e1cdc5012b0f4fdd9e
MD5 cd4be9c9588c4a5ab761e8229e9b4b9b
BLAKE2b-256 f6906dd2470f09d949dcc2216cd960219cb90552dbeaabf1610b9c298c850d1d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page