Mothballs won’t repel rabbits, but they have a strong and unpleasant smell known to repel rodents. Mothballs are toxic to animals like cats, so it’s not the best idea to use them on your yard or lawn.