How can I guard against scams like cross-site scripting?

Episode 1629 (1:38:44)

Jay from Providence, North Carolina
Cross-site scripting example

Jay wants to know how he can avoid cross-site Scripting attacks. Leo says that you could turn off javascript, but that would make most of the web unusable. Leo uses UBlockOrigin, which is nominally an ad blocker. But it can block cross-site scripting. A good browser like Firefox will protect you as well. In the security settings, you can block a lot of things like cross-site scripting. And load a minimal set of extensions as well.