{"id":13557526,"url":"https://github.com/t2bot/synapse-simple-antispam","last_synced_at":"2025-04-14T07:22:48.017Z","repository":{"id":44916732,"uuid":"201679920","full_name":"t2bot/synapse-simple-antispam","owner":"t2bot","description":"A simple spam checker module for Synapse to block invites from unwanted homeservers","archived":false,"fork":false,"pushed_at":"2022-07-14T17:24:37.000Z","size":18,"stargazers_count":40,"open_issues_count":1,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T21:05:29.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t2bot.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":"2019-08-10T20:31:51.000Z","updated_at":"2025-01-11T05:18:09.000Z","dependencies_parsed_at":"2022-08-26T02:42:07.829Z","dependency_job_id":null,"html_url":"https://github.com/t2bot/synapse-simple-antispam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2bot%2Fsynapse-simple-antispam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2bot%2Fsynapse-simple-antispam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2bot%2Fsynapse-simple-antispam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2bot%2Fsynapse-simple-antispam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t2bot","download_url":"https://codeload.github.com/t2bot/synapse-simple-antispam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837443,"owners_count":21169433,"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":[],"created_at":"2024-08-01T12:04:24.068Z","updated_at":"2025-04-14T07:22:47.985Z","avatar_url":"https://github.com/t2bot.png","language":"Python","funding_links":[],"categories":["Python","others"],"sub_categories":[],"readme":"# synapse-simple-antispam\nA simple spam checker module for Synapse to block invites from unwanted homeservers\n\n\n## Installation\n\nIn your Synapse python environment:\n```bash\npip install git+https://github.com/t2bot/synapse-simple-antispam#egg=synapse-simple-antispam\n```\n\nThen add to your `homeserver.yaml`:\n```yaml\nmodules:\n  # Module to block invites from listed homeservers\n  - module: \"synapse_simple_antispam.AntiSpamInvites\"\n    config:\n      # A list of homeservers to block invites from.\n      blocked_homeservers:\n        - badcorp.example.org\n        - evil.example.com\n  # Module to block messages from listed homeservers\n  - module: \"synapse_simple_antispam.AntiSpamHomeserverMessages\"\n    config:\n      # If true, the blocked messages will be soft failed by synapse.\n      # Soft failing can help prevent messages from going down sync streams.\n      soft_fail: false\n      # A list of homeservers to block messages from.\n      blocked_homeservers:\n        - badcorp.example.org\n        - evil.example.com\n  # Module to block messages with the given text\n  - module: \"synapse_simple_antispam.AntiSpamText\"\n    config:\n      # If true, the blocked messages will be soft failed by synapse.\n      # Soft failing can help prevent messages from going down sync streams.\n      soft_fail: false\n      blocked_messages:\n        - \"This is spam. Spammy spam spam.\"\n  # Module to block messages with the given text regexes\n  - module: \"synapse_simple_antispam.AntiSpamRegex\"\n    config:\n      # If true, the blocked messages will be soft failed by synapse.\n      # Soft failing can help prevent messages from going down sync streams.\n      soft_fail: false\n      blocked_messages:\n        - \"spam\"  # \"spam\" anywhere in the message\n        - \"sp[am]+\" # \"spammmm\", \"spaaaammmmm\", etc\n```\n\nSynapse will need to be restarted to apply the changes. To modify the list of homeservers,\nupdate the config and restart Synapse.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2bot%2Fsynapse-simple-antispam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft2bot%2Fsynapse-simple-antispam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2bot%2Fsynapse-simple-antispam/lists"}