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.
|
1 year ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 1 year ago | |
checktornodes.py | 1 year ago | |
db-setup.py | 1 year ago | |
requirements.txt | 2 years ago | |
spamcheck.py | 1 year ago | |
torbulkexitlist | 1 year ago | |
torips.py | 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:
-
Run
pip install -r requirements.txt
to install needed Python libraries. -
Run
python db-setup.py
to setup and create new Postgresql database and needed tables in it. -
Run
python torips.py
to write Tor exit nodes IPs to database. You need to get the torbulkexitlist from here -
Use your favourite scheduling method to set
python spamcheck.py
andpython torips.py
to run regularly.