From gen Zers to baby boomers, here’s how different age groups protect themselves online.