Safety proof ..

How can i saftey proof the wall socket where a nightlight is plugges in ? In my toddler/baby room? Toddler is about to switch into big girl bed as baby will be moving from bassinet to the crib ..