Cedar repels a lot of insects, including fleas. Spray areas of the home with cedar oil as a repellent. You can throw a block of cedar wood or shavings in a drawer or box to keep an area safe from pests.