spamcheck/README.md

29 lines
908 B
Markdown
Raw Normal View History

2021-07-26 15:53:48 +02:00
# 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](https://joinmastodon.org) server admin
### Usage:
Within Python Virtual Environment:
1. Run `pip install -r requirements.txt` to install needed Python libraries.
2022-01-16 14:33:44 +01:00
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](https://blog.torproject.org/changes-tor-exit-list-service/)
2022-01-16 14:33:44 +01:00
4. Use your favourite scheduling method to set `python spamcheck.py` and `python torips.py` to run regularly.
2022-01-16 14:33:44 +01:00
2021-07-26 15:53:48 +02:00