Check and store data from sign-ups registered on your Mastodon server last seven says.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spla 96da1a1118 Limit text reason to 200 characters 1 year ago
LICENSE Add LICENSE 2 years ago
README.md torips.py now downloads the torbulkexitlist file 1 year ago
checktornodes.py Added Tor exit node IP checking 1 year ago
db-setup.py Get and write total register attempts by date 1 year ago
requirements.txt Mastodon spamcheck first release 2 years ago
spamcheck.py Limit text reason to 200 characters 1 year ago
torbulkexitlist Limit text reason to 200 characters 1 year ago
torips.py torips.py now downloads the torbulkexitlist file 1 year ago

README.md

Mastodon's spamcheck

Check and store data from spam bots trying to register to your Mastodon server. You need to configure your Mastodon server like this:

  • Registration mode -> Approval required for sign up
  • Require new users to enter a reason to join -> activated

Dependencies

  • Python 3
  • Postgresql server
  • Mastodon server admin

Usage:

Within Python Virtual Environment:

  1. Run pip install -r requirements.txt to install needed Python libraries.

  2. Run python db-setup.py to setup and create new Postgresql database and needed tables in it.

  3. Run python torips.py to write Tor exit nodes IPs to database. You need to get the torbulkexitlist from here

  4. Use your favourite scheduling method to set python spamcheck.py and python torips.py to run regularly.