Compare commits

...

7 Commits

4 changed files with 120 additions and 26 deletions

View File

@ -0,0 +1,62 @@
# `m.policy.rule.server`
This event is the language of Draupnir/Mjolnir and experimental Mjolnir style ignore in Element Web labs when speaking of homeservers.
TL;DR
- Event type: `m.policy.rule.server`
- State key: `example.net` (server name goes here)
<!-- prettier-ignore-start -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Allowing all servers](#allowing-all-servers)
- [Allowing server mjolnir.matrix.org](#allowing-server-mjolnirmatrixorg)
- [Banning evil example.org](#banning-evil-exampleorg)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
## Allowing all servers
- Event type: `m.policy.rule.server`
- State key: `*`
```json
{
"entity": "*",
"reason": "Default ACL allow all",
"recommendation": "org.matrix.mjolnir.allow"
}
```
## Allowing server mjolnir.matrix.org
- Event type: `m.policy.rule.server`
- State key: `mjolnir.matrix.org`
```json
{
"entity": "mjolnir.matrix.org",
"reason": "Mjolnir for all!",
"recommendation": "org.matrix.mjolnir.allow"
}
```
## Banning evil example.org
_Well, the example organization domain is now evil :smirk_cat:_
- Event type: `m.policy.rule.server`
- State key: `example.org`
```json
{
"entity": "*",
"reason": "Evil example homeserver",
"recommendation": "m.ban"
}
```

View File

@ -0,0 +1,32 @@
# `m.policy.rule.user`
This event is the language of Draupnir/Mjolnir and experimental Mjolnir style ignore in Element Web labs when speaking of individual users.
TL;DR
- Event type: `m.policy.rule.server`
- State key: `_username:example.net` (The leading`@` is replaced with an underscore `_`)
<!-- prettier-ignore-start -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Banning an user](#banning-an-user)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
## Banning an user
- Event type: `m.policy.rule.user`
- State key: `_username:example.net`
```json
{
"entity": "@username:example.net",
"reason": "Example ban",
"recommendation": "m.ban"
}
```

View File

@ -35,7 +35,6 @@ The main point I do this for is users `users`
"@leon:the-apothecary.club": 99, "@leon:the-apothecary.club": 99,
"@leon:masfloss.net": 99, "@leon:masfloss.net": 99,
"@fidino:artemislena.eu": 99, "@fidino:artemislena.eu": 99,
"@mjolnir_3671ee5a-cd2a-47c0-97da-e5662f3324d9:mjolnir.matrix.org": 99,
"@aminda.git:pirateriot.net": 13 "@aminda.git:pirateriot.net": 13
} }
}, },

View File

@ -13,55 +13,57 @@ adjusting this.
- https://matrix.org/docs/guides/moderation#banning-servers-from-rooms-server-acls - https://matrix.org/docs/guides/moderation#banning-servers-from-rooms-server-acls
Note: when sending the custom event via `/devtools` for the first time, click Note:
the `Event` so it says `State Event` and asks for `State key` in addition to `type`,
which can/is left empty as usual. - When sending the custom event via `/devtools` for the first time, click
the `Event` so it says `State Event` and asks for `State key` in addition to `type`,
which can/is left empty as usual.
- Subdomains appear to be implied by specifying 2nd level domain. E.g.
`matrix.org` appears to apply to `*.matrix.org` at least on Synapse.
```json ```json
{ {
"allow": ["*"], "allow": ["*", "mjolnir.matrix.org"],
"allow_ip_literals": false, "allow_ip_literals": false,
"deny": [ "deny": [
"matrix.org", "matrix.org",
"*.matrix.org",
"mjolnir.matrix.org",
"disroot.org", "disroot.org",
"privacytools.io", "privacytools.io",
"feneas.org", "feneas.org",
"glowers.club", "glowers.club",
"*.glowers.club",
"midov.pl", "midov.pl",
"*.midov.pl",
"kiwifarms.net", "kiwifarms.net",
"*.kiwifarms.net",
"liberta.casa", "liberta.casa",
"nitro.chat", "nitro.chat",
"*.nitro.chat",
"nerdsin.space", "nerdsin.space",
"*.nerdsin.space",
"thisisjoes.site", "thisisjoes.site",
"*.thisisjoes.site",
"pp13.space", "pp13.space",
"*.pp13.space" "evulid.cc"
] ]
} }
``` ```
Explanations: Explanations:
- Very big homeservers promoting centralisation of users and power. Also - `matrix.org`, `*.matrix.org`
big source of spam, poor moderation and abusive bot performing public - Very big homeservers promoting centralisation of users and power. Also
logging of members-only rooms. big source of spam, poor moderation and abusive bot performing public
- Legacy servers that have discontinued, are in progress of discontinuing or logging of members-only rooms.
are just closed for public, that have PL100 in my rooms. They don't need subdomains - `matrix.org`, `evulid.cc`
to be denylisted as the subdomain MXIDs wouldn't have power. - Run instances of [matrix-public-archive](https://github.com/matrix-org/matrix-public-archive/issues/47) which [misses proper ability to opt-out](https://github.com/matrix-org/matrix-public-archive/issues/47)
- `disroot.org`, `privacyguides.io`, `feneas.org`. - `nitro.chat`
- The rest are connected to abusive raids on communities that I am a part of, - Poorly protected from abuse, abuse contact joins room that their users are raiding and leaves immediately without doing anything.
sometimes even moderate. - `disroot.org`, `privacytools.io`, `feneas.org`, `liberta.casa`
- Legacy servers that have discontinued, are in progress of discontinuing or
are just closed for public, that have PL100 in my rooms.
- `glowers.club`, `midov.pl`, `kiwifarms.net`, `nerdsin.space`, `thisisjoes.site`, `pp13.space`
- Connected to abusive raids on communities that I am a part of, sometimes even moderate.
- Others
- Most likely inherited from _Community Moderation Effort_.
## Allowlist ## Allowlist
This configuration only lets servers I have accounts on in. This configuration only lets servers I or especially close friends have accounts on in.
```json ```json
{ {
@ -74,8 +76,7 @@ This configuration only lets servers I have accounts on in.
"fedora.im", "fedora.im",
"jae.fi", "jae.fi",
"converser.eu", "converser.eu",
"artemislena.eu", "artemislena.eu"
"the-apothecary.club"
], ],
"allow_ip_literals": false, "allow_ip_literals": false,
"deny": [] "deny": []