Mirror of fedi block api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mint 56d672fef9
Preventing the bot from being a hellthread cannon
1 year ago
services added config 2 years ago
.gitignore Link to the lists in scoreboard 2 years ago
LICENSE added license 2 years ago
README.md Track fetch date in DB & correctly prepend newly added descriptions 2 years ago
api.py Handle it both sides 1 year ago
blocks_empty.db Add api endpoint to test if there are blocks between two domains. Added an index to cover the query. 1 year ago
config.defaults.json Report findings to a bot 1 year ago
fetch_blocks.py Preventing the bot from being a hellthread cannon 1 year ago
fetch_instances.py blacklisting activitypub-proxy instance duplicating entries 1 year ago
index.html whoops 2 2 years ago
requirements.txt Use reqto wrapper for requests 2 years ago


Fedi block API

Used to see which instances block yours.

software used:

  • python 3.10.2


sudo useradd -m fba
sudo mkdir -p /opt/fedi-block-api
sudo chown -R fba:fba /opt/fedi-block-api
sudo -Hu fba git clone https://git.kiwifarms.net/mint/fedi-block-api.git /opt/fedi-block-api
cd /opt/fedi-block-api
sudo -Hu fba pip3 install -r requirements.txt
sudo -Hu fba cp blocks_empty.db blocks.db
sudo -Hu fba python3 fetch_instances.py mastodon.social # try a bunch of large servers here
sudo -Hu fba cp config.defaults.json config.json

Install the services

sudo cp services/* /etc/systemd/system

start the services

systemctl enable --now fetch_blocks
systemctl enable --now fedi_block_api

Try it out