Coffee grounds have a piercing odor that can repel rabbits. One way is by sprinkling dried coffee grounds where the rabbit is digging or nesting. The idea is that the smell will create an unpleasant environment for them to return. The good part is that it’s completely harmless, just messy. It may take a little while before you notice a difference, so don’t be discouraged if it doesn’t work right away.