Check and store data from sign-ups registered on your Mastodon server last seven says.
Go to file
spla a36a16d43c torips.py now downloads the torbulkexitlist file 2022-01-30 20:16:07 +01:00
LICENSE Add LICENSE 2021-07-26 13:45:29 +00:00
README.md torips.py now downloads the torbulkexitlist file 2022-01-30 20:16:07 +01:00
checktornodes.py Added Tor exit node IP checking 2022-01-16 14:33:44 +01:00
db-setup.py Get and write total register attempts by date 2022-01-18 18:50:12 +01:00
requirements.txt Mastodon spamcheck first release 2021-07-21 14:46:27 +02:00
spamcheck.py Fill today's totals with zero if any attempt 2022-01-24 14:40:21 +01:00
torbulkexitlist torips.py now downloads the torbulkexitlist file 2022-01-30 20:16:07 +01:00
torips.py torips.py now downloads the torbulkexitlist file 2022-01-30 20:16:07 +01:00

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.