Is it possible to allow a user to access a page that creates random numbers only for mobile browsers?
Is there an easy way to do this?
Should I check the browser and agent against the mobile ones?
Essentially, I don't want users to hit a URL with a web browser from their PCs.
Yes you can by detecting either by checking the value returned from servevaraible HTTP_USER_AGENT or HttpContext.Request.Browser.IsMobileDevice and allow httprequest on your mobile page
Example on http://www.codeproject.com/Articles/34422/Detecting-a-mobile-browser-in-ASP-NET
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.