As far as I know you can keep a dog for guarding purposes. However depending on where you live and your house type, you will have to keep it outdoors, and make sure it does not disturb any close neighbours. You therefore need to give it somewhere reasonably comfortable outdoors a decent kennel or shed, and you will also need to give it plenty of exercise running around freely somewhere, not just kept in a small yard for days and days.
When a hunting dog brings back the dead animal, it is thoroughly cleaned before it is eaten. In some cultures abandoned dogs can run wild and be a nuisance, they can spread disease, and this may explain why they are disliked.