WD-40 can be sprayed around window and door frames to help repel bugs and prevent them from entering your home thanks to its pungent smell. Apply liberally around any areas you want to ward bugs away from, being careful that it doesn’t come into contact with fabrics like curtains or rugs as it may stain.