Borax, a common household cleaning agent, is often thought to have spider-repellent properties. While it can technically kill a spider, its abilities have some limits.
Consider using natural fruits and scents disliked by spiders for a kinder approach, or capture them with a cup and paper, releasing them outside to benefit the ecosystem.