Dr. Molier adds that many people use chopped onions, but they should never be used as a deterrent, as onion is a toxic food ...
Granular repellents are effective, but seek out products that are labeled pet- and child-safe to avoid poisoning cats, dogs, or other wildlife. Avoid using mothballs, which are very poisonous.