There are many rules that can be used to establish how children use the Internet, but the most important rule is that parents and kids agree to a formal set of criteria.
The following pledge is just one example of the guidelines that can be agreed within the family; whatever rules you agree on, print them out and post them next to the computer so that they can be seen at all times.