「悪意のあるデバイスからWebサイトを守る」ならまずは禁止するデバイスのリストではなく許可するデバイスのリストにすることになると思うし、その上でfadisさんが指摘するようなデジタル署名かなにかでデバイス自体を検証するとかになると思う
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.