• marine_mustang
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Either by linking to malware so you get infected if you click the ad, or by containing malware directly. Ads can contain code, making them almost like small applications that run when loaded.

    • Polar@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Ads can contain code, making them almost like small applications that run when loaded.

      Which browser in 2023 would dare allow that to run?

      • VicksVaporBBQrub
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        1 year ago

        The code is JavaScript–an integral part of displaying modern websites. Not since the days before 2001 and very simple browsers like Netscape Navigator 3 and Internet Explorer 3 that didn’t yet have javascript. Today that is what adblock is doing - it stops loading untrustworthy or unwanted bits and pieces of code while still giving the end-user (most of) the javascripts they need. Instead of the default action, “ok, gimme the whole webpage code, as-is”. That last sentence, that’s Chrome. I can explain it some more further. But that’s the jist of it.