I run Firefox with noscript and ublockorigin...and maybe a couple of other security/privacy add-ons, and that does a good job of preventing me from picking up viruses...It allows cookies too... thought it only lets a site give you.a cookie if you agree to it for that site.
Generally speaking if you prevent all ads from loading and limit loading of non-text web elements to sites you trust.or have good reason to want trust you'll be fine.
|