The internet has been a boon and a curse for teenagers.