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.
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.
How does an ad give you malware?
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.
Which browser in 2023 would dare allow that to run?
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.