WD-40 is a great insect repellent, but you should avoid spraying it directly onto a wasp or its nest to prevent being stung. Instead, spray WD-40 around any areas you want to prevent wasps, such as your windows, doors, and outdoor sitting areas to deter them from entering your personal space through summer – regularly reapplying the spray, especially after rain.