This is harmless for rabbits. It only repels them.
1/2 cup talcum powder 1/4 cup cayenne pepper
Mix the ingredients. Spread the mixture wherever you do not want the rabbits to feed.