It just occurred to me how some governments like blocking social media, and how blocking Mastadon would be a neverending nightmare.
@skanman sadly it'd be trivial: detect and block the ActivityPub protocol and you take out the entire fediverse with a single rule.
@shadowsonawall I thought Mastadon only implemented activitypub for server to server, and client to server had a plethora of connection methods, so I thought blocking the protocol would only stop new servers from being connected in the country, but not block clients connecting to servers outside the country. Now I'm not sure.
@skanman it's an all-in-one kind of thing. Client/server, server/server - all under the same umbrella. Would you need multiple rules to identify the components? Dunno. Still very simple though
@skanman it's easy to imagine "if they did this then that would overcome it" scenarios. They are significantly harder to implement from a practical perspective. Take a look at the version numbers for fedi servers. Even if a new protocol was agreed upon (no easy feat), implemented, and everyone upgraded to the newest version, implementations would still be open source and trivial to "detect".
going through the protocol definitions it looks like you'd need two firewall rules to effectively disable the activitypub protocol. Denying anything with content matching either "/\/@\w+\/inbox/" or "/\/@\w+\/outbox/" regex. That'd disable inbound and outbound messaging across whatever network boundaries you controlled
@skanman where there's a will..
@shadowsonawall I see what you mean, let's hope it never comes to that.. clearly my firewall knowledge is out of date, I didn't realize you could match regex through traffic. That's gotta be super intensive to filter an entire country. Thanks for the info 👍 hopefully it'll make me a better developer.