Moth balls. Sprinkle them in your garden.
You can add plants that are rabbit resistant. Also, Irish Spring helps to deter rabbits and other pesky mammals such as mice & deer.
Be careful with moth balls, they are poisonous to small animals and pets.
Sprinkle cayenne pepper around the perimeter of your yard or garden. Will not harm or kill other animals just a little burnt nose or sneeze
Irish spring, coffee grounds, cayenne pepper. Do not use mothballs!