User Agent Variations in SEB 1.9.1

2013-07-12
2013-07-17
  • I configured SEB 1.9.1 (final release with bugfix) today and since we use the user agent to restrict access to our exam server I did some testing on what user agent string SEB reports (to whatsmyuseragent.com) depending on different configurations. I got the following results, which are puzzling to me.

    • Test Case 1: Default user agent configuration. The user agent reported is

      Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0 SEB

    • Test Case 2: After changing the Name setting in seb.ini to Bonn, the user agent reported is

      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20130104 Bonn/2.0

    Note that the differences in the two strings go beyond replacing "SEB" with "Bonn". Gecko version and rv also change. Is this behaviour expected?

     
  • After talking to one of the developers, I now have the following answer:

    Changing seb.ini changes the parameters of the app (which apparently you're not supposed to do) causing the user agent string to be rebuilt, which results in the string from Test Case 2.

    If you need to customize the user agent SEB reports you should do so in config.json, which is where the string from Test Case 1 originates.