This is a good question, and one that certainly needs to be outlined so that pet owners know exactly what they are facing. The first thing to get clear on, is that foxes are not commonly known for killing household pets, simply because they are hard to get to, and foxes don’t have much of a strategic advantage over a pet, so why would they attack an animal they can’t completely kill with ease?  So, while pets do not have a huge amount to worry about in terms of fox attacks, but you should always keep them safe overnight to deter foxes from coming in your garden.
If you do find that foxes are coming around and you’re looking to keep your animals fully safe from them, here are some precautions you can take to keep everyone and everything safe and secure.
•Keep all pets inside or in secure enclosures with reinforced fencing
This definitely needs to be re-stated so that everyone understands the value and importance of doing this. If your pets are tightly secured and not accessible to the foxes, they will have no reason to come near your home in the first place.
•Keep food sources away
On that same note, do your best to make sure that you keep pet food areas clean and don’t leave pet food outside or accessible at night. Also make sure your rubbish is tightly sealed so that the foxes can’t get into it. It will keep them heading back to your home and potentially making a den there for their cubs, if food sources are close by.
•Try sensor lights
If you feel that foxes are really becoming a problem, perhaps around pet rabbits that are kept outside, try sensor lights on your property. The light will come on when a fox sets it off, and it will hopefully scare it away so that it doesn’t have any interest in coming back.
•Fix all holes in your property 
Foxes are looking for places to live and deliver their cubs, so make sure you patch up any places in your property that can give them a place to live: under sheds, etc. Make sure these are patched up regularly.
Foxes may be causing you trouble in terms of digging and causing structural damage, but the good news is that they are unlikely to harm your pets if you do things right, and they are easily deterred if you use these tips as your guide.