Spiders are attracted to movement and noise, so it's important to keep the sandbox clean and dust it with food-grade diatomaceous earth to prevent them from coming in.