Because centipedes and millipedes are attracted to shelter and humidity indoors when outside conditions aren't optimal, management begins with providing dry and clean settings. Seal any fractures, holes, or openings in your foundation or around doorways that centipedes may exploit to get inside.