{"id":15016756,"url":"https://github.com/anthchirp/mastodon-defederate","last_synced_at":"2025-05-08T20:54:33.310Z","repository":{"id":63096623,"uuid":"564974335","full_name":"Anthchirp/mastodon-defederate","owner":"Anthchirp","description":"Aiding small Mastodon instance admins by tracking larger instances' server blocklists","archived":false,"fork":false,"pushed_at":"2022-11-22T09:01:02.000Z","size":52,"stargazers_count":133,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-08T15:43:07.527Z","etag":null,"topics":["mastodon"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anthchirp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-12T00:31:25.000Z","updated_at":"2025-03-10T01:26:48.000Z","dependencies_parsed_at":"2022-11-12T21:16:38.609Z","dependency_job_id":null,"html_url":"https://github.com/Anthchirp/mastodon-defederate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anthchirp%2Fmastodon-defederate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anthchirp%2Fmastodon-defederate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anthchirp%2Fmastodon-defederate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anthchirp%2Fmastodon-defederate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anthchirp","download_url":"https://codeload.github.com/Anthchirp/mastodon-defederate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149380,"owners_count":21861717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mastodon"],"created_at":"2024-09-24T19:49:20.350Z","updated_at":"2025-05-08T20:54:33.259Z","avatar_url":"https://github.com/Anthchirp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI release](https://img.shields.io/pypi/v/defederate)](https://pypi.org/projects/defederate)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/defederate)](https://pypi.org/projects/defederate)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![BSD License](https://img.shields.io/pypi/l/defederate)](https://github.com/Anthchirp/mastodon-defederate/blob/main/LICENSE)\n\n# Tools for Mastodon Instance Blocklist Management\n\nIf you are running a small Mastodon instance then you do not have the benefit\nof moderation teams that larger instances have. This means that you may see\ntoots from instances that you are not interested in.\n\nParticularly when you use relays to discover interesting content there is a\nhigh probability that you will quickly discover eg. openly racist instances\nthat nobody in their right mind needs or wants.\nWith a personal Mastodon instance it will be your job to either block\nindividual users from those instances, or manually defederate (that is: block)\nthe server for everyone on your instance.\n\nSo if you trust some larger instance to do a good job at maintaining their\ninstance block list then this tool allows you to piggyback on their work and\nuse their blocklists on your instance.\n\n## Installation\n\nYou will need Python 3.6+ with `pip`.\nThen run `pip install defederate`.\n\n## Parse a public 3rd-party blocklist\n\n```bash\n$ defederate show social.example.com\nCurrent blocklist on social.example.com:\n SILENCE: badhost1.example.com\n SILENCE: badhost2.example.com\n (...)\n SUSPEND: badhost1.example.net\n SUSPEND: badhost2.example.net\n (...)\n```\n\nThe server you are requesting the blocklist from must allow public access.\n\nThis can also parse blocklists in Markdown format, for example the [blocklist](https://github.com/chaossocial/about/raw/master/blocked_instances.md) used by [chaos.social](https://chaos.social):\n```bash\n$ defederate show https://github.com/chaossocial/about/raw/master/blocked_instances.md\n```\n\n## Notes\n\n* [Concerns](https://mast.uxp.de/web/@ondra@unextro.net/109336212305901991)\n* [Similar/related project](https://gitlab.comwork.io/oss/mastodon-term-services)\n* [Similar/related project](https://github.com/hachyderm/hack)\n* [Similar/related project](https://mastodon-tools.dingelstad.works/)\n* [related Mastodon PR](https://github.com/mastodon/mastodon/pull/15664)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthchirp%2Fmastodon-defederate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthchirp%2Fmastodon-defederate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthchirp%2Fmastodon-defederate/lists"}