Does anyone know if a Mastodon server can block client applications based on their name?

@tante

gTs can block based on user-agent. Otherwise, you need some nginx in front, to process headers.