Doggie door with toddler

Does anyone have a doggie door and how do you keep your toddler away or going into the door ?!