Anything that smells bad will keep animals out of the garden to a certain extent, mothballs, bleach, ammonia, etc. Their noses are much more sensitive than ours and they aren't happy with strong odors. Somebody told me that his dog got a whiff of the ammonia that he was using to keep groundhogs out and the poor dog took off in a hurry.