Please explain - in detail - why using information communicated by the client to change how my server operates is “unethical”. Keep in mind I pay money and expend time to provide free content for people to consume.
Here is a simple example. If you made your website only work in say, Microsoft Edge, and blocked everyone else telling them to download Edge. I'd think you're an asshole. Whether or not being an ass is unethical I'll leave to the philosophers.
Clearly there are many other scenarios, and many that are more muddy, but overall when we get in to the business of trying to force people to consume content in particular ways it's a bit icky in my opinion.
The extreme end result of this is no more open web, just force people to download your app to consume your content. This is happening too and it sucks.
The entire premise of the parent posters comment was that this is specifically unethical, so you lost me at the part where you deliberately decided to not address that in your reply.