People have ways and you can google that. It won't be perfect. We don't have a lot of rabbits but we have groundhogs, chipmunks, squirrels, deer, and lots of birds. Our strategy is basically:
1) grow things like wildflowers that don't get eaten (but do get pollinated)
2) grow things that produce more than you need (tomatoes in our case, but summer squash is another good example)
3) grow things that produce more than can be eaten by the critters (pumpkins)
4) grow things that most critters don't want (chili peppers, basil)
5) enjoy the fact that some critters got something to eat, instead of treating it like a problem. We don't try to keep anybody out of anything.
#5 is easier for us than it is for a lot of people, I'm sure, but it's easier if you get #1-4 right. If I were growing things that took lots of effort I might be annoyed but where we live (southeastern Pennsylvania), most things just grow.
I live on the edge of the woods. Tons of deer, rabbits, etc. The only thing that 1) works reliably for me and 2) is safe and ethical (so not poison or the like) has been an enclosed wire mesh fence. I resisted this solution for a long time even though my neighbors warned me that a fence was the only workable solution, but it's the only thing I've found that really works in my situation and I wish I had done it sooner.
Other things I tried that did not work:
Repellents, both natural and synthetic including but not limited to deer blood, other animal blood, predator urines (tried multiple types and brands), soaps and bitter and/or spicy repent sprays and gels.
Fake snakes, fake predator models and even real predators (not uncommon for foxes and coyotes are to be seen in our neighborhood).
Noisemakers and motion activated lights.
Lots more.
I wasted a ton of time and money trying the above, not to mention all the time spent gardening only to have it eaten by our woodland friends. A fence just works and does not harm animals. It can look very attractive too and can be relatively inexpensive if you keep an open mind w/r/t materials and look out for good deals/craigslist.
I've seen at least one person claim to solve the deer problem by building a covered chicken run around the outside of the property. Deer get discouraged by the depth of the fence moreso than the height. Presumably the cover saves them from raptors.
Probably works better in a square lot than a rectangular one.
One bio-ethical route (at least for many of us in the Mid/Mountain-West US) is to use a deer or pigs blood dilute. It isn't harmful for edible plants (you should be at least rinsing your produce anyway) and it keeps most foragers off the goods - minus birds, but netting part of the trees or shrubs is a good way to deal with birds over foraging produce.
If there's a local butcher they're a ready supply of the stuff, and it helps your local markets so win-win. Or if you already hunt for meat (or have friends that do), it's just making sure you're using even more of the animal, so again, win-win. If you don't think that locally sourced meats are ethically/environmentally sustainable then... ummm... /shrug; there's other methods, but none that have been as effective for our plot size.
We are lucky in that we have a five foot rat snake that lives in the rocks in front of our house. I think I've seen it twice in 10 years. We have no rodents on our property.
1) grow things like wildflowers that don't get eaten (but do get pollinated) 2) grow things that produce more than you need (tomatoes in our case, but summer squash is another good example) 3) grow things that produce more than can be eaten by the critters (pumpkins) 4) grow things that most critters don't want (chili peppers, basil) 5) enjoy the fact that some critters got something to eat, instead of treating it like a problem. We don't try to keep anybody out of anything.
#5 is easier for us than it is for a lot of people, I'm sure, but it's easier if you get #1-4 right. If I were growing things that took lots of effort I might be annoyed but where we live (southeastern Pennsylvania), most things just grow.