locked
Detect request coming from Kiosk in C# for web application RRS feed

  • Question

  • User-1072029751 posted

    Hello,

    We have web application which is being used from lot many devices. Mobile,  Web browsers(Laptop and PC), Kiosk and handheld devices. We are able detect Mobile and handled devices from C#. Only place we are stuck is Kiosk.

     Can some one help us in detect Kiosk from incoming request in C# for web application.

    Friday, December 2, 2016 2:47 AM

Answers

  • User-718146471 posted

    Ok, I'll bite. First off, you will need to know which browser is used in these Kiosks. I figure we can use some type of scripting to detect if the request is Kiosk based on browser identity through code behind javascript. So, what does your code look like in that part that detects from Mobile and Laptop/PC? For the kiosks, we need to know the make, model, and operating system used. I suspect it may be a Linux kernel but to figure that out, we must know who makes the kiosks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 2, 2016 12:12 PM
  • User753101303 posted

    Hi,

    AFAIK a kiosk just uses a regular browser started with a kiosk mode option (for example https://support.microsoft.com/en-us/kb/154780 )

     I would do a test page to show the full incoming http request (maybe https://msdn.microsoft.com/en-us/library/system.web.httprequest.saveas(v=vs.110).aspx ) to see if I can spot a difference...

    If you have no direct difference (something in the user agent), you would be back at indirect method (such as using the IP address ?). I asusme this is web site for your company and that your company controls those kiosk machines that are maybe in a particular subnet or whatever ???

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 2, 2016 12:21 PM

All replies

  • User-718146471 posted

    Ok, I'll bite. First off, you will need to know which browser is used in these Kiosks. I figure we can use some type of scripting to detect if the request is Kiosk based on browser identity through code behind javascript. So, what does your code look like in that part that detects from Mobile and Laptop/PC? For the kiosks, we need to know the make, model, and operating system used. I suspect it may be a Linux kernel but to figure that out, we must know who makes the kiosks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 2, 2016 12:12 PM
  • User753101303 posted

    Hi,

    AFAIK a kiosk just uses a regular browser started with a kiosk mode option (for example https://support.microsoft.com/en-us/kb/154780 )

     I would do a test page to show the full incoming http request (maybe https://msdn.microsoft.com/en-us/library/system.web.httprequest.saveas(v=vs.110).aspx ) to see if I can spot a difference...

    If you have no direct difference (something in the user agent), you would be back at indirect method (such as using the IP address ?). I asusme this is web site for your company and that your company controls those kiosk machines that are maybe in a particular subnet or whatever ???

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 2, 2016 12:21 PM
  • User-718146471 posted

    Exactly my point Patrice, I was thinking if we knew the manufacturer and model of the kiosk, they may have some support information that may indicate how to detect these units. Trying to find the quickest way to the solution without reinventing the wheel but yes, you are also correct in either the user agent or subnet.

    Friday, December 2, 2016 12:30 PM