• reddig33@lemmy.world
    link
    fedilink
    arrow-up
    206
    arrow-down
    2
    ·
    1 year ago

    It’s time to get rid of user-agent strings that declare anything other than desktop, mobile, or html version.

    • drathvedro@lemm.ee
      link
      fedilink
      arrow-up
      36
      arrow-down
      1
      ·
      1 year ago

      The biggest offender is, surprisingly, cloudflare. They will straight up refuse to serve you any site if your user agent is not one of the mainstream ones. It’s not even “find the traffic light to prove you’re human”, but a page basically saying “fuck you, go away”.

        • lseif@sopuli.xyz
          link
          fedilink
          arrow-up
          36
          arrow-down
          2
          ·
          1 year ago

          what is more likely to be a bot? a unique and trackable useragent for a semi-niche browser engine, or a vanilla Chromium+Windows which half of everyone uses ?

          • lud@lemm.ee
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            1 year ago

            Most semi and fully legitimate bots use a custom user agent.

            • lseif@sopuli.xyz
              link
              fedilink
              arrow-up
              5
              ·
              1 year ago

              what about malicious/unwanted bots? if cloudflare is trying to block bots, the bots will want to not look like bots. the easiest way to do that is to use a common user agent.

    • vlad@lemmy.sdf.org
      link
      fedilink
      arrow-up
      37
      arrow-down
      2
      ·
      edit-2
      1 year ago

      If I was a Firefox dev I’d start looking into building in user agent spoofing right into the browser.

      It already opens Facebook pages in a special isolated tab. They could have apple.com open in it’s own special “safari” tab. I wonder if there’s anything preventing them from doing that. I guess it could be bad because it would make their market share appear even smaller.

    • thehatfox@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      1 year ago

      User agents are not unfortunately not the only way to identify a browser, there are other ways to fingerprint a platform.

      • smileyhead@discuss.tchncs.de
        link
        fedilink
        arrow-up
        10
        arrow-down
        4
        ·
        1 year ago

        JavaScript as it is today also need to be thrown in a trash of history. Website should not contain additional code. If someone wants to send me an app hacked on top of website rendering, it should be a popup asking me first if I want to run this.

        • Supervisor194@lemmy.world
          link
          fedilink
          arrow-up
          13
          ·
          1 year ago

          No, dynamic content should absolutely be able to be delivered through the open Web, not just through walled gardens. Apps are almost universally shit.

          • smileyhead@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            No problem with sending some JavaScript module extending browser’s capability. But the problem I see is sending whole sites this way, sometimes even rendering HTML on the visitor’s browser, yack…

          • smileyhead@discuss.tchncs.de
            link
            fedilink
            arrow-up
            5
            ·
            1 year ago

            This is absolutely not true and just a myth. Images, video playback, “show more”, forms, tabbing, animations, custom icons, hover effects, popups, background images and videos, light/dark mode, hamburger menus…

            It’s hard to count things you can do with advanced format that is HTML+CSS. Saying JavaScript is nessesary for anything other than block of text is like saying that in Minecraft command blocks are nessesary for anything other than making voxel art.

            For basic things like interacting with your bank or goverment, running any additional code should be unnessesary. And I believe this needs to be a law targeting accessibility and compatibility.

            • smileyhead@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              For maps, dynamic updating, OK. But look at the web now, most sites are apps requiring 99% of web standards implemented to work. No wonder it’s now impossible to actually make a new browser.

              HTML was made to last. If browser do not support some tag it would try and render it anyway. Meanwhile with today’s webapps browsers in 2033 will be required to have so much technical debt that for now was exclusive to operating systems.

    • _number8_@lemmy.world
      link
      fedilink
      arrow-up
      12
      arrow-down
      8
      ·
      1 year ago

      i don’t want them knowing desktop or mobile either. we all have good enough phones now to handle a proper website on mobile – mobile sites are fucking garbage.

      steve jobs during the original iphone keynote did a whole segment on how you could load the full rich widescreen NYT website and zoom in and out and look at that rich text rendering. apps are ass, mobile sites are ass.

    • bigbluealien@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      99% of sites only need to know your screen aspect ratio and maybe available input devices, can’t think of a good reason to share anything else