Millisecond Forums

User agent parsing

https://forums.millisecond.com/Topic19556.aspx

By lakeside - 8/24/2016

Are you able to share the parsing/logic applied to the user agent string by Millisecond to determine if a subject's hardware/software meet the Inquisit requirements? We're building a front-end page to our Inquisit web tasks and would like to stop non-compliant users from hitting Millisecond's website.


By Dave - 8/24/2016

The platform / browser sniffing is done in JavaScript. You can glean the code directly by looking at a launch page's source. For Inquisit 4 Web, see e.g. view-source:https://www.millisecond.com/download/library/v4/IAT/IAT.web

The functions of interest are in the

/*****************************************************
UTILILTY FUNCTIONS
******************************************************/

section towards the bottom (starting around line 950).

Hope this helps.