ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,336 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Is it possible to block website access/browsing on all mobile phones?
I have already tried HttpContext.Request to check IsMobileDevice and User Agent to cross check browser type.
It does not work when I select chrome option "Request Desktop Site". When I click on "Request Desktop Site" option in mobile chrome then it opens my website.
Is there any way to block access of website on all mobile phones?
The chrome feature changes the agent string. There is no real way to detect faked agent strings.