How do I keep my child safe online?

Parental controls. My suggestion is to avoid having tvs and computers in children's rooms. These electronics should be in a family area where the children can be supervised. You should exercise parental controls on both your tv and computer to avoid exposure to inappropriate material. Your child needs to be educated on the dangers of the internet and appropriate posts.
Internet safety. This article is a good place to start.