• MonkderVierte@lemmy.ml
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      9 hours ago

      Yeah and that’s why it’s one of the basics of the basics you learn as a software developer that you shouldn’t sniff the useragent, because it’s unreliable and causes issues. Yet all big webpages (especially those pretending to be a software) do it, causing issues. Even just trimming the useragent string (xorigin.trimming.policy) makes “advanced services” like a webshop unusable.

      Just don’t do useragent sniffing, do feature detection instead.