It may work for wild rabbits. Here is an interesting website that talks about how to prevent critters from getting into your yard especially plants, flowers, and garden.
Critter Trouble
Rabbits
1. Tree guards: In fall wrap the lower portions of the trunks with commercial tree wrap, burlap, foil, or metal window screen. The wrapping should be 2' above the height of the deepest snow expected, rabbits can walk on top of the snow. Remove wrappings from the trunks in spring.
2. Sprinkle or hang cheesecloth bags of bloodmeal around plants. If sprinkled it must be redone after rain.
3. Vinegar: Soak corn cobs (cut in half) left over from a meal in vinegar for 5 minutes, then scatter throughout the flower or vegetable garden. Two weeks later soak them again in the same vinegar. You can keep reusing this same vinegar again and again.
4. Spray a tea made from cow manure and water as a repellent.
5. Soybean plants will repel rabbits or some say they attract them.
6. Onions will repel them. So will bonemeal.
7. Use red pepper, black pepper, cayenne, paprika etc. as a dust to repel. Rabbits are always sniffing so they snort this up and it sends them packing.
8. Mix 1 well beaten egg, 1/2 tsp. Tabasco sauce, and 1 gal. of water. Paint this on the tree trunks to prevent munching. This will not harm the trees.
9. Plant "Mexican Marigolds" (Tagetes Minuta) and garlic in the garden to repel them.
10. Set old leather shoes (from the thrift shop) around the garden to give it that "humans are here" smell.
11. Garlic Oil Spray may help to repel rabbits.
To make: Combine 3 ounces of minced garlic cloves with 1 ounce of mineral oil. Let soak for 24 hours or longer. Strain. Next mix 1 teaspoon of fish emulsion with 16 ounces of water. Add 1 tablespoon of castille soap to this. Now slowly combine the fish emulsion water with the garlic oil. Kept in a sealed glass container this mixture will stay viable for several months. To use: Mix 2 tablespoons of garlic oil with 1 pint of water and spray.
12. Try planting some crops that rabbits will eat instead with, we hope, the intention of deterring them from your other garden crops. Try annual crimson red clover, planted as a strip border around the garden. Now even if it is not successful as a distraction the clover will up the nitrogen content of your soil. Soybeans are said to be good munchies for bunnies but some say they act as a repellant.
13. Pepper and Glue Spray: Mix together 2 tablespoons of ground red pepper or Tabasco sauce, 1 tablespoon of Elmer's white glue and a quart of water. Spray as needed but not right before you are ready to harvest as the solution may be difficult to wash off your produce.
14. A good rabbit repellent is a mixture of 85% raw linseed oil, 5% household detergent and 10% water. This can be applied with either a paintbrush or small sprayer. Use as a barrier spray but not directly on plant foliage.