Motion-activated lights or humane ultrasonic repellents can help deter foxes by startling them without causing harm. These encourage foxes to avoid the area without distressing them.