The original is contains the fucking yikes.
Find a file
2024-12-08 12:26:53 +01:00
services added config 2022-04-22 20:56:58 +02:00
.gitignore Link to the lists in scoreboard 2022-11-30 23:11:44 +03:00
api.py Case-insensitive search 2023-10-08 08:53:47 +03:00
blocks_empty.db Add api endpoint to test if there are blocks between two domains. Added an index to cover the query. 2023-02-27 00:45:58 +03:00
config.defaults.json Report findings to a bot 2023-03-13 00:21:46 +03:00
fetch_blocks.py very slightly improve the horrid code quality 2024-12-08 12:26:53 +01:00
fetch_instances.py +1 pisskey fork 2023-12-31 11:13:58 +03:00
index.html :D 2024-12-08 12:03:57 +01:00
LICENSE :D 2024-12-08 12:03:57 +01:00
README.md :D 2024-12-08 12:03:57 +01:00
requirements.txt Use reqto wrapper for requests 2022-12-11 14:32:15 +03:00
rss.xml RSS feed for latest blocks 2023-05-08 00:56:48 +03:00

Fedi block API

Used to see which instances block yours.

software used:

  • python 3.10.2

Installation

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.tudbut.de/tudbut/fedi-block-api /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

License

AGPLv3.

Because the original writers (who licensed it under what they call AGPLv3+N***ER (you can imagine)) did not change the actual terms of the license but merely added a statement at the bottom, without even changing the name in the license file, the license was still AGPLv3, allowing me to use "AGPL v3 or later", so I have now replaced the license with base AGPL v3.

It was also very suboptimally applied, with there being a missing copyright notice:

fedi-block-api: indexes fediverse blocks
Copyright (C) 2024  TudbuT

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

:D Have fun!