There are simple methods homeowners can employ to humanely deter foxes, such as the use of citronella sprays or the humane fox repellent, Scoot. A high-pitched sonic alarm could also be used.
so one way to keep them away is to create a natural fox repellent by infusing them in boiling water and spraying the solution around the garden. "Foxes are also known to strongly dislike the scent ...