Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@grunfink@comam.es
I recall that friendica has the option disable_federation in the config settings.
I realized that with snac, I can run a script daemon:
1. Use inotifywatch to check incoming objects;
2. Dump the new object JSON to detect requests from foreign domains;
3. run the 'snack block' command on the found domain;
4. Delete the incoming object;
5. Sanitize any generated notifications.
This should all happen so quickly that local users should never notice it.
So any attempt to communicate in either direction can be automatically detected on first blush, then the remote domain blocked.
It's a hack, but it should work.
Another question: what about a wildcard character in the 'snac block' command?
I'm not going to try it on this public instance because I'm afraid of some kind of expansion wrecking things. Does anyone know if that would do anything weird?