How to get Client device information in asp.net, c#

1.1k views Asked by At

I am stuck while fetching client side information of their device, I didn't want to show my server device info to client.

I want whoever visit my site I get their mobile/laptop name, model, OS version, and all other info.

1

There are 1 answers

0
Dai On

I want whoever visit my site I get their mobile/laptop name, model, OS version, and all other info.

You can't (or rather: you're not meant to be able to).

Modern browsers are now designed to hide that information from web-pages to prevent spying and tracking users. This is also known as "device fingerprinting".

The only information you can get is in the User-Agent header, and I note that ultramodern browsers now no-longer update the User-Agent header and instead provide even less information through the "Client hints" headers.