Its just like every other 'vice' (smoking, drinking, drugs, sex... etc)
You can either cut them off from the world.. or teach them right and wrong and hope you've done enough.
IMHO.. the #1 thing you can do is build a strong relationship with your kids.